/* envelope.au styles
   The look: a sheet of white paper folded in thirds (crease lines between sections),
   cobalt blue and marigold yellow, addressed window envelopes with a stamp and postmark.
   Colours are listed once here; change them here only. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cobalt: #2343c9;
  --cobalt-dark: #1a3399;
  --marigold: #ffb81c;
  --marigold-dark: #f0a500;
  --navy: #14183a;
  --paper: #ffffff;
  --desk: #eef2fa;
  --sky: #e4ecff;
  --butter: #fff3d6;
  --grey: #535a70;
  --window: #cfdcf7;
  --error: #b3261e;

  /* older names, used by the drawings and form */
  --ink: var(--cobalt);
  --ink-dark: var(--cobalt-dark);
  --text: var(--navy);

  --rule: rgba(20, 24, 58, 0.16);
  --gutter: 16px;
  --wrap: 72rem;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Faint paper grain, drawn by the browser (no image file) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .18 0 0 0 0 .43 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

@media (min-width: 48em) {
  :root { --gutter: 32px; }
}

/* ---------- Reset and base ---------- */

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

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

body {
  margin: 0;
  background: var(--desk);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.55;
  overflow-x: clip;
}

@media (min-width: 48em) {
  body { font-size: 1.125rem; } /* 18px */
}

svg { display: block; max-width: 100%; height: auto; }

p, ul, ol, dl { margin: 0 0 1em; }

a { color: var(--ink); text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip-link:focus { top: 0.5rem; outline-color: var(--ink-dark); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nowrap { white-space: nowrap; }
.small { font-size: 0.875rem; }
.muted { color: var(--grey); }

/* ---------- Type ---------- */

h1, h2, h3 {
  margin: 0 0 0.5em;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "SOFT" 50;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.375rem, 6vw + 0.75rem, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw + 0.9rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); font-weight: 600; }

.lede { font-size: 1.1875em; line-height: 1.5; max-width: 34em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--ink-dark); border-color: var(--ink-dark); }

.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--sky); color: var(--ink); border-color: var(--ink); }

/* On cobalt: a marigold button and a white outline button */
.btn--marigold { background: var(--marigold); border-color: var(--marigold); color: var(--navy); }
.btn--marigold:hover { background: #ffffff; border-color: #ffffff; color: var(--navy); }
.btn--on-cobalt { background: transparent; border-color: #ffffff; color: #ffffff; }
.btn--on-cobalt:hover { background: #ffffff; border-color: #ffffff; color: var(--cobalt); }

.btn--small { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0; }

/* ---------- The sheet of paper and its creases ----------
   <div class="sheet"> holds a page's content. Each <section class="crease">
   starts with a fold line: a thin dark valley, a highlight, then a soft shadow. */

.sheet {
  max-width: 80rem;
  margin-inline: auto;
  background: var(--grain), var(--paper);
}

@media (min-width: 48em) {
  .sheet {
    margin-block: 0 3rem;
    margin-inline: 1.5rem;
    box-shadow: 0 1px 2px rgba(27, 29, 34, 0.08), 0 18px 40px -24px rgba(30, 47, 110, 0.35);
  }
}

@media (min-width: 83em) {
  .sheet { margin-inline: auto; }
}

.section { padding-block: clamp(2.75rem, 7vw, 5rem); }

.crease { position: relative; }
.crease::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 18px;
  background: linear-gradient(to bottom,
    rgba(30, 47, 110, 0.16) 0, rgba(30, 47, 110, 0.16) 1px,
    rgba(255, 255, 255, 0.95) 1px, rgba(255, 255, 255, 0.95) 2px,
    rgba(30, 47, 110, 0.05) 2px, rgba(30, 47, 110, 0) 18px);
  pointer-events: none;
}

/* ---------- Header ---------- */

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand cta" "nav nav";
  align-items: center;
  gap: 0.25rem 1rem;
  padding-block: 0.75rem 0.25rem;
}
.wordmark { grid-area: brand; justify-self: start; }
.site-header__cta { grid-area: cta; }

/* Menu: its own row on phones, between the wordmark and the button from tablet width */
.site-nav { grid-area: nav; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline 2px var(--cobalt); text-underline-offset: 0.35em; }
.site-nav a[aria-current="page"] { text-decoration: underline 3px var(--marigold); text-underline-offset: 0.35em; }

@media (min-width: 48em) {
  .site-header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav cta"; gap: 1rem 2.5rem; padding-block: 0.75rem; min-height: 4.5rem; }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 650;
  font-variation-settings: "SOFT" 50;
  font-size: 1.625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark__tld { color: var(--cobalt); font-weight: 500; }
.wordmark__mark { width: 2rem; fill: var(--marigold); stroke: var(--navy); stroke-width: 1.75; stroke-linejoin: round; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2.5rem;
  background: var(--navy);
  color: #eef1f8;
  font-size: 0.9375rem;
}
.site-footer a { color: #ffffff; }
.site-footer :focus-visible { outline-color: #ffffff; }
.site-footer p { margin-bottom: 0.25em; }
.site-footer__inner { display: grid; gap: 1.25rem; }
.site-footer__name { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; color: var(--marigold); }
.site-footer__privacy { max-width: 46em; color: #c9d1e6; }

@media (min-width: 48em) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr; }
  .site-footer__privacy { grid-column: 1 / -1; }
}

/* ---------- Phone action bar ---------- */

.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem var(--gutter) calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -6px 18px -12px rgba(30, 47, 110, 0.4);
}
.action-bar .btn--outline { background: var(--paper); }

body:has(.action-bar) { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }

@media (min-width: 48em) {
  .action-bar { display: none; }
  body:has(.action-bar) { padding-bottom: 0; }
}

/* ---------- Home: hero (cobalt, with a striped mailing-envelope edge) ---------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) calc(clamp(2.75rem, 7vw, 5rem) + 10px);
  overflow-x: clip;
  background: var(--cobalt);
  color: #ffffff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--marigold) 0 12px, #ffffff 12px 24px, var(--navy) 24px 36px, #ffffff 36px 48px);
}
.hero h1 { color: #ffffff; }
.hero .hl { color: var(--marigold); }
/* Inner pages: a slightly smaller headline */
.hero--page h1 { font-size: clamp(2.125rem, 4.5vw + 0.75rem, 3.75rem); }
.hero .lede { margin-bottom: 1.5em; color: #e6ebff; }
.hero :focus-visible { outline-color: var(--marigold); }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }

.hero__art { position: relative; max-width: 32rem; width: 100%; justify-self: center; }

@media (min-width: 60em) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; }
  .hero__art { justify-self: end; }
}

/* The envelopes */
.env-hero { width: 100%; overflow: visible; }
.env-hero__shadow { fill: rgba(10, 16, 60, 0.35); }
.env-paper { fill: #ffffff; stroke: var(--navy); stroke-width: 1.5; }
.env-flap { fill: #f2f5fd; stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }
.env-fold { fill: none; stroke: var(--navy); stroke-opacity: 0.3; stroke-width: 1.25; }
.env-seal { fill: var(--marigold); stroke: var(--navy); stroke-width: 1.25; }
.env-sender { fill: var(--navy); }
.env-sender--light { fill: #a8b0c8; }
.env-window { fill: var(--window); fill-opacity: 0.55; stroke: var(--navy); stroke-opacity: 0.55; stroke-width: 1; }
.env-address { fill: var(--navy); font-family: var(--sans); font-weight: 600; font-size: 8px; }
.env-glare { fill: none; stroke: #ffffff; stroke-opacity: 0.7; stroke-width: 2.5; }
.env-stamp { fill: var(--marigold); }
.env-stamp-perf { fill: none; stroke: #ffffff; stroke-width: 3; stroke-dasharray: 0.01 4.4; stroke-linecap: round; }
.env-stamp-frame { fill: none; stroke: var(--navy); stroke-opacity: 0.45; stroke-width: 0.75; }
.env-stamp-sun { fill: var(--cobalt); }
.env-stamp-wave { fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-linecap: round; }
.env-postmark { fill: none; stroke: var(--navy); stroke-opacity: 0.75; stroke-width: 1.25; }
.env-postmark-text { fill: var(--navy); fill-opacity: 0.8; font-family: var(--sans); font-weight: 700; font-size: 5.5px; letter-spacing: 0.04em; }
.env-cancel { fill: none; stroke: var(--navy); stroke-opacity: 0.7; stroke-width: 1.25; }

/* The front envelope settles in, then the stamp and postmark land (once) */
.env-hero__front { animation: env-in 0.9s cubic-bezier(0.25, 0.7, 0.2, 1) 0.2s both; }
.env-hero__stamp { transform-box: fill-box; transform-origin: center; animation: stamp-in 0.3s ease-out 1s both; }
.env-hero__postmark, .env-hero__cancel { animation: fade-in 0.3s ease-out 1.3s both; }

@keyframes env-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes stamp-in {
  from { opacity: 0; transform: scale(1.6) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Drawings shared by the smaller illustrations ---------- */

.d-paper { fill: #ffffff; stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }
.d-inside { fill: var(--sky); stroke: var(--navy); stroke-width: 1.5; }
.d-ink { fill: var(--cobalt); }
.d-line { fill: #9aa3bd; }
.d-addr { fill: var(--navy); }
.d-window { fill: var(--window); fill-opacity: 0.6; stroke: var(--navy); stroke-opacity: 0.5; }
.d-stamp { fill: var(--marigold); }
.d-cancel { fill: none; stroke: var(--navy); stroke-opacity: 0.6; stroke-width: 1; }
.d-crease { fill: none; stroke: var(--navy); stroke-opacity: 0.3; stroke-width: 1; }
.d-fold { fill: none; stroke: var(--cobalt); stroke-width: 1.25; stroke-dasharray: 3 3; }
.d-profile { fill: none; stroke: var(--cobalt); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.d-head { fill: var(--cobalt); }
.d-grid { fill: none; stroke: var(--navy); stroke-opacity: 0.18; stroke-width: 1; }
.d-row { fill: var(--butter); stroke: var(--marigold); stroke-width: 1.5; }
.d-cells rect { fill: #9aa3bd; }
.d-arrow { fill: none; stroke: var(--cobalt); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Political page ---------- */

.pol-figure { margin: 0; }
.pol-figure figcaption { margin-top: 0.5rem; color: #e6ebff; font-size: 0.9375rem; text-align: center; }
.pol-mock { width: 100%; overflow: visible; }
.pol-mock__shadow { fill: rgba(10, 16, 60, 0.35); }
.pm-paper { fill: #ffffff; stroke: #222222; stroke-width: 1.25; }
.pm-band { fill: #2b2b2b; }
.pm-vote { fill: #ffffff; font-family: var(--sans); font-weight: 700; font-size: 17px; }
.pm-portrait { fill: #d9d9d9; }
.pm-person { fill: #8c8c8c; }
.pm-name { fill: #1b1b1b; font-family: var(--serif); font-weight: 700; font-size: 11px; }
.pm-small { fill: #555555; font-family: var(--sans); font-size: 7.5px; }
.pm-place { fill: #1b1b1b; font-family: var(--sans); font-weight: 700; font-size: 9.5px; }
.pm-lines rect { fill: #c4c4c4; }
.pm-auth { fill: #555555; font-family: var(--sans); font-size: 5.4px; }
.pm-crease { fill: none; stroke: #222222; stroke-opacity: 0.25; stroke-dasharray: 3 3; }
.pm-bar { fill: #2b2b2b; }
.pm-bar--light { fill: #b5b5b5; }
.pm-window { fill: #e9e9e9; fill-opacity: 0.6; stroke: #222222; stroke-opacity: 0.5; }
.pm-address { fill: #1b1b1b; font-family: var(--sans); font-weight: 600; font-size: 8px; }
.pm-address--resident { font-size: 11px; font-weight: 700; }

/* Six steps: three across on desktop */
@media (min-width: 60em) {
  .steps.steps--six { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .steps.steps--six li + li { border-left: 0; }
  .steps.steps--six li:not(:nth-child(3n + 1)) { border-left: 1px dashed var(--rule); }
  .steps.steps--six li:nth-child(3n + 1) { padding-left: 0; }
}
.steps--six li { align-content: start; }
.steps--six p { align-self: center; }

.pol-note { max-width: 46em; margin-top: 2rem; }
.pol-callout {
  max-width: 46em;
  padding: 0.875rem 1.125rem;
  border-left: 6px solid var(--marigold);
  background: #ffffff;
  font-weight: 700;
}

.pol-responsibility {
  padding: 1.5rem;
  background: var(--sky);
  border-top: 4px solid var(--cobalt);
}
.pol-responsibility ul { margin: 0; padding-left: 1.25rem; }
.pol-responsibility li + li { margin-top: 0.35rem; }

@media (min-width: 60em) {
  .pol-responsibility { margin-top: 4.5rem; }
}

/* ---------- Coloured bands between the white sections ---------- */

.band--sky { background: var(--sky); }
.band--marigold { background: var(--butter); }

/* ---------- Home: from your list to their letterbox ---------- */

.list { display: grid; gap: 2rem; align-items: center; }
.list .lede { margin-bottom: 1em; }
.list-art { width: 100%; max-width: 26rem; justify-self: center; }

@media (min-width: 60em) {
  .list { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; }
}

/* ---------- Home: the two services ---------- */

.services { display: grid; gap: 2.5rem; margin-top: 2rem; }
.service__art { width: 100%; max-width: 12rem; margin-bottom: 1.25rem; }
.service p { max-width: 30em; }
.service__link { margin-bottom: 0; font-weight: 700; }

@media (min-width: 48em) {
  .services { grid-template-columns: 1fr 1fr; gap: 0; }
  .service + .service { padding-left: 3rem; border-left: 1px dashed var(--rule); }
  .service:first-child { padding-right: 3rem; }
}

/* ---------- Home: what we offer ---------- */

.offer { display: grid; gap: 3rem; }

@media (min-width: 60em) {
  .offer { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .folds { margin-top: 4.5rem; }
}

.spec { margin: 0; border-top: 3px solid var(--navy); }
.spec > div {
  display: grid;
  gap: 0.125rem 1.5rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule);
}
.spec dt { color: var(--cobalt); font-weight: 700; }
.spec dd { margin: 0; }

@media (min-width: 36em) {
  .spec > div { grid-template-columns: 9rem 1fr; }
}

.folds {
  padding: 1.5rem;
  background: var(--butter);
  border-top: 4px solid var(--marigold);
}
.folds h3 { margin-bottom: 1rem; }
.folds__list { margin: 0; padding: 0; list-style: none; }
.fold { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: center; }
.fold + .fold { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.fold p { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.fold strong { display: block; color: var(--navy); font-size: 1.0625rem; }

/* ---------- Home: how it works ---------- */

.steps {
  display: grid;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--cobalt);
  color: #ffffff;
  font-family: var(--serif);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  font-size: 1.625rem;
  line-height: 1;
}
.steps h3 { margin-bottom: 0.35em; }
.steps p { margin: 0; }

@media (min-width: 60em) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; padding: 0 1.5rem; border-top: 0; }
  .steps li::before { grid-row: auto; margin-bottom: 1rem; width: 3.5rem; height: 3.5rem; font-size: 1.875rem; }
  .steps li:first-child { padding-left: 0; }
  .steps li + li { border-left: 1px dashed var(--rule); }
}

/* ---------- Home: who it's for (ruled like writing paper) ---------- */

.ruled { display: grid; margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 3px solid var(--navy); }
.ruled li { padding-block: 0.875rem; border-bottom: 1px solid var(--rule); }
.ruled strong { display: block; color: var(--cobalt); }

@media (min-width: 48em) {
  .ruled { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

/* ---------- Home: closing, with an envelope flap across the top ---------- */

.closing {
  position: relative;
  padding-top: clamp(5.5rem, 11vw, 8rem);
  background: var(--cobalt);
  color: #ffffff;
  text-align: center;
}
.closing h2 { color: #ffffff; }
.closing .lede { color: #e6ebff; }
.closing :focus-visible { outline-color: var(--marigold); }
.closing::before { display: none; }
.closing::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(2.5rem, 6vw, 4rem);
  background: var(--grain), var(--paper);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 3px 0 var(--navy));
}
.closing .lede { margin-inline: auto; }
.closing .button-row { justify-content: center; }

/* ---------- Get a quote ---------- */

.page-head { padding-bottom: 1.5rem; }
.page-head .lede { margin-bottom: 0; }

.quote { display: grid; gap: 2.5rem; align-items: start; }

@media (min-width: 60em) {
  .quote { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 3.5rem; }
  .quote__prep { position: sticky; top: 1.5rem; }
}

.quote__prep {
  padding: 1.5rem;
  background: var(--sky);
  border-top: 4px solid var(--cobalt);
}
.quote__prep h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 1.875rem); }
.quote__prep .spec { border-top: 0; }
.quote__prep .spec > div { grid-template-columns: 1fr; }
.quote__prep .spec > div:last-child { border-bottom: 0; padding-bottom: 0; }

.form-heading {
  margin: 2.5rem 0 1.25rem;
  padding-top: 1.25rem;
  border-top: 3px solid var(--navy);
  font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem);
}
form > .form-heading:first-of-type { margin-top: 0; }

.field { margin: 0 0 1.5rem; }
.field > label,
.field.choice legend {
  display: block;
  margin-bottom: 0.35rem;
  padding: 0;
  font-weight: 700;
}
.field__optional { font-weight: 400; color: var(--grey); }
.field__hint { margin: 0 0 0.5rem; font-size: 0.9375rem; color: var(--grey); }
.field__error {
  margin: 0 0 0.5rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--error);
  color: var(--error);
  font-weight: 700;
}

/* :where() keeps this rule light, so .input--short and .input--date can narrow fields */
.field input:where(:not([type="radio"], [type="checkbox"])),
.field textarea {
  display: block;
  width: 100%;
  max-width: 32rem;
  min-height: 3.25rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--navy);
  border-radius: 3px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field textarea.textarea--short { min-height: 5rem; }
.field input.input--short { max-width: 10rem; font-variant-numeric: tabular-nums; }
.field input.input--date { max-width: 14rem; }
.field--error input:where(:not([type="radio"], [type="checkbox"])),
.field--error textarea,
.field--error .choice__options label { border-color: var(--error); }

.choice { min-width: 0; margin-inline: 0; padding: 0; border: 0; }
.choice__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Radio buttons drawn as big tap targets; the real input stays for keyboards and screen readers */
.choice label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.5rem 1.125rem;
  border: 2px solid var(--navy);
  border-radius: 3px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}
.choice label:hover { background: var(--sky); }
.choice input:checked + label { background: var(--cobalt); border-color: var(--cobalt); color: #ffffff; }
.choice input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }

.choice--compact label { min-width: 3.25rem; padding-inline: 0.5rem; font-size: 1.125rem; font-variant-numeric: tabular-nums; }

.error-summary {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--error);
  border-left-width: 10px;
  background: #ffffff;
}
.error-summary h2 { margin-bottom: 0.5rem; font-size: 1.375rem; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--error); font-weight: 700; }

.form-submit { margin-top: 2rem; }

/* ---------- Thank-you page ---------- */

.thanks { padding-block: clamp(3rem, 8vw, 5rem); }
.thanks .service__art { max-width: 10rem; }
.thanks .spec { max-width: 36rem; margin-block: 1.5rem 2rem; }

/* ---------- Motion ---------- */

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