/* Visage — /inquire/ quote wizard.
   Loaded after site.css, which supplies the tokens, reset and .btn styles.

   LIGHT PAGE. This is the only light page on the site, and it deliberately
   borrows the homepage #contact section's vocabulary so the two read as the
   same form: --soft field, underline-only inputs on rgba(0,0,0,.16), uppercase
   8.5px/.14em muted field labels, black focus, black pill submit.

   Because the field is light, --lime cannot be the accent here — it measures
   1.08:1 on --soft and disappears. Black takes its place throughout, exactly
   as it does on the homepage (input focus border, .btn-dark submit). */

body { background: var(--soft); color: var(--black); }

/* site.css sets a --lime focus ring for the dark pages; unusable on --soft. */
:focus-visible { outline-color: var(--black); }

/* [hidden] is only display:none in the UA sheet, so any author display rule
   beats it — .btn is inline-flex, which left the Submit button visible on
   step 1. Everything on this page toggles with [hidden], so enforce it once. */
[hidden] { display: none !important; }

/* ─── SHELL ───────────────────────────────────────────────── */
/* .site-nav is fixed and therefore out of flow, so the shell owns the offset
   that keeps content clear of it. The nav itself stays dark: it is shared
   chrome across all 14 pages, and it reads here the same way it reads over
   the homepage hero — a black bar above a light field. */
.iq-shell {
  min-height: 100dvh;
  padding-top: var(--nav-h);
  display: flex; flex-direction: column;
}

/* Same scale as every other page: --block between major blocks (100px, 72px
   on phone), --block-inner inside them (48px). The card uses the identical
   container expression as .nav-inner, so the content sits on exactly the
   same left and right axes as the logo and nav links above it. */
.iq-main {
  flex: 1;
  padding: var(--block) 0;
}
.iq-card {
  width: min(100% - calc(var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

/* ─── INTRO ───────────────────────────────────────────────── */
/* Mirrors .contact-inner on the homepage: copy on the left, the same two
   contact links on the right. The wizard below stays full width, so this is
   the only split — step 2's option grid needs the whole measure to fan out. */
.iq-intro {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 0 64px; align-items: end;
}
.iq-eyebrow {
  display: block; font-size: 8px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.iq-title {
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 800; line-height: 1.04;
  letter-spacing: -.02em; text-transform: uppercase;
}
.iq-sub {
  margin-top: 14px; max-width: 46ch;
  font-size: 11px; font-weight: 500;
  line-height: 1.85; color: var(--muted);
}

/* Same links, icons and copy-to-clipboard badge as .contact-details. Anchored
   to the container's right edge, which puts them on the same axis as the nav
   links above and matches the right-set headers on the case-study pages. */
.iq-contact { display: grid; gap: 12px; justify-items: end; }
.iq-contact a {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em; color: var(--black);
  width: fit-content;
  transition: opacity .2s;
}
.iq-contact a:hover { opacity: .6; }
.iq-contact svg {
  width: 13px; height: 13px; flex-shrink: 0;
  fill: none; stroke: var(--black); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Sits to the LEFT of the link, unlike the homepage's: this block is
   right-anchored, so a badge on the trailing side would run off the gutter. */
.copied-badge {
  position: absolute; right: calc(100% + 10px); top: 50%;
  transform: translateY(-50%);
  font-size: 8.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--success); background: rgba(22,107,49,.10);
  padding: 3px 8px; border-radius: 999px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.copied-badge.is-visible { opacity: 1; }

/* ─── PROGRESS ────────────────────────────────────────────── */
.iq-progress {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin: var(--block-inner) 0;
  list-style: none;
}
.iq-progress li {
  padding-top: 9px;
  border-top: 2px solid rgba(8,8,8,.14);
  font-size: 8px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  transition: color .3s ease, border-color .3s ease;
}
.iq-progress li[data-state="active"] { border-top-color: var(--black); color: var(--black); }
.iq-progress li[data-state="done"]   { border-top-color: var(--black); color: var(--muted); }

/* ─── STEPS ───────────────────────────────────────────────── */
.iq-step[hidden] { display: none; }
.iq-step-title {
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -.01em; text-transform: uppercase;
  margin-bottom: 6px;
}
/* inquire.js focuses these two headings — the step title on every Next/Back,
   the done heading on submit — so a screen reader announces the new panel.
   Both are tabindex="-1", so nobody can Tab to them, which means the focus
   ring marks a place the user never navigated to. Advancing with the keyboard
   made it match :focus-visible and drew a full-width black rectangle around
   the title. Dropping the ring does not drop the announcement: focus still
   moves, it is just no longer painted. */
.iq-step-title:focus,
.iq-step-title:focus-visible,
.iq-done h2:focus,
.iq-done h2:focus-visible { outline: none; }
.iq-step-note {
  font-size: 10.5px; font-weight: 500;
  color: var(--muted); line-height: 1.7;
  margin-bottom: 26px;
}

/* ─── FIELDS ──────────────────────────────────────────────── */
/* Border, padding and placeholder values lifted from .contact-form. */
.iq-fields { display: grid; gap: 22px; }
.iq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.iq-field { display: grid; gap: 8px; }
.iq-label {
  font-size: 8.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.iq-label .iq-opt { color: rgba(8,8,8,.34); letter-spacing: .08em; }
.iq-field input[type="text"],
.iq-field input[type="email"],
.iq-field input[type="tel"],
.iq-field textarea {
  width: 100%; border: none;
  border-bottom: 1px solid rgba(0,0,0,.16);
  border-radius: 0; background: transparent;
  color: var(--black); padding: 9px 0; outline: none;
  font-family: inherit;
  font-size: 12px; transition: border-color .2s;
}
.iq-field textarea { min-height: 108px; resize: vertical; line-height: 1.7; }
.iq-field input::placeholder,
.iq-field textarea::placeholder { color: rgba(0,0,0,.28); }
.iq-field input:focus,
.iq-field textarea:focus { border-color: var(--black); }
.iq-field[data-invalid] input,
.iq-field[data-invalid] textarea { border-color: var(--error); }
.iq-error {
  font-size: 9px; font-weight: 700;
  letter-spacing: .06em; color: var(--error);
  min-height: 11px;
}

/* ─── SERVICE CARDS ───────────────────────────────────────── */
.iq-cards { display: grid; gap: 10px; }
.iq-cat { border: 1px solid rgba(8,8,8,.16); }
.iq-cat[data-open] { border-color: rgba(8,8,8,.34); }
.iq-cat-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 18px;
  background: transparent; border: none; cursor: pointer;
  color: var(--black); text-align: left;
  font-family: inherit;
}
.iq-cat-name {
  font-size: 13px; font-weight: 700;
  letter-spacing: -.01em; text-transform: uppercase;
}
.iq-cat-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 8.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.iq-cat-count { color: var(--black); }
.iq-cat-chev {
  width: 11px; height: 11px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(90deg);
  transition: transform .32s cubic-bezier(.16,1,.3,1);
}
.iq-cat[data-open] .iq-cat-chev { transform: rotate(-90deg); }

/* 0fr -> 1fr animates to the panel's natural height, which max-height
   cannot do without hard-coding a value that eventually clips. */
.iq-cat-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .32s cubic-bezier(.16,1,.3,1);
}
.iq-cat[data-open] .iq-cat-panel { grid-template-rows: 1fr; }
.iq-cat-panel-inner { overflow: hidden; }
/* auto-fit rather than a fixed count: the container is now full width, so the
   options fan out to four across on a wide screen and collapse on their own. */
.iq-checks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px 24px; padding: 2px 18px 20px;
}

.iq-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
/* .iq-consent is included here on purpose: it uses the same .iq-box swatch but
   a different wrapper class, so a rule scoped to .iq-check alone left its
   native checkbox painted next to the styled one. */
.iq-check input,
.iq-consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.iq-box {
  width: 15px; height: 15px; flex-shrink: 0;
  border: 1px solid rgba(8,8,8,.30);
  display: grid; place-items: center;
  transition: background .18s, border-color .18s;
}
.iq-box svg { width: 9px; height: 9px; stroke: var(--white); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; fill: none; opacity: 0; transition: opacity .18s; }
.iq-check input:checked + .iq-box,
.iq-consent input:checked + .iq-box { background: var(--black); border-color: var(--black); }
.iq-check input:checked + .iq-box svg,
.iq-consent input:checked + .iq-box svg { opacity: 1; }
.iq-check input:focus-visible + .iq-box,
.iq-consent input:focus-visible + .iq-box { outline: 2px solid var(--black); outline-offset: 2px; }
.iq-check span:last-child { font-size: 11px; font-weight: 500; color: var(--black); }

/* ─── SLIDERS ─────────────────────────────────────────────── */
/* ─── PRESET CHOICES (timeline) ───────────────────────────────── */
/* A fieldset carries the grouping for assistive tech, but it also brings a
   default border, padding and min-width:min-content that breaks the grid. */
.iq-choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.iq-choice .iq-label { display: block; margin-bottom: 12px; }

.iq-opts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.iq-opt { position: relative; cursor: pointer; }
.iq-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.iq-opt-face {
  display: grid; gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(8,8,8,.18);
  background: rgba(255,255,255,.55);
  transition: border-color .18s, background .18s;
}
.iq-opt-name { font-size: 12px; font-weight: 700; color: var(--black); letter-spacing: -.01em; }
.iq-opt-note { font-size: 10px; font-weight: 500; color: var(--muted); }

.iq-opt:hover .iq-opt-face { border-color: rgba(8,8,8,.42); }
.iq-opt input:checked + .iq-opt-face {
  border-color: var(--black);
  background: var(--black);
}
.iq-opt input:checked + .iq-opt-face .iq-opt-name { color: var(--white); }
.iq-opt input:checked + .iq-opt-face .iq-opt-note { color: rgba(255,255,255,.62); }
/* The radio itself is clipped, so without this the keyboard user has no
   indication of which option they are on. */
.iq-opt input:focus-visible + .iq-opt-face { outline: 2px solid var(--black); outline-offset: 2px; }

/* A date input on a --soft page: strip the chrome so it reads like the other
   underlined fields rather than an OS widget dropped into the layout. */
.iq-field input[type="date"],
.iq-field input[type="number"] {
  font: inherit; color: var(--black);
  background: transparent; border: 0;
  border-bottom: 1px solid rgba(8,8,8,.22);
  padding: 9px 0; width: 100%; outline: none;
}
.iq-field input[type="date"]:focus,
.iq-field input[type="number"]:focus { border-bottom-color: var(--black); }

.iq-slider { display: grid; gap: 14px; }
.iq-readout {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.iq-readout-value {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800; letter-spacing: -.02em;
  color: var(--black);
}
.iq-readout-value[data-untouched] { color: rgba(8,8,8,.26); }
.iq-readout-hint {
  font-size: 8.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.iq-range { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; cursor: pointer; }
.iq-range::-webkit-slider-runnable-track { height: 2px; background: rgba(8,8,8,.18); }
.iq-range::-moz-range-track { height: 2px; background: rgba(8,8,8,.18); }
.iq-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: -7px;
  border-radius: 50%; background: var(--black); border: none;
}
.iq-range::-moz-range-thumb {
  width: 16px; height: 16px; border: none;
  border-radius: 50%; background: var(--black);
}
.iq-range:focus-visible { outline: 2px solid var(--black); outline-offset: 6px; }
.iq-scale {
  display: flex; justify-content: space-between;
  font-size: 8.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(8,8,8,.42);
}

/* ─── CONSENT ─────────────────────────────────────────────── */
.iq-consent { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.iq-consent .iq-box { margin-top: 2px; }
.iq-consent-text { font-size: 10.5px; font-weight: 500; line-height: 1.7; color: var(--muted); }

/* ─── ACTIONS ─────────────────────────────────────────────── */
.iq-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: var(--block-inner);
  padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.iq-actions-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.btn:disabled { opacity: .34; cursor: not-allowed; }
.iq-status {
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
  text-align: right; display: none;
}
.iq-status.is-visible { display: block; }
.iq-status.is-error   { color: var(--error); }
.iq-status.is-success { color: var(--success); }

/* ─── DONE ────────────────────────────────────────────────── */
/* Inverted against the light form: once the brief is sent this is the only
   thing left to look at, and a dark block reads as a state change rather than
   just another section. --muted clears 4.5:1 on --black (4.60), the same way
   it does on every other dark page. */
.iq-done {
  background: var(--black); color: var(--white);
  text-align: center;
  margin-top: var(--block-inner);
  padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 56px);
}
.iq-done h2 {
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 800;
  letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 12px;
}
.iq-done p { font-size: 11px; color: var(--muted); line-height: 1.85; max-width: 40ch; margin: 0 auto 26px; }
/* The page-wide black focus ring is invisible on this block. */
.iq-done :focus-visible { outline-color: var(--lime); }

.iq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ─── FOOTER ──────────────────────────────────────────────── */
/* The shared footer keeps its dark treatment — it closes every other page the
   same way. Its --line hairline exists to separate black from black there; on
   --soft the colour change is already the boundary, and the white rule reads
   as a stray light seam. .iq-main is flex:1, so the footer pins to the bottom
   even when a short step leaves the page under one viewport tall. */
.iq-shell > footer { border-top: none; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .iq-intro { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  /* Stacked, the links sit directly under left-set copy, so the right anchor
     that lines them up with the nav on desktop just reads as misalignment. */
  .iq-contact { justify-items: start; }
  .copied-badge { right: auto; left: calc(100% + 10px); }
}
@media (max-width: 640px) {
  .iq-row { grid-template-columns: 1fr; }
  .iq-progress li { font-size: 0; padding-top: 7px; }   /* rule-only on phone */
  .iq-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .iq-cat-panel, .iq-cat-chev { transition-duration: .01ms !important; }
}
