/* =========================================================
   CHUO CHA SANAA OUTREACH
   INTERNATIONAL UI SYSTEM
   Mobile-first · Accessible · Lightweight
========================================================= */

:root {
    --brand: #9acb3c;
    --brand-600: #7baa22;
    --brand-700: #628b16;
    --brand-50: #f5faeb;
    --brand-100: #edf6dc;

    --ink: #151515;
    --ink-2: #2a2d2f;
    --muted: #6f7478;
    --muted-2: #979ca0;

    --surface: #ffffff;
    --surface-soft: #f7f8f4;
    --surface-muted: #f1f3ed;

    --border: #e4e7df;
    --border-strong: #d4d9cd;

    --danger: #b42318;
    --danger-soft: #fff0ee;

    --warning: #9a6700;
    --warning-soft: #fff8df;

    --success: #4f7314;
    --success-soft: #edf8df;

    --info: #315e76;
    --info-soft: #eef7fb;

    --shadow-sm:
        0 2px 8px rgba(18, 23, 13, .05);

    --shadow-md:
        0 12px 32px rgba(18, 23, 13, .08);

    --shadow-lg:
        0 24px 70px rgba(18, 23, 13, .11);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --container: 680px;

    --transition:
        180ms cubic-bezier(.2,.7,.2,1);
}


/* =========================================================
   RESET / BASE
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(
            circle at 50% -120px,
            rgba(154, 203, 60, .15),
            transparent 360px
        ),
        linear-gradient(
            180deg,
            #f8faf5 0,
            #ffffff 420px
        );

    color: var(--ink);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

::selection {
    background: rgba(154, 203, 60, .28);
}


/* =========================================================
   MAIN CONTAINERS
========================================================= */

.app-shell,
.status-shell {
    width: min(
        calc(100% - 28px),
        var(--container)
    );

    margin-inline: auto;
}

.app-shell {
    padding-bottom:
        max(
            20px,
            env(safe-area-inset-bottom)
        );
}


/* =========================================================
   BRAND HEADER
========================================================= */

.brand-header {
    display: flex;
    min-height: 96px;

    align-items: center;
    gap: 12px;

    padding: 12px 2px;
}

.brand-header img,
.brand-mini img {
    width: 56px;
    height: 56px;

    flex: 0 0 auto;

    object-fit: contain;

    border: 1px solid rgba(0,0,0,.05);
    border-radius: 13px;

    background: #fff;

    box-shadow: var(--shadow-sm);
}

.brand-header > div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.brand-header strong {
    overflow: hidden;

    font-size: 14px;
    font-weight: 900;

    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-header span {
    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 650;

    letter-spacing: .02em;
}

.status-link {
    display: inline-flex;
    min-height: 40px;

    align-items: center;
    justify-content: center;

    padding: 0 15px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(255,255,255,.92);

    color: var(--ink);

    box-shadow: var(--shadow-sm);

    font-size: 10px;
    font-weight: 850;

    text-decoration: none;

    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.status-link:hover {
    border-color: var(--brand);
    background: var(--brand-50);
}

.status-link:active {
    transform: translateY(1px);
}


/* =========================================================
   MAIN CARDS
========================================================= */

.wizard-card,
.card {
    position: relative;

    padding:
        clamp(24px, 6vw, 42px);

    overflow: hidden;

    border: 1px solid rgba(0,0,0,.055);
    border-radius: var(--radius-xl);

    background:
        rgba(255,255,255,.97);

    box-shadow: var(--shadow-lg);
}

.wizard-card::before,
.card::before {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--brand),
            #cce682
        );

    content: "";
}


/* =========================================================
   PROGRESS
========================================================= */

.progress-wrap {
    margin-bottom: 38px;
}

.progress-track {
    height: 6px;

    overflow: hidden;

    border-radius: 999px;

    background: var(--surface-muted);
}

.progress-bar {
    width: 20%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--brand-700),
            var(--brand)
        );

    box-shadow:
        0 0 0 1px rgba(98,139,22,.04);

    transition:
        width .28s ease;
}

.progress-wrap > span {
    display: block;

    margin-top: 8px;

    color: var(--muted-2);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .04em;

    text-align: right;
    text-transform: uppercase;
}


/* =========================================================
   STEPS / TYPOGRAPHY
========================================================= */

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;

    animation:
        fw-step-in .22s ease both;
}

@keyframes fw-step-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow {
    display: inline-flex;

    align-items: center;

    margin-bottom: 10px;

    color: var(--brand-700);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .10em;

    text-transform: uppercase;
}

.eyebrow::before {
    width: 7px;
    height: 7px;

    margin-right: 7px;

    border-radius: 50%;

    background: var(--brand);

    content: "";
}

h1 {
    margin: 0 0 14px;

    color: var(--ink);

    font-size:
        clamp(
            27px,
            7vw,
            40px
        );

    font-weight: 950;

    letter-spacing: -.045em;
    line-height: 1.05;
}

.lead,
.muted {
    max-width: 560px;

    margin: 0 0 30px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 450;

    line-height: 1.75;
}


/* =========================================================
   FORM LABELS
========================================================= */

label {
    display: block;

    margin:
        20px 0 8px;

    color: var(--ink-2);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: .015em;
}


/* =========================================================
   INPUTS / SELECTS
========================================================= */

input,
select,
textarea {
    width: 100%;

    border: 1px solid var(--border);
    border-radius: 13px;

    outline: none;

    background: #fff;

    color: var(--ink);

    box-shadow:
        inset 0 1px 0 rgba(0,0,0,.015);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

input,
select {
    min-height: 56px;

    padding:
        0 16px;
}

textarea {
    min-height: 120px;

    padding: 14px 16px;

    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #adb1ad;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-600);

    box-shadow:
        0 0 0 4px rgba(154,203,60,.13);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #f5f6f3;
    color: #9da19c;

    cursor: not-allowed;
}


/* =========================================================
   PHONE INPUT
========================================================= */

.phone-box {
    display: grid;

    grid-template-columns:
        76px minmax(0,1fr);

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: #fff;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.phone-box:hover {
    border-color: var(--border-strong);
}

.phone-box:focus-within {
    border-color: var(--brand-600);

    box-shadow:
        0 0 0 4px rgba(154,203,60,.13);
}

.country-code {
    display: flex;

    align-items: center;
    justify-content: center;

    border-right: 1px solid var(--border);

    background: var(--surface-soft);

    color: var(--ink-2);

    font-size: 11px;
    font-weight: 900;
}

.phone-box input {
    border: 0;
    border-radius: 0;

    box-shadow: none;
}

.phone-box input:focus {
    box-shadow: none;
}


/* =========================================================
   NETWORK DETECTION
========================================================= */

.network-detected {
    display: flex;

    align-items: center;
    gap: 11px;

    margin-top: 12px;

    padding: 12px 14px;

    border: 1px solid #dbe8c4;
    border-radius: 11px;

    background: var(--brand-50);
}

.network-dot {
    width: 9px;
    height: 9px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--brand-700);

    box-shadow:
        0 0 0 4px rgba(154,203,60,.16);
}

.network-detected div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.network-detected small {
    color: #7b866a;

    font-size: 8px;
    font-weight: 700;
}

.network-detected strong {
    margin-top: 2px;

    color: var(--ink);

    font-size: 11px;
    font-weight: 900;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;

    width: 100%;
    min-height: 56px;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 26px;

    padding: 0 18px;

    border: 0;
    border-radius: 13px;

    cursor: pointer;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .015em;

    text-decoration: none;

    transition:
        background var(--transition),
        box-shadow var(--transition),
        transform var(--transition),
        opacity var(--transition);
}

.btn.primary {
    background:
        linear-gradient(
            180deg,
            #202020,
            #111
        );

    color: #fff;

    box-shadow:
        0 9px 18px rgba(0,0,0,.14);
}

.btn.primary:hover {
    background:
        linear-gradient(
            180deg,
            var(--brand-600),
            var(--brand-700)
        );

    box-shadow:
        0 10px 22px rgba(98,139,22,.22);
}

.btn.primary:active {
    transform: translateY(1px);
}

.btn.text {
    min-height: 42px;

    margin-top: 8px;

    background: transparent;

    color: var(--muted);

    box-shadow: none;
}

.btn.text:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

.btn:disabled {
    cursor: wait;

    opacity: .58;

    box-shadow: none;
}


/* =========================================================
   REMEMBER BOX
========================================================= */

.remember-box {
    position: relative;

    margin:
        22px 0 26px;

    padding:
        17px 17px 17px 18px;

    overflow: hidden;

    border: 1px solid #dce9c7;
    border-radius: 13px;

    background: var(--brand-50);
}

.remember-box::before {
    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: var(--brand);

    content: "";
}

.remember-box strong {
    display: block;

    color: #4d671f;

    font-size: 10px;
    font-weight: 900;

    text-transform: uppercase;
}

.remember-box p {
    margin:
        6px 0 0;

    color: #5f684e;

    font-size: 10px;
    line-height: 1.7;
}


/* =========================================================
   FEE CARD
========================================================= */

.fee-card {
    position: relative;

    margin:
        22px 0 20px;

    padding: 22px;

    overflow: hidden;

    border: 1px solid #dce6ca;
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #f9fcef,
            #ffffff
        );
}

.fee-card::after {
    position: absolute;

    top: -45px;
    right: -45px;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background:
        rgba(154,203,60,.10);

    content: "";
}

.fee-card small,
.fee-card span {
    display: block;

    color: var(--muted);

    font-size: 9px;
}

.fee-card strong {
    display: block;

    margin:
        5px 0 7px;

    color: var(--ink);

    font-size: 29px;
    font-weight: 950;

    letter-spacing: -.03em;
}


/* =========================================================
   CHECKBOX ROW
========================================================= */

.check-row {
    display: grid;

    grid-template-columns:
        24px minmax(0,1fr);

    gap: 11px;

    align-items: start;

    margin: 13px 0;

    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: #fff;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background var(--transition);
}

.check-row:hover {
    border-color: #cfd8bf;
    background: #fbfcf9;
}

.check-row input {
    width: 18px;
    min-height: 18px;

    margin: 2px 0 0;

    padding: 0;

    accent-color: var(--brand-700);
}

.check-row span {
    color: #505357;

    font-size: 10px;
    line-height: 1.6;
}

.check-row strong {
    color: var(--ink);
}

.check-row a {
    color: var(--brand-700);

    font-weight: 850;
}


/* =========================================================
   PAYMENT NETWORKS
========================================================= */

.payment-networks {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 11px;

    margin:
        20px 0;
}

.network-choice {
    position: relative;

    min-height: 84px;

    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: #fff;

    cursor: pointer;

    text-align: left;

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.network-choice:hover {
    border-color: #cfd7c4;

    box-shadow: var(--shadow-sm);

    transform: translateY(-1px);
}

.network-choice strong,
.network-choice span {
    display: block;
}

.network-choice strong {
    color: var(--ink);

    font-size: 11px;
    font-weight: 900;
}

.network-choice span {
    margin-top: 4px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 650;
}

.network-choice.selected {
    border-color: var(--brand-600);

    background:
        linear-gradient(
            135deg,
            var(--brand-50),
            #fff
        );

    box-shadow:
        0 0 0 3px rgba(154,203,60,.11);
}

.network-choice.selected::after {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: var(--brand-700);

    color: #fff;

    content: "✓";

    font-size: 10px;
    font-weight: 900;

    line-height: 17px;
    text-align: center;
}


/* =========================================================
   PAYMENT SUMMARY
========================================================= */

.payment-summary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 22px;

    padding: 15px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.payment-summary span {
    color: var(--muted);

    font-size: 9px;
    font-weight: 700;
}

.payment-summary strong {
    color: var(--ink);

    font-size: 16px;
    font-weight: 950;
}

.secure-note {
    margin:
        13px auto 0;

    max-width: 360px;

    color: var(--muted-2);

    font-size: 8px;
    line-height: 1.55;

    text-align: center;
}


/* =========================================================
   MESSAGES
========================================================= */

.form-message {
    margin-top: 19px;

    padding: 13px 14px;

    border: 1px solid transparent;
    border-radius: 11px;

    font-size: 9px;
    font-weight: 750;

    line-height: 1.6;
}

.form-message.error {
    border-color: #f3cbc6;

    background: var(--danger-soft);

    color: var(--danger);
}

.form-message.info {
    border-color: #d8e9ef;

    background: var(--info-soft);

    color: var(--info);
}

.form-message.success {
    border-color: #d6e7be;

    background: var(--success-soft);

    color: var(--success);
}


/* =========================================================
   FOOTER
========================================================= */

.simple-footer {
    display: flex;

    min-height: 78px;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    color: var(--muted-2);

    font-size: 8px;
}

.simple-footer a {
    color: var(--ink);

    font-weight: 850;

    text-decoration: none;
}

.simple-footer a:hover {
    color: var(--brand-700);
}


/* =========================================================
   STATUS PAGE SHARED UI
========================================================= */

.status-shell {
    padding:
        32px 0 70px;
}

.brand-mini {
    display: inline-flex;

    align-items: center;
    gap: 11px;

    margin-bottom: 24px;

    color: var(--ink);

    font-size: 10px;
    font-weight: 900;

    text-decoration: none;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
    outline:
        3px solid rgba(154,203,60,.38);

    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    .app-shell,
    .status-shell {
        width:
            min(
                calc(100% - 20px),
                var(--container)
            );
    }

    .brand-header {
        min-height: 82px;
    }

    .brand-header img,
    .brand-mini img {
        width: 47px;
        height: 47px;

        border-radius: 11px;
    }

    .brand-header strong {
        font-size: 12px;
    }

    .brand-header span {
        font-size: 9px;
    }

    .status-link {
        min-height: 37px;

        padding:
            0 12px;

        font-size: 9px;
    }

    .wizard-card,
    .card {
        padding:
            24px 19px;

        border-radius: 20px;
    }

    .progress-wrap {
        margin-bottom: 31px;
    }

    h1 {
        font-size:
            clamp(
                26px,
                8.5vw,
                34px
            );
    }

    .lead,
    .muted {
        margin-bottom: 25px;

        font-size: 11px;
    }

    .payment-networks {
        gap: 9px;
    }

    .network-choice {
        min-height: 78px;

        padding: 13px;
    }

    .simple-footer {
        min-height: 70px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .payment-networks {
        grid-template-columns: 1fr;
    }

    .brand-header {
        gap: 9px;
    }

    .status-link {
        padding:
            0 10px;
    }

    .wizard-card,
    .card {
        padding:
            22px 16px;
    }
}


/* =========================================================
   DESKTOP ENHANCEMENT
========================================================= */

@media (min-width: 900px) {

    body {
        padding-top: 14px;
    }

    .wizard-card,
    .card {
        box-shadow:
            0 30px 90px rgba(19, 25, 12, .12);
    }

    .brand-header {
        min-height: 102px;
    }
}
