/* /bank-offer page and post builder (16 Nov 2026). Loaded on that page only, after the site stylesheet, like rates.css
   and lead-form.css: unlayered, so it sits above the site's layers. Built on the site's own parts (.calc, .cf, .inp,
   .choice-group, label.choice, .stat, .cmsg, .steps) and its tokens (css guide: no raw colours; brand-consistent-forms:
   accent-color on the boxes). Phones: one column at 860px and below, as the rest of the site. */

/* Hidden parts of the form stay hidden even where a site class sets display (label.choice, .choice-group, .cf). */
.bo [hidden] { display: none; }

.bo-intro {
  & > p:not(.lead) { max-width: 62ch; margin-top: 12px; color: var(--color-text-muted); }
  & .lead { margin-bottom: 0; }
}
.steps.bo-3 { grid-template-columns: repeat(3, 1fr); }
/* Five steps, then one more: its marker is a plain "+", hidden from screen readers (the heading says "Then";
   accessible-generated-content: decorative text gets empty alt, with a fallback line for older browsers). */
.steps .bo-then::before { content: "+"; content: "+" / ""; }
/* "When they make an offer" carries on from Call 1 in the same soft band, so it doesn't repeat the top padding. */
.band.bo-joined { padding-top: 0; }
/* In-page link targets are the section headings (tabindex="-1", accessibility: skip links), so they clear the sticky
   header when jumped to (the site's own 96px, as on guide headings). */
h2[tabindex="-1"] { scroll-margin-top: 96px; }
/* The pricing box under Call 2 (built on the site's .note). */
.bo-price {
  font-size: .9375rem; max-width: none; margin-top: 12px;
  & h4 { font-size: 1.0625rem; margin-bottom: 6px; }
  & p { color: var(--color-heading); margin-top: 0; }
  & .btn { margin-top: 16px; }
  & + p { margin-top: 18px; }
}
.bo-lede { color: var(--color-text-muted); margin-top: 10px; max-width: 62ch; }
#build > .wrap > .bo-lede { margin-bottom: 26px; }

.bo-step {
  padding: 0; /* the steps are sections inside the card, not page bands (base: section padding) */
  & + .bo-step { border-top: 1px solid var(--color-line); margin-top: 28px; padding-top: 26px; }
  & h3 { font-size: 1.125rem; margin-bottom: 14px; }
  & > .bo-lede { margin: -6px 0 16px; font-size: .9375rem; }
}
/* Columns never grow to fit a long option or product name: the select shrinks and the text is cut, inside the card. */
.bo .cf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bo .choice-group:not(.bo-row) { grid-template-columns: minmax(0, 1fr); }
.bo-field .hint { margin: 0 0 6px; }
.bo-field .hint + .inp { margin-top: 0; }
.bo-field .inp + .hint { margin-top: 6px; }
.bo-features { display: grid; gap: 18px; }
.choice-group.bo-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice-group.bo-row > :is(legend, .bo-err) { grid-column: 1 / -1; }
.choice-group label.choice { font-size: .9375rem; }
.bo-repay {
  border: 0; min-width: 0; display: grid; gap: 10px;
  & legend { font-size: .875rem; font-weight: 600; color: var(--color-heading); margin-bottom: 6px; padding: 0; }
  & .hint { margin: 0; }
}
.bo-fixed { grid-template-columns: 1fr 1fr; }
.bo-when {
  border: 0; min-width: 0;
  & legend { font-size: .875rem; font-weight: 600; color: var(--color-heading); margin-bottom: 6px; padding: 0; }
}
.bo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bo-pair label { font-weight: 500; }
.bo-sub { margin: 0 0 6px 34px; }

/* An error: the icon and the words, not colour alone (required-field-feedback). */
.bo-err {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  font-size: .875rem; font-weight: 600; color: var(--color-heading);
}
.bo-err-i {
  display: inline-grid; place-items: center; inline-size: 20px; block-size: 20px; flex: none; border-radius: 50%;
  background: var(--color-heading); color: #fff; font-size: .75rem; font-weight: 700;
}

.bo-works {
  & .bo-notes { margin: 16px 0 0 20px; font-size: .875rem; color: var(--color-text-muted); }
  & .bo-notes li + li { margin-top: 6px; }
  & .fine { margin-top: 10px; }
}

.bo-post {
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9375rem; line-height: 1.6; color: var(--color-heading);
  background: var(--surface-soft); border: 1px solid var(--color-line); border-radius: 14px; padding: 16px 18px;
}
.bo-email { margin-top: 20px; }
.bo-share-line { margin-top: 22px; font-size: .9375rem; font-weight: 500; color: var(--color-heading); }
.bo-actions { margin-top: 22px; }
.bo-share-line + .bo-actions { margin-top: 12px; }
.bo-notice { margin-top: 16px; }
.bo-ref-hint { margin-top: 8px; }
/* What to do next, under the Done message (a sibling of the status region, not inside it). */
.bo-next {
  margin-top: 14px; font-size: .9375rem;
  & .cta-row { margin-top: 12px; }
}

.bo-checks {
  margin: 18px 0 0 20px; color: var(--color-text-muted);
  & li + li { margin-top: 18px; }
  & .calc-links { margin-top: 8px; }
}

.bo-final p { max-width: 62ch; margin-top: 18px; }
.bo-final .cta-row { margin-bottom: 8px; }
.bo-final p a { color: #fff; font-weight: 600; }

/* Read by screen readers, not shown (accessibility: visually hidden utility). */
.bo-vh {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 860px) {
  .steps.bo-3 { grid-template-columns: 1fr; }
  .bo .cf, .bo-fixed { grid-template-columns: minmax(0, 1fr); }
  .bo-sub { margin-left: 0; }
}
