/* The shared booking form. Colours and fonts come from the host page's tokens (--ink, --bg, --line, --accent…). */
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.booking-form .field { display: grid; gap: 6px; min-width: 0; }
.booking-form .field.full { grid-column: 1 / -1; }
.booking-form .status { grid-column: 1 / -1; font-size: 0.92rem; color: var(--muted); margin: 0; }
.booking-form .status:empty { display: none; }
.booking-form .status.show { color: var(--ink); border-left: 3px solid var(--accent); padding-left: 12px; }
/* A strip of days, then that day's open start times. */
.booking-form .when { grid-column: 1 / -1; display: grid; gap: 10px; min-width: 0; }
.booking-form .hint { color: var(--muted); font-size: .85rem; font-weight: 400; }
.booking-form .chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.booking-form .times { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.booking-form .chip { font: 500 .88rem var(--mono); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px; cursor: pointer; white-space: nowrap; }
.booking-form .chips .chip { display: grid; gap: 2px; text-align: center; flex: 0 0 auto; min-width: 64px; padding: 10px 8px; border-radius: 12px; font: 700 1.05rem var(--body); }
.booking-form .chips .chip small { font: 500 .7rem var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.booking-form .chip:hover { border-color: var(--accent); }
.booking-form .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.booking-form .chip[aria-pressed="true"] small { color: inherit; }
.booking-form .chip.pref { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.booking-form .chip.backup { border: 1px solid var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.booking-form .picked { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .9rem; }
.booking-form .picked b { font-weight: 600; }
.booking-form .linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; }
.booking-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .booking-form { grid-template-columns: 1fr; } }
.booking-form .field[hidden] { display: none; }
.booking-form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.booking-form .check input { width: auto; margin: 0; }
.booking-form .wx { justify-self: center; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.booking-form .wx.good { background: var(--ok); }
.booking-form .wx.poor { background: var(--warn); }
.booking-form .legend { display: flex; align-items: center; gap: 6px; margin: 0; }
.booking-form .legend .wx.poor { margin-left: 10px; }
.booking-form .airspace { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.booking-form .airspace::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; }
.booking-form .airspace.ok { color: var(--ok); }
.booking-form .airspace.warn { color: var(--warn); }
.booking-form .airspace.bad { color: var(--bad); }
.booking-form .airspace[hidden] { display: none; }
.booking-form .address-field { position: relative; }
.booking-form .suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin: 4px 0 0; padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.booking-form .suggest li { padding: 8px 12px; cursor: pointer; }
.booking-form .suggest li:hover, .booking-form .suggest li[aria-selected="true"] { background: var(--accent); color: var(--on-accent, #fff); }
.booking-form .suggest[hidden] { display: none; }
.booking-form .matched { margin: 0; font-size: .85rem; color: var(--muted); }
.booking-form .matched b { color: var(--ink); font-weight: 600; }
.booking-form .matched[hidden] { display: none; }
.booking-form .legend[hidden] { display: none; }
/* The steps, each folding to a line once done, and the price summary beside them where there's room. */
.booking-form.wizard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; container-type: inline-size; }
.booking-form .bk-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@container (min-width: 720px) { .booking-form .bk-layout { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; } }
.booking-form .bk-steps { display: grid; gap: 10px; min-width: 0; }
.booking-form .step { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.booking-form .step[data-state="open"] { border-color: var(--line-strong, var(--line)); }
.booking-form .step-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.booking-form .step-head .stack { flex: 1; display: grid; gap: 2px; min-width: 0; }
.booking-form .step-label { font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.booking-form .step-summary { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-form .num { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font: 500 .75rem var(--mono); color: var(--muted); }
.booking-form .step[data-state="open"] .num { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.booking-form .step[data-state="done"] .num { border-color: transparent; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-size: 0; }
.booking-form .step[data-state="done"] .num::before { content: "✓"; font-size: .8rem; }
.booking-form .step[data-state="todo"] { opacity: .6; }
.booking-form .step[data-state="open"] .step-summary, .booking-form .step[data-state="todo"] .step-summary { display: none; }
.booking-form .step[data-state="open"] .step-label { color: var(--ink); font: 700 1.05rem var(--body); letter-spacing: 0; text-transform: none; }
.booking-form .change { margin-left: auto; font-size: .85rem; }
.booking-form .step:not([data-state="done"]) .change { display: none; }
.booking-form .step-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 16px 16px; min-width: 0; }
.booking-form .step:not([data-state="open"]) .step-body { display: none; }
@media (max-width: 560px) { .booking-form .step-body { grid-template-columns: 1fr; } }
.booking-form .step-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.booking-form .summary { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); align-self: start; }
.booking-form .summary .label { font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.booking-form .summary .lines { display: grid; gap: 8px; font-size: .9rem; }
.booking-form .summary .line { display: flex; justify-content: space-between; gap: 10px; }
.booking-form .summary .mono { font-family: var(--mono); }
.booking-form .summary .credit { color: var(--accent); }
.booking-form .summary .rule { height: 1px; background: var(--line); }
.booking-form .summary .total { align-items: baseline; }
.booking-form .summary .big { font: 800 1.5rem var(--display); }
.booking-form .summary .where { margin: 0; font-size: .85rem; }
.booking-form .summary .hint { margin: 0; }
.booking-form input[readonly] { color: var(--muted); background: transparent; border-style: dashed; }
.booking-form .summary .credit-note { margin: 0; color: var(--accent); }
/* Packages as compact tiles, two to a row where there's room. */
.booking-form .packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.booking-form .package { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.booking-form .package:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.booking-form .package input { width: auto; margin: 0; accent-color: var(--accent); grid-row: span 2; }
.booking-form .package .stack { display: contents; }
.booking-form .package b { font-size: .92rem; grid-column: 2; }
.booking-form .package .pkg-note { grid-column: 2 / -1; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.booking-form .package .price { grid-column: 3; grid-row: 1; font: 500 .85rem var(--mono); }
/* In a narrow column (the homepage), the summary is just what's due; the full breakdown shows where there's room beside the steps. */
.booking-form .send-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.booking-form .due { display: none; margin: 0; font-size: .9rem; }
@container (max-width: 719px) {
  .booking-form .summary { display: none; }
  .booking-form .due { display: block; }
  .booking-form .step-head { padding: 12px 14px; }
  .booking-form .step:not([data-state="open"]) .step-head { padding: 8px 14px; }
  .booking-form .num { width: 22px; height: 22px; }
  .booking-form .bk-steps { gap: 8px; }
  .booking-form .step-body { padding: 0 14px 14px; gap: 12px; }
  .booking-form .chips .chip { min-width: 56px; padding: 6px; font-size: .95rem; }
  .booking-form .times { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .booking-form .times .chip { padding: 7px 6px; font-size: .8rem; }
  .booking-form .when { gap: 8px; }
  .booking-form textarea { min-height: 64px; height: 64px; }
}
