/* ==========================================================================
   Ukawu Scholarship Initiative — Design System
   "Prestige Foundation" · ink navy / refined gold / warm cream
   Fraunces (display) + Inter (body) · mobile-first · no build step
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0B2239;
  --ink-90: #16304a;
  --navy: #123A5C;
  --gold: #C99A2E;
  --gold-deep: #A87D1F;
  --gold-text: #876014; /* darkened gold for small text on light backgrounds (WCAG AA) */
  --gold-soft: #E7C873;
  --cream: #FAF6EE;
  --cream-deep: #F3ECDD;
  --white: #FFFFFF;
  --green: #1E4D2B;
  --green-soft: #E7F0E9;
  --text: #2A3340;
  --text-soft: #5A6472;
  --error: #B3261E;
  --error-bg: #FCEDEB;
  --line: rgba(11, 34, 57, 0.12);
  --line-soft: rgba(11, 34, 57, 0.07);
  --shadow-sm: 0 1px 2px rgba(11, 34, 57, 0.06), 0 2px 8px rgba(11, 34, 57, 0.05);
  --shadow-md: 0 2px 4px rgba(11, 34, 57, 0.07), 0 12px 28px rgba(11, 34, 57, 0.10);
  --radius: 8px;
  --radius-sm: 5px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1140px;
  --container-narrow: 780px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--gold-soft); color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0);
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink); font-weight: 600;
  padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.3; }
h4 { font-size: 1.02rem; color: var(--ink); }
p + p { margin-top: 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.85rem;
}
.section--ink .eyebrow, .hero .eyebrow { color: var(--gold-soft); }

.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-soft); line-height: 1.7; }
.section--ink .lede { color: rgba(255, 255, 255, 0.82); }

/* Gold rule — signature divider echoing the logo's stars */
.rule {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 1.1rem 0 1.4rem; border: 0; padding: 0;
}
.rule::before { content: ""; width: 44px; height: 2px; background: var(--gold); }
.rule::after {
  content: ""; width: 8px; height: 8px; background: var(--gold);
  transform: rotate(45deg);
}
.rule--center { justify-content: center; }
.rule--center::before { width: 34px; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.2rem, 5vw, 3.2rem) 0; }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, 0.88); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--paper { background: var(--white); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--cream-deep { background: var(--cream-deep); }
.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 1.4rem; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.98rem; line-height: 1.2;
  padding: 0.85rem 1.7rem; border-radius: var(--radius-sm);
  text-decoration: none; border: 2px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-text); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.section--ink .btn-outline, .hero .btn-outline { border-color: rgba(255,255,255,0.85); color: var(--white); }
.section--ink .btn-outline:hover, .hero .btn-outline:hover { background: var(--white); color: var(--ink); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.text-link {
  font-weight: 700; color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--gold);
  transition: color 140ms ease, border-color 140ms ease;
}
.text-link:hover { color: var(--gold-text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
  max-width: var(--container); margin: 0 auto; padding: 0.5rem 1.25rem;
}
.site-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.site-brand img { width: 48px; height: auto; }
.site-brand__name {
  font-family: var(--font-display); font-weight: 600; color: var(--white);
  font-size: 1.02rem; line-height: 1.15; letter-spacing: 0.01em;
}
.site-brand__name small {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft);
}
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  color: rgba(255, 255, 255, 0.85); text-decoration: none;
  font-weight: 500; font-size: 0.95rem; padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }
.site-nav .btn { margin-left: 0.4rem; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 0.6rem;
  color: var(--white);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--ink);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1.2rem 1.5rem 2rem; overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    width: 100%; font-size: 1.15rem; padding: 0.9rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .site-nav .btn { margin: 1.2rem 0 0; width: 100%; }
  body.nav-open { overflow: hidden; }
  .nav-open .nav-toggle .icon-menu { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--white);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,34,57,0.62) 0%, rgba(11,34,57,0.78) 55%, rgba(11,34,57,0.92) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto;
  padding: clamp(4rem, 11vw, 7.5rem) 1.25rem;
}
.hero__inner h1 { color: var(--white); max-width: 17ch; }
.hero__lede { max-width: 58ch; margin-top: 1.3rem; color: rgba(255,255,255,0.88); font-size: clamp(1rem, 2vw, 1.15rem); }
.hero__signature {
  margin-top: 1.2rem; font-family: var(--font-display); font-style: italic;
  color: var(--gold-soft); font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero--page .hero__inner { padding: clamp(3rem, 7vw, 4.6rem) 1.25rem; }

/* ---------- Stat band ---------- */
.stat-band { background: var(--ink); color: var(--white); border-top: 1px solid rgba(255,255,255,0.1); }
.stat-band__inner {
  max-width: var(--container); margin: 0 auto; padding: 1.9rem 1.25rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
}
@media (min-width: 800px) { .stat-band__inner { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 2px solid var(--gold); padding-left: 0.9rem; }
.stat__value {
  font-family: var(--font-display); font-weight: 700; color: var(--gold-soft);
  font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.1;
}
.stat__label { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-top: 0.25rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.55rem; }
.card--feature { border-top: 3px solid var(--gold); }
.card--link { display: block; text-decoration: none; color: inherit; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); color: inherit; }
.card--link .card__cta { color: var(--gold-text); font-weight: 700; margin-top: 0.8rem; display: inline-block; }
.card__icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--cream); border: 1px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--gold-deep);
}
.card__icon svg { width: 22px; height: 22px; }

/* ---------- Checklist ---------- */
/* li stays block-level (not flex) so inline <strong> etc. flow naturally;
   the check icon is absolutely positioned in the padding gutter. */
.checklist { display: grid; gap: 0.8rem; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  border-radius: 50%; background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-11'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.section--ink .checklist li::before { background-color: var(--gold); }

/* ---------- Numbered process steps ---------- */
.steps { display: grid; gap: 1.4rem; counter-reset: step; }
@media (min-width: 760px) { .steps--row { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 2.6rem; line-height: 1; color: var(--gold);
  margin-bottom: 0.7rem;
}
.step h3 { margin-bottom: 0.5rem; }

/* ---------- Timeline strip ---------- */
.timeline-strip { background: var(--gold); color: var(--ink); }
.timeline-strip__inner {
  max-width: var(--container); margin: 0 auto; padding: 1.5rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 2.4rem; text-align: center;
}
.timeline-strip__item { font-weight: 600; }
.timeline-strip__item strong { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.timeline-strip .btn { background: var(--ink); color: var(--white); }
.timeline-strip .btn:hover { background: var(--navy); }

/* ---------- Media / two-column feature ---------- */
.media-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) {
  .media-split { grid-template-columns: 1fr 1fr; gap: 3.4rem; }
  .media-split--flip > :first-child { order: 2; }
}
.media-split__img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: auto; }
.framed-img { position: relative; }
.framed-img::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--gold-soft); border-radius: var(--radius); z-index: -1;
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card img {
  width: 168px; height: 168px; object-fit: cover; object-position: top center;
  border-radius: 50%; margin: 0 auto 1rem; border: 3px solid var(--gold-soft);
}
.team-card h3 { font-size: 1.12rem; }
.team-card .role { color: var(--gold-text); font-weight: 600; font-size: 0.92rem; margin-top: 0.15rem; }
.team-card .sms { color: var(--text-soft); font-size: 0.9rem; margin-top: 0.45rem; }
.team-card .sms a { color: inherit; }

/* ---------- Testimonials ---------- */
.quote-card { position: relative; padding-top: 2.4rem; height: 100%; }
.quote-card::before {
  content: "\201C"; position: absolute; top: 0.6rem; left: 1.4rem;
  font-family: var(--font-display); font-size: 3.4rem; line-height: 1;
  color: var(--gold); opacity: 0.85;
}
.quote-card blockquote { font-size: 1.02rem; color: var(--text); }
.quote-card figcaption { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.quote-card .who { font-weight: 700; color: var(--ink); }
.quote-card .what { font-size: 0.9rem; color: var(--text-soft); }
.quote-card .where { font-size: 0.85rem; color: var(--gold-text); font-weight: 600; margin-top: 0.15rem; }
.quote-card--person { display: grid; gap: 1rem; }
.quote-card--person img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-soft); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid button {
  border: 0; padding: 0; background: none; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.gallery-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 300ms ease;
}
.gallery-grid button:hover img { transform: scale(1.04); }
.lightbox { border: 0; border-radius: var(--radius); padding: 0; background: var(--ink); max-width: min(94vw, 1100px); }
.lightbox::backdrop { background: rgba(6, 16, 28, 0.86); }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; }
.lightbox__bar button { background: none; border: 0; color: var(--white); font-size: 1.4rem; padding: 0.4rem 0.7rem; border-radius: var(--radius-sm); }
.lightbox__bar button:hover { background: rgba(255,255,255,0.12); }

/* ---------- News ---------- */
.news-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.news-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.news-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.news-card time { color: var(--gold-text); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.news-card h3 a { text-decoration: none; color: var(--ink); }
.news-card h3 a:hover { color: var(--gold-text); }
.article { max-width: var(--container-narrow); margin: 0 auto; }
.article > * + * { margin-top: 1.1em; }
.article h2 { margin-top: 1.9em; }
.article ul { padding-left: 1.2rem; }
.article li + li { margin-top: 0.4em; }

/* ---------- Contact / info cards ---------- */
.info-card { text-align: center; }
.info-card .card__icon { margin-left: auto; margin-right: auto; }
.info-card a { text-decoration: none; font-weight: 600; }
.info-card .muted { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- Forms ---------- */
/* Flex column + order keeps labels/inputs aligned across form-row columns:
   hints and errors always render BELOW the input regardless of markup order. */
.form-field { margin-bottom: 1.25rem; display: flex; flex-direction: column; }
.form-field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; font-size: 0.95rem; order: 0; }
.form-field input, .form-field select, .form-field textarea { order: 1; }
.form-field .hint { font-size: 0.85rem; color: var(--text-soft); margin: 0.45rem 0 0; order: 2; }
.form-field .field-error { order: 3; }
.form-field .word-count { order: 4; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); min-height: 48px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.form-field textarea { min-height: 96px; resize: vertical; }
#careerGoals { min-height: 210px; }
#message { min-height: 140px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.22);
}
.form-field [aria-invalid="true"] { border-color: var(--error); }
.form-field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18); }
.field-error { color: var(--error); font-size: 0.88rem; font-weight: 500; margin-top: 0.4rem; }
.form-row { display: grid; gap: 0 1.2rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-status { margin-top: 0.9rem; font-weight: 600; min-height: 1.4em; }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: var(--error); }
.word-count { font-size: 0.85rem; color: var(--text-soft); text-align: right; margin-top: 0.35rem; }
.word-count.is-over { color: var(--error); font-weight: 700; }

/* Notices */
.notice { border-radius: var(--radius); padding: 1.1rem 1.3rem; border: 1px solid var(--line); background: var(--white); }
.notice--info { border-left: 4px solid var(--gold); }
.notice--success { border-left: 4px solid var(--green); background: var(--green-soft); }
.notice--error { border-left: 4px solid var(--error); background: var(--error-bg); }

/* ---------- Application form shell ---------- */
.apply-shell { max-width: 860px; margin: 0 auto; }
.form-progress {
  display: flex; gap: 0.35rem; margin: 0 0 2rem; padding: 0;
  counter-reset: fstep;
}
.form-progress li {
  flex: 1; text-align: center; font-size: 0.72rem; font-weight: 600;
  color: var(--text-soft); position: relative; padding-top: 2.35rem;
  letter-spacing: 0.02em;
}
.form-progress li::before {
  counter-increment: fstep; content: counter(fstep);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 2px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--text-soft);
}
.form-progress li::after {
  content: ""; position: absolute; top: 16px; left: calc(50% + 20px);
  right: calc(-50% + 20px); height: 2px; background: var(--line);
}
.form-progress li:last-child::after { display: none; }
.form-progress li.is-current { color: var(--ink); }
.form-progress li.is-current::before { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.form-progress li.is-done { color: var(--green); }
.form-progress li.is-done::before {
  border-color: var(--green); background: var(--green); color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-11'/%3E%3C/svg%3E");
  background-size: 15px; background-position: center; background-repeat: no-repeat;
}
.form-progress li.is-done::after { background: var(--green); }
@media (max-width: 639px) {
  .form-progress li { font-size: 0; padding-top: 2.1rem; }
  .form-progress li.is-current { font-size: 0.7rem; }
}

/* Each step lives in a contained white card so the form reads as one composed
   unit instead of loose fields floating on the page background. */
.form-step {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
  padding: clamp(1.3rem, 3.5vw, 2.2rem);
}
.form-step legend {
  /* float pulls the legend out of the fieldset-border slot into normal flow */
  float: left; width: 100%;
  font-family: var(--font-display); font-weight: 600; font-size: 1.45rem;
  color: var(--ink); margin-bottom: 1.4rem; padding: 0 0 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.form-step legend + * { clear: both; }
.form-step[hidden] { display: none; }
/* Inputs sit on white now — nudge borders + inner fill for definition */
.form-step .form-field input, .form-step .form-field select, .form-step .form-field textarea {
  background: #FDFCF9; border-color: rgba(11, 34, 57, 0.18);
}
.form-step .form-field input:focus, .form-step .form-field select:focus, .form-step .form-field textarea:focus {
  background: var(--white);
}
.form-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.form-nav .btn-prev { background: none; border: 2px solid var(--line); color: var(--text-soft); }
.form-nav .btn-prev:hover { border-color: var(--ink); color: var(--ink); }

/* File uploads */
.file-field { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--white); transition: border-color 140ms ease; }
.file-field:hover { border-color: var(--gold); }
.file-field label { font-weight: 600; color: var(--ink); display: block; margin-bottom: 0.2rem; }
.file-field .hint { font-size: 0.83rem; color: var(--text-soft); margin-bottom: 0.6rem; }
.file-field input[type="file"] { width: 100%; font-size: 0.9rem; }
.file-field .file-status { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.55rem; font-size: 0.9rem; font-weight: 600; }
.file-field .file-status.is-ok { color: var(--green); }
.file-field .file-status button { background: none; border: 0; color: var(--error); font-size: 0.85rem; text-decoration: underline; padding: 0; }
.file-field.has-error { border-color: var(--error); }

/* Review summary */
.review-group { margin-bottom: 1.6rem; }
.review-group h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.7rem; }
.review-group h3 button { background: none; border: 0; color: var(--gold-text); font-weight: 700; font-size: 0.88rem; text-decoration: underline; padding: 0; }
.review-rows { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.review-rows div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 1rem; padding: 0.6rem 0.9rem; font-size: 0.93rem; background: var(--white); }
.review-rows div:nth-child(even) { background: var(--cream); }
.review-rows dt { color: var(--text-soft); }
.review-rows dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

.declaration-box { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.4rem; font-size: 0.97rem; }
.declaration-box .agree { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1.1rem; font-weight: 600; color: var(--ink); }
.declaration-box .agree input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); flex: 0 0 auto; min-height: 0; }

/* Success */
.success-ref {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.4rem); color: var(--green);
  letter-spacing: 0.04em;
}
.coordinator-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.coordinator-table th, .coordinator-table td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line-soft); }
.coordinator-table th { color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.coordinator-table a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); margin-top: auto; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer__inner {
  max-width: var(--container); margin: 0 auto; padding: 3.2rem 1.25rem 2.2rem;
  display: grid; gap: 2.2rem;
}
@media (min-width: 800px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.site-footer h2 {
  color: var(--gold-soft); font-family: var(--font-body); font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer__about img { width: 64px; margin-bottom: 0.9rem; }
.site-footer__about p { font-size: 0.93rem; line-height: 1.7; }
.site-footer ul { display: grid; gap: 0.55rem; font-size: 0.95rem; }
.site-footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; }
.site-footer__contact svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 4px; color: var(--gold); }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__bar-inner {
  max-width: var(--container); margin: 0 auto; padding: 1.1rem 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.6);
}

/* ---------- Page-enter motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { animation: rise 640ms cubic-bezier(0.22, 0.9, 0.3, 1) both; }
  .hero__inner > *:nth-child(2) { animation-delay: 90ms; }
  .hero__inner > *:nth-child(3) { animation-delay: 170ms; }
  .hero__inner > *:nth-child(4) { animation-delay: 250ms; }
  .hero__inner > *:nth-child(5) { animation-delay: 330ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero__actions, .form-nav { display: none; }
  body { background: #fff; }
}

/* A11y: links inside prose must not rely on color alone */
main p a:not(.btn):not(.text-link), main li a:not(.btn):not(.text-link),
.site-footer__contact a, .site-footer__about a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
