:root {
    --blue: #173b79;
    --blue-2: #244c95;
    --navy: #0f2f63;
    --gold: #f4bd29;
    --gold-dark: #d99b00;
    --orange: #e77c24;
    --ink: #17233b;
    --muted: #647089;
    --line: #dce4f1;
    --soft: #f5f8fd;
    --white: #ffffff;
    --success: #16784a;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(15, 47, 99, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

a { color: inherit; }

.site-header {
    background: #fff;
    border-bottom: 1px solid rgba(23, 59, 121, .10);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 7px 24px rgba(15, 47, 99, .04);
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    width: 265px;
    max-width: 58vw;
    display: block;
}

.header-trust {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(244, 189, 41, .24), transparent 23%),
        linear-gradient(135deg, #102f66 0%, #173b79 48%, #244c95 100%);
    color: #fff;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -240px auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, .035);
}

.hero-grid {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 70px;
    align-items: center;
    padding: 86px 0;
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-label,
.form-kicker {
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 12px;
    font-weight: 900;
}

.eyebrow { color: var(--gold); }

.hero h1 {
    font-size: clamp(42px, 5.2vw, 72px);
    line-height: 1.04;
    letter-spacing: -.04em;
    margin: 14px 0 24px;
    max-width: 780px;
}

.hero h1 span { color: var(--gold); }

.hero-lead {
    font-size: 19px;
    line-height: 1.72;
    color: #e8eef9;
    max-width: 730px;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 850;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
}

.button-gold {
    color: #102f66;
    background: var(--gold);
    border-color: var(--gold);
}

.button-gold:hover { background: #ffca34; }

.button-outline {
    color: #fff;
    border-color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.03);
}

.button-outline:hover { background: rgba(255,255,255,.08); }

.button-outline-dark {
    color: var(--blue);
    border-color: var(--line);
    background: #fff;
}

.trust-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 13px;
    color: #d6e3f8;
}

.trust-row span::before {
    content: "✓";
    color: var(--gold);
    font-weight: 900;
    margin-right: 6px;
}

.hero-card {
    background: rgba(255, 255, 255, .98);
    color: var(--ink);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 30px 80px rgba(4, 19, 48, .30);
    border-top: 5px solid var(--gold);
}

.hero-card-kicker {
    color: var(--blue);
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 9px;
}

.hero-card p { color: var(--muted); margin: 0; }

.impact-number {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
}

.impact-number strong {
    font-size: 52px;
    color: var(--blue);
    line-height: 1;
}

.impact-number span {
    font-size: 14px;
    font-weight: 700;
    color: #4d5b75;
}

.section { padding: 88px 0; }

.section-narrow {
    width: min(880px, calc(100% - 40px));
    margin: 0 auto;
}

.section-wide,
.donation-layout {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section-label {
    color: var(--blue);
    margin-bottom: 10px;
}

.section h2,
.donation-copy h2,
.closing h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -.03em;
    margin: 0 0 22px;
    color: var(--navy);
}

.intro p,
.donation-copy > p,
.closing p {
    font-size: 18px;
    color: #52617a;
    line-height: 1.8;
}

.impact {
    background: var(--soft);
    border-top: 1px solid #edf1f7;
    border-bottom: 1px solid #edf1f7;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 38px;
}

.impact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    min-height: 250px;
    box-shadow: 0 8px 30px rgba(15,47,99,.04);
}

.impact-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff7db;
    color: var(--blue);
    border: 1px solid #f4df92;
    font-weight: 900;
    font-size: 13px;
}

.impact-card h3 {
    font-size: 18px;
    line-height: 1.35;
    color: var(--navy);
    margin: 19px 0 10px;
}

.impact-card p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

.donation-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.donation-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(500px, 1.15fr);
    gap: 58px;
    align-items: start;
}

.donation-copy {
    position: sticky;
    top: 120px;
}

.donation-note {
    border-left: 4px solid var(--gold);
    padding: 16px 18px;
    margin: 20px 0;
    background: #fff;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 8px 28px rgba(15,47,99,.05);
}

.donation-note strong {
    color: var(--blue);
    display: block;
    margin-bottom: 4px;
}

.donation-note p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.donation-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.form-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}

.form-kicker { color: var(--blue); }

.form-heading h3 {
    margin: 3px 0 0;
    color: var(--navy);
    font-size: 26px;
}

.secure-pill {
    font-size: 12px;
    font-weight: 900;
    color: var(--success);
    background: #ecf8f2;
    border: 1px solid #c5ead8;
    border-radius: 999px;
    padding: 7px 10px;
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 26px;
}

legend,
.field label {
    font-weight: 850;
    color: var(--ink);
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.amount-button {
    min-height: 52px;
    border-radius: 10px;
    border: 1px solid #ccd7e8;
    background: #fff;
    color: var(--blue);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.amount-button:hover,
.amount-button.active {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.field { margin-bottom: 22px; }

.field input,
.field select {
    width: 100%;
    min-height: 50px;
    border: 1px solid #cfd9e8;
    border-radius: 10px;
    padding: 0 14px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    outline: none;
}

.field input:focus,
.field select:focus {
    border-color: var(--blue-2);
    box-shadow: 0 0 0 3px rgba(36, 76, 149, .10);
}

.field small,
.choice-card small,
.fee-option small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 7px;
    line-height: 1.45;
}

.optional {
    color: var(--muted);
    font-weight: 500;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.choice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.choice-card {
    position: relative;
    border: 1px solid #cfd9e8;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: .18s ease;
}

.choice-card.active {
    border-color: var(--blue);
    background: #f4f7fd;
    box-shadow: inset 0 0 0 1px var(--blue);
}

.choice-card input { margin-top: 4px; accent-color: var(--blue); }

.choice-card strong {
    color: var(--navy);
    font-size: 14px;
}

.choice-card small { margin-top: 2px; }

.custom-amount-wrap { margin-top: 12px; margin-bottom: 0; }

.money-input { position: relative; }

.money-input > span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 850;
    color: var(--blue);
}

.money-input input { padding-left: 30px; }

.fee-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e3d397;
    background: #fff9e9;
    margin: 6px 0 22px;
    cursor: pointer;
}

.fee-option input { margin-top: 5px; accent-color: var(--blue); }

.fee-option strong { color: var(--navy); font-size: 14px; }

.fee-option small { margin-top: 2px; }

.summary-box {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 16px 18px;
    margin-bottom: 17px;
}

.summary-box > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 5px 0;
    color: #52617a;
    font-size: 14px;
}

.summary-box strong { color: var(--ink); }

.summary-total {
    border-top: 1px solid var(--line);
    margin-top: 7px;
    padding-top: 12px !important;
    font-size: 17px !important;
}

.summary-total strong { color: var(--blue); }

.checkout-note,
.legal-copy {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.submit-button {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 11px;
    background: var(--blue);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 12px;
}

.submit-button:hover { background: var(--navy); }

.submit-button:disabled {
    opacity: .65;
    cursor: wait;
}

.closing {
    background: var(--navy);
    color: #fff;
    text-align: center;
}

.closing-inner {
    width: min(820px, calc(100% - 40px));
    margin: 0 auto;
}

.closing .section-label { color: var(--gold); }

.closing h2 { color: #fff; }

.closing p { color: #d7e2f4; }

footer {
    background: #0a234e;
    color: #cdd9ec;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    font-size: 13px;
}

footer > div {
    display: flex;
    flex-direction: column;
}

footer strong { color: #fff; }
footer span { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

.simple-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f4f7fc 0%, #ffffff 100%);
    padding: 48px 20px;
    display: grid;
    place-items: center;
}

.status-card {
    width: min(680px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 42px;
    box-shadow: var(--shadow);
    text-align: center;
}

.status-logo {
    width: 280px;
    max-width: 80%;
    margin: 0 auto 28px;
}

.status-card h1 {
    color: var(--navy);
    font-size: 34px;
    line-height: 1.2;
    margin: 12px 0 16px;
}

.status-lead { color: var(--muted); }

.status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.status-badge.paid {
    color: #11603d;
    background: #e9f8f1;
    border: 1px solid #bde4d1;
}

.status-badge.pending {
    color: #7c5600;
    background: #fff7df;
    border: 1px solid #efd890;
}

.receipt-summary {
    margin: 28px 0;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.receipt-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.receipt-summary > div:last-child { border-bottom: 0; }
.receipt-summary span { color: var(--muted); }
.receipt-summary strong { color: var(--ink); text-align: right; }

.status-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.small-print {
    font-size: 12px;
    color: var(--muted);
    margin-top: 24px;
}

.error-card { border-top: 5px solid #c33d3d; }

@media (max-width: 900px) {
    .hero-grid,
    .donation-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-grid { min-height: auto; padding: 68px 0; }

    .hero-card { max-width: 620px; }

    .donation-copy { position: static; }

    .impact-grid { grid-template-columns: repeat(2, 1fr); }

    footer { flex-direction: column; text-align: center; }
}

@media (max-width: 620px) {
    .header-inner { width: min(100% - 26px, 1180px); min-height: 70px; }
    .header-trust { display: none; }
    .brand img { width: 230px; max-width: 80vw; }

    .hero-grid,
    .section-wide,
    .donation-layout,
    .section-narrow {
        width: min(100% - 28px, 1180px);
    }

    .hero { text-align: left; }
    .hero h1 { font-size: 42px; }
    .hero-lead { font-size: 17px; }
    .hero-card { padding: 25px; }

    .section { padding: 64px 0; }

    .impact-grid,
    .choice-row,
    .two-col {
        grid-template-columns: 1fr;
    }

    .amount-grid { grid-template-columns: repeat(2, 1fr); }

    .donation-form { padding: 22px; border-radius: 15px; }
    .form-heading { align-items: flex-start; }
    .secure-pill { white-space: nowrap; }

    .status-card { padding: 28px 20px; }
    .status-card h1 { font-size: 28px; }
}

@media print {
    .site-header,
    .status-actions,
    footer { display: none !important; }

    .simple-page { padding: 0; background: #fff; }
    .status-card { border: 0; box-shadow: none; width: 100%; }
}
