/* Forms: the fields, the disclaimer, the contact page's card, and the request form (partials/lead-form.html,
   form-field.html, disclaimer-banner.html). Moved here from components.css on 2026-12-01, unchanged and in the same order,
   so the ad landing pages under /lp/ can load the same form as the contact page (with tokens.css) without the rest of
   the site's components. base.html loads it right after components.css. */

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field__label { font-weight: var(--font-weight-medium); }
.form-field__flag,
.form-field__hint { color: var(--text-muted); font-size: var(--font-size-small); font-weight: var(--font-weight-regular); }
.form-field__input {
  width: 100%;
  min-height: var(--tap-target);
  padding: var(--space-2) var(--space-3);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  border: var(--border-width) solid var(--input-border);
  border-radius: var(--radius);
}
.form-field__input--textarea { min-height: var(--textarea-min-height); resize: vertical; }
.form-field__input[aria-invalid="true"] { border: var(--border-width-strong) solid var(--color-red); }

.form-field--checkbox { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); }
.form-field__check { flex: none; width: var(--icon-size); height: var(--icon-size); margin: 0; accent-color: var(--color-red); }
.form-field--checkbox .form-field__label { flex: 1; min-height: var(--tap-target); }
.form-field--checkbox .form-field__error { flex-basis: 100%; }
/* A dropdown (2026-12-01, a landing page's county): its empty first choice reads as the fields' gray example */
.form-field__input--select { cursor: pointer; }
.form-field__input--select:has(option[value=""]:checked) { color: var(--text-muted); }
.form-field__input--select option { color: var(--text); }

.form-field__error { color: var(--color-red); font-size: var(--font-size-small); font-weight: var(--font-weight-medium); }
.form-field__error:empty { display: none; }

.form__hp { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }

/* Sending state (main.js adds .is-sending once the form is valid): the submit button turns gray with its
   "Sending…" label and a small ring beside it, and stays that way under the mouse or a press, until the next
   page loads. The ring turns only when motion is allowed; under reduced motion it stays still. */
.btn--primary.is-sending,
.btn--primary.is-sending:hover,
.btn--primary.is-sending:active {
  gap: var(--space-2);
  background: var(--button-bg-sending);
  border-color: var(--button-bg-sending);
  color: var(--button-text);
  cursor: progress;
}
.btn.is-sending::before {
  content: "";
  flex: none;
  width: var(--spinner-size);
  height: var(--spinner-size);
  border: var(--border-width-strong) solid currentColor;
  border-right-color: transparent;
  border-radius: var(--radius-pill);
}
@media (prefers-reduced-motion: no-preference) {
  .btn.is-sending::before { animation: spin var(--spinner-duration) linear infinite; }
}
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- Disclaimers ---------- */
.disclaimer {
  max-width: var(--measure);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-alt);
  font-size: var(--font-size-small);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
}

/* ---------- Contact page (pages/contact.md "contact"; DESIGN.md, "Contact page") ----------
   First screen: the service pages' dark band, holding the request form's card. Phones and tablets: the headline
   and lead, the card, then the proof lines. Desktop: the text in columns 1–7 with the proof lines under it, and
   the card in columns 8–12, their tops aligned. */
.hero--contact .hero__text { gap: var(--space-3); }
/* The line above the headline sits on the shared left edge (it follows the home hero's stagger otherwise) */
.hero--contact .hero__eyebrow { translate: none; }
.contact-hero__after { display: flex; flex-direction: column; gap: var(--space-4); }
/* One proof line per row at every width here: they stand beside the card, not under a row of buttons */
.hero--contact .service-hero__proof { flex-direction: column; }
/* "Rather talk now?" (beside a form only): the call as a quiet line, so the form stays the first screen's one
   button. The number is white and bold, gold-light under the mouse, with a full tap target. */
.contact-hero__call { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-3); color: var(--color-rose); font-size: var(--font-size-small); }
.contact-hero__call-link { display: inline-flex; align-items: center; min-height: var(--tap-target); color: var(--text-on-dark); font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .contact-hero__call-link:hover { color: var(--color-gold-light); } }
/* Desktop: tops aligned, so the headline stays at the top of the band however tall the form is */
@media (min-width: 64em) {
  .hero--contact .hero__inner { grid-template-rows: auto 1fr; row-gap: var(--space-5); align-items: start; }
  .hero--contact .hero__text { grid-column: 1 / span 7; grid-row: 1; }
  .hero--contact .contact-hero__after { grid-column: 1 / span 7; grid-row: 2; }
  .hero--contact .contact-card { grid-column: 8 / -1; grid-row: 1 / span 2; }
}

/* The form's card (#contact-form): white on the dark band, capped with the 3px gold rule as the header's dropdown
   sheets are. It does not float, so it has no shadow. Inside it the light-background pairings apply again: the
   button loses the dark band's blush edge, and focus rings are charcoal. */
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  padding: var(--contact-card-pad);
  background: var(--bg);
  color: var(--text);
  text-align: left;
  border-radius: var(--radius);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--rule-height);
  background: var(--gradient-rule);
  border-radius: var(--radius) var(--radius) 0 0;
}
/* The title row: the card's title, and the built form's "* Required" key at its right */
.contact-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--space-3); }
.contact-card__title { font-size: var(--font-size-h3); }
/* The notice above the form, compact (2026-11-24): small text behind a 2px gold rule, as the staff profile's note,
   in place of the padded box, so every field fits the first screen. The wording is unchanged. */
.contact-card .disclaimer {
  padding: 0 0 0 var(--space-3);
  background: none;
  border: 0;
  border-inline-start: var(--border-width-strong) solid var(--color-gold);
  border-radius: 0;
}
/* While the form is off: what to do instead, the 24/7 line beside a small red handset, and the call button */
.contact-card__pending { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.contact-card__phones { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--font-weight-bold); }
.contact-card__phones-icon { flex: none; width: var(--icon-size-small); height: var(--icon-size-small); color: var(--link); }
.contact-card :focus-visible,
.contact-card .btn--primary:focus-visible { outline-color: var(--focus-ring); }
.contact-card .btn--primary:not(.is-sending) { border-color: var(--button-bg); }
@media (hover: hover) { .contact-card .btn--primary:not(.is-sending):hover { border-color: var(--button-bg-hover); } }
.contact-card .btn--primary:not(.is-sending):active { border-color: var(--button-bg-hover); }

/* The letterhead pad (2026-11-24): two sheets peeking out under the card, each narrower and a shade darker than the
   one above, so the card reads as the top sheet of a pad. Drawn below the card's edge, never over it; no shadow. */
.contact-card__pad,
.contact-card__pad::after {
  position: absolute;
  top: 100%;
  left: var(--contact-pad-inset);
  right: var(--contact-pad-inset);
  height: var(--contact-pad-peek);
  background: var(--color-paper);
  border: var(--border-width) solid var(--border-color);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  pointer-events: none;
}
.contact-card__pad::after { content: ""; left: calc(var(--contact-pad-inset) - var(--border-width)); right: calc(var(--contact-pad-inset) - var(--border-width)); background: var(--color-stone); }

/* The porch at night (contact.md hero_backdrop, 2026-11-24): standing on the band's bottom-left edge, under the
   text column, its right end behind the card (the card is opaque and painted later, so it stands in front). Phones
   and tablets keep a clear strip for it under the last line of text (--contact-porch-strip). */
.hero.hero--contact { padding-bottom: calc(var(--contact-hero-end) + var(--contact-porch-strip)); } /* two classes: outranks the service hero's desktop padding */
/* The form's step 1 collapses when a choice opens step 2: no scroll anchoring here, so the browser never moves the
   page to make up for it (the page never moves on its own; DESIGN.md, "Scrolling") */
.hero--contact { overflow-anchor: none; }
/* Desktop: a little less room above the headline, so step 2, its last line included, fits a 768px-tall screen at 1024 */
@media (min-width: 64em) {
  .site-header[data-overlay] + main > .hero--contact:first-child { padding-top: calc(var(--space-5) + var(--header-overlap)); }
}
.hero--contact .hero__backdrop {
  left: 0;
  width: min(var(--contact-porch-width), var(--skyline-max));
  translate: none;
  opacity: var(--contact-porch-opacity);
}

/* ---------- The request form (partials/lead-form.html, 2026-11-24) ----------
   Labels above the fields; first and last name side by side once the form is wide enough for both at
   --lead-field-min (never more than two across), every other field the full row. Each field is a paper well with a
   small drawing at its left; on focus it turns white and a gold line draws out from its center along its foot,
   echoing the gold rules in the logo; once complete, a gold dot with a white check (the process line's done step)
   shows at its right. Errors keep the 2px red edge. Under the fields, the progress line (JavaScript only), then the
   button across the full width. */
.lead-form { gap: var(--space-3); }
.lead-form__required { color: var(--text-muted); font-size: var(--font-size-small); }
.lead-form__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(var(--lead-field-min), calc((100% - var(--space-3)) / 2)), 1fr));
  gap: var(--space-3);
}
.lead-form__fields > .form-field:not(.form-field--half) { grid-column: 1 / -1; }
.lead-form .form-field { gap: var(--space-1); }
.lead-form .form-field__label { font-size: var(--font-size-small); font-weight: var(--font-weight-bold); }
/* A consent checkbox's sentence (a landing page's) reads as text, not as a field's name */
.lead-form .form-field--checkbox .form-field__label { font-weight: var(--font-weight-regular); }
/* Required: a red asterisk after each required label and before the key above the fields (decorative: the fields
   themselves tell screen readers they are required) */
.form-field__required { margin-inline-start: var(--space-1); color: var(--link); font-weight: var(--font-weight-bold); }
.lead-form__required .form-field__required { margin-inline: 0 var(--space-1); }
/* The gray example inside an empty field: the muted text color at full strength (5.2:1 on the paper well, 5.7:1 on
   white), since some browsers fade placeholders by default */
.lead-form .form-field__input::placeholder { color: var(--text-muted); opacity: 1; }
/* While the example shows, the field needs no room for the "complete" mark, so the example fits a half-width field */
.lead-form .form-field__input:placeholder-shown { padding-inline-end: var(--space-3); }

.form-field__control { position: relative; }
.form-field--icon .form-field__input { padding-inline-start: var(--lead-field-pad-start); }
.lead-form .form-field__input {
  min-height: var(--lead-field-height);
  padding-inline-end: var(--lead-field-pad-end);
  background: var(--bg-alt);
  transition: background-color var(--btn-fade), border-color var(--btn-fade);
}
@media (hover: hover) { .lead-form .form-field__input:hover { border-color: var(--text); } }
.lead-form .form-field__input:focus { background: var(--bg); border-color: var(--text); }
.lead-form .form-field__input[aria-invalid="true"] { border-color: var(--color-red); }
/* The gold line under a focused field: inside its bottom edge, drawn out from the center */
.lead-form .form-field__control::after {
  content: "";
  position: absolute;
  left: var(--border-width);
  right: var(--border-width);
  bottom: var(--border-width);
  height: var(--border-width-strong);
  background: var(--color-gold);
  scale: 0 1;
  pointer-events: none;
}
.lead-form .form-field__control:focus-within::after { scale: 1 1; }
.lead-form .form-field__control:has([aria-invalid="true"])::after { background: var(--color-red); }
@media (prefers-reduced-motion: no-preference) {
  .lead-form .form-field__control::after { transition: scale var(--lead-field-line-draw) ease-out; }
}
.form-field__icon {
  position: absolute;
  top: 50%;
  left: var(--space-3);
  width: var(--icon-size-small);
  height: var(--icon-size-small);
  translate: 0 -50%;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--btn-fade);
}
.form-field__control:focus-within .form-field__icon { color: var(--link); }
.form-field.is-valid .form-field__icon { color: var(--color-gold); }
.form-field__control:has([aria-invalid="true"]) .form-field__icon { color: var(--color-red); }
/* Complete: the gold dot with a white check (a drawn L, turned) */
.form-field__mark {
  position: absolute;
  top: 50%;
  right: var(--space-3);
  display: grid;
  place-items: center;
  width: var(--process-dot-done);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-gold);
  translate: 0 -50%;
  opacity: 0;
  scale: 0.5;
  pointer-events: none;
}
.form-field__input--select ~ .form-field__mark { right: calc(var(--space-3) + var(--lead-select-arrow)); }
.lead-form .form-field__input--select { padding-inline-end: calc(var(--lead-field-pad-end) + var(--lead-select-arrow)); }
/* Nothing chosen yet: no mark to make room for, so the gray example fits a phone's width (as an empty text field) */
.lead-form .form-field__input--select:has(option[value=""]:checked) { padding-inline-end: calc(var(--space-3) + var(--lead-select-arrow)); }
.form-field__mark svg { width: 75%; height: 75%; fill: none; stroke: var(--color-white); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.form-field.is-valid .form-field__mark { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: no-preference) {
  .form-field__mark { transition: opacity var(--btn-fade), scale var(--lead-field-line-draw) var(--pulse-ease); }
}
/* "Did you mean …?" under the email field: a link-style button with a full tap target. Empty, it stays in the page
   for screen readers (a live region) but takes no room. */
.form-field__suggest { font-size: var(--font-size-small); }
.form-field__suggest:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-field__suggest-button {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  padding: 0;
  background: none;
  border: 0;
  color: var(--link);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: var(--underline-offset);
  cursor: pointer;
}
@media (hover: hover) { .form-field__suggest-button:hover { color: var(--link-hover); } }

/* The progress line (2026-11-24). One diamond per field on a fine stone line, filling as fields are completed, each
   completed diamond deeper than the one before it (--lead-progress-1 to -4), the gold line following them.
   Decorative (the fields' own marks carry the meaning); only with JavaScript, which fills it.
   Phones: across, under the fields, filling from the left (the card's 16px side padding is too tight for a rail).
   From tablet up: a rail down the fields' right side, centered in the free margin beside them
   (--lead-progress-gutter; the contact card's own padding), from the first field's top to the last one's foot,
   filling from the top. */
.contact-card { --lead-progress-gutter: var(--contact-card-pad-inline); }
.lead-form__fields { position: relative; }
.lead-form__progress { display: none; }
.js .lead-form__progress {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lead-form__progress::before,
.lead-form__progress::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--lead-progress-diamond) / 2);
  right: calc(var(--lead-progress-diamond) / 2);
  height: var(--border-width);
  translate: 0 -50%;
}
.lead-form__progress::before { background: var(--border-color); }
.lead-form__progress::after { background: var(--color-gold); transform-origin: left; scale: var(--lead-progress, 0) 1; }
@media (min-width: 48em) {
  .js .lead-form__progress {
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(-1 * (var(--lead-progress-gutter) + var(--lead-progress-diamond)) / 2);
    flex-direction: column;
    width: var(--lead-progress-diamond);
  }
  .lead-form__progress::before,
  .lead-form__progress::after {
    top: calc(var(--lead-progress-diamond) / 2);
    bottom: calc(var(--lead-progress-diamond) / 2);
    left: 50%;
    right: auto;
    width: var(--border-width);
    height: auto;
    translate: -50% 0;
  }
  .lead-form__progress::after { transform-origin: top; scale: 1 var(--lead-progress, 0); }
}
.lead-form__progress-step {
  position: relative;
  z-index: 1;
  width: var(--lead-progress-diamond);
  aspect-ratio: 1;
  background: var(--bg);
  border: var(--border-width) solid var(--color-gold);
  rotate: 45deg;
}
.lead-form__progress-step.is-done:nth-child(1) { --step-fill: var(--lead-progress-1); }
.lead-form__progress-step.is-done:nth-child(2) { --step-fill: var(--lead-progress-2); }
.lead-form__progress-step.is-done:nth-child(3) { --step-fill: var(--lead-progress-3); }
.lead-form__progress-step.is-done:nth-child(n + 4) { --step-fill: var(--lead-progress-4); }
.lead-form__progress-step.is-done { background: var(--step-fill); border-color: var(--step-fill); }
@media (prefers-reduced-motion: no-preference) {
  .lead-form__progress::after { transition: scale var(--lead-field-line-draw) ease-out; }
  .lead-form__progress-step { transition: background-color var(--btn-fade), border-color var(--btn-fade); }
}
/* ---------- The request form's two steps and its frame (2026-11-24; direction B with C's white fields and "sent"
   moment and A's "ready to send"; DESIGN.md, "Contact page") ---------- */
/* C: a paper card with bright white fields, and the pad's first sheet white. It floats over the dark band, with a
   fine gold-light edge and gold corner brackets (the owner's option 6, 2026-11-24; requested exceptions to "no
   shadows" and "no gradients"): the glow and shadows are a filter, so they follow the pad's sheets as well as the
   card; each bracket is two solid gold bars (one-color gradients used as backgrounds), set in from the edge. */
.contact-card--lead {
  --bar: linear-gradient(var(--color-gold), var(--color-gold));
  background:
    var(--bar) left var(--card-corner-inset) top var(--card-corner-inset) / var(--card-corner) var(--card-corner-weight) no-repeat,
    var(--bar) left var(--card-corner-inset) top var(--card-corner-inset) / var(--card-corner-weight) var(--card-corner) no-repeat,
    var(--bar) right var(--card-corner-inset) top var(--card-corner-inset) / var(--card-corner) var(--card-corner-weight) no-repeat,
    var(--bar) right var(--card-corner-inset) top var(--card-corner-inset) / var(--card-corner-weight) var(--card-corner) no-repeat,
    var(--bar) left var(--card-corner-inset) bottom var(--card-corner-inset) / var(--card-corner) var(--card-corner-weight) no-repeat,
    var(--bar) left var(--card-corner-inset) bottom var(--card-corner-inset) / var(--card-corner-weight) var(--card-corner) no-repeat,
    var(--bar) right var(--card-corner-inset) bottom var(--card-corner-inset) / var(--card-corner) var(--card-corner-weight) no-repeat,
    var(--bar) right var(--card-corner-inset) bottom var(--card-corner-inset) / var(--card-corner-weight) var(--card-corner) no-repeat,
    var(--bg-alt);
  outline: var(--border-width) solid var(--card-hairline);
  filter: var(--shadow-card-float);
}
.contact-card--lead .form-field__input,
.contact-card--lead .form-field__input:focus { background: var(--bg); }
.contact-card--lead .contact-card__pad { background: var(--bg); }
.lead-form__step { display: flex; flex-direction: column; gap: var(--space-3); }
.lead-form__step[hidden], .lead-form__sent[hidden] { display: none; }

/* Step 1: the attorney heading the card, then the question and three large choices */
.lead-form__byline { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: var(--border-width) solid var(--border-color); }
.lead-form__byline-photo {
  flex: none;
  width: var(--lead-byline-photo);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--border-width-strong) solid var(--bg);
  border-radius: var(--radius-pill);
  outline: var(--border-width) solid var(--color-gold);
}
.lead-form__byline-text { display: flex; flex-direction: column; font-size: var(--font-size-small); line-height: var(--line-height-tight); gap: var(--space-1); }
.lead-form__byline-name { font-weight: var(--font-weight-bold); }
.lead-form__choices { display: flex; flex-direction: column; gap: var(--space-2); min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.lead-form__legend { display: block; width: 100%; margin-bottom: var(--space-2); padding: 0; }
.lead-form__step-label { display: block; color: var(--text-muted); font-size: var(--font-size-small); }
.lead-form__step-label[hidden] { display: none; }
.lead-form__question { font-size: var(--font-size-h3); }
.lead-choice { position: relative; }
.lead-choice__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lead-choice__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap-target);
  padding: var(--space-2) var(--space-3);
  background: var(--bg);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--btn-fade), background-color var(--btn-fade);
}
.lead-choice__label::after { content: "→" / ""; margin-inline-start: auto; color: var(--link); font-weight: var(--font-weight-bold); }
@media (hover: hover) { .lead-choice:hover .lead-choice__label { border-color: var(--link); background: var(--button-tint); } }
.lead-choice__input:checked + .lead-choice__label { border-color: var(--link); background: var(--button-tint); }
.lead-choice__input:focus-visible + .lead-choice__label { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--border-width-strong); }
.lead-choice__emblem { --emblem-size: var(--lead-choice-emblem); --emblem-inset: var(--emblem-inset-small); --emblem-ring-gap: var(--emblem-ring-gap-small); }
.lead-choice__emblem--mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  background: var(--bg-alt);
  color: var(--color-gold);
  font: var(--font-weight-bold) var(--font-size-h3) / 1 var(--font-display);
}
.lead-choice__text { display: flex; flex-direction: column; }
.lead-choice__name { font-weight: var(--font-weight-bold); }
.lead-choice__hint { color: var(--text-muted); font-size: var(--font-size-small); }

/* An ad landing page's step 1 (site.md landing_forms, 2026-12-01; the agency's layout in the firm's look): one or more
   questions, each a bold label over a grid of tiles, two across (three for a short Yes / No / Not sure). A tile is a
   real radio button under its label: white, a 1px gray edge (the inputs' 3:1 edge), its words bold and centered; red
   edge and words on the blush tint under the mouse and once chosen, so the choice never rests on color alone (the
   chosen tile's edge doubles). Step 2 opens once every question is answered (main.js initLeadForms). */
.lead-form__step--questions { gap: var(--space-4); }
.lead-q { display: flex; flex-direction: column; gap: var(--space-2); min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.lead-q__legend { display: block; width: 100%; margin-bottom: var(--space-2); padding: 0; font-weight: var(--font-weight-bold); }
.lead-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.lead-tiles--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lead-tile { position: relative; display: flex; }
.lead-tile__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lead-tile__name {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target);
  padding: var(--space-2);
  background: var(--bg);
  border: var(--border-width) solid var(--input-border);
  border-radius: var(--radius);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  text-align: center;
  transition: border-color var(--btn-fade), background-color var(--btn-fade), color var(--btn-fade);
}
@media (hover: hover) { .lead-tile:hover .lead-tile__name { border-color: var(--link); background: var(--button-tint); color: var(--link); } }
.lead-tile__input:checked + .lead-tile__name { border-color: var(--link); background: var(--button-tint); color: var(--link); box-shadow: inset 0 0 0 var(--border-width) var(--link); }
.lead-tile__input:focus-visible + .lead-tile__name { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--border-width-strong); }

/* Step 2's first row: the chosen area (its emblem, its name, and "Change"), the step, and the "* Required" key */
.lead-form__step-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-3); }
.lead-form__chosen { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--font-weight-bold); }
.lead-form__chosen[hidden] { display: none; }
.lead-form__chosen-emblem .emblem { --emblem-size: var(--icon-size); --emblem-inset: var(--emblem-inset-small); --emblem-ring-gap: var(--emblem-ring-gap-small); }
.lead-form__chosen-emblem:empty { display: none; }
.lead-form__change {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  padding: 0;
  background: none;
  border: 0;
  color: var(--link);
  font: inherit;
  font-weight: var(--font-weight-medium);
  text-decoration: underline;
  text-underline-offset: var(--underline-offset);
  cursor: pointer;
}
@media (hover: hover) { .lead-form__change:hover { color: var(--link-hover); } }
/* The step and the "* Required" key, stacked at the row's right, so the row never wraps onto a second line */
.lead-form__step-meta { display: flex; flex-direction: column; align-items: flex-end; margin-inline-start: auto; line-height: var(--line-height-tight); text-align: right; }

/* A: "Ready to send" above the button once every field is complete, its room kept so nothing moves; the button
   then wears a fine red ring (a spread ring drawn as a border, not a shadow) */
.lead-form__ready { color: var(--color-gold); font-size: var(--font-size-small); font-weight: var(--font-weight-bold); text-align: center; }
/* Phones: it takes room only once it shows, so the button stays in the first screen; from tablet up its room is kept */
.lead-form__ready:empty { display: none; }
@media (min-width: 48em) { .lead-form__ready, .lead-form__ready:empty { display: block; min-height: var(--lead-ready-height); } }

/* Sent back by the server (api/lead.js): the line the address's fragment names, at the top of the form, behind a 2px
   red rule like the notice's gold one; hidden otherwise. Works without JavaScript (:target). */
.lead-form__alert { display: none; padding-inline-start: var(--space-3); border-inline-start: var(--border-width-strong) solid var(--link); color: var(--text); font-size: var(--font-size-small); font-weight: var(--font-weight-bold); }
.lead-form__alert:target { display: block; }
.lead-form__alert:focus { outline: none; }
.lead-form__alert-call { color: var(--link); white-space: nowrap; }
.lead-form.is-ready .lead-form__submit:not(.is-sending) { box-shadow: 0 0 0 var(--border-width-strong) var(--bg-alt), 0 0 0 calc(var(--border-width-strong) * 2) var(--lead-ready-ring); }
@media (prefers-reduced-motion: no-preference) {
  .lead-form__submit { transition: box-shadow var(--btn-fade), background-color var(--btn-fade), border-color var(--btn-fade); }
}
/* The line under the button: the secure connection, and the reply window once the firm confirms one */
.lead-form__assure { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); color: var(--text-muted); font-size: var(--font-size-small); text-align: center; }
.lead-form__assure-line { display: inline-flex; align-items: center; gap: var(--space-2); }
.lead-form__assure-icon { flex: none; }

/* C: "Request sent", shown for a moment before the thank-you page: a gold mark in a double ring, the heading, a line */
.lead-form__sent { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding-block: var(--space-6); text-align: center; }
.lead-form__sent-mark {
  display: grid;
  place-items: center;
  width: var(--lead-sent-mark);
  aspect-ratio: 1;
  background: var(--color-gold);
  border-radius: var(--radius-pill);
  outline: var(--border-width) solid var(--color-gold);
  outline-offset: var(--space-1);
}
.lead-form__sent-mark svg { width: 55%; height: 55%; fill: none; stroke: var(--color-white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lead-form__sent-heading { font: var(--font-weight-bold) var(--font-size-h2) / var(--line-height-tight) var(--font-display); }
.lead-form__sent-text { color: var(--text-muted); }
@media (prefers-reduced-motion: no-preference) {
  .lead-form__sent:not([hidden]) .lead-form__sent-mark { animation: lead-sent-in var(--lead-field-line-draw) var(--pulse-ease) both; }
}
@keyframes lead-sent-in { from { scale: 0.6; opacity: 0; } }

/* The button: the full width, with an arrow that steps forward under the mouse (none while sending) */
.lead-form__submit { width: 100%; min-height: var(--lead-field-height); justify-content: center; }
.lead-form__submit:not(.is-sending)::after { content: "→" / ""; margin-inline-start: var(--space-2); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lead-form__submit::after { transition: translate var(--btn-fade); }
  .lead-form__submit:hover::after { translate: var(--space-1) 0; }
}

