/* Hallmark · checked: 2026-11-19 · genre: atmospheric · shape: app screen
 * floor: 0 FAIL · fixed: 6 (11, 20, 24a, 24b, 39a, 40) · structural: 0 printed
 * built: the project, inside the Midnight system of site.css · redesign: polish · v2.0.0 */
/* Hallmark · waive 49b · a real phrase, two lines at most at 320px · the link under the packages says what it opens, the packages compared with sample projects */
/* Hallmark · answered F4 · the filled square marks the step you are on and is never pressed; Continue is the one filled action in the form */
/* Hallmark · dismissed F3 · site.css sets text-wrap: balance on h1, h2 and h3, and the booking form's heads inherit it */
/* Booking form. Page-local styles; colours and type come from the site tokens. */
:root {
  /* The edge of a field or tick box: midway between the hairline and the muted ink, so it clears 3:1 against the page
     and a chosen card, edged in the accent, still stands out from it. */
  --color-field-edge: color-mix(in oklch, var(--color-rule-2), var(--color-muted));
}
.book { padding-block: var(--space-2xl) var(--section-gap-s); }
.book__note { margin: 0 0 var(--space-xl); padding: var(--space-md) var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper-2); color: var(--color-ink-2); font-size: var(--text-sm); max-width: 78ch; }
.book__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
/* The three steps as one segmented bar: filled as far as you have come, brightest where you are, each part named.
   A finished step is a button back to it; the page code enables those buttons and marks the present step. */
.book__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); list-style: none; margin: 0 0 var(--space-xl); padding: 0; }
.book__steps li { min-width: 0; color: var(--color-muted); font-size: var(--text-sm); }
.book__steps button { position: relative; display: flex; align-items: center; gap: var(--space-xs); width: 100%; min-height: 44px; padding: var(--space-md) 0 0; background: none; border: 0; border-radius: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.book__steps button:disabled { cursor: default; }
.book__steps button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
/* the bar: a dim track, and a fill that slides in from the left */
.book__steps button::before, .book__steps button::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--color-rule); }
.book__steps button::after { background: var(--color-accent-2); transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.book__steps button:not(:disabled)::after { transform: scaleX(1); }
.book__steps li[aria-current="step"] button::after { transform: scaleX(1); background: var(--color-ink); }
/* the number, in a square: outlined ahead, a tick behind, filled where you are */
.book__steps span { position: relative; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-xs); font-variant-numeric: tabular-nums; line-height: 1; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.book__steps i { min-width: 0; font-style: normal; overflow-wrap: break-word; }
.book__steps button:not(:disabled) { color: var(--color-ink-2); }
.book__steps button:not(:disabled) span { border-color: var(--color-accent-2); color: transparent; }
.book__steps button:not(:disabled) span::after { content: ""; position: absolute; left: 50%; top: 45%; width: 6px; height: 11px; border: solid var(--color-accent-2); border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg); }
.book__steps li[aria-current="step"] { color: var(--color-ink); font-weight: 500; }
.book__steps li[aria-current="step"] span { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.book__steps button:not(:disabled):active i { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .book__steps button:not(:disabled):hover i { text-decoration: underline; text-underline-offset: 3px; }
}
.book h2 { font-size: var(--text-section); margin-bottom: var(--space-sm); }
.book h3 { font-size: var(--text-lg); font-weight: 500; letter-spacing: 0; margin: var(--space-xl) 0 var(--space-md); }
.book__intro { color: var(--color-ink-2); margin: 0 0 var(--space-lg); max-width: 60ch; }
.book__more { margin-top: var(--space-md); }
/* What the chosen service needs to know: the page code sets this block right under that service's group of cards. */
#choice-fields { margin-top: var(--space-lg); }
#choice-fields h3 { margin-top: var(--space-lg); }
#choice-fields > .book__advice { margin: 0 0 var(--space-lg); }
.book [hidden] { display: none !important; }

.f { display: block; margin-bottom: var(--space-lg); }
.f > span, .f > label, .pick > span { display: block; margin-bottom: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.f input, .f select, .f textarea { width: 100%; max-width: 30rem; padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); color: var(--color-ink); border: var(--rule-hair) solid var(--color-field-edge); border-radius: 0; font: inherit; }
.f textarea { max-width: 100%; min-height: 6.5rem; resize: vertical; }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.f [aria-invalid="true"] { border-color: var(--color-error); }
.f input::placeholder, .f textarea::placeholder { color: var(--color-muted); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .f input:not([aria-invalid="true"]):hover, .f select:not([aria-invalid="true"]):hover, .f textarea:not([aria-invalid="true"]):hover { border-color: var(--color-muted); }
}
.f small, .pick small { display: block; margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-xs); }
.f--row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); max-width: 30rem; }
.f--row .f { margin-bottom: 0; }

.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.opt { position: relative; display: block; padding: var(--space-lg); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); cursor: pointer; transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .opt:hover { border-color: var(--color-rule-2); } }
.opt { padding-left: calc(var(--space-lg) + var(--space-lg) + var(--space-xs)); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.opt:active { background: var(--color-paper-3); }
/* The tick box: every card shows whether it is chosen without relying on colour alone. */
.opt::before { content: ""; position: absolute; left: var(--space-lg); top: calc(var(--space-lg) + 5px); width: 18px; height: 18px; border: var(--rule-hair) solid var(--color-field-edge); }
.opt:has(input:checked)::before { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.opt:has(input:checked)::after { content: ""; position: absolute; left: calc(var(--space-lg) + 6px); top: calc(var(--space-lg) + 7px); width: 6px; height: 11px; border: solid var(--color-paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--color-accent-2); background: var(--color-paper-3); }
.opt:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.opt:has(input:disabled), .opt:has(input:disabled):active { cursor: not-allowed; background: var(--color-paper); }
.opt:has(input:disabled) .opt__top, .opt:has(input:disabled) .opt__price { color: var(--color-muted); }
.opt:has(input:disabled)::before { border-color: var(--color-rule); }
.opt:has(input:disabled) input { cursor: not-allowed; }
.opt__why { margin: var(--space-xs) 0 0; color: var(--color-ink); font-size: var(--text-sm); }
.opt__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs, 4px) var(--space-md); align-items: baseline; }
.opt__name { font-size: var(--text-lg); font-weight: 500; }
.opt__price { color: var(--color-accent-2); white-space: nowrap; }
.opt__text { margin: var(--space-xs) 0 0; color: var(--color-ink-2); font-size: var(--text-sm); }
.opt__more { position: relative; z-index: 1; display: inline-block; margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-accent-2); }
.opts--list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.opts--list .opt { padding: var(--space-md) var(--space-lg) var(--space-md) calc(var(--space-lg) + var(--space-lg) + var(--space-xs)); border-width: 0 0 var(--rule-hair); background: none; }
.opts--list .opt:first-child { border-top-width: var(--rule-hair); }
.opts--list .opt:has(input:checked) { background: var(--color-paper-2); }
.opts--list .opt__name { font-size: var(--text-md); }
.opts--list .opt::before { top: calc(var(--space-md) + 3px); }
.opts--list .opt:has(input:checked)::after { top: calc(var(--space-md) + 5px); }
.opts--list .opt:has(input:disabled):active { background: none; }
/* A question with two answers: two boxes to tap, so both answers are in view and one press chooses. */
.pick { margin-bottom: var(--space-lg); }
.opts--pick { max-width: 34rem; gap: var(--space-sm); }
.opts--pick .opt { padding-block: var(--space-md); padding-right: var(--space-md); }
.opts--pick .opt__name { display: block; font-size: var(--text-md); }
.opts--pick .opt::before { top: calc(var(--space-md) + 3px); }
.opts--pick .opt:has(input:checked)::after { top: calc(var(--space-md) + 5px); }
.pick[aria-invalid="true"] .opt { border-color: var(--color-error); }

.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); max-width: 34rem; }
.slots .opt__name { font-size: var(--text-xl); font-weight: 300; }
.book__sun { color: var(--color-muted); font-size: var(--text-sm); margin: 0 0 var(--space-md); }
.book__sun.is-error { color: var(--color-error); }
.book__advice { margin: var(--space-md) 0 0; padding: var(--space-md) var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper-2); color: var(--color-ink-2); font-size: var(--text-sm); max-width: 60ch; }

.book__nav { display: flex; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.book__nav .btn { min-width: 0; white-space: normal; text-align: center; }
.book__nav { flex-wrap: wrap; }
#nav-next { margin-left: auto; }
/* Address suggestions: a short list under the address field. */
.addr { position: relative; max-width: 30rem; }
.addr__list { position: absolute; z-index: var(--z-raised, 5); left: 0; right: 0; top: 100%; margin: 0; padding: 0; list-style: none; max-height: 60vh; overflow-y: auto; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule-2); border-top: 0; }
.addr__list li { padding: var(--space-sm) var(--space-md); cursor: pointer; border-top: var(--rule-hair) solid var(--color-rule); touch-action: manipulation; overflow-wrap: anywhere; }
.addr__list li[aria-selected="true"] { background: var(--color-paper-3); }
@media (hover: hover) and (pointer: fine) { .addr__list li:hover { background: var(--color-paper-3); } }
.addr__rest { display: block; color: var(--color-muted); font-size: var(--text-sm); }
.addr__typed { color: var(--color-accent-2); font-size: var(--text-sm); }
/* An upgrade offered among the add-ons: what it adds and what it costs, with a button that switches to it. */
.upsell { margin: 0 0 var(--space-md); padding: var(--space-md) var(--space-lg) var(--space-lg); background: var(--color-paper-2); color: var(--color-ink); border: var(--rule-hair) solid var(--color-rule-2); }
.upsell__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2xs) var(--space-md); }
.upsell__name { font-size: var(--text-md); font-weight: 500; }
.upsell__price { color: var(--color-accent-2); white-space: nowrap; }
/* Just after an upgrade the list has moved under the pointer, so it takes no presses for a moment. */
.is-settling { pointer-events: none; }
.upsell__text { display: block; margin: var(--space-xs) 0 var(--space-md); color: var(--color-ink-2); font-size: var(--text-sm); max-width: 60ch; }
/* The button that switches package, among the add-ons and under a refused weekend: outlined in the accent, so it
   reads as the thing to press without becoming a second filled button beside Continue. */
.book__switch { border-color: var(--color-accent-2); white-space: normal; text-align: center; line-height: 1.2; padding-block: var(--space-xs); }
.book__switch:active { background: var(--color-paper-3); }
@media (hover: hover) and (pointer: fine) { .book__switch:hover { background: var(--color-paper-3); border-color: var(--color-ink); } }
/* A switch just made: what changed, and the way back beside it. */
.book__switched { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-md); padding-block: var(--space-xs); max-width: 34rem; }
/* The words keep a readable width; where the button no longer fits beside them it drops to a line of its own, whole. */
.book__switched > span { flex: 1 1 12rem; min-width: 0; padding-block: var(--space-xs); }
.book__undo { white-space: nowrap; }
/* The answer to the email check sits close under the email field, clear of the address below it. */
#who-note { margin: calc(-1 * var(--space-sm)) 0 var(--space-lg); }
#extras > .book__switched, #weekend-note { margin: 0 0 var(--space-md); }
#extras > .book__switched { max-width: none; }   /* as wide as the offer under it */
#lower, #lower-note { margin: var(--space-md) 0 0; max-width: none; }
#picked-note { margin: 0 0 var(--space-lg); }
#review { margin-top: var(--space-xl); }
/* What virtual staging needs to know, right under the add-ons. */
.book__stage { margin-top: var(--space-lg); }
/* The agreement before booking: one tick box, with the terms a press away. */
.agree { max-width: 60ch; margin-top: var(--space-lg); }
.opt--agree .opt__name { font-size: var(--text-md); }
.opt--agree:has(input[aria-invalid="true"]) { border-color: var(--color-error); }
.agree__more { margin: var(--space-sm) 0 0; font-size: var(--text-sm); }
#review h3 { margin-top: 0; }
/* A field people never see. Programs that fill in every field give themselves away by filling it. */
.book__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book__retry { margin: var(--space-md) 0 0; }
.book__error { color: var(--color-error); font-size: var(--text-sm); margin: var(--space-md) 0 0; min-height: 1.4em; }
/* Under a field, the message sits close to that field and clear of the next one. */
.f + .book__error, .pick + .book__error { margin: calc(-1 * var(--space-md)) 0 var(--space-lg); }
.f--row + .book__error { margin-top: var(--space-xs); }

.sum { position: sticky; top: 104px; padding: var(--space-xl); background: var(--color-band); color: var(--color-band-ink); }
.sum h2 { font-size: var(--text-xl); margin-bottom: var(--space-xs); }
.sum__meta { color: var(--color-band-muted); font-size: var(--text-sm); margin: 0 0 var(--space-lg); }
.sum__lines { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-band-rule); }
.sum__lines li { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-band-rule); font-size: var(--text-sm); }
.sum__lines li span:last-child { text-align: right; }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); margin: var(--space-lg) 0 var(--space-md); }
.sum__total strong { font-size: var(--text-2xl); font-weight: 300; text-align: right; }
.sum__small { color: var(--color-band-muted); font-size: var(--text-xs); margin: 0 0 var(--space-xs); }

.sum__toggle { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.sum__toggle { display: none; align-items: center; min-height: 44px; padding: 0 var(--space-sm); background: none; border: var(--rule-hair) solid var(--color-band-rule); border-radius: 0; color: var(--color-band-ink); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.sum__toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.sum__toggle:active { background: var(--color-band-2); }
@media (hover: hover) and (pointer: fine) { .sum__toggle:hover { background: var(--color-band-2); } }
.done { max-width: 60ch; }
.done dl { margin: var(--space-lg) 0; }
.done dl div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-md); padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.done dt { flex: 0 0 min(8rem, 38%); min-width: 0; color: var(--color-muted); overflow-wrap: anywhere; }
.done dd { flex: 1 1 9rem; min-width: 0; margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.done__edit, .book__undo { margin-left: auto; min-width: 44px; min-height: 44px; text-align: right; padding: 0 0 0 var(--space-sm); background: none; border: 0; border-radius: 0; font: inherit; font-size: var(--text-sm); color: var(--color-accent-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; touch-action: manipulation; }
.done__edit:focus-visible, .book__undo:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.done__edit:active, .book__undo:active { color: var(--color-ink); }
@media (hover: hover) and (pointer: fine) { .done__edit:hover, .book__undo:hover { color: var(--color-ink); } }
/* The confirmation: a tick in the same square as a finished step, and where to go next. */
.done__mark { position: relative; width: 40px; height: 40px; margin: 0 0 var(--space-lg); border: var(--rule-hair) solid var(--color-accent-2); }
.done__mark::after { content: ""; position: absolute; left: 50%; top: 45%; width: 9px; height: 17px; border: solid var(--color-accent-2); border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg); }
.done__links { display: flex; flex-wrap: wrap; gap: var(--space-md); }
/* Where the form column is only a little wider than a field, fields fill it, so their right edge meets the cards'. */
@media (min-width: 60.0625rem) and (max-width: 68rem) {
  .f input, .f select, .f textarea, .addr, .f--row { max-width: none; }
}

@media (max-width: 60rem) {
  .book__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  /* Phone and tablet: the form comes first and the total rides along the bottom edge as a slim bar. */
  .sum { position: sticky; bottom: 0; top: auto; z-index: var(--z-raised); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-inline: calc(-1 * var(--gutter)); padding: var(--space-sm) var(--gutter); border-top: var(--rule-hair) solid var(--color-band-rule); }
  .sum { flex-wrap: wrap; }
  .sum h2, .sum__lines, .sum__small { display: none; }
  .sum__meta { flex: 1 1 0; min-width: 0; }
  .sum__toggle { display: inline-flex; }
  .sum.is-open { max-height: calc(100vh - 5.5rem); max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; }
  .sum.is-open .sum__lines { display: block; order: -2; flex: 0 0 100%; border-top: 0; }
  .sum:not(.is-open) .sum__sqft { display: none; }
  .sum.is-open .sum__small { display: block; order: -1; flex: 0 0 100%; margin: 0; }
  .sum.is-open .sum__small + .sum__small { margin-bottom: var(--space-xs); }
  .sum.is-open #sum-size[hidden] { display: none; }
  .sum__meta { margin: 0; font-size: var(--text-xs); }
  .sum__total { margin: 0; gap: var(--space-sm); white-space: nowrap; }
  .sum__total strong { font-size: var(--text-xl); }
  .book__note { margin-bottom: var(--space-lg); }
  .book { padding-top: var(--space-xl); }
  /* A field that takes the keyboard is scrolled clear of the bar along the bottom. */
  html { scroll-padding-bottom: var(--space-3xl); }
}
@media (max-width: 40rem) {
  .opts, .slots { grid-template-columns: minmax(0, 1fr); }
  /* on a phone the name sits under its number, so all three fit */
  .book__steps button { flex-direction: column; align-items: flex-start; gap: var(--space-2xs); padding-bottom: var(--space-2xs); }
  .book__steps li { font-size: var(--text-xs); }
  /* email and phone one under the other, so a whole address shows */
  .f--row { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .done dt { flex-basis: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) { .opt, .book__steps button::after, .book__steps span { transition: none; } }
