@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700;800&display=swap');

:root {
  --brand-red: #e11c09;
  --brand-red-dark: #b71608;
  --brand-navy: #151525;
  --brand-ink: #242433;
  --brand-muted: #626270;
  --brand-soft: #f8f6f3;
  --brand-line: #e4e1dd;
  --brand-white: #fff;
  --focus: #1668d7;
  --shadow: 0 24px 70px rgba(24, 22, 20, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--brand-ink); background: var(--brand-soft); font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif; font-size: 1rem; line-height: 1.55; }
a { color: var(--brand-red-dark); text-underline-offset: .18em; }
a:hover { color: var(--brand-red); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(22, 104, 215, .45) !important; outline-offset: 3px; }

.skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; padding: .7rem 1rem; color: #fff; background: var(--brand-navy); border-radius: .4rem; transform: translateY(-150%); }
.skip-link:focus { color: #fff; transform: translateY(0); }

.site-header { position: relative; z-index: 10; background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(21,21,37,.08); }
.brand-link { display: block; flex: 0 1 260px; }
.brand-link img { display: block; width: min(260px, 100%); height: auto; }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.secure-label { display: inline-flex; align-items: center; gap: .45rem; color: #31313c; font-size: .92rem; font-weight: 700; }
.secure-label svg { width: 1.1rem; fill: var(--brand-red); }
.back-link { color: var(--brand-navy); font-size: .94rem; font-weight: 700; text-decoration: none; }

.eyebrow { margin: 0 0 .7rem; color: #fff; font-size: .79rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.donation-intro h2 { margin: 0; color: var(--brand-navy); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.06; }
.donation-section { padding: 4.5rem 0 6.5rem; background: linear-gradient(135deg, #f8f6f3, #f1efec); }
.donation-layout { display: grid; grid-template-columns: minmax(230px, .62fr) minmax(0, 1.38fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.donation-intro { position: sticky; top: 2rem; padding-top: 1.4rem; }
.donation-intro > p:not(.eyebrow) { margin: 1.3rem 0 2.1rem; color: var(--brand-muted); font-size: 1.08rem; }
.trust-list { display: grid; gap: 1.2rem; }
.trust-list > div { display: grid; grid-template-columns: 1.8rem 1fr; gap: .7rem; align-items: start; }
.trust-list > div > span { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; color: #fff; background: var(--brand-red); border-radius: 50%; font-size: .75rem; font-weight: 800; }
.trust-list p { margin: 0; color: var(--brand-muted); font-size: .93rem; }
.trust-list strong { color: var(--brand-ink); }

.donation-card { max-width: 820px; overflow: hidden; border-radius: 1.15rem; box-shadow: var(--shadow); }
.donation-card .card-body { padding: clamp(1.25rem, 4vw, 3rem); }
.alert { border: 0; border-left: 4px solid currentColor; border-radius: .5rem; }
.alert-symbol { display: grid; flex: 0 0 1.45rem; width: 1.45rem; height: 1.45rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .8rem; font-weight: 800; }

.payment-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-bottom: 2.1rem; padding: .35rem; background: #f1efec; border-radius: .7rem; }
.payment-tab { min-height: 3.2rem; padding: .7rem 1rem; color: #61606b; background: transparent; border: 0; border-radius: .48rem; font-weight: 800; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.payment-tab:hover { color: var(--brand-red-dark); }
.payment-tab.active { color: var(--brand-red-dark); background: #fff; box-shadow: 0 3px 12px rgba(21,21,37,.08); }
.tab-icon { margin-right: .35rem; color: var(--brand-red); }
.payment-panel { animation: panel-in .2s ease-out; }
.panel-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.step-label { margin: 0 0 .2rem; color: var(--brand-red-dark); font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.panel-heading h3 { margin: 0; color: var(--brand-navy); font-size: 1.55rem; font-weight: 800; }
.provider-logos { display: flex; align-items: center; justify-content: center; gap: .85rem; flex-wrap: wrap; }
.provider-logos img { width: 82px; height: 58px; padding: 7px; object-fit: contain; background: #fff; border: 1px solid var(--brand-line); border-radius: .5rem; }
.provider-logos-bottom { margin-top: -.45rem; padding-top: 1rem; border-top: 1px solid var(--brand-line); }
.card-logos img { width: 110px; height: 64px; }
.method-notice { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1.8rem; padding: .75rem .85rem; color: #514e48; background: #fff8e7; border-radius: .5rem; font-size: .9rem; }
.method-notice span { display: grid; flex: 0 0 1.2rem; width: 1.2rem; height: 1.2rem; place-items: center; color: #fff; background: #9a6900; border-radius: 50%; font-size: .7rem; font-weight: 800; }

.payment-form { display: grid; gap: 1.8rem; }
.amount-fieldset, .form-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.amount-fieldset > legend, .form-section > legend { float: none; width: auto; margin-bottom: .8rem; color: var(--brand-navy); font-size: 1rem; font-weight: 800; }
.form-section { padding-top: 1.5rem; border-top: 1px solid var(--brand-line); }
.amount-input-wrap { display: flex; align-items: stretch; }
.amount-input-wrap > span { display: grid; place-items: center; min-width: 4rem; padding-inline: .75rem; color: #4e4b47; background: #efede9; border: 1px solid #cbc7c1; border-right: 0; border-radius: .45rem 0 0 .45rem; font-size: .88rem; font-weight: 800; }
.amount-input-wrap .form-control { border-radius: 0 .45rem .45rem 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { min-width: 0; }
.full-width { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .38rem; color: #31303a; font-size: .92rem; font-weight: 700; }
.required { color: var(--brand-red-dark); }
.form-control, .form-select { min-height: 3.15rem; color: var(--brand-ink); background-color: #fff; border-color: #cbc7c1; border-radius: .45rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-red); box-shadow: 0 0 0 .22rem rgba(225,28,9,.12); }
.form-text, .selection-feedback { display: block; margin-top: .35rem; color: #6e6b75; font-size: .82rem; }
.selection-feedback { color: #3d6549; font-weight: 700; }
.invalid-feedback { font-size: .82rem; }
.donate-button { display: flex; width: 100%; min-height: 3.4rem; align-items: center; justify-content: center; gap: .65rem; color: #fff; background: var(--brand-red); border: 0; border-radius: .45rem; font-weight: 800; box-shadow: 0 10px 24px rgba(225,28,9,.2); }
.donate-button:hover, .donate-button:focus { color: #fff; background: var(--brand-red-dark); transform: translateY(-1px); }
.donate-button:disabled { color: #fff; background: #8a8683; transform: none; }
.button-spinner { display: none; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-submitting .button-spinner { display: inline-block; }
.submit-status { min-height: 1px; margin: -.9rem 0 0; color: #55515c; text-align: center; font-size: .88rem; }
.privacy-note { display: flex; gap: .7rem; align-items: flex-start; margin-top: 2rem; padding-top: 1.2rem; color: #6b6872; border-top: 1px solid var(--brand-line); font-size: .84rem; }
.privacy-note svg { flex: 0 0 1.25rem; width: 1.25rem; fill: var(--brand-red); }
.privacy-note p { margin: 0; }

.site-footer { padding: 4.5rem 0 1.5rem; color: rgba(255,255,255,.74); background: var(--brand-navy); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr .6fr; gap: 3rem; }
.footer-grid img { width: min(260px, 100%); height: auto; margin-bottom: 1.2rem; filter: brightness(0) invert(1); }
.footer-grid p { max-width: 440px; }
.footer-grid h2 { color: #fff; font-size: 1.05rem; font-weight: 800; }
.footer-grid address { margin-bottom: .6rem; font-style: normal; }
.footer-grid a { display: inline-block; margin-bottom: .3rem; color: rgba(255,255,255,.84); }
.footer-grid > div:last-child a { display: block; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.13); font-size: .86rem; }

.status-page { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; background: var(--brand-soft); }
.status-main { display: grid; place-items: center; padding: 4rem 1rem; }
.status-card { width: min(100%, 650px); padding: clamp(1.5rem, 6vw, 3.5rem); background: #fff; border-radius: 1rem; box-shadow: var(--shadow); text-align: center; }
.status-icon { display: grid; width: 4.5rem; height: 4.5rem; place-items: center; margin: 0 auto 1.4rem; color: #fff; background: var(--brand-red); border-radius: 50%; font-size: 2rem; font-weight: 800; }
.status-icon.success { background: #267a43; }
.status-icon.pending { background: #9a6900; }
.status-card h1 { color: var(--brand-navy); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
.status-card > p { color: var(--brand-muted); font-size: 1.05rem; }
.status-details { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 2rem 0; padding: 1.2rem; background: var(--brand-soft); border-radius: .7rem; text-align: left; }
.status-details dt { color: var(--brand-muted); font-size: .77rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status-details dd { margin: .15rem 0 0; color: var(--brand-ink); font-weight: 800; overflow-wrap: anywhere; }
.status-actions { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }
.status-actions .btn { padding: .8rem 1.1rem; border-radius: .4rem; font-weight: 800; }
.status-actions .btn-primary { background: var(--brand-red); border-color: var(--brand-red); }
.status-actions .btn-outline-dark:hover { background: var(--brand-navy); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 991.98px) {
  .donation-layout { grid-template-columns: 1fr; }
  .donation-intro { position: static; max-width: 680px; padding-top: 0; }
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .donation-card { max-width: none; }
}

@media (max-width: 767.98px) {
  .header-actions .secure-label { display: none; }
  .brand-link { flex-basis: 205px; }
  .donation-section { padding-block: 4rem; }
  .trust-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 479.98px) {
  .site-header .container { padding-block: .75rem !important; }
  .brand-link { flex-basis: 170px; }
  .back-link { font-size: .82rem; text-align: right; }
  .donation-card .card-body { padding: 1rem; }
  .payment-tab { min-height: 3rem; padding-inline: .45rem; font-size: .9rem; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .provider-logos img { width: 68px; height: 52px; }
  .card-logos img { width: 96px; height: 58px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .status-details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
