/* Optimal Request Gateway — Request Builder V2 styles.
 * Dark configurator: near-black surface ladder + hairline borders, one orange accent
 * used scarcely (selected state, focus ring, primary CTA, progress). One radius scale.
 * Synthesised from Linear (surfaces/hairlines/accent discipline), Stripe (form clarity),
 * Apple (large selectable choices). Never cloned. */

.org-wrap, .org-wrap *, .org-wrap *::before, .org-wrap *::after { box-sizing: border-box; }
.org-wrap {
  --org-bg: #0a0a0a;
  --org-surface: #131313;
  --org-surface-2: #1b1b1b;
  --org-line: rgba(255,255,255,.12);
  --org-line-strong: rgba(255,255,255,.24);
  --org-orange: #D95A26;
  --org-orange-tint: rgba(217,90,38,.12);
  --org-cta: #C04B20;
  --org-cta-hover: #d15628;
  --org-ink: #f4f4f4;
  --org-muted: #b4b4b4;
  --org-muted-2: #8f8f8f;
  --org-radius: 14px;
  --org-radius-sm: 10px;
  --org-focus: 0 0 0 3px rgba(217,90,38,.5);
  background: var(--org-bg);
  color: var(--org-ink);
  display: block;
  color-scheme: dark; /* native controls (range, checkbox, scrollbars) render dark */
  -webkit-tap-highlight-color: rgba(217,90,38,.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.org-h1, .org-q, .org-success h2 { text-wrap: balance; }
.org-opt-card, .org-next, .org-submit, .org-back, .org-change-service, input[type="range"]#f-length { touch-action: manipulation; }
.org-inner { max-width: 1080px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 16px clamp(36px, 4vw, 52px); }
/* the `hidden` attribute must win even where author CSS sets display (steps, option cards, fields) */
.org-wrap [hidden] { display: none !important; }

/* header */
.org-head { max-width: 640px; }
.org-eyebrow { color: var(--org-orange); font-size: 12px; font-weight: 700; letter-spacing: .18em; margin: 0 0 12px; }
.org-h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 14px; }
.org-sub { color: var(--org-muted); font-size: 17px; line-height: 1.6; margin: 0; max-width: 560px; }
.org-sub strong { color: var(--org-ink); }

/* layout: steps + summary rail */
.org-layout { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 36px; align-items: start; }
@media (min-width: 900px) { .org-layout { grid-template-columns: 1fr 290px; gap: 40px; } }

/* steps */
/* a11y (WCAG 2.2 2.4.11 Focus Not Obscured): reserve clearance at the TOP of the scrollport so any
   control scrolled into view — forward OR reverse (Shift+Tab) — clears the sticky site header
   (~92px) + the WordPress admin bar. Applied on <html> so it governs scrollIntoView() AND sequential
   focus scrolling for every element, not just the step container. Replaces the per-step
   scroll-margin-top (which only helped on step transitions, leaving reverse-focused controls obscured). */
html { scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 104px); }
.org-step { animation: org-in .22s ease both; }
@keyframes org-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.org-q { font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; line-height: 1.15; margin: 0 0 8px; scroll-margin-top: 96px; }
.org-q:focus { outline: none; } /* programmatic focus for screen-reader step announcement only */
.org-q-opt { color: var(--org-muted-2); font-weight: 500; font-size: .7em; }
.org-hint { color: var(--org-muted); font-size: 15px; line-height: 1.55; margin: 0 0 20px; max-width: 560px; }
/* required-step guidance under the Continue row: concise text instruction (conveyed by words, not color alone) */
#org-hint { color: var(--org-muted); font-size: 14px; line-height: 1.5; margin: 10px 0 0; max-width: none; text-align: center; }
.org-note { color: var(--org-muted); background: var(--org-surface); border: 1px solid var(--org-line); border-left: 3px solid var(--org-orange); border-radius: var(--org-radius-sm); padding: 14px 16px; font-size: 14.5px; line-height: 1.55; margin: 20px 0 0; }
.org-note strong { color: var(--org-ink); }
.org-disclaimer { color: var(--org-muted-2); font-size: 14px; margin: 16px 0 0; }

/* choice grids */
.org-choices { display: grid; gap: 12px; margin-top: 4px; }
.org-grid-2 { grid-template-columns: 1fr; }
.org-grid-3 { grid-template-columns: 1fr; }
.org-grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 620px) {
  .org-grid-2 { grid-template-columns: 1fr 1fr; }
  .org-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .org-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* option card */
.org-opt { position: relative; display: block; cursor: pointer; }
.org-opt > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.org-opt-card {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; height: 100%;
  padding: 16px 18px;
  background: var(--org-surface); border: 1px solid var(--org-line);
  border-radius: var(--org-radius);
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.org-opt:hover .org-opt-card { background: var(--org-surface-2); border-color: var(--org-line-strong); }
.org-opt:active .org-opt-card { transform: scale(.985); }
.org-opt > input:focus-visible + .org-opt-card { box-shadow: var(--org-focus); border-color: var(--org-orange); outline: none; }
.org-opt > input:checked + .org-opt-card { border-color: var(--org-orange); background: var(--org-orange-tint); }
/* selected indicator — squared-off chip (sharper/technical) that fills orange with a white check */
.org-opt-card::after {
  content: ""; margin-left: auto; flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid var(--org-line-strong);
  transition: border-color .15s ease, background-color .15s ease;
}
.org-opt:hover .org-opt-card::after { border-color: var(--org-ink); }
.org-opt > input:checked + .org-opt-card::after {
  border-color: var(--org-orange); background-color: var(--org-orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px;
}
.org-opt-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.org-opt-title { font-size: 17px; font-weight: 600; line-height: 1.25; }
.org-opt-desc { font-size: 13.5px; color: var(--org-muted); line-height: 1.4; }
.org-opt-price { flex: 0 0 auto; margin-left: auto; font-size: 15px; font-weight: 700; color: var(--org-orange); font-variant-numeric: tabular-nums; padding-left: 10px; }
/* priced cards read as pricing tiles: title, desc, then the price on its own line, check top-right */
.org-opt:has(.org-opt-price) .org-opt-card { flex-direction: column; align-items: flex-start; text-align: left; gap: 6px; padding-right: 48px; position: relative; min-height: 104px; justify-content: flex-start; }
.org-opt:has(.org-opt-price) .org-opt-main { flex: 0 0 auto; }
.org-opt:has(.org-opt-price) .org-opt-price { margin: auto 0 0; padding: 0; font-size: 17px; }
.org-opt:has(.org-opt-price) .org-opt-card::after { position: absolute; top: 16px; right: 16px; margin: 0; }
.org-opt-icon { flex: 0 0 auto; width: 128px; height: 64px; opacity: 1; }
.org-opt-icon svg { width: 100%; height: auto; display: block; } /* boat uses .org-boat-figure; kept for safety */
/* Real vehicle PNGs (owner-approved Option 1 — subtle white rim on the dark card; no light plate, no strong glow). */
.org-opt-icon img { width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.65)) drop-shadow(0 0 3px rgba(255,255,255,.22)); }
@media (max-width: 380px) { .org-opt-icon { width: 112px; height: 56px; } }
/* icon cards center their content */
.org-opt:has(.org-opt-icon) .org-opt-card { flex-direction: column; text-align: center; min-height: 128px; justify-content: center; gap: 12px; padding: 22px 16px; }
.org-opt:has(.org-opt-icon) .org-opt-card::after { position: absolute; top: 12px; right: 12px; margin: 0; }
.org-opt:has(.org-opt-icon) .org-opt-main { align-items: center; }

/* ---- conditional add-ons (V3) ---- reuse .org-opt card; checkbox cards in a vertical list ---- */
.org-addon-group { margin-top: 18px; }
.org-addon-group[hidden] { display: none; }
.org-addon-fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.org-addon-head { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--org-muted); margin: 0 0 10px; }
.org-addons { display: grid; gap: 10px; }
.org-addon-wrap[hidden] { display: none; }
.org-addon .org-opt-card { position: relative; padding-right: 46px; }
.org-addon .org-opt-card::after { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); margin: 0; }
.org-addon-price { margin-left: auto; padding-left: 10px; flex: 0 0 auto; font-size: 15px; font-weight: 700; color: var(--org-orange); font-variant-numeric: tabular-nums; }
.org-addon-price:empty { display: none; }
.org-addon-qty { margin: 6px 0 2px; padding-left: 2px; }
.org-addon-qty[hidden] { display: none; }
.org-addon-qty label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--org-muted); }
.org-addon-qty input { width: 72px; padding: 8px 10px; border: 1px solid var(--org-line); border-radius: 8px; background: var(--org-surface); color: var(--org-ink); font: inherit; }
.org-addon-qty input:focus-visible { outline: none; border-color: var(--org-orange); box-shadow: var(--org-focus); }

/* text fields */
.org-fields { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 620px) { .org-fields { grid-template-columns: 1fr 1fr; } .org-field-wide { grid-column: 1 / -1; } }
.org-field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--org-muted); }
.org-field input, .org-field textarea, .org-file input {
  font: inherit; font-weight: 400; color: var(--org-ink);
  background: var(--org-surface); border: 1px solid var(--org-line);
  border-radius: var(--org-radius-sm); padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.org-field input::placeholder, .org-field textarea::placeholder { color: var(--org-muted-2); }
.org-field input:focus, .org-field textarea:focus { outline: none; border-color: var(--org-orange); box-shadow: var(--org-focus); }
.req { color: var(--org-orange); margin-left: 3px; }
.org-opt-note { color: var(--org-muted-2); font-weight: 400; }

/* file input */
.org-file { display: block; }
.org-file input { padding: 14px; cursor: pointer; }
.org-file input::file-selector-button { font: inherit; font-weight: 600; color: var(--org-ink); background: var(--org-surface-2); border: 1px solid var(--org-line-strong); border-radius: 8px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }

/* boat slider */
.org-boat { background: var(--org-surface); border: 1px solid var(--org-line); border-radius: var(--org-radius); padding: 28px 22px; text-align: center; }
.org-boat-figure { color: var(--org-orange); width: min(280px, 70%); margin: 0 auto 10px; transform: scaleX(var(--org-boat-scale, 1)); transform-origin: center; transition: transform .15s ease; }
.org-boat-figure svg { width: 100%; height: auto; }
.org-len-readout { font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.org-len-value { font-size: 56px; font-variant-numeric: tabular-nums; }
.org-len-unit { font-size: 24px; color: var(--org-muted); margin-left: 6px; }
input[type="range"]#f-length {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--org-orange) var(--org-fill, 22%), var(--org-line-strong) var(--org-fill, 22%));
  cursor: pointer; margin: 6px 0 4px;
}
input[type="range"]#f-length::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--org-orange); box-shadow: 0 2px 8px rgba(0,0,0,.5); cursor: grab; }
input[type="range"]#f-length::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--org-orange); box-shadow: 0 2px 8px rgba(0,0,0,.5); cursor: grab; }
input[type="range"]#f-length:focus-visible { outline: none; }
input[type="range"]#f-length:focus-visible::-webkit-slider-thumb { box-shadow: var(--org-focus); }
input[type="range"]#f-length:focus-visible::-moz-range-thumb { box-shadow: var(--org-focus); }
.org-len-exact-toggle { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; display: inline-block; margin-top: 14px; color: var(--org-muted); font-size: 13.5px; text-decoration: underline; }
.org-len-exact-toggle:hover { color: var(--org-ink); }
.org-len-exact-toggle:focus-visible { outline: none; box-shadow: var(--org-focus); border-radius: 4px; }
.org-len-exact { margin-top: 14px; text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; }
.org-len-exact[hidden] { display: none; }

/* consent + errors */
.org-consent { margin: 22px 0 0; font-size: 14px; color: var(--org-muted); }
.org-consent label { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; cursor: pointer; }
.org-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--org-orange); flex: 0 0 auto; }
.org-err { color: #ff8a6a; background: rgba(255,90,50,.08); border: 1px solid rgba(255,90,50,.3); border-radius: var(--org-radius-sm); padding: 12px 14px; margin: 16px 0 0; font-size: 14.5px; line-height: 1.5; }

/* nav */
.org-nav { margin-top: 28px; border-top: 1px solid var(--org-line); padding-top: 20px; }
.org-progress { height: 4px; background: var(--org-line); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.org-progress-fill { display: block; height: 100%; width: 14%; background: var(--org-orange); border-radius: 999px; transition: width .25s ease; }
.org-nav-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.org-progress-label { color: var(--org-muted-2); font-size: 13px; margin-right: auto; }
.org-back { order: -1; background: transparent; color: var(--org-muted); border: 1px solid var(--org-line); border-radius: var(--org-radius-sm); padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.org-back:hover { color: var(--org-ink); border-color: var(--org-line-strong); }
.org-next, .org-submit {
  background: var(--org-cta); color: #fff; border: 0; border-radius: var(--org-radius-sm);
  padding: 13px 30px; font: inherit; font-weight: 700; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.org-next:hover, .org-submit:hover { background: var(--org-cta-hover); }
.org-next:active, .org-submit:active { transform: scale(.98); }
.org-next:disabled { background: #2a2320; color: #7a6a62; cursor: not-allowed; }
.org-next:focus-visible, .org-submit:focus-visible, .org-back:focus-visible { outline: none; box-shadow: var(--org-focus); }
.org-fallbacks { color: var(--org-muted-2); font-size: 13.5px; margin: 16px 0 0; }
.org-fallbacks a { color: var(--org-muted); text-decoration: underline; }
.org-fallbacks a:hover { color: var(--org-ink); }

/* summary rail (desktop) */
.org-summary { position: sticky; top: 24px; background: var(--org-surface); border: 1px solid var(--org-line); border-radius: var(--org-radius); padding: 20px; display: none; }
@media (min-width: 900px) { .org-summary { display: block; } }
.org-summary-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--org-muted-2); text-transform: uppercase; margin: 0 0 14px; }
.org-summary-body:empty::before { content: "Make your first choice to start."; color: var(--org-muted-2); font-size: 14px; }
.org-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--org-line); font-size: 14px; }
.org-sum-k { color: var(--org-muted-2); }
.org-sum-v { color: var(--org-ink); font-weight: 600; text-align: right; }
.org-summary-total { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--org-line); }
.org-summary-total[hidden] { display: none; }
.org-summary-total-label { display: block; color: var(--org-muted-2); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.org-summary-price { color: var(--org-muted); font-weight: 500; font-size: 13.5px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.org-summary-price.is-num { color: var(--org-orange); font-weight: 800; font-size: 28px; }
@keyframes org-bump { from { opacity: .35; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.org-price-bump { animation: org-bump .18s ease; }
.org-summary-note { color: var(--org-muted-2); font-size: 12.5px; line-height: 1.5; margin: 10px 0 16px; }
.org-change-service { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--org-muted); font-size: 13.5px; text-decoration: underline; }
.org-change-service:hover { color: var(--org-ink); }
.org-change-service:focus-visible { outline: none; box-shadow: var(--org-focus); border-radius: 4px; }

/* mobile sticky estimate bar — always visible so the estimate never scrolls off-screen */
.org-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 12px 16px; background: rgba(19,19,19,.96); backdrop-filter: blur(8px); border: 1px solid var(--org-line); border-radius: var(--org-radius); position: sticky; bottom: 10px; z-index: 20; box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.org-bar-left { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.org-bar-label { color: var(--org-muted-2); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.org-bar-price { color: var(--org-orange); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.org-bar-price:not(.is-num) { color: var(--org-muted); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
.org-bar-price:empty::before { content: "Building your request…"; color: var(--org-muted-2); font-weight: 500; font-size: 14px; }
/* clearance so the sticky estimate never floats over the "Prefer to talk?" fallback links */
@media (max-width: 899px) { .org-layout { padding-bottom: 72px; } }
@media (min-width: 900px) { .org-bar { display: none; } }
/* a11y (WCAG 2.2 2.4.11 Focus Not Obscured): keyboard-focusing a choice near the page bottom must not
   land it under the sticky mobile estimate bar (~73px). Reserve clearance when the bar is present. */
@media (max-width: 899px) { html { scroll-padding-bottom: 96px; } }

/* honeypot */
.org-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* success */
.org-success { max-width: 620px; }
.org-success h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin: 8px 0 16px; }
.org-success p { color: var(--org-muted); font-size: 16px; line-height: 1.6; margin: 0 0 12px; }
.org-success strong { color: var(--org-ink); }
.org-success a { color: var(--org-orange); text-decoration: underline; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .org-step { animation: none; }
  .org-opt-card, .org-next, .org-submit, .org-progress-fill, .org-boat-figure { transition: none; }
}

/* ---- Mobile presentation pass (phones only, <=767px). Additive: no selector, ID, data-attr or DOM change. ---- */
@media (max-width: 767px) {
  .org-wrap { --org-radius: 20px; --org-radius-sm: 14px; }
  .org-inner { padding: 28px 20px 32px; }
  .org-h1 { font-size: clamp(32px, 9vw, 40px); }
  .org-q { font-size: 26px; margin-bottom: 10px; }
  .org-choices { gap: 14px; }
  .org-opt-card { padding: 18px 20px; min-height: 72px; border-width: 1.5px; }
  .org-opt > input:checked + .org-opt-card { border-width: 2px; background: rgba(217,90,38,.16); }
  .org-opt-title { font-size: 18px; }
  .org-opt-desc { font-size: 14px; }
  .org-opt:has(.org-opt-price) .org-opt-card { min-height: 116px; }
  .org-opt:has(.org-opt-icon) .org-opt-card { min-height: 140px; }
  .org-addon .org-opt-card { padding-right: 56px; }
  .org-addon-qty input { min-height: 44px; width: 88px; }
  .org-nav { margin-top: 24px; }
  .org-next, .org-submit, .org-back { min-height: 52px; font-size: 16px; }
  .org-next, .org-submit { padding: 14px 28px; }
  .org-bar { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 20px; padding: 12px 18px; }
  .org-bar-price { font-size: 22px; }
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  /* show the existing estimate breakdown (service, vehicle, package, options, starting total, caveat) under the step; the controller already fills it */
  .org-summary { display: block; position: static; margin-top: 8px; }
}
@media (max-width: 380px) {
  /* very narrow phones: add-on title/desc on one row, price on its own line so they never overlap */
  .org-addon .org-opt-card { flex-wrap: wrap; row-gap: 4px; padding-left: 16px; }
  .org-addon .org-opt-main { flex: 1 1 100%; }
  .org-addon-price { flex-basis: 100%; margin-left: 0; padding-left: 0; }
}
