/*
 * LAZ MHC Zakat Calculator v1.1.0
 * All selectors are strictly scoped below .lazmhc-zc.
 */

.lazmhc-zc {
    --lazmhc-zc-primary: #15915f;
    --lazmhc-zc-dark: #173a2d;
    --lazmhc-zc-text: #526960;
    --lazmhc-zc-border: #dfeae4;
    --lazmhc-zc-soft: #f3f8f5;
    width: 100%;
    max-width: 1080px;
    margin: 32px auto;
    padding: 0 18px;
    color: var(--lazmhc-zc-dark);
    font-family: inherit;
    line-height: 1.5;
}

.lazmhc-zc,
.lazmhc-zc * {
    box-sizing: border-box;
}

.lazmhc-zc button,
.lazmhc-zc input {
    font-family: inherit;
}

.lazmhc-zc__intro {
    max-width: 760px;
    margin: 0 auto 26px;
    text-align: center;
}

.lazmhc-zc__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #eaf5ef;
    color: var(--lazmhc-zc-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
}

.lazmhc-zc__intro h2 {
    margin: 0 0 10px;
    color: #102d22;
    font-size: clamp(32px, 4.2vw, 48px);
    line-height: 1.1;
    font-weight: 800;
}

.lazmhc-zc__intro p {
    margin: 0;
    color: #667b72;
    font-size: 16px;
    line-height: 1.7;
}

.lazmhc-zc__card {
    overflow: hidden;
    border: 1px solid var(--lazmhc-zc-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(27, 77, 57, .09);
}

.lazmhc-zc__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 9px;
    border-bottom: 1px solid #e7efea;
    background: #f4f8f6;
}

.lazmhc-zc__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 8px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #5c7067;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.lazmhc-zc__tab:hover {
    background: #fff;
    color: #1e4435;
}

.lazmhc-zc__tab.is-active {
    background: var(--lazmhc-zc-primary);
    color: #fff;
    box-shadow: 0 7px 17px rgba(21, 145, 95, .20);
}

.lazmhc-zc__tab-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .18);
    font-size: 11px;
    font-weight: 900;
}

.lazmhc-zc__tab:not(.is-active) .lazmhc-zc__tab-icon {
    background: #e9f2ed;
    color: var(--lazmhc-zc-primary);
}

.lazmhc-zc__panel {
    padding: 32px 30px 30px;
}

.lazmhc-zc__panel[hidden] {
    display: none !important;
}

.lazmhc-zc__section-head {
    margin-bottom: 22px;
}

.lazmhc-zc__section-head h3 {
    margin: 0 0 6px;
    color: #15372a;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.lazmhc-zc__section-head p {
    margin: 0;
    color: #72857c;
    font-size: 14px;
    line-height: 1.65;
}

.lazmhc-zc__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.lazmhc-zc__field {
    display: block;
    margin: 0 0 18px;
}

.lazmhc-zc__label {
    display: block;
    margin: 0 0 8px;
    color: #29493c;
    font-size: 14px;
    font-weight: 750;
}

.lazmhc-zc__label b {
    color: #d94343;
}

.lazmhc-zc__label small {
    color: #82928b;
    font-size: 12px;
    font-weight: 500;
}

.lazmhc-zc__money,
.lazmhc-zc__number {
    display: flex;
    align-items: center;
    min-height: 52px;
    overflow: hidden;
    border: 1px solid #d9e5df;
    border-radius: 13px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.lazmhc-zc__money:focus-within,
.lazmhc-zc__number:focus-within {
    border-color: var(--lazmhc-zc-primary);
    box-shadow: 0 0 0 3px rgba(21, 145, 95, .10);
}

.lazmhc-zc__money > span,
.lazmhc-zc__number > span {
    flex: 0 0 auto;
    padding: 0 14px;
    color: var(--lazmhc-zc-primary);
    font-size: 14px;
    font-weight: 850;
}

.lazmhc-zc input[type="text"],
.lazmhc-zc input[type="number"] {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    margin: 0 !important;
    padding: 13px 14px 13px 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #19382c !important;
    font-size: 15px !important;
    font-weight: 750 !important;
}

.lazmhc-zc__number input[type="number"] {
    padding-left: 14px !important;
}

.lazmhc-zc__period {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.lazmhc-zc__period label,
.lazmhc-zc__check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border: 1px solid #e0e9e4;
    border-radius: 12px;
    background: #f7faf8;
    color: #405a4f;
    font-size: 14px;
    font-weight: 700;
}

.lazmhc-zc__check {
    margin: 0 0 18px;
}

.lazmhc-zc input[type="radio"],
.lazmhc-zc input[type="checkbox"] {
    margin: 0 !important;
    accent-color: var(--lazmhc-zc-primary);
}

.lazmhc-zc__info {
    margin: 2px 0 20px;
    padding: 14px 15px;
    border-left: 4px solid var(--lazmhc-zc-primary);
    border-radius: 10px;
    background: #f0f7f3;
    color: #40594f;
    font-size: 14px;
    line-height: 1.55;
}

.lazmhc-zc__calculate {
    width: 100%;
    min-height: 50px;
    padding: 13px 18px;
    border: 0;
    border-radius: 13px;
    background: var(--lazmhc-zc-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(21, 145, 95, .18);
    transition: transform .18s ease, opacity .18s ease;
}

.lazmhc-zc__calculate:hover {
    transform: translateY(-1px);
    opacity: .95;
}

.lazmhc-zc__result {
    margin: 0 30px 30px;
    padding: 28px 24px;
    border: 1px solid #d7eadf;
    border-radius: 20px;
    background: #f3faf6;
    text-align: center;
}

.lazmhc-zc__result[hidden] {
    display: none !important;
}

.lazmhc-zc__result.is-warning {
    border-color: #eddcaf;
    background: #fff9ed;
}

.lazmhc-zc__result-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--lazmhc-zc-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.lazmhc-zc__result.is-warning .lazmhc-zc__result-icon {
    background: #bd8318;
}

.lazmhc-zc__result-kicker {
    color: #71847b;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.lazmhc-zc__result h3 {
    margin: 6px 0 4px;
    color: #183a2d;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
}

.lazmhc-zc__result-amount {
    margin: 8px 0;
    color: var(--lazmhc-zc-primary);
    font-size: clamp(36px, 5vw, 50px);
    line-height: 1.1;
    font-weight: 900;
}

.lazmhc-zc__result.is-warning .lazmhc-zc__result-amount {
    color: #966410;
}

.lazmhc-zc__result p {
    max-width: 700px;
    margin: 0 auto;
    color: #5a7066;
    font-size: 14px;
    line-height: 1.65;
}

.lazmhc-zc__result-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    margin-top: 16px;
}

.lazmhc-zc__result-details span {
    padding: 7px 11px;
    border: 1px solid #dfeae4;
    border-radius: 999px;
    background: #fff;
    color: #50675c;
    font-size: 13px;
}

.lazmhc-zc__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.lazmhc-zc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.lazmhc-zc__btn--primary {
    background: var(--lazmhc-zc-primary);
    color: #fff !important;
}

.lazmhc-zc__btn--outline {
    border: 1px solid #bcd9ca;
    background: #fff;
    color: var(--lazmhc-zc-primary) !important;
}

.lazmhc-zc__note {
    padding: 16px 4px 0;
    color: #74877e;
    font-size: 13px;
    line-height: 1.65;
}

@media (max-width: 700px) {
    .lazmhc-zc {
        margin: 20px auto;
        padding: 0 12px;
    }

    .lazmhc-zc__tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lazmhc-zc__panel {
        padding: 24px 17px 22px;
    }

    .lazmhc-zc__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lazmhc-zc__result {
        margin: 0 17px 22px;
        padding: 24px 16px;
    }

    .lazmhc-zc__actions {
        flex-direction: column;
    }

    .lazmhc-zc__btn {
        width: 100%;
    }
}


.lazmhc-zc__nisab-date {
    display: block;
    margin-top: 5px;
    color: #7a8e84;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
}
