/* The onboarding form.
 *
 * A plain form on a white page. Colours, type and button shapes come from the
 * design system (DESIGN-SYSTEM.md), but not its grey containers: a form is read
 * top to bottom, and frames around frames only give the eye more lines to cross.
 * See "Forms" in that file. So here:
 *
 *   sections        a heading and its fields, split by one hairline. No cards
 *   choices         ordinary radios and checkboxes. No boxes around them
 *   step counter    numbered badges joined by a line, with no frame around them
 *   fields          one border, one single-line focus state, 6px corners
 *   the one action  the fat mint button, with the shared --btn-* shape tokens
 *
 * Red appears only on an answer that needs another look — the same
 * var(--negative-bg) / var(--negative) pair the negative fact badge uses.
 */

/* ---------- hero ---------- */

/* A clone of the homepage hero (.hero in styles.css): same band and headline.
   Only the artwork differs — a landscape photo, so it is set shorter than the
   homepage's portrait one. */
.ob-hero .hero-image { height: clamp(220px, 25vw, 330px); }

@media (max-width: 720px) {
  .ob-hero .hero-art { margin-right: 0; }
  .ob-hero .hero-image { height: 170px; }
}

html:has(.ob-hero) { scroll-behavior: smooth; }

/* A claim link goes straight to the form: its reader has already been asked, and
   the hero would fill the first screen of a phone. is-claim is set in the page's
   head, so the hero is never drawn and then removed. */
.is-claim .ob-hero { display: none; }

/* The header's button is for finding the form, and here the form is the page.
   What someone part way through it wants is help. */
.is-claim .btn-list { display: none; }
.is-claim .btn-whatsapp { display: inline-flex; margin-left: auto; }
.is-claim .btn-whatsapp span { display: inline; }

/* One centred column: a form read top to bottom, one answer to a row. */
.ob {
  max-width: 640px;

  /* A field's edge is all that says "type here" now nothing frames it, so it is
     a step darker than the hairline. Kept quiet on purpose: at 1.5:1 it is under
     the 3:1 WCAG asks of a control's boundary, and the labels, hover and focus
     states carry the rest. --ink-3 passes, if that is ever wanted over subtlety. */
  --ob-field-line: var(--line-strong);
}

/* The form's own heading. The page's h1 is the hero above; this carries the
   h1's scale from the profile pages. A claim link has no hero and opens on the
   notice, so there it is only for screen readers: still the page's heading, but
   not a line of company name above the note about the company. */
.ob-title {
  display: block;
  margin: 0;
  scroll-margin-top: 24px;
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
}

.is-claim .ob-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.is-claim .ob-claim { margin-top: 0; }

/* ---------- the form ---------- */

.ob-form { margin-top: 28px; display: grid; gap: 16px; }
.ob-form[hidden] { display: none; }

/* ---------- progress ---------- */

/* Clear of the sticky site header, which would otherwise cover whatever a step
   change or an error scrolls to. */
.ob-progress,
.ob-summary { scroll-margin-top: 100px; }

.ob-progress { min-width: 0; }

/* The step counter: a numbered badge per step, joined by a line. Where the form
   has got to is the first thing it says, so the badges are solid, not faint. */
.ob-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ob-steps li {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ob-steps li:last-child { flex: none; }

.ob-steps li:not(:last-child)::after {
  content: "";
  flex: 1 1 12px;
  min-width: 12px;
  height: 1px;
  background: var(--table-line);
}

.ob-steps li:has(.is-done)::after { background: var(--mint); }

.ob-step-btn {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-snug);
  color: var(--ink-2);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .15s ease;
}

.ob-step-btn:hover:not(:disabled) { color: var(--ink); }
.ob-step-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.ob-step-btn:disabled { color: var(--ink-3); cursor: default; }
.ob-step-btn[aria-current="step"] { color: var(--ink); font-weight: 700; }

.ob-step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color .15s ease, color .15s ease;
}

.ob-step-btn[aria-current="step"] .ob-step-num { background: var(--mint); color: var(--ink); }

/* A finished step swaps its number for a tick. */
.ob-step-btn.is-done .ob-step-num {
  color: transparent;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1919' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 9 17 20 6'/%3E%3C/svg%3E") no-repeat center / 13px 13px;
}

/* ---------- steps ---------- */

.ob-step { display: grid; gap: 32px; min-width: 0; margin-top: 12px; }
.ob-step[hidden] { display: none; }

.ob-step-count {
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.ob-step-title { margin: 4px 0 0; font-size: var(--text-xl); }
.ob-step-title:focus { outline: none; }

.ob-step-note {
  margin: 6px 0 0;
  max-width: 72ch;
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--ink-2);
}


/* ---------- sections ---------- */

/* A heading and its fields, and one hairline to the next. */
.ob-card {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ob-card + .ob-card {
  padding-top: 32px;
  border-top: 1px solid var(--table-line);
}

/* A legend ignores most layout, so it floats to take its own line and let the
   note and the grid follow it as ordinary blocks. */
.ob-card > legend {
  float: left;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
}

.ob-card > legend + * { clear: both; }

.ob-card-note {
  margin: 4px 0 20px;
  max-width: 72ch;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--ink-2);
}

.ob-card-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.ob-card-note a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }

/* A card with no note: the legend needs its own gap above the first row. Padding
   rather than margin, because a margin on a cleared element is swallowed. */
.ob-card > legend + .ob-grid,
.ob-card > legend + .ob-consents { padding-top: 20px; }

.ob-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

/* ---------- fields ---------- */

/* Two columns so "Pre-filled" can sit beside the label. Everything else takes
   the full row, top to bottom: label, hint, control, message. */
.ob-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  align-content: end;
  min-width: 0;
}

.ob-field > * { grid-column: 1 / -1; min-width: 0; }
.ob-field[hidden] { display: none; }

.ob-label {
  font-size: var(--text-md);
  font-weight: 500;
  line-height: var(--leading-snug);
  color: var(--ink);
}

.ob-field > .ob-label:has(+ .ob-prefilled) { grid-column: 1; }

.ob-label em {
  font-style: normal;
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.ob-hint {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--ink-3);
}

/* What only applies once an earlier answer says so. */
.ob-reveal { display: grid; gap: 24px; min-width: 0; }
.ob-reveal[hidden] { display: none; }

.ob-group { display: grid; gap: 10px; min-width: 0; }

/* The one place two columns help: six short numbers of the same kind. */
.ob-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ob-short { max-width: 200px; }

.ob-input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 14px;
  font: inherit;
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--ob-field-line);
  border-radius: var(--r-sm);
  transition: border-color .15s ease;
}

.ob-input::placeholder { color: var(--ink-3); }
.ob-input:hover { border-color: var(--ink-3); }

/* One line, thickened: not the site's gap-and-ring, which draws a second border
   around the first. */
.ob-input:focus {
  outline: 2px solid var(--brand);
  outline-offset: -1px;
  border-color: var(--brand);
}

.ob-num { font-variant-numeric: tabular-nums; }

.ob-textarea { min-height: 92px; resize: vertical; line-height: var(--leading-normal); }

/* ---------- choices ---------- */

/* Ordinary radios and checkboxes: the control itself says how it works. Radios
   run on a line and wrap; checkboxes are a list, so they line up in columns. */
.ob-choices { display: flex; flex-wrap: wrap; gap: 0 24px; }

.ob-choices:has(input[type="checkbox"]) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0 16px;
}

.ob-choices:has(input[name="equipment"]) { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.ob-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--ink);
  cursor: pointer;
}

.ob-option input,
.ob-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--mint);
  cursor: pointer;
}

.ob-option input:focus-visible,
.ob-consent input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- accreditation switches ---------- */

/* A switch where the answer is "I hold this". It is the one control here that
   is a pill, as the design system allows for toggles; on is the black of every
   action, and the knob's shadow is the one real shadow in the system. The number
   it asks for sits straight under it. */
.ob-accred { display: grid; gap: 12px; min-width: 0; }

.ob-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--ink);
  cursor: pointer;
}

.ob-switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  margin: 0;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #ebedf0;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.ob-switch input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .25);
  transition: transform .15s ease;
}

.ob-switch input:checked { background: var(--mint); border-color: var(--mint); }
.ob-switch input:checked::before { transform: translateX(16px); background: var(--ink); }
.ob-switch input:hover:not(:checked) { border-color: var(--ink-3); }
.ob-switch input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- the logo we already show ---------- */

/* Their logo as the directory prints it, on white in a hairline box so a
   transparent or small mark still reads as a logo. */
.ob-logo-img {
  display: block;
  width: 72px;
  height: 72px;
  padding: 10px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--table-line);
  border-radius: 8px;
}

/* ---------- uploads ---------- */

/* A button and the file's name, as a browser would draw it. The real input lies
   over the whole row, invisible, so a tap or a dropped file reaches it directly. */
.ob-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.ob-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.ob-upload-cta {
  flex: none;
  padding: 10px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ob-field-line);
  border-radius: var(--r-sm);
  transition: background-color .15s ease;
}

.ob-upload:hover .ob-upload-cta { background: var(--bg-soft); }
.ob-upload:has(input:focus-visible) .ob-upload-cta { outline: 2px solid var(--brand); outline-offset: -1px; }

.ob-upload-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--ink-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob-upload.has-file .ob-upload-name { color: var(--ink); }

/* Above the input, or the input would take its clicks. */
.ob-upload-remove { position: relative; z-index: 1; flex: none; min-height: 44px; }
.ob-upload-remove[hidden] { display: none; }

/* ---------- declarations ---------- */

.ob-consents { display: grid; gap: 14px; }
.ob-consents .ob-field { gap: 4px; }
.ob-consents .ob-error { padding-left: 28px; }

.ob-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--ink);
  cursor: pointer;
}

.ob-consent input { margin-top: 1px; }
.ob-consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.ob-consent a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }

.ob-sign { margin-top: 24px; max-width: 380px; }

/* ---------- errors ---------- */

/* Beside the label of a control a claim link filled in, until the company edits
   it. Plain words: there can be a dozen on a step, and they should recede. */
.ob-field > .ob-prefilled {
  grid-column: 2;
  align-self: start;
  color: var(--ink-3);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

.ob-error { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--negative); }
.ob-error:empty { display: none; }

.ob-field.is-invalid > .ob-input,
.ob-field.is-invalid > .ob-upload .ob-upload-cta { border-color: var(--negative); }
.ob-field.is-invalid:has(> .ob-choices) > .ob-label { color: var(--negative); }

/* Everything this step still needs, each a link to its field. */
.ob-summary {
  padding: 14px 16px;
  background: var(--negative-bg);
  border-radius: var(--r-sm);
  color: var(--negative);
}

.ob-summary[hidden] { display: none; }
.ob-summary:focus { outline: none; }

.ob-summary-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0;
  color: inherit;
}

.ob-summary ul { margin: 6px 0 0; padding-left: 18px; font-size: var(--text-sm); line-height: var(--leading-normal); }
.ob-summary a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ob-summary a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: var(--r-xs); }

/* ---------- submit ---------- */

.ob-next {
  margin: 0;
  max-width: 72ch;
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--ink-2);
}

#ob-status:empty { display: none; }

.ob-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

/* The mint primary action, with the shared --btn-* shape tokens. */
.ob-submit {
  display: inline-block;
  padding: var(--btn-pad);
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 24px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--btn-ease);
}

.ob-submit:hover:not(:disabled) { background: var(--mint-hover); }
.ob-submit:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ob-submit:disabled { opacity: .55; cursor: default; }
.ob-submit[hidden] { display: none; }

.ob-submit.is-busy::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  border: 2px solid var(--mint-hover);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: ob-spin .7s linear infinite;
}

@keyframes ob-spin { to { transform: rotate(360deg); } }

/* A utility control, not a call to action: white and slim beside the fat black
   button — see "Utility — the white chip control" in DESIGN-SYSTEM.md. */
.ob-back {
  min-height: 46px;
  padding: 13px 14px;
  border: 1px solid var(--ob-field-line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}

.ob-back:hover:not(:disabled) { background: var(--bg-soft); color: var(--ink); }
.ob-back:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ob-back:disabled { opacity: .55; cursor: default; }
.ob-back[hidden] { display: none; }

.ob-draft-status { flex: 1 1 200px; font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--ink-3); }

/* ---------- check your answers ---------- */

/* Closed, it is one line on the way to signing. */
.ob-review summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-snug);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.ob-review summary::-webkit-details-marker { display: none; }
.ob-review summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.ob-review summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  transition: transform .15s ease;
}

.ob-review[open] summary::after { transform: rotate(180deg); }

.ob-review-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--table-line); }

.ob-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ob-review-head h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-snug);
  text-transform: uppercase;
  color: var(--ink-3);
}

.ob-review dl { display: grid; gap: 6px; margin: 0; }
.ob-review dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; }
.ob-review dt { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--ink-2); }
.ob-review dd { margin: 0; font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--ink); overflow-wrap: anywhere; }

/* A saved draft, offered back. */
.ob-restore { margin-top: 16px; }
.ob-restore[hidden] { display: none; }

.ob-restore-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--ink-2);
}

/* A note, in the flat form's one tint, with the one thing to do here. */
.ob-prepare {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
}

.ob-prepare[hidden] { display: none; }

.ob-prepare-title {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--ink);
}

.ob-prepare-text {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--ink-2);
}

.ob-prepare-text.is-bad { color: var(--negative); }

.ob-prepare-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 12px;
}

.ob-link[hidden] { display: none; }

.ob-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ob-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }

.ob-note {
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--ink-2);
}

.ob-note-bad { background: var(--negative-bg); color: var(--negative); }

/* ---------- received ---------- */

.ob-done { margin-top: 28px; }

.ob-done:focus { outline: none; }
.ob-done h2 { margin: 0 0 8px; font-size: var(--text-lg); }
.ob-done p { margin: 0 0 16px; max-width: 72ch; font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--ink-2); }
.ob-done strong { color: var(--ink); font-weight: 500; }
.ob-done a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.ob-receipt { margin: 0 0 16px; border-top: 1px solid var(--table-line); }

.ob-receipt div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--table-line);
}

.ob-receipt dt {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.ob-receipt dd { margin: 0; font-size: var(--text-md); color: var(--ink); font-variant-numeric: tabular-nums; }
.ob-digest { font-size: var(--text-xs) !important; color: var(--ink-2) !important; word-break: break-all; }
.ob-done .ob-done-note { margin-bottom: 0; font-size: var(--text-sm); line-height: var(--leading-normal); }
.ob-done .ob-done-note + .ob-done-note { margin-top: 12px; }

/* ---------- hidden from people ---------- */

.ob-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- claim: the listing the form starts from ---------- */

/* What to do with the answers we filled in, before the first of them. One flat
   tint, so it reads as a note about the form and not as part of it. */
.ob-claim {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
}

.ob-claim[hidden],
.ob-claim.is-past { display: none; }

.ob-claim-name {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.ob-claim-note {
  margin: 2px 0 0;
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--ink-2);
}

.ob-claim-note:empty { display: none; }

/* ---------- narrow ---------- */

@media (max-width: 720px) {
  .ob-form { margin-top: 24px; }
  .ob-review dl div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ob-receipt div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  /* A comfortable thumb's height, now no box marks out the option. */
  .ob-option { padding: 12px 0; }
  .ob-submit { width: 100%; text-align: center; }
  .ob-back { flex: none; }

  /* 16px or iOS zooms the whole page in when a field takes focus. */
  .ob-input { font-size: var(--text-base); }

  /* Only the current step keeps its name; the rest are numbered badges. */
  .ob-steps li:not(.is-current) .ob-step-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.ob-hero) { scroll-behavior: auto; }
  .ob-input,
  .ob-step-btn,
  .ob-step-num,
  .ob-upload-cta,
  .ob-switch input,
  .ob-switch input::before,
  .ob-review summary::after { transition: none; }
  .ob-submit.is-busy::before { animation: none; }
}

/* The individual checks stay scannable on desktop and mobile. */
.ob-checklist { display: grid; gap: 10px; }
.ob-checklist-section { border: 1px solid var(--line, #dce4df); border-radius: 10px; padding: 0 16px; }
.ob-checklist-section summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.ob-checklist-count { font-size: 12px; font-weight: 400; color: #64746c; white-space: nowrap; margin-left: 6px; }
.ob-checklist-section .ob-choices:has(input[type="checkbox"]) { padding-bottom: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ob-checklist-section .ob-option { white-space: normal; }
