/* Request a recommendation (recommendation.html) and Arrange a call (book.html), v3 drafts. Builds on om-tokens.css and
   om.css. Built on 27 Sep 2026 from the Recommendation and Book canvas as recommended: one question at a time in a
   focused frame (A), three booking steps (A), every day and time (A). The options not chosen live on the canvas
   (project/flow.css). */

:root {
  --om-i-arrow-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --om-i-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* Anything the page script hides stays hidden, whatever display a component sets */
.om-flow [hidden] { display: none !important; }

/* The focused frame: the risk strip, a slim bar with the progress, one question, and the step buttons along the foot */
.om-flow { display: flex; flex-direction: column; min-height: 100svh; background: var(--paper); }
.om-flowbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.om-flowbar__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 64px; }
.om-flowbar__brand { justify-self: start; border-radius: 2px; }
.om-flowbar__brand img { display: block; height: 14px; width: auto; }
.om-flowbar__progress { display: grid; gap: 8px; justify-items: center; }
.om-flowbar__count { margin: 0; font: 500 14px/20px var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.om-steps { display: grid; grid-template-columns: repeat(var(--om-n, 7), minmax(0, 1fr)); gap: 5px; width: min(46vw, 320px); margin: 0; padding: 0; list-style: none; }
.om-steps > li { height: 4px; border-radius: 2px; background: var(--line-strong); }
.om-steps > .is-done, .om-steps > .is-current { background: var(--slate); }
.om-flowbar__end { justify-self: end; display: flex; align-items: center; gap: 24px; }
.om-flowbar__saved { display: none; align-items: center; gap: 8px; margin: 0; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.om-flowbar__saved::before { content: ""; width: 16px; height: 16px; background: var(--slate); -webkit-mask: var(--om-i-tick) center / contain no-repeat; mask: var(--om-i-tick) center / contain no-repeat; }
.om-flowbar__close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; font: 500 15px/20px var(--font-sans); color: var(--ink); text-decoration: none; border-radius: 2px; }
.om-flowbar__close::after { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--om-i-close) center / contain no-repeat; mask: var(--om-i-close) center / contain no-repeat; }
.om-flowbar__close span { display: none; }
@media (min-width: 768px) {
  .om-flowbar__inner { min-height: 76px; }
  .om-flowbar__brand img { height: 15px; }
  .om-js .om-flowbar__saved { display: inline-flex; }
  .om-flowbar__close span { display: inline; }
}

.om-flow__main { flex: 1 0 auto; padding: 40px 0 64px; }
.om-flow__col { display: grid; gap: 28px; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
.om-flow__step { display: grid; gap: 28px; min-width: 0; }
.om-js .om-flow__step:not(.is-active) { display: none; }
.om-flow__head { display: grid; gap: 14px; justify-items: start; }
.om-flow__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 38px; letter-spacing: -0.025em; color: var(--slate-deep); text-wrap: balance; }
.om-flow__title:focus { outline: none; }
.om-flow__lead { margin: 0; max-width: 36em; font: 400 17px/27px var(--font-sans); letter-spacing: -0.01em; color: var(--ink-muted); text-wrap: pretty; }
@media (min-width: 1024px) {
  .om-flow__main { padding: 80px 0 96px; }
  .om-flow__title { font-size: 46px; line-height: 52px; }
  .om-flow__lead { font-size: 18px; line-height: 28px; }
}

/* The step buttons: Back on the left, Skip and Next on the right, held to the question's width */
.om-flowfoot { position: sticky; bottom: 0; z-index: 20; background: var(--paper); border-top: 1px solid var(--line); }
.om-flowfoot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 760px; min-height: 76px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
.om-flowfoot__gap { flex: 1; }
html:not(.om-js) .om-flowfoot [data-js] { display: none; }
.om-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; font: 500 16px/24px var(--font-sans); color: var(--ink); cursor: pointer; }
.om-back::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--om-i-arrow-r) center / contain no-repeat; mask: var(--om-i-arrow-r) center / contain no-repeat; transform: rotate(180deg); }
/* On a narrow phone, Back is the arrow alone (still named Back), so the longest submit button fits beside it */
@media (max-width: 479px) {
  .om-back { min-width: 44px; justify-content: center; }
  .om-back__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .om-flowfoot__inner { column-gap: 12px; }
}
.om-flowskip { min-height: 44px; padding: 0; border: 0; background: none; font: 500 15px/20px var(--font-sans); color: var(--ink-muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.om-flowskip:hover { color: var(--ink); }

/* Choices: real radio and checkbox inputs inside labelled rows (the How it works guide choice, made larger) */
.om-choice { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.om-choice__legend { margin: 0 0 2px; padding: 0; font: 500 15px/22px var(--font-sans); color: var(--ink); }
.om-choice__opts { display: grid; gap: 8px; }
.om-choice__opt { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 60px; box-sizing: border-box; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--paper); cursor: pointer; }
.om-choice__opt:hover { border-color: var(--ink); }
.om-choice__opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--slate); }
.om-choice__opt:has(input:checked) { border-color: var(--slate); box-shadow: inset 0 0 0 1px var(--slate); background: var(--stone); }
.om-choice__text { display: grid; gap: 2px; }
.om-choice__label { font: 500 17px/24px var(--font-sans); color: var(--ink); }
.om-choice__detail { font: 400 15px/22px var(--font-sans); color: var(--ink-muted); }
@media (min-width: 640px) { .om-choice__opts--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The first question: larger cards, the tick box in the corner */
.om-choice__opts--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.om-choice__opt--card { grid-template-columns: minmax(0, 1fr) 22px; align-items: start; align-content: space-between; min-height: 132px; padding: 20px 20px 22px; }
.om-choice__opt--card input { grid-column: 2; grid-row: 1; }
.om-choice__opt--card .om-choice__text { grid-column: 1; grid-row: 1; gap: 8px; }
.om-choice__opt--card .om-choice__label { font-family: var(--font-serif); font-weight: 400; font-size: 26px; line-height: 30px; letter-spacing: -0.015em; color: var(--slate-deep); }
@media (min-width: 1024px) { .om-choice__opt--card { min-height: 196px; } .om-choice__opt--card .om-choice__text { align-self: end; } }
/* A question in two parts (experience of each asset) */
.om-parts { display: grid; gap: 28px; }

/* Holdings: each kind of asset, and a rough size once it is ticked */
.om-holds { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--line-strong); }
.om-hold { display: grid; gap: 12px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.om-hold__head { display: flex; align-items: center; gap: 14px; min-height: 44px; font: 500 17px/24px var(--font-sans); color: var(--ink); cursor: pointer; }
.om-hold__head input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--slate); }
.om-hold__sizes { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0 0 4px 34px; border: 0; }
.om-hold__sizes legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.om-size { position: relative; display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-full); background: var(--paper); font: 500 15px/20px var(--font-sans); color: var(--ink); cursor: pointer; }
.om-size input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.om-size:hover { border-color: var(--ink); }
.om-size:has(input:checked) { border-color: var(--slate); background: var(--slate); color: var(--on-dark); }
.om-size:has(input:focus-visible) { box-shadow: var(--focus-ring); }

/* Details, and the answers to check */
.om-flow__fields { display: grid; gap: 16px; }
.om-answers { margin: 0; box-sizing: border-box; padding: 20px 20px 8px; border-radius: var(--radius-md); background: var(--stone); }
.om-answers__title { margin: 0 0 8px; font: 500 17px/24px var(--font-sans); color: var(--ink); }
.om-answers__list { margin: 0; }
.om-answers__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.om-answers__row dt { grid-column: 1; font: 500 12px/18px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.om-answers__row dd { grid-column: 1; margin: 0; font: 400 16px/24px var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.om-answers__row dd.is-empty { color: var(--ink-muted); }
.om-answers__change { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-height: 44px; padding: 0 2px; border: 0; background: none; font: 500 14px/20px var(--font-sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (min-width: 768px) {
  .om-answers { padding: 24px 28px 10px; }
  .om-answers__row { grid-template-columns: 150px minmax(0, 1fr) auto; }
  .om-answers__row dt, .om-answers__row dd { grid-column: auto; grid-row: 1; }
  .om-answers__change { grid-column: 3; grid-row: 1; }
}
.om-flow__consent { margin: 0; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.om-flow__consent a { color: var(--ink); }
.om-flow__error { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #a3392c14; font: 500 14px/20px var(--font-sans); color: var(--danger); }
.om-flow__error:empty { display: none; }

/* Messages from form-validate.js under the email and phone fields (an error, or a suggested correction) */
.field-msg { display: block; margin: 0; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.field-msg:empty { display: none; }
.field-msg--err { font-weight: 500; color: var(--danger); }
.field-msg--sug { color: var(--ink-soft); }
.field-msg-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Sent: what happens next, as a short ledger */
.om-then { display: grid; width: 100%; margin: 0; border-top: 1px solid var(--line-strong); }
.om-then__row { display: grid; gap: 4px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.om-then__row dt { font: 500 14px/22px var(--font-sans); color: var(--brass-text); }
.om-then__row dd { margin: 0; font: 400 17px/27px var(--font-sans); color: var(--ink); text-wrap: pretty; }
@media (min-width: 768px) { .om-then__row { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: baseline; } }
.om-flow__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.om-flow__small { margin: 0; font: 400 15px/23px var(--font-sans); color: var(--ink-muted); }
.om-flow__small a { color: var(--ink); }

/* Booking: the days, a week to a row, and the times */
.om-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.om-days legend, .om-times legend { margin: 0 0 10px; padding: 0; font: 500 15px/22px var(--font-sans); color: var(--ink); }
.om-day { position: relative; display: grid; justify-items: center; padding: 10px 4px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--paper); cursor: pointer; }
.om-day input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.om-day:hover { border-color: var(--ink); }
.om-day:has(input:checked) { border-color: var(--slate); box-shadow: inset 0 0 0 1px var(--slate); background: var(--stone); }
.om-day:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.om-day--off { border-color: transparent; background: none; cursor: default; opacity: .45; }
.om-day--off:hover { border-color: transparent; }
.om-day__wd { font: 500 12px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.om-day__num { font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 34px; color: var(--slate-deep); font-variant-numeric: tabular-nums; }
.om-day__mon { font: 400 14px/18px var(--font-sans); color: var(--ink-muted); }
.om-times { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.om-times__group { display: grid; gap: 10px; }
.om-times__label { margin: 0; font: 500 12px/18px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.om-times__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 640px) { .om-times__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.om-time { position: relative; display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); font: 500 15px/20px var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; cursor: pointer; }
.om-time input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.om-time:hover { border-color: var(--ink); }
.om-time:has(input:checked) { border-color: var(--slate); background: var(--slate); color: var(--on-dark); }
.om-time:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.om-flow__tz { margin: 0; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }

/* The first screen rises into place once, as the other pages' openings do */
@media (prefers-reduced-motion: no-preference) {
  .om-flow__step.is-active > *, .om-flow__sent:not([hidden]) > * { animation: om-rise .7s var(--om-ease) both; }
  .om-flow__step.is-active > :nth-child(2), .om-flow__sent:not([hidden]) > :nth-child(2) { animation-delay: .06s; }
  .om-flow__step.is-active > :nth-child(3), .om-flow__sent:not([hidden]) > :nth-child(3) { animation-delay: .12s; }
}
