/* ECS IT Projects: styles shared by every public page.
   The look follows the Eastern Cape South website: burlap header, green
   ribbon menu, canvas background, white cards with green tabs and a purple
   fabric footer. The fabric images are made by playbook/tools/textures.mjs. */

:root {
  --green: #007a4d;
  --green-dark: #00603c;
  --green-tint: #e5f2ea;
  --purple: #622599;
  --purple-dark: #4e1d7d;
  --purple-deep: #40155c;
  --purple-tint: #f2ebf8;
  --sun: #f6c915;
  --canvas: #f4f1ea;
  --paper: #ffffff;
  --ink: #1f1b16;
  --muted: #645c52;
  --line: #e4ddcf;
  --line-strong: #cbc1ad;
  --warn-bg: #fff4d6;
  --warn-line: #e0a100;
  --warn-ink: #5c4000;
  --error: #b42318;
  --error-bg: #fdecea;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(60, 45, 20, .08), 0 8px 24px rgba(60, 45, 20, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Arvo", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas) url("/images/canvas.jpg") 0 0 / 256px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; }

a { color: var(--purple); text-underline-offset: 2px; }
a:hover { color: var(--purple-dark); }

h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: .6rem 1rem; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}

/* ── Header: burlap with the SCOUTS patch and the ECS badge ───────── */

.masthead {
  background: #b39b77 url("/images/burlap.jpg") 0 0 / 300px;
  box-shadow: inset 0 -14px 18px -12px rgba(40, 28, 10, .45);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: clamp(16px, 3vw, 28px); padding-bottom: clamp(18px, 3vw, 30px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; }
.brand__patch { display: block; width: clamp(150px, 22vw, 210px); filter: drop-shadow(0 3px 4px rgba(30, 20, 5, .45)); }
.brand__badge {
  width: clamp(48px, 6.5vw, 66px); margin-left: clamp(-22px, -2vw, -14px); margin-top: clamp(18px, 3vw, 30px);
  position: relative; filter: drop-shadow(0 3px 4px rgba(30, 20, 5, .5)); transform: rotate(6deg);
}
.brand__region {
  margin-top: 6px; color: #fff; font-weight: 600; letter-spacing: .2em; font-size: clamp(.74rem, 1.5vw, .95rem); white-space: nowrap;
  text-transform: lowercase; text-shadow: 0 1px 2px rgba(30, 20, 5, .8), 0 0 10px rgba(30, 20, 5, .35);
}

/* A woven name patch: green with a stitched edge. */
.patch {
  display: inline-block; position: relative;
  background: var(--green); color: #fff;
  font-family: var(--display); font-weight: 700; line-height: 1.1;
  padding: .7rem 1.1rem; border-radius: 8px;
  box-shadow: 0 3px 0 var(--green-dark), 0 6px 14px rgba(30, 20, 5, .4);
}
.patch::after {
  content: ""; position: absolute; inset: 4px; border-radius: 5px;
  border: 1.5px dashed rgba(255, 255, 255, .55); pointer-events: none;
}
.patch small { display: block; font-family: var(--font); font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 2px; }
.masthead .patch { font-size: clamp(1.05rem, 2.4vw, 1.5rem); transform: rotate(-2deg); }

/* ── Menu: a green ribbon with stitching ──────────────────────────── */

.ribbon {
  position: sticky; top: 0; z-index: 20;
  background: var(--green);
  box-shadow: 0 3px 10px rgba(0, 40, 20, .25);
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 0;
  border-top: 1.5px dashed rgba(255, 255, 255, .35); pointer-events: none;
}
.ribbon::before { top: 4px; }
.ribbon::after { bottom: 4px; }
.ribbon__inner { display: flex; align-items: center; gap: 1rem; min-height: 56px; }
.menu { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; flex: 1; }
.menu a {
  display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .55rem .8rem; border-radius: 6px; letter-spacing: .02em;
}
.menu a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.menu a[aria-current="page"] { background: rgba(0, 0, 0, .18); }
.ribbon__cta { margin-left: auto; }
.menu-toggle {
  display: none; background: none; border: 0; color: #fff; font: inherit; font-weight: 600;
  padding: .5rem .25rem; cursor: pointer; align-items: center; gap: .5rem;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .ribbon__inner { flex-wrap: wrap; }
  .menu { display: none; flex-basis: 100%; flex-direction: column; padding: 0 0 .9rem; order: 3; }
  .ribbon.is-open .menu { display: flex; }
  .menu a { padding: .7rem .5rem; }
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--purple); color: #fff; transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 2px 0 var(--purple-deep);
}
.btn:hover { background: var(--purple-dark); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--small { padding: .55rem 1rem; font-size: .92rem; }
.btn--light { background: #fff; color: var(--green-dark); box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.btn--light:hover { background: var(--green-tint); color: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .6); color: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ── Cards with a green tab, like the ECS site ────────────────────── */

.card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: 6px; box-shadow: var(--shadow); padding: 2.4rem 1.6rem 1.6rem;
}
.tab {
  position: absolute; top: -.95rem; left: 1.2rem;
  background: var(--green); color: #fff; font-weight: 600; font-size: 1.02rem; line-height: 1.2;
  padding: .42rem .8rem .45rem; text-transform: lowercase; letter-spacing: .01em;
  box-shadow: 0 2px 6px rgba(0, 40, 20, .25);
}
.tab::after { content: ""; position: absolute; inset: 3px; border: 1px dashed rgba(255, 255, 255, .45); pointer-events: none; }
.tab--purple { background: var(--purple); }

/* ── Home page ────────────────────────────────────────────────────── */

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tight { padding-top: 0; }
.section__intro { max-width: 46rem; margin-bottom: 2.4rem; }
.section__intro p { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--sun); border-radius: 2px; }

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 em { font-style: normal; color: var(--purple); }
.hero__lede { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: #3d362e; max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.2rem; }
.hero__note { font-size: .95rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .8rem; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: .7rem; align-items: start; }
.checklist .tick {
  width: 28px; height: 28px; border-radius: 50%; background: var(--green-tint); color: var(--green);
  display: grid; place-items: center;
}
.checklist .tick svg { width: 16px; height: 16px; }
.checklist strong { display: block; line-height: 1.35; }
.checklist span.sub { display: block; color: var(--muted); font-size: .93rem; line-height: 1.4; }
.card__foot { border-top: 1px dashed var(--line-strong); padding-top: 1rem; font-size: .92rem; color: var(--muted); display: flex; gap: .6rem; align-items: flex-start; }
.card__foot svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.6rem; }
.list-icon { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.list-icon li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; }
.list-icon svg { width: 20px; height: 20px; margin-top: 3px; }
.list-icon--yes svg { color: var(--green); }
.list-icon--no svg { color: var(--purple); }
.callout {
  background: var(--purple-tint); border-radius: 8px; padding: .9rem 1rem; font-size: .97rem; margin: 0;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.4rem; }
.steps .card { height: 100%; padding-top: 2.6rem; }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }

.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tip { background: rgba(255, 255, 255, .6); border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; padding: 1.1rem 1.2rem; }
.tip h3 { font-family: var(--font); font-size: 1.05rem; margin-bottom: .35rem; }
.tip p { margin: 0; color: var(--muted); font-size: .97rem; }

.faq { max-width: 50rem; display: grid; gap: .7rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 1.2rem 1.1rem; color: #3d362e; }
.faq details > div p:last-child { margin: 0; }

.cta-band {
  background: var(--green) ; color: #fff; border-radius: 12px; position: relative; overflow: hidden;
  padding: clamp(1.8rem, 4vw, 2.6rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-band::after { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(255, 255, 255, .35); border-radius: 8px; pointer-events: none; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; opacity: .9; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tips { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .split { gap: 2.4rem; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .masthead .patch { font-size: .95rem; padding: .55rem .75rem; }
  .masthead .patch small { font-size: .58rem; }
  .brand__badge { margin-left: 2px; margin-top: 10px; }
  .brand__region { letter-spacing: .12em; }
}
@media (max-width: 360px) {
  .masthead .patch { display: none; }
}

/* ── Plain content pages (privacy, 404) ───────────────────────────── */

.page { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.prose { max-width: 46rem; }
.prose .card { padding: 2rem clamp(1.2rem, 4vw, 2.4rem); }
.prose h2 { font-size: 1.35rem; margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }

/* ── Footer: purple fabric ───────────────────────────────────────── */

.footer {
  margin-top: 3rem; color: #fff;
  background: var(--purple) url("/images/purple-burlap.jpg") 0 0 / 300px;
  position: relative; box-shadow: inset 0 14px 18px -12px rgba(20, 0, 35, .6);
}
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1.5px dashed rgba(255, 255, 255, .35); }
.footer__inner { padding-top: 2.6rem; padding-bottom: 2rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem 2rem; align-items: end; }
.footer__motto {
  font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1; letter-spacing: -.03em;
  color: rgba(255, 255, 255, .5); text-shadow: 0 2px 2px rgba(20, 0, 35, .35); margin: 0 0 .6rem;
}
.footer__org { margin: 0; font-size: .95rem; opacity: .9; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: flex-end; }
.footer__links a { color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.footer__links a:hover { text-decoration: underline; color: #fff; }
.footer__small { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 1rem; font-size: .85rem; opacity: .8; margin: 0; }

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}

/* ── The request form ─────────────────────────────────────────────── */

.form-page { padding: clamp(1.8rem, 4vw, 3rem) 0 2rem; }
.form-head { max-width: 46rem; margin-bottom: 2rem; }
.form-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.form-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
.form-layout.is-done { grid-template-columns: minmax(0, 46rem); justify-content: center; }

.progress { position: sticky; top: 80px; }
.progress ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.progress button {
  width: 100%; display: grid; grid-template-columns: 32px 1fr; gap: .7rem; align-items: center; text-align: left;
  font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 8px;
  padding: .55rem .6rem; cursor: pointer;
}
.progress button:disabled { cursor: default; }
.progress button:not(:disabled):hover { background: rgba(255, 255, 255, .7); }
.progress .num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem;
  border: 2px solid var(--line-strong); background: var(--paper);
}
.progress .num svg { width: 16px; height: 16px; }
.progress [aria-current="step"] { color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.progress [aria-current="step"] .num { border-color: var(--green); background: var(--green); color: #fff; }
.progress .is-done .num { border-color: var(--green); color: var(--green); }
.progress__help { margin-top: 1.2rem; font-size: .9rem; color: var(--muted); padding: 0 .6rem; }
.progress__bar { display: none; }

.form-card { padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.1rem, 4vw, 2.4rem) clamp(1.4rem, 3vw, 2rem); }
.step h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.step__intro { color: var(--muted); margin-bottom: 1.8rem; }
.step[hidden] { display: none; }

.field { margin-bottom: 1.5rem; }
.field:last-child { margin-bottom: 0; }
.field[hidden] { display: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.label, legend.label { display: block; font-weight: 700; margin-bottom: .2rem; padding: 0; }
.label .opt { font-weight: 500; color: var(--muted); }
.hint { display: block; color: var(--muted); font-size: .93rem; margin-bottom: .55rem; line-height: 1.45; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 8px; padding: .72rem .85rem; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.textarea--short { min-height: 4.8rem; }
.select {
  appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23645c52'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 20px;
}
.input:hover, .select:hover, .textarea:hover { border-color: #a99d86; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 122, 77, .2); }
.input--short { max-width: 16rem; }

.choices { display: grid; gap: .55rem; }
.choices--grid { grid-template-columns: repeat(2, 1fr); }
.choices--cols { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; height: 100%;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: .75rem .9rem; transition: border-color .15s, background .15s;
}
.choice__mark {
  width: 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: 50%; margin-top: 1px; background: #fff;
  display: grid; place-items: center; transition: all .15s;
}
.choice input[type="checkbox"] + .choice__box .choice__mark { border-radius: 6px; }
.choice__mark svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.choice__text strong { display: block; font-weight: 600; line-height: 1.35; }
.choice__text small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; margin-top: .15rem; }
.choice:hover .choice__box { border-color: #a99d86; }
.choice input:checked + .choice__box { border-color: var(--green); background: var(--green-tint); }
.choice input:checked + .choice__box .choice__mark { border-color: var(--green); background: var(--green); }
.choice input:checked + .choice__box .choice__mark svg { opacity: 1; }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--sun); outline-offset: 2px; }
.choice__box--plain, .choice input:checked + .choice__box--plain, .field.has-error .choice__box--plain { border: 0; background: none; padding: 0; }

.field.has-error .input, .field.has-error .select, .field.has-error .textarea, .field.has-error .choice__box { border-color: var(--error); }
.error { display: none; color: var(--error); font-weight: 600; font-size: .93rem; margin: .45rem 0 0; }
.field.has-error .error { display: flex; gap: .4rem; align-items: flex-start; }
.error::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: #fff; font-size: .75rem; display: grid; place-items: center; margin-top: 2px; }

.note { border-radius: 8px; padding: .8rem 1rem; font-size: .95rem; margin: .7rem 0 0; display: flex; gap: .6rem; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.note--warn { background: var(--warn-bg); color: var(--warn-ink); border-left: 4px solid var(--warn-line); }
.note--info { background: var(--green-tint); color: #12452f; border-left: 4px solid var(--green); }
.note[hidden] { display: none; }

.form-alert { background: var(--error-bg); color: var(--error); border-radius: 8px; padding: .9rem 1rem; font-weight: 600; margin-bottom: 1.4rem; }
.form-alert[hidden] { display: none; }

.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px dashed var(--line-strong); }
.form-nav .btn--ghost[hidden] { display: none; }
.form-nav__right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.saved-note { font-size: .85rem; color: var(--muted); }

.review { display: grid; gap: 1.2rem; margin-bottom: 1.8rem; }
.review section { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.review header { display: flex; align-items: center; justify-content: space-between; background: #faf8f3; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.review h3 { font-family: var(--font); font-size: 1rem; margin: 0; }
.review header button { font: inherit; font-size: .9rem; font-weight: 600; color: var(--purple); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: .2rem; }
.review dl { margin: 0; padding: .4rem 1rem; display: grid; grid-template-columns: minmax(8rem, 34%) 1fr; }
.review dt, .review dd { padding: .5rem 0; border-bottom: 1px solid #f0ebe1; margin: 0; }
.review dt { color: var(--muted); font-size: .93rem; padding-right: 1rem; }
.review dd { white-space: pre-line; overflow-wrap: anywhere; }
.review dl > :nth-last-child(-n + 2) { border-bottom: 0; }

.consent { background: #faf8f3; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }

.honeypot { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.success { text-align: center; padding: clamp(1rem, 3vw, 2rem) 0; }
.success__icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px var(--green-tint); }
.success__icon svg { width: 36px; height: 36px; }
.success .patch { font-size: 1.5rem; margin: .4rem 0 1.4rem; letter-spacing: .04em; }
.success__steps { text-align: left; max-width: 34rem; margin: 1.6rem auto; padding: 0; list-style: none; display: grid; gap: .8rem; counter-reset: s; }
.success__steps li { display: grid; grid-template-columns: 30px 1fr; gap: .8rem; counter-increment: s; }
.success__steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--purple-tint); color: var(--purple); font-weight: 700; display: grid; place-items: center; }
.success__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 880px) {
  .form-layout { grid-template-columns: 1fr; gap: 1rem; }
  .progress { position: static; }
  .progress ol, .progress__help { display: none; }
  .progress__bar { display: block; }
  .progress__bar p { margin: 0 0 .5rem; font-weight: 600; font-size: .95rem; }
  .progress__bar p span { color: var(--muted); font-weight: 500; }
  .progress__track { height: 8px; background: rgba(0, 0, 0, .08); border-radius: 99px; overflow: hidden; }
  .progress__fill { width: 20%; height: 100%; background: var(--green); border-radius: 99px; transition: width .3s; }
}
@media (max-width: 600px) {
  .row, .choices--grid { grid-template-columns: 1fr; }
  .review dl { grid-template-columns: 1fr; }
  .review dt { border-bottom: 0; padding-bottom: 0; }
  .form-nav .btn { padding: .8rem 1.1rem; }
  .saved-note { display: none; }
}

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