/* Request page: page-specific rules on top of css/site.css, tokens only. One form on a white panel beside the headline (stacked on a phone), then two short ruled sections. The consent text is styled here: the checkbox stays a native input inside its label, 44 px or taller, 16 px text, links underlined. */

/* ---- the first screen: headline and line on the left, the form on the right ---- */
.rq { background: var(--surface); }
.rq__grid { display: grid; gap: var(--sp-5); padding-block: var(--sp-3) var(--sp-8); }
.rq__intro { min-width: 0; }
.rq__intro .sb-breadcrumb { margin: var(--sp-3) 0 var(--sp-4); }
.rq h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--trk-h1); max-width: 13ch; }
.rq__intro .sb-checked { margin-top: var(--sp-3); }
.rq__intro .sb-lede { margin-top: var(--sp-4); max-width: 27rem; color: var(--navy); }
/* the picture and its caption: the caption is a solid strip below the picture, never over it; the picture takes the height the strip leaves */
.rq-photo { display: none; }
.rq-photo picture { position: relative; display: block; flex: 1 1 auto; height: auto; min-height: 0; }
.rq-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.rq-photo .sb-cap { position: static; flex: none; display: flex; align-items: center; min-height: 40px; padding: 6px 12px; }
.rq-pair { display: block; }

/* the form panel: a ruled white sheet (no shadow, no radius), a sky rule on top */
.rq-panel { min-width: 0; background: var(--paper); border: 1px solid var(--line-strong); border-top: 4px solid var(--sky); padding: var(--sp-5) var(--sp-4) var(--sp-5); }
.sb-form__required { font-size: var(--fs-ui); line-height: 1.4; color: var(--text-soft); }
.rq-panel .sb-field { max-width: none; margin-top: 20px; }
.rq-panel fieldset.sb-field { margin-inline: 0; }   /* the browser gives a fieldset a 2 px side margin */
.rq-panel .sb-form__required + .sb-field { margin-top: var(--sp-4); }
.rq-panel .sb-field label, .rq-panel .sb-field legend { font-size: 1.0625rem; margin-bottom: 10px; }
.rq-panel .sb-field legend { padding: 0; }   /* the browser indents a legend by 2 px; it lines up with the labels under it */
.rq-panel .sb-field input[type="text"], .rq-panel .sb-field input[type="email"], .rq-panel .sb-field input[type="tel"] { background: var(--paper); }
.rq-panel input[name="zip"] { letter-spacing: .04em; }
.rq-panel .sb-field__hint { margin-top: 8px; font-size: var(--fs-caption); max-width: 32em; }
.rq-panel .sb-field__error { margin-top: 10px; }

/* "five short questions": a small numeral before each label, drawn as generated content with an empty alternative so a screen reader hears the label only */
.rq-panel form { counter-reset: q; }
.rq-panel [data-field] { counter-increment: q; }
.rq-panel [data-field] > label::before, .rq-panel [data-field] > legend::before {
  content: counter(q); content: counter(q) / "";
  display: inline-flex; align-items: center; justify-content: center; vertical-align: .08em;
  width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--navy); color: var(--paper);
  font-size: .875rem; font-weight: 600; line-height: 1; letter-spacing: 0;
}

/* the typed-ZIP chip: names the market once five digits are typed; empty it takes no space. It is a live region, so it is never display:none (a region created in the same frame as its text is not reliably announced, WCAG 4.1.3). Empty, it has no margin, padding or border. */
.sb-field__status { margin-top: 12px; }
.sb-field__status:not(.sb-field__status--chip) { margin: 0; padding: 0; border: 0; }
.sb-field__status--chip { display: inline-block; padding: 8px 14px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); color: var(--navy); font-size: var(--fs-ui); line-height: 1.4; }

/* own the home: two 56 px choice cards in two columns (the card shows a border and the native radio, not colour alone) */
.rq-choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.rq-panel .rq-choices .sb-choice { margin-top: 0; min-height: var(--h-field); font-size: 1.0625rem; font-weight: 600; }
.rq-panel .sb-choice input { width: 24px; height: 24px; }
.rq-panel .sb-choice:has(input[aria-invalid="true"]) { border-color: var(--error-c); }
/* #f1-owns-live is a live region and stays rendered (zero high while the note inside it is hidden): see the typed-ZIP chip above */
#f1-owns-note { margin-top: var(--sp-4); max-width: none; font-size: var(--fs-ui); }
#f1-owns-note[hidden] { display: none; }
#f1-owns-note .sb-link { display: inline-block; max-width: 100%; padding: 0; }
#f1-owns-note p + p { margin-top: var(--sp-2); }

/* the empty fee slot sits just above the consent block and prints nothing until a sentence is supplied */
.rq-panel .sb-slot--fee { margin-top: var(--sp-5); font-size: var(--fs-ui); color: var(--text-soft); max-width: 36em; }

/* registered consent: presentation only. The whole sentence is the label, so the target is the whole block. */
.rq-panel .sb-consent { margin-top: var(--sp-6); padding: var(--sp-3) var(--sp-3); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); }
.rq-panel .sb-consent:has(input[aria-invalid="true"]) { border-color: var(--error-c); box-shadow: inset 0 0 0 1px var(--error-c); }
.rq-consent-text { margin: 0; }
.sb-leadform__check-wrap { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--sp-3) 12px; align-items: start; margin: 0; cursor: pointer; font-weight: 400; }
.rq-panel .sb-consent label { margin: 0; font-size: var(--fs-ui); font-weight: 400; }
.sb-leadform__check { width: 28px; height: 28px; margin: 2px 0 0; accent-color: var(--navy); cursor: pointer; }
.sb-leadform__check-box { display: none; }
.sb-leadform__check-text { display: block; font-size: var(--fs-ui); line-height: 1.55; color: var(--navy); }
.sb-leadform__check-text a { display: inline-block; max-width: 100%; color: var(--link); }
.sb-leadform__check-text a:visited { color: var(--link-visited); }
.rq-panel .sb-consent .sb-field__error { margin-top: var(--sp-3); }

/* the one submit button: full width, the one filled button on the screen */
.sb-form__submit { margin-top: var(--sp-5); }
.sb-form__submit .sb-btn { width: 100%; }
.sb-btn[aria-busy="true"] { cursor: progress; background: var(--action-pressed); border-color: var(--action-pressed); }
.sb-form__failure { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--sp-4); font-size: var(--fs-ui); font-weight: 600; line-height: 1.45; color: var(--error-c); }
.sb-form__failure[hidden] { display: none; }
.sb-form__failure svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.sb-form__failure a { color: var(--link); }

/* error summary and the outside-markets statement */
.sb-errors[hidden] { display: none; }
.sb-errors h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
/* one row per problem: no bullet to sit against the wrong line of a wrapped link, each link a 44 px row */
.sb-errors ul { list-style: none; padding: 0; margin-top: var(--sp-2); }
.sb-errors li + li { border-top: 1px solid var(--line-strong); }
.sb-errors li a { display: block; padding-block: 10px; }
.sb-errors p { margin-bottom: var(--sp-2); }
.rq-panel .sb-errors { margin-top: var(--sp-4); }
.rq-panel .sb-outcome { max-width: none; margin-top: var(--sp-5); padding: var(--sp-5); background: var(--surface-2); border: 1px solid var(--line-strong); border-left: 4px solid var(--navy); }
.rq-panel .sb-outcome[hidden] { display: none; }
.rq-panel .sb-outcome h3 { font-size: var(--fs-h4); }
.rq-panel .sb-outcome > * + * { margin-top: var(--sp-3); }
.rq-panel .sb-outcome .sb-related { margin-top: var(--sp-3); }
.sb-request noscript .sb-note { margin-top: var(--sp-4); max-width: none; }
/* scripts off: the form cannot send, so it is not drawn; the note under it says so, and the note above it is not drawn when both are present */
html:not(.js) .sb-request__form { display: none; }
html:not(.js) .sb-request > noscript:not(:last-of-type) { display: none; }
/* scripts off: these two sentences describe the button and the statement beside the box, which are not drawn */
html:not(.js) .rq-js-only { display: none; }

/* ---- below the form: what happens, and a way to read first ---- */
.rq-next > p:first-child, .rq-read > p:first-child { font-size: var(--fs-lede); line-height: 1.45; color: var(--navy); }
.rq-read .sb-source { margin-top: var(--sp-3); }
.rq-read .sb-related { margin-top: var(--sp-5); }
.rq-read .sb-market-row { margin-top: var(--sp-5); }
.rq-read .sb-note { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line-strong); max-width: none; }
.rq-next .sb-link, .rq-read .sb-note .sb-link { display: inline-block; max-width: 100%; padding: 0; }   /* one box per link, so a wrapped link has one focus ring (COMPONENTS 6a) */
.rq-next > p .sb-link svg, .rq-read .sb-note .sb-link svg { display: none; }

@media (min-width: 48em) {
  .rq-panel .sb-consent { padding: var(--sp-4); }
  .rq-panel { padding: 40px var(--sp-7) 40px; }
  .rq-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-5); align-items: start; }
}
@media (min-width: 64em) {
  .rq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 5vw, 88px); align-items: stretch; padding-block: 24px 96px; }
  /* the picture takes whatever height the form leaves, so both columns end on one line */
  .rq__intro { display: flex; flex-direction: column; }
  .rq-photo { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 300px; max-height: 760px; margin-top: var(--sp-7); }
  .rq-panel { align-self: start; }
}

/* ---- further form adjustments ---- */
/* trust cues beside the submit button: the one plain line, then the privacy and sources links. Quiet: text-soft, no box. */
.rq-trust { margin-top: var(--sp-4); }
.rq-trust > p:first-child { max-width: 33em; font-size: var(--fs-ui); line-height: 1.5; color: var(--text-soft); }
.rq-trust .sb-p-links { margin-top: var(--sp-1); }
/* one action on this page: the header's "Check your ZIP" shortcut is not drawn (the ZIP is the first field of the form) */
.sb-header .sb-header__cta { display: none; }
@media (min-width: 40em) { .sb-header .sb-header__cta { display: none; } }
