/* Duma Creative — booking page
   Brings the booking flow into the homepage's "Build your price" language:
   hairline option cards that turn cobalt, pill tracks, a cobalt price card with big numbers.
   Pure presentation: nothing here changes what book.js reads or writes. */

.book-section { --hair: rgba(14, 17, 22, .13); --hair-strong: rgba(14, 17, 22, .42); --ease-out: cubic-bezier(.2, .8, .2, 1); }

/* ---------- Progress: five hairline segments, the current one fills cobalt ---------- */
.book-section .stepper {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px);
  width: 100%; max-width: none; margin: 0 0 clamp(36px, 4.4vw, 64px); padding: 0;
  background: none; border-radius: 0; overflow: visible;
}
.book-section .stepper li { min-width: 0; }
.book-section .stepper button {
  position: relative; box-sizing: border-box; display: flex; align-items: baseline; gap: 10px; width: 100%;
  padding: 18px 0 4px; border-radius: 0; background: none;
  font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.book-section .stepper button::before,
.book-section .stepper button::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 0;
}
.book-section .stepper button::before { background: var(--hair); }
.book-section .stepper button::after { background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out), background-color .3s ease; }
.book-section .stepper button span {
  width: auto; height: auto; display: inline; border-radius: 0; background: none;
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: -0.015em; color: inherit; font-variant-numeric: tabular-nums;
}
.book-section .stepper button:disabled { opacity: .5; }
.book-section .stepper li.done button { color: var(--ink); }
.book-section .stepper li.done button span { background: none; color: var(--ink); }
.book-section .stepper li.done button::after { transform: scaleX(1); }
.book-section .stepper li.on button { background: none; color: var(--ink); }
.book-section .stepper li.on button span { background: none; color: var(--cobalt); }
.book-section .stepper li.on button::after { transform: scaleX(1); background: var(--cobalt); }
.book-section .stepper button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: 0; }
@media (hover: hover) { .book-section .stepper li.done button:hover { color: var(--cobalt); } }
@media (max-width: 640px) {
  .book-section .stepper { gap: 6px; border-radius: 0; }
  .book-section .stepper button,
  .book-section .stepper li.on button { flex-direction: column; gap: 2px; padding: 14px 0 0; font-size: 12.5px; }
  .book-section .stepper button span { font-size: 12px; }
}

/* ---------- Layout: no white box; the form sits on the ground, the price card beside it ---------- */
.book-section .book-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: clamp(40px, 6vw, 112px); }
@media (max-width: 1000px) { .book-section .book-layout { grid-template-columns: minmax(0, 1fr); gap: 56px; } }
.book-section .book-main { background: none; border-radius: 0; padding: 0; gap: 48px; }
.book-section .bstep { gap: 28px; }
.book-section .bstep[data-step="4"] { gap: 20px; }

.bstep-head { gap: 16px; margin-bottom: 8px; }
.bstep-head .eyebrow { display: none; } /* the progress bar already says where you are; the legend names the step for screen readers */
.bstep-head .display-m { font-size: clamp(36px, 4.4vw, 68px); line-height: .98; letter-spacing: -0.02em; }
.bstep-head .small { font-size: clamp(16px, 1.25vw, 18px); color: var(--body); max-width: 36em; line-height: 1.55; }
.book-section .bsub { margin-top: 28px; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -0.02em; line-height: 1.2; }
.book-section .bstep > .small { margin-top: -12px; font-size: 15px; }
.book-section .bstep > .bsub + .small { margin-top: -16px; }

/* ---------- Option cards: hairline, cobalt when chosen ---------- */
.book-section .opt-grid { gap: 12px; }
.book-section .opt-body {
  gap: 0; padding: 24px 24px 26px; border: 0; border-radius: 0; background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--hair);
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
@media (hover: hover) { .book-section .opt:hover .opt-body { border-color: transparent; box-shadow: inset 0 0 0 1.5px var(--hair-strong); } }
.book-section .opt input:checked + .opt-body { background: var(--cobalt); color: #fff; box-shadow: none; }
.book-section .opt input:focus-visible + .opt-body { outline: 2px solid var(--cobalt); outline-offset: 3px; }
/* Name, scope, then the big price, then the detail */
.book-section .opt-top { display: contents; }
.book-section .opt-top b { order: 1; padding-right: 34px; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; }
.book-section .opt-meta { order: 2; margin-top: 6px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.book-section .opt-top em { order: 3; margin-top: 22px; font-size: clamp(28px, 2.4vw, 34px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.book-section .opt-flag { order: 4; margin-top: 8px; padding: 0; border-radius: 0; background: none; color: var(--cobalt); font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.book-section .opt-list { order: 5; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 14.5px; color: var(--body); line-height: 1.5; }
.book-section .opt-note { order: 6; margin-top: 12px; }
.book-section .opt-body::after {
  top: 22px; right: 22px; width: 22px; height: 22px; border: 1.5px solid var(--hair-strong); background: transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.book-section .opt input:checked + .opt-body::after { border-color: #fff; background: #fff; box-shadow: var(--shadow); }
.book-section .opt input:checked + .opt-body .opt-meta { color: rgba(255, 255, 255, .82); }
.book-section .opt input:checked + .opt-body .opt-flag { color: #fff; }
.book-section .opt input:checked + .opt-body .opt-list { color: rgba(255, 255, 255, .92); border-top-color: rgba(255, 255, 255, .28); }
.book-section .opt.disabled .opt-body { opacity: .45; border-style: none; }
@media (hover: hover) { .book-section .opt.disabled:hover .opt-body { box-shadow: inset 0 0 0 1.5px var(--hair); } }

/* The form column is narrow beside the price summary, so option cards are always full-width
   rows: name left, price right, details underneath. */
.book-section .opt-grid.three, .book-section .opt-grid.four { grid-template-columns: minmax(0, 1fr); }
.book-section .opt-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; padding: 20px 22px 22px; border-radius: 0; }
.book-section .opt-body::after { display: none; }
.book-section .opt-top b { grid-column: 1; grid-row: 1; padding-right: 0; font-size: 19px; }
.book-section .opt-top em { grid-column: 2; grid-row: 1; margin: 0; font-size: 24px; text-align: right; }
.book-section .opt-meta, .book-section .opt-flag, .book-section .opt-list, .book-section .opt-note { grid-column: 1 / -1; }
.book-section .opt-list { margin-top: 12px; padding-top: 12px; }

/* ---------- Segmented pill tracks ---------- */
.book-section .seg {
  display: inline-grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  align-self: flex-start; gap: 0; padding: 5px; border-radius: 0;
  background: rgba(14, 17, 22, .05); box-shadow: inset 0 0 0 1px var(--hair);
}
.book-section .seg span { align-items: center; justify-content: center; gap: 1px; height: 100%; padding: 12px 28px; border-radius: 0; text-align: center; transition: background-color .25s ease, color .25s ease; }
.book-section .seg b { font-size: 15px; white-space: nowrap; }
.book-section .seg small { font-size: 12.5px; white-space: nowrap; }
.book-section .seg input:checked + span { background: var(--ink); color: var(--ground); box-shadow: none; }
.book-section .seg input:checked + span small { color: var(--on-ink-2); }
.book-section .seg-sm { max-width: none; margin-bottom: 20px; }
.book-section .seg-sm span { flex-direction: row; align-items: baseline; gap: 8px; padding: 12px 24px; }
@media (max-width: 560px) {
  .book-section .seg { display: grid; width: 100%; }
  .book-section .seg span { padding: 11px 10px; }
  .book-section .seg small { white-space: normal; line-height: 1.3; }
  .book-section .seg-sm span { flex-wrap: wrap; justify-content: center; column-gap: 6px; row-gap: 0; }
}

/* ---------- Launch Pack: a hairline card that turns cobalt when it's on ---------- */
.book-section .launch-card {
  gap: 8px 20px; margin: 0; padding: 22px 24px; border: 0; border-radius: 0;
  box-shadow: inset 0 0 0 1.5px var(--hair); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
@media (hover: hover) { .book-section .launch-card:hover { box-shadow: inset 0 0 0 1.5px var(--hair-strong); } }
.book-section .launch-card .launch-top b { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.book-section .launch-card .launch-top em { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.book-section .launch-card .opt-flag { order: 0; margin: 0; }
.book-section .launch-card .small { font-size: 14.5px; color: var(--body); max-width: 40em; }
.book-section .launch-card:has(input:checked) { background: var(--cobalt); color: #fff; box-shadow: none; }
.book-section .launch-card:has(input:checked) .small,
.book-section .launch-card:has(input:checked) .opt-flag { color: rgba(255, 255, 255, .9); }
.book-section .launch-card:has(input:checked) .switch input:checked + i { background: #fff; }
.book-section .launch-card:has(input:checked) .switch input:checked + i::after { background: var(--cobalt); box-shadow: none; }
.book-section .launch-card:has(input:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.book-section .launch-card:has(input:focus-visible) .switch i { outline: 0; }

/* ---------- Extras: quiet hairline rows ---------- */
.book-section .extra-rows { border-top: 1px solid var(--hair); }
.book-section .xrow { gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.book-section .xrow b { font-size: 16.5px; }
.book-section .xrow .small { font-size: 14px; line-height: 1.45; }
.book-section .xrow.disabled { opacity: .45; }
.book-section .qty { padding: 4px; background: rgba(14, 17, 22, .05); box-shadow: inset 0 0 0 1px var(--hair); }
.book-section .qty button { width: 40px; height: 40px; transition: background-color .2s ease, color .2s ease; }
@media (hover: hover) { .book-section .qty button:hover:not(:disabled) { background: var(--ink); color: var(--ground); } }
.book-section .qty input { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.book-section .switch i { background: rgba(14, 17, 22, .16); }
.book-section .switch input:checked + i { background: var(--cobalt); }
.book-section .switch i::after { box-shadow: var(--shadow); }
@media (max-width: 420px) { .book-section .xrow { gap: 14px; } .book-section .qty button { width: 36px; height: 36px; } .book-section .qty input { width: 28px; } }

/* Pay monthly: what the plan includes */
.book-section .included-card { gap: 18px; padding: clamp(26px, 3.4vw, 40px); border-radius: 0; color: var(--on-ink); }
.book-section .included-card .eyebrow { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--cobalt-light); }
.book-section .included-card h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -0.02em; color: #fff; max-width: 18em; }
.book-section .included-card .spot-list { color: var(--on-ink-2); font-size: 15.5px; }

/* ---------- Details ---------- */
.book-section .field label { font-size: 15px; }
.book-section .field input, .book-section .field textarea, .book-section .field select {
  min-height: 56px; border-radius: 0; background-color: #fff; border: 1.5px solid transparent;
  box-shadow: inset 0 0 0 1px var(--hair); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
@media (hover: hover) { .book-section .field input:hover, .book-section .field textarea:hover, .book-section .field select:hover { box-shadow: inset 0 0 0 1px var(--hair-strong); } }
.book-section .field input:focus, .book-section .field textarea:focus, .book-section .field select:focus { border-color: var(--cobalt); box-shadow: none; background-color: #fff; }
.book-section .field .invalid, .book-section .field input.invalid, .book-section .field textarea.invalid { border-color: var(--warn); background-color: #FBEDE8; box-shadow: none; }
.book-section .field-row { gap: 16px 20px; }
.book-section .prefill-note { margin: 0; padding: 18px 22px; border-radius: 0; font-size: 15px; }

.book-section .form-error { padding: 14px 18px; border-radius: 0; background: #FBEDE8; font-size: 15px; }
.book-section .form-error[hidden] { display: none; }

/* ---------- Bottom navigation ---------- */
.book-section .bnav { gap: 12px; padding-top: 28px; border-top: 1px solid var(--hair); }
.book-section .bnav .btn { min-height: 58px; padding: 16px 30px; font-size: 16.5px; }
@media (max-width: 560px) {
  .book-section .bnav [data-next], .book-section .bnav [data-submit] { flex: 1; }
  .book-section .bnav .btn { padding-inline: 22px; }
}

/* ---------- Your price: the cobalt card from the homepage builder ---------- */
.book-section .book-summary { top: 100px; }
.book-section .sum-card {
  gap: 26px; padding: clamp(28px, 3vw, 40px); border-radius: 0; background: var(--cobalt); color: #fff; overflow: visible;
}
.book-section .sum-card::before { display: none; }
.book-section .sum-card .eyebrow { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .88); }
.book-section .sum-total { gap: 10px; margin-top: -14px; }
.book-section .sum-total b { font-size: clamp(48px, 4.6vw, 80px); line-height: .95; letter-spacing: -0.02em; }
.book-section .sum-total span { font-size: 15px; color: rgba(255, 255, 255, .9); }
.book-section .sum-lines { border-bottom: 1px solid rgba(255, 255, 255, .28); }
.book-section .sum-lines:empty { border-bottom: 0; }
.book-section .sum-lines li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .28); font-size: 15px; }
.book-section .sum-lines li span { color: #fff; }
.book-section .sum-lines li small { margin-top: 1px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.book-section .sum-lines li.empty span { color: rgba(255, 255, 255, .85); }
.book-section .sum-block { gap: 10px; }
.book-section .sum-foot { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.book-section .sum-card :focus-visible { outline-color: #fff; }

/* Phones: a compact cobalt bar while the form is in view */
.mbar { padding: 12px 14px 12px 22px; border-radius: 0; background: var(--cobalt); color: #fff; box-shadow: var(--shadow); }
.mbar .eyebrow { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .85); }
.mbar b { font-weight: 700; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mbar .link-btn { padding: 12px 18px; border-radius: 0; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; }
.mbar .link-btn:hover { color: var(--ink); }
.mbar .link-btn:focus-visible { outline-color: #fff; }

/* ---------- Review and sign ---------- */
.book-section .agreement { border: 1px solid var(--hair); border-radius: 0; background: #fff; }
.book-section .agreement-bar { padding: 14px 22px; border-bottom: 1px solid var(--hair); background: #fff; }
.book-section .agreement-bar .eyebrow { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.015em; text-transform: none; color: var(--ink); }
.book-section .agreement-scroll { max-height: 500px; }
.book-section .agreement-fade { background: linear-gradient(rgba(255, 255, 255, 0), #fff); }

.book-section .key-terms { margin-top: 12px; padding: 0; border: 0; border-radius: 0; background: none; gap: 12px; }
.book-section .key-terms .eyebrow { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -0.02em; text-transform: none; color: var(--ink); }
.book-section .key-terms > .small { font-size: 15px; max-width: 40em; }
.book-section .key-terms .spot-list { margin-top: 6px; gap: 12px; font-size: 15px; color: var(--body); }

.book-section .checks { gap: 0; margin-top: 8px; border-top: 1px solid var(--hair); }
.book-section .check { gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.5; color: var(--body); }
.book-section .check input { width: 24px; height: 24px; border-radius: 0; border: 1.5px solid var(--hair-strong); background: #fff; transition: background-color .2s ease, border-color .2s ease; }
.book-section .check input:checked { background: var(--cobalt); border-color: var(--cobalt); }
@media (hover: hover) { .book-section .check:hover input:not(:checked) { border-color: var(--ink); } }
.book-section .form-legal { margin-top: 14px; font-size: 13.5px; }

.book-section .sign { gap: 14px; margin-top: 16px; }
.book-section .sign .flabel { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -0.02em; }
.book-section .sign .toggle { padding: 4px; border: 0; background: rgba(14, 17, 22, .05); box-shadow: inset 0 0 0 1px var(--hair); }
.book-section .sign .toggle button { padding: 9px 18px; color: var(--body); }
.book-section .sign .toggle button[aria-pressed="true"] { color: var(--ground); }
.book-section .sig-pad { height: 200px; border-radius: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.book-section .sig-line { left: 28px; right: 28px; bottom: 48px; height: 1px; opacity: .3; }
.book-section .sig-hint { left: 28px; bottom: 18px; font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; }
.book-section .sig-clear { right: 22px; bottom: 16px; }
.book-section .sig-typed { padding: 0 28px 18px; }
.book-section .sign-meta { gap: 6px 28px; font-size: 14.5px; }

/* ---------- Motion ---------- */
.js .book-section .bstep:not([hidden]) { animation: bookStepIn .5s var(--ease-out); }
@keyframes bookStepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .book-section .bstep:not([hidden]) { animation: none; }
  .book-section .stepper button::after, .book-section .opt-body, .book-section .opt-body::after,
  .book-section .seg span, .book-section .launch-card, .mbar { transition: none; }
}

/* Discount code */
.book-section [data-offer-host]:not(:empty) { margin-top: 28px; }
.book-section .opt-top em .offer-was { display: block; font-size: 15px; font-family: var(--sans); letter-spacing: 0; margin-bottom: 4px; }
.book-section .sum-lines b .offer-was { margin-right: 4px; }
.book-section .sum-total .offer-was { font-size: 18px; }
.book-section .offer-applied { margin: 10px 0 14px; color: #fff; }

/* ---------- Spacing pass (14 Nov 2026) ---------- */
.book-section .opt-grid + .opt-grid { margin-top: 12px; }
.book-section .opt-grid + p, .book-section .opt-grid + .small { margin-top: 16px; }
.book-section .seg-sm { margin-bottom: 16px; }
.book-section .bsub { margin-top: 20px; }
.book-section .opt-top em { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.book-section .opt-meta { margin-top: 6px; }
.book-section .opt-flag { margin-top: 6px; }
/* More extras: closed by default so step 2 stays short */
.book-section .more-extras { margin-top: -28px; border-bottom: 1px solid var(--hair); }
.book-section .more-extras summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 20px 34px 20px 0; cursor: pointer; list-style: none; position: relative; }
.book-section .more-extras summary::-webkit-details-marker { display: none; }
.book-section .more-extras summary span { font-weight: 600; font-size: 16.5px; }
.book-section .more-extras summary small { font-size: 14px; color: var(--muted); }
.book-section .more-extras summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease; }
.book-section .more-extras[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.book-section .more-extras summary:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.book-section .more-extras .extra-rows { border-top: 1px solid var(--hair); }
.book-section .more-extras .extra-rows .xrow:last-child { border-bottom: 0; }
.book-section .xrow .xflag { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--cobalt); white-space: nowrap; }
