:root {
  color-scheme: light;
  --green: #087a56;
  --green-dark: #075d44;
  --green-soft: #e8f5ef;
  --red: #d43a2c;
  --ink: #1f302a;
  --muted: #60716b;
  --line: #d9e2de;
  --cream: #fffaf6;
  --white: #fff;
  --shadow: 0 16px 45px rgba(31, 48, 42, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #f3faf6 0, var(--cream) 420px); color: var(--ink); }
button, input, select { font: inherit; }
a { color: var(--green-dark); }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 10; padding: 10px 14px; background: var(--ink); color: white; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px clamp(18px, 4vw, 56px); border-bottom: 1px solid rgba(8, 122, 86, .12); background: rgba(255,255,255,.92); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 62px; height: 62px; object-fit: contain; flex: 0 0 auto; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; }
.brand small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.home-link { font-weight: 700; font-size: .92rem; }
.page-shell { width: min(820px, calc(100% - 28px)); margin: 0 auto; padding: 42px 0 70px; }
.intro { text-align: center; max-width: 650px; margin: 0 auto 28px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.05; }
.intro > p:last-child { color: var(--muted); line-height: 1.6; }
.progress { margin: 0 auto 20px; }
.progress ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.progress li { position: relative; display: grid; justify-items: center; gap: 6px; color: #7b8984; font-size: .74rem; text-align: center; }
.progress li::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.progress li:first-child::before { display: none; }
.progress span { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--cream); font-weight: 800; }
.progress .is-current, .progress .is-complete { color: var(--green-dark); }
.progress .is-current span { border-color: var(--green); background: var(--green); color: white; }
.progress .is-complete span { border-color: var(--green); background: var(--green-soft); }
.progress .is-complete::before, .progress .is-current::before { background: var(--green); }
.card { padding: clamp(24px, 5vw, 48px); border: 1px solid rgba(8,122,86,.13); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.step { display: none; }
.step.is-active { display: block; animation: enter .24s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
.step-heading { margin-bottom: 28px; }
.step-count { margin: 0 0 6px; color: var(--green); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
h2 { margin: 0 0 8px; font-size: clamp(1.55rem, 4vw, 2rem); }
.step-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }
fieldset { margin: 0; padding: 0; border: 0; }
legend, .field > span, .field > label, #account-field > label { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 750; }
.choice-group { display: grid; gap: 10px; margin-bottom: 24px; }
.choice-card { display: flex; align-items: flex-start; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 1px var(--green); }
.choice-card input, .check-row input, .inline-options input, .allocation-toggle input { width: 20px; height: 20px; accent-color: var(--green); flex: 0 0 auto; }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { margin-top: 3px; color: var(--muted); line-height: 1.4; }
.field { display: block; margin-bottom: 20px; }
.field em { color: var(--muted); font-size: .82rem; font-weight: 500; font-style: normal; }
.field input, .field select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #bfcac6; border-radius: 8px; background: white; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--green); outline: 3px solid rgba(8,122,86,.14); }
.field small { display: block; margin-top: 6px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.name-grid { grid-template-columns: 1fr 1fr .55fr; }
.inline-options { display: flex; flex-wrap: wrap; gap: 13px 25px; margin-bottom: 22px; }
.inline-options legend { width: 100%; }
.inline-options label { display: inline-flex; align-items: center; gap: 8px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 22px; line-height: 1.45; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 25px; }
.segmented legend { grid-column: 1 / -1; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: grid; min-height: 45px; place-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }
.segmented input:checked + span { border-color: var(--green); background: var(--green); color: white; }
.allocation-card { margin: 13px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.allocation-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 17px; cursor: pointer; }
.allocation-toggle strong, .allocation-toggle small { display: block; }
.allocation-toggle small { margin-top: 3px; color: var(--muted); }
.allocation-fields { padding: 17px; border-top: 1px solid var(--line); background: #fbfdfc; }
.recurring-commitments-panel { margin: 0 0 23px; padding: 17px; border: 1px solid #b9d9c9; border-radius: 12px; background: #f4fbf6; }
.recurring-commitments-panel h3 { margin: 0 0 11px; font-size: 1rem; }
#recurring-commitments-list { display: grid; gap: 9px; }
.recurring-commitment { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-top: 9px; border-top: 1px solid #d4e8dc; }
.recurring-commitment span { color: var(--muted); font-size: .86rem; }
#recurring-management-donation { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #d4e8dc; }
.existing-sponsorship-list { display: grid; gap: 12px; }
.existing-sponsorship-row { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.existing-sponsorship-row:has(input[name="existingSponsorshipSelected"]:checked) { border-color: var(--green); background: #f7fcf9; }
.existing-sponsorship-row.is-recurring-blocked { border-color: #b9d9c9; }
.sponsorship-recurring-note { margin: -5px 0 0 31px; color: var(--green-dark); font-size: .84rem; line-height: 1.4; }
.sponsorship-row-select { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.sponsorship-row-select input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: 0 0 auto; }
.sponsorship-row-select strong, .sponsorship-row-select small { display: block; }
.sponsorship-row-select small { margin-top: 3px; color: var(--muted); }
.sponsorship-row-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sponsorship-row-figures > div { padding: 10px; border-radius: 8px; background: #f1f7f3; }
.sponsorship-row-figures span, .sponsorship-row-figures strong { display: block; }
.sponsorship-row-figures span { margin-bottom: 3px; color: var(--muted); font-size: .75rem; }
.sponsorship-row-figures strong { font-size: .9rem; }
.sponsorship-row-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sponsorship-row-amount span { color: var(--muted); font-size: .88rem; }
.sponsorship-row-amount strong { color: var(--green-dark); font-size: 1.1rem; }
.sponsorship-row-editable { width: min(190px, 100%); margin: 0; }
.address-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.address-fields > :first-child, .address-fields > :last-child { grid-column: 1 / -1; }
#address-lookup-widget gmp-place-autocomplete { width: 100%; }
.currency-note { margin: 0 0 22px; padding: 11px 13px; border-radius: 8px; background: var(--green-soft); color: var(--green-dark); font-size: .9rem; font-weight: 650; }
.account-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.account-summary[hidden] { display: none; }
.account-summary > div { min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfc; }
.account-summary span, .account-summary strong { display: block; overflow-wrap: anywhere; }
.account-summary span { margin-bottom: 4px; color: var(--muted); font-size: .82rem; }
.receipt-name-field { max-width: 520px; }
.amount-field { max-width: 190px; }
label.field > .money-input { display: flex; align-items: center; width: 100%; min-height: 48px; border: 1px solid #bfcac6; border-radius: 8px; background: white; }
.money-input:focus-within { border-color: var(--green); outline: 3px solid rgba(8,122,86,.14); }
.money-input b { flex: 0 0 auto; padding-left: 12px; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.money-input input { flex: 1 1 auto; width: 1px; min-width: 0; padding-left: 8px; border: 0; outline: 0; }
.price-panel, .total-panel { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 15px 17px; border-radius: 10px; background: var(--green-soft); }
.price-panel strong, .total-panel strong { color: var(--green-dark); font-size: 1.45rem; }
.price-panel small, .total-panel small { color: var(--muted); }
.total-panel { margin: 25px 0 6px; background: var(--ink); color: white; flex-wrap: wrap; }
.total-panel strong { color: white; font-size: 1.7rem; }
.total-panel small { width: 100%; color: #cbd8d3; }
.review-summary { margin: 0 0 22px; border-top: 1px solid var(--line); }
.review-summary div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-summary dt { color: var(--muted); }
.review-summary dd { margin: 0; max-width: 410px; text-align: right; font-weight: 750; }
.secure-note { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border-radius: 10px; background: #f4f7f6; }
.secure-note p { margin: 0; color: var(--muted); line-height: 1.45; }
.secure-note strong { color: var(--ink); }
.terms { margin-top: 20px; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.actions-end { justify-content: flex-end; }
.button { min-height: 48px; padding: 12px 21px; border-radius: 8px; border: 1px solid transparent; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--green); color: white; box-shadow: 0 5px 15px rgba(8,122,86,.18); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { border-color: #b9cdc4; background: white; color: var(--green-dark); }
.button:focus-visible { outline: 3px solid rgba(8,122,86,.25); outline-offset: 3px; }
.button:disabled { opacity: .55; cursor: wait; }
.alert { margin: 0 0 15px; padding: 13px 15px; border: 1px solid #efaaa3; border-radius: 9px; background: #fff1ef; color: #83271f; line-height: 1.45; }
.site-footer { padding: 28px 20px 45px; color: var(--muted); text-align: center; font-size: .85rem; }
.site-footer p { margin: 5px; }
.thank-you-shell { min-height: calc(100vh - 220px); display: grid; align-content: center; }
.thank-you-card { max-width: 680px; margin: 0 auto; text-align: center; }
.thank-you-card h1 { margin: 0 0 18px; }
.thank-you-card > p:not(.eyebrow) { max-width: 520px; margin: 0 auto 16px; color: var(--muted); line-height: 1.65; }
.thank-you-card .thank-you-secondary { color: var(--ink) !important; font-weight: 650; }
.thank-you-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 2rem; font-weight: 800; }
.thank-you-actions { margin-top: 30px; }
.thank-you-actions .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
[hidden] { display: none !important; }
@media (max-width: 650px) {
  .site-header { min-height: 66px; padding: 10px 16px; }
  .brand-logo { width: 52px; height: 52px; }
  .home-link { font-size: 0; }
  .home-link::after { content: "Website"; font-size: .82rem; }
  .page-shell { width: min(100% - 20px, 820px); padding-top: 27px; }
  .intro { margin-bottom: 21px; padding: 0 8px; }
  .progress strong { display: none; }
  .card { padding: 24px 18px; border-radius: 15px; }
  .field-grid, .name-grid { grid-template-columns: 1fr; gap: 0; }
  .account-summary { grid-template-columns: 1fr; }
  .name-grid { grid-template-columns: .65fr 1.35fr; column-gap: 12px; }
  .name-grid > :last-child { grid-column: 1 / -1; }
  .address-fields { grid-template-columns: 1fr; }
  .address-fields > :first-child, .address-fields > :last-child { grid-column: auto; }
  .actions { flex-direction: column-reverse; }
  .actions .button { width: 100%; }
  .actions-end { flex-direction: column; }
  .price-panel { align-items: flex-start; flex-wrap: wrap; }
  .price-panel small { width: 100%; }
  .sponsorship-row-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-summary div { grid-template-columns: 1fr; gap: 4px; }
  .review-summary dd { text-align: left; }
  .thank-you-shell { min-height: calc(100vh - 195px); }
  .thank-you-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .step.is-active { animation: none; } }
