/* =========================================================================
   Alausa-Global Foundation — MSME Grant
   grants.alausa.com.ng
   Palette is carried over from alausa-site/css/site.css so the grant
   programme reads as part of the same organisation.
   ========================================================================= */

:root {
  --bg: #f7f9f7;
  --bg-alt: #eef2ee;
  --surface: #ffffff;
  --surface-2: #f4f7f4;
  --surface-3: #e7ece7;
  --border: rgba(16, 42, 24, 0.10);
  --border-strong: rgba(16, 42, 24, 0.20);

  --text: #0d1f14;
  --text-soft: #35473b;
  --muted: #5e6d63;
  --faint: #8b978e;

  --green-950: #06150b;
  --green-900: #0b3d18;
  --green-800: #0e4a1f;
  --green-700: #14532d;
  --green-600: #1a6b3c;
  --green-500: #2d8b52;
  --green-400: #4aa96d;
  --green-300: #7cc793;
  --green-100: #dcefe3;
  --green-50: #eff8f2;

  --accent: #1a6b3c;
  --accent-strong: #14532d;
  --accent-soft: rgba(26, 107, 60, 0.09);
  --accent-line: rgba(26, 107, 60, 0.28);
  --accent-ink: #ffffff;

  --gold: #a8720a;
  --gold-bright: #e0a93a;
  --gold-soft: rgba(168, 114, 10, 0.10);
  --gold-line: rgba(168, 114, 10, 0.30);

  --red: #b4321f;
  --red-soft: rgba(180, 50, 31, 0.08);
  --red-line: rgba(180, 50, 31, 0.26);

  --blue: #1668b8;
  --blue-soft: rgba(22, 104, 184, 0.09);
  --blue-line: rgba(22, 104, 184, 0.26);

  --shadow-sm: 0 1px 2px rgba(11, 61, 24, 0.06), 0 1px 3px rgba(11, 61, 24, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 61, 24, 0.07), 0 2px 4px rgba(11, 61, 24, 0.05);
  --shadow-lg: 0 18px 44px rgba(11, 61, 24, 0.12), 0 6px 14px rgba(11, 61, 24, 0.07);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Inter", var(--font-sans);

  --wrap: 1160px;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.7rem 1.1rem; z-index: 999;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font: inherit; font-weight: 650; font-size: 0.95rem;
  padding: 0.78rem 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease,
              transform 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; transform: none;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); }

.btn-gold { background: var(--gold); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: #8d5f07; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent-line); }

.btn-onDark { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.24); }
.btn-onDark:hover { background: rgba(255,255,255,0.18); }

.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.87rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 21, 11, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.02rem; letter-spacing: -0.01em; color: #fff;
}
.brand-sub { font-size: 0.7rem; color: var(--green-300); letter-spacing: 0.09em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  color: rgba(255,255,255,0.82); font-size: 0.9rem; font-weight: 550;
  padding: 0.5rem 0.8rem; border-radius: var(--r-sm); text-decoration: none;
}
.nav a:hover { background: rgba(255,255,255,0.09); color: #fff; text-decoration: none; }
.nav a.cta { background: var(--accent); color: #fff; font-weight: 650; }
.nav a.cta:hover { background: var(--green-500); }

.nav-toggle {
  display: none; margin-left: auto;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20);
  color: #fff; border-radius: var(--r-sm); padding: 0.45rem 0.75rem;
  font: inherit; font-size: 0.88rem; cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-950); border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav a.cta { text-align: center; margin-top: 0.6rem; border-bottom: 0; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(224, 169, 58, 0.20), transparent 62%),
    radial-gradient(880px 460px at 8% 4%, rgba(45, 139, 82, 0.34), transparent 60%),
    linear-gradient(168deg, var(--green-950) 0%, var(--green-900) 56%, #0d4a22 100%);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  color: var(--green-100); margin-bottom: 1.4rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); }

.hero-lead {
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  color: rgba(255,255,255,0.84);
  max-width: 56ch;
  margin-bottom: 1.8rem;
}
.hero-provided {
  font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-300); margin-bottom: 0.55rem; font-weight: 650;
}
.hero-funder {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: #fff; margin-bottom: 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.6rem; }
.hero-note { font-size: 0.87rem; color: rgba(255,255,255,0.62); }

.hero-mark { display: flex; justify-content: center; align-items: center; }
.hero-mark img {
  width: min(100%, 380px);
  filter: drop-shadow(0 24px 54px rgba(0, 0, 0, 0.5));
}
@media (max-width: 900px) {
  /* Text leads on narrow screens: the headline must not sit below the fold
     behind a decorative mark. The mark follows as supporting artwork. */
  .hero-mark { margin-top: 0.5rem; }
  .hero-mark img { width: min(52%, 190px); }
}

/* --------------------------------------------------------- amount banner */

.amount-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.4rem;
  padding: 1.1rem 1.4rem; border-radius: var(--r-lg);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  margin-bottom: 1.8rem;
}
.amount-banner strong {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  color: var(--gold-bright); letter-spacing: -0.02em;
}
.amount-banner span { font-size: 0.93rem; color: rgba(255,255,255,0.78); }

/* --------------------------------------------------------------- countdown */

.countdown {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem; margin-top: 0.5rem;
}
.countdown .unit {
  background: rgba(0,0,0,0.30); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-md); padding: 0.75rem 0.4rem; text-align: center;
}
.countdown .num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.95rem); color: #fff; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown .lbl {
  display: block; font-size: 0.66rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--green-300); margin-top: 0.2rem;
}

/* ----------------------------------------------------------------- cards */

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin-bottom: 0; }
.section-kicker {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card-muted { color: var(--muted); font-size: 0.94rem; }

.card-amount { text-align: left; border-top: 3px solid var(--accent); }
.card-amount .figure {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--accent);
  letter-spacing: -0.02em; display: block; margin-bottom: 0.35rem;
}
.card-amount.tier-2 { border-top-color: var(--green-500); }
.card-amount.tier-3 { border-top-color: var(--gold); }
.card-amount.tier-3 .figure { color: var(--gold); }

/* ----------------------------------------------------------------- steps */

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
@media (max-width: 820px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.4rem; position: relative;
}
.step-card .num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem; margin-bottom: 0.85rem;
}
.step-card h4 { margin-bottom: 0.4rem; }
.step-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ----------------------------------------------------------------- lists */

.check-list, .plain-list { list-style: none; padding: 0; margin: 0; }
.check-list li, .plain-list li {
  position: relative; padding-left: 1.85rem; margin-bottom: 0.7rem;
  font-size: 0.96rem; color: var(--text-soft);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42rem;
  width: 15px; height: 15px; border-radius: 4px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
.check-list li.no::before {
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") center/contain no-repeat;
}
.plain-list li { padding-left: 1.1rem; }
.plain-list li::before {
  content: ""; position: absolute; left: 0; top: 0.68rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------------------------------------------------------------- alerts */

.alert {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.15rem 1.3rem; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.95rem;
}
.alert strong { display: block; margin-bottom: 0.28rem; font-size: 0.98rem; }
.alert p:last-child { margin-bottom: 0; }
.alert .icon { flex: 0 0 auto; font-size: 1.15rem; line-height: 1.4; }

.alert-warning { background: var(--gold-soft); border-color: var(--gold-line); color: #5a3d05; }
.alert-danger  { background: var(--red-soft);  border-color: var(--red-line);  color: #7a1f11; }
.alert-info    { background: var(--blue-soft);  border-color: var(--blue-line);  color: #0f4576; }
.alert-success { background: var(--green-50);   border-color: var(--accent-line); color: var(--green-800); }

.alert-blocking {
  border-left: 5px solid var(--red);
  box-shadow: var(--shadow-md);
}

/* ------------------------------------------------------------ callout band */

.band {
  background: linear-gradient(150deg, var(--green-950), var(--green-800));
  color: #fff; border-radius: var(--r-xl);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid rgba(255,255,255,0.12);
}
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255,255,255,0.82); }

/* -------------------------------------------------------------- FAQ <details> */

.faq { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.faq + .faq { margin-top: 0.75rem; }
.faq summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 650;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  align-items: center; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.35rem; color: var(--accent); font-weight: 400;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.3rem 1.25rem; color: var(--muted); font-size: 0.95rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--green-950); color: rgba(255,255,255,0.72);
  padding: 3rem 0 2rem; margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff; font-size: 0.78rem; letter-spacing: 0.13em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,0.76); }
.site-footer a:hover { color: #fff; }
.site-footer .brand img { width: 34px; height: 34px; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-bottom {
  margin-top: 2.2rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; font-size: 0.85rem; color: rgba(255,255,255,0.55);
}

/* =========================================================================
   Application form
   ========================================================================= */

.form-shell {
  display: grid; grid-template-columns: 250px 1fr;
  gap: 2rem; align-items: start;
}
@media (max-width: 940px) { .form-shell { grid-template-columns: 1fr; } }

.progress-rail {
  position: sticky; top: 92px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.3rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 940px) { .progress-rail { position: static; } }
.progress-rail h4 {
  font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 1rem;
}
.rail-item {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.5rem 0; font-size: 0.88rem; color: var(--muted);
}
.rail-item .bullet {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700;
  background: var(--surface-3); color: var(--muted);
  border: 1px solid var(--border-strong);
}
.rail-item.active { color: var(--text); font-weight: 650; }
.rail-item.active .bullet { background: var(--accent); border-color: var(--accent); color: #fff; }
.rail-item.done .bullet { background: var(--green-100); border-color: var(--accent-line); color: var(--accent); }
.rail-item .rail-label { line-height: 1.35; padding-top: 0.15rem; }

.rail-fee {
  margin-top: 1.1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--muted);
}
.rail-fee b { color: var(--text); }

/* panel / steps */

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
}
.panel + .panel { margin-top: 1.25rem; }
.panel[hidden] { display: none; }

.panel-head { margin-bottom: 1.6rem; }
.panel-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 0.35rem; }
.panel-head p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; }
.fieldset:last-of-type { margin-bottom: 0; }
.fieldset > legend {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent);
  padding: 0; margin-bottom: 1.1rem; width: 100%;
  border-bottom: 1px solid var(--border); padding-bottom: 0.6rem;
}

.grid { display: grid; gap: 1.1rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.span-2 { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field > label {
  font-size: 0.87rem; font-weight: 620; color: var(--text-soft);
}
.field .req { color: var(--red); margin-left: 0.15rem; }
.field .hint { font-size: 0.79rem; color: var(--faint); line-height: 1.5; }
.counter { font-size: 0.75rem; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="date"], input[type="number"], select, textarea {
  font: inherit; font-size: 0.95rem;
  width: 100%; padding: 0.72rem 0.85rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e6d63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 0.8rem center;
  padding-right: 2.3rem;
}
textarea { min-height: 118px; resize: vertical; line-height: 1.6; }

input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--red); background: var(--red-soft);
}
.field-error { font-size: 0.8rem; color: var(--red); font-weight: 550; }
.field-error:empty { display: none; }

/* checkboxes and radios */

.choices { display: flex; flex-direction: column; gap: 0.6rem; }
.choices.inline { flex-direction: row; flex-wrap: wrap; gap: 0.9rem 1.5rem; }

.choice {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-size: 0.92rem; color: var(--text-soft); cursor: pointer;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2);
}
.choice:hover { border-color: var(--accent-line); }
.choice input { margin: 0.18rem 0 0; flex: 0 0 auto; accent-color: var(--accent); width: 17px; height: 17px; }
.choice b { color: var(--text); font-weight: 620; }
.choice .sub { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.choice.plain { background: transparent; border-color: transparent; padding-left: 0; }

/* declaration block */

.declaration {
  background: var(--green-50); border: 1px solid var(--accent-line);
  border-radius: var(--r-lg); padding: 1.35rem;
}
.declaration h3 { font-size: 1.05rem; margin-bottom: 0.7rem; color: var(--green-800); }
.declaration .choice { background: var(--surface); }

/* amount picker */

.amount-display {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--accent);
  text-align: center; letter-spacing: -0.03em; margin-bottom: 0.4rem;
}
.amount-help { text-align: center; font-size: 0.87rem; color: var(--muted); margin-bottom: 1rem; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* step nav */

.panel-nav {
  display: flex; gap: 0.8rem; justify-content: space-between;
  align-items: center; margin-top: 1.9rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.panel-nav .spacer { flex: 1; }

/* verification panel */

.pay-box {
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  border-radius: var(--r-lg); padding: 1.4rem; margin-bottom: 1.4rem;
}
.pay-box .amount {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--gold); display: block; margin-bottom: 0.3rem;
}
.pay-box .line { font-size: 0.9rem; color: #5a3d05; margin-bottom: 0.35rem; }
.pay-box .line:last-child { margin-bottom: 0; }

.status-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.83rem; font-weight: 650;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--muted);
}
.status-chip.pending { background: var(--gold-soft); border-color: var(--gold-line); color: #7a5205; }
.status-chip.ok { background: var(--green-50); border-color: var(--accent-line); color: var(--green-800); }
.status-chip.bad { background: var(--red-soft); border-color: var(--red-line); color: #7a1f11; }
.status-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* summary table */

.summary { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.summary th, .summary td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.summary th { color: var(--faint); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; width: 38%; }
.summary td { color: var(--text); }

/* notices at the top of the form */

.form-notice { margin-bottom: 1.4rem; }

/* toast */

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%);
  background: var(--green-950); color: #fff; padding: 0.9rem 1.3rem;
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  font-size: 0.92rem; z-index: 200; max-width: min(92vw, 520px);
  transition: transform 0.28s cubic-bezier(.2,.8,.3,1);
  border: 1px solid rgba(255,255,255,0.15);
  /* Fully out of the box until it has something to say — an empty toast must
     never leave a dark sliver parked at the bottom of the page. */
  visibility: hidden;
  opacity: 0;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; opacity: 1; }
.toast.error { background: #6d1c0e; }

/* banner strip for the anti-scam warning on the form */

.guard-strip {
  background: var(--red-soft); border-top: 1px solid var(--red-line);
  border-bottom: 1px solid var(--red-line);
  padding: 0.7rem 0; font-size: 0.88rem; color: #7a1f11; text-align: center;
}
.guard-strip b { color: #5f1408; }

/* success page */

.success-mark {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--green-50); border: 2px solid var(--accent-line);
  display: grid; place-items: center; margin: 0 auto 1.4rem;
  font-size: 2.2rem; color: var(--accent);
}
.ref-box {
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.15rem, 3vw, 1.6rem); font-weight: 700; letter-spacing: 0.04em;
  text-align: center; padding: 1rem; border-radius: var(--r-md);
  background: var(--green-50); border: 1px dashed var(--accent-line);
  color: var(--green-800); word-break: break-all;
}

/* timeline for winners */

.pinned-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--accent-line);
  border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.pinned-box .num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem;
}

/* misc utilities */

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.75rem; } .mt-2 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.75rem; } .mb-2 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.87rem; }
.mono { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .panel-nav, .progress-rail, .btn { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ccc; }
}
