/* Booking flow — extends site.css */
.book-page { padding-top: var(--s5); padding-bottom: var(--s7); }
.book-head { margin-bottom: var(--s4); }
.book-head h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: var(--s2); }

/* Progress */
.progress { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); counter-reset: p; }
.progress li { counter-increment: p; font-size: var(--fs-xs); color: var(--ink-2); padding-top: var(--s2); border-top: 4px solid var(--line); }
.progress li .t { display: none; }
.progress li[data-done] { border-top-color: var(--brand-700); color: var(--ink); }
.progress li[aria-current="step"] { border-top-color: var(--brand-700); color: var(--ink); font-weight: 650; }
.progress li[data-done]::before { content: '✓ '; color: var(--brand-700); }
.progress-label { font-size: var(--fs-sm); color: var(--ink-2); margin: calc(-1 * var(--s3)) 0 var(--s4); }
@media (min-width: 700px) { .progress li .t { display: inline; } .progress-label { display: none; } }

.booking { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 980px) { .booking { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s7); } }
.step[hidden] { display: none; }
.step > h2 { font-size: var(--fs-h2); margin-bottom: var(--s2); }
.step > .intro { color: var(--ink-2); margin-bottom: var(--s5); }
.step-section { margin-bottom: var(--s5); }
.step-section h3 { font-size: var(--fs-md); margin-bottom: var(--s2); }
.step-actions { display: flex; gap: var(--s3); justify-content: space-between; align-items: center; margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.step-actions .btn-primary { min-width: 9.5em; }
@media (max-width: 480px) { .step-actions { flex-direction: column-reverse; align-items: stretch; } .step-actions .btn { width: 100%; } }
.error-summary { margin-bottom: var(--s4); }
.error-summary ul { margin: var(--s1) 0 0; padding-left: 1.2em; }
.error-summary:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.service-options .option { padding: var(--s4); }
.size-grid { display: grid; gap: 0 var(--s3); grid-template-columns: 1fr 1fr; }
.size-grid .field:last-child { grid-column: 1 / -1; }
@media (min-width: 600px) { .size-grid { grid-template-columns: repeat(3, 1fr); } .size-grid .field:last-child { grid-column: auto; } }

/* Date strip (one week) */
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.cal-head strong { font-size: var(--fs-md); text-align: center; }
.cal-head .btn-quiet { color: var(--brand-700); font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal button, .cal .blank { min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: var(--r-md); padding: 6px 0; line-height: 1.15; }
.cal button { border: 1.5px solid var(--line); background: var(--surface); font: 600 var(--fs-sm) var(--font); color: var(--ink); cursor: pointer; }
.cal button:hover:not(:disabled) { border-color: var(--brand-700); }
.cal .d { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); }
.cal .n { font-size: 1.125rem; font-weight: 700; }
.cal button small { display: block; font-weight: 500; font-size: 11px; color: var(--ok); }
.cal button:disabled { background: var(--muted-bg); border-color: transparent; color: var(--ink-2); cursor: not-allowed; }
.cal button:disabled small { color: var(--ink-2); }
.cal button[aria-pressed="true"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.cal button[aria-pressed="true"] .d, .cal button[aria-pressed="true"] small { color: #fff; }
.cal .blank { color: #9AA3AF; }
.cal .blank .d { color: #9AA3AF; }
.cal-legend { font-size: var(--fs-xs); color: var(--ink-2); margin: var(--s2) 0 var(--s4); }
.slot-options { grid-template-columns: 1fr; }
@media (min-width: 600px) { .slot-options { grid-template-columns: repeat(3, 1fr); } }
#recurring-note { margin-top: var(--s4); }

/* Summary */
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); }
.summary h2 { font-size: var(--fs-h3); }
.summary .meta { font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: var(--s3); }
.summary .due { font-size: var(--fs-sm); margin-top: var(--s3); }
.summary .note { font-size: var(--fs-xs); color: var(--ink-2); margin-top: var(--s3); }
.summary-desktop { display: none; }
@media (min-width: 980px) { .summary-desktop { display: block; position: sticky; top: 92px; } .summary-mobile { display: none; } }
.summary-mobile { margin-bottom: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 0 var(--s4); }
.summary-mobile > summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 52px; cursor: pointer; list-style: none; font-weight: 600; }
.summary-mobile > summary::-webkit-details-marker { display: none; }
.summary-mobile > summary .toggle { font-size: var(--fs-sm); color: var(--brand-700); font-weight: 600; text-decoration: underline; }
.summary-mobile[open] > summary .toggle .open-l { display: none; }
.summary-mobile:not([open]) > summary .toggle .close-l { display: none; }
.summary-mobile .body { padding-bottom: var(--s4); }

/* Review */
.review-block { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.review-block:first-child { border-top: 1px solid var(--line); }
.done { max-width: 640px; }
.done h2 { font-size: var(--fs-h2); }
.ref { font-size: 1.4rem; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.fade-in { animation: fade .18s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Home size steppers */
.stepper { display: flex; align-items: center; gap: var(--s3); min-height: 52px; }
.stepper > span:first-child { flex: 1; }
.stepper output { min-width: 3.2em; text-align: center; font-weight: 700; font-size: var(--fs-lg); }
.stepper-btn { width: 44px; height: 44px; border: 1.5px solid var(--field-border); border-radius: var(--r-sm); background: var(--surface); color: var(--brand-700); font: 600 1.35rem/1 var(--font); cursor: pointer; }
.stepper-btn:hover { border-color: var(--brand-700); }
.stepper-btn[aria-disabled="true"] { color: #9AA3AF; border-color: var(--line); cursor: not-allowed; }

/* Frequency: 2 × 2 */
.freq-options { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 700px) { .freq-options { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }

/* Fold-out rows (extras, condition, referral, notes) */
.more { border-top: 1px solid var(--line); }
.more:last-child { border-bottom: 1px solid var(--line); }
.more > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 24px 1fr auto; column-gap: var(--s3); align-items: center; padding: var(--s3) 0; min-height: 56px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: '+'; grid-row: 1 / span 2; color: var(--brand-700); font: 600 1.4rem/1 var(--font); text-align: center; }
.more[open] > summary::before { content: '−'; }
.more-t { color: var(--brand-700); font-weight: 600; }
.more-h { grid-column: 2; font-size: var(--fs-xs); color: var(--ink-2); }
.more-v { grid-column: 3; grid-row: 1 / span 2; font-size: var(--fs-sm); font-weight: 600; }
.more > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.more-body { padding: 0 0 var(--s4) calc(24px + var(--s3)); }
#more-notes { margin-top: var(--s2); }

/* Price card on step 1 */
.quote-card { background: var(--brand-50); border-radius: var(--r-md); padding: var(--s4); margin-top: var(--s2); }
.quote-card p { margin: 0; }
.quote-card .qc-l { font-size: var(--fs-xs); color: var(--ink-2); }
.quote-card .qc-p { font-size: var(--fs-lg); font-weight: 700; margin: 2px 0 4px; }
.quote-card .qc-s { font-size: var(--fs-sm); }
.quote-card .disclosure { margin-top: var(--s3); }
.quote-card .lines { width: 100%; font-size: var(--fs-sm); }
.summary .sum-head { font-weight: 700; margin-bottom: var(--s2); }

/* Sticky price bar (phones and tablets); desktop keeps the side summary */
.pricebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(22,35,59,.08); }
.pricebar-price { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pricebar .l1, .pricebar .l3 { font-size: var(--fs-xs); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pricebar .p { font-size: 1.375rem; font-weight: 700; }
.pricebar .btn { flex: none; min-width: 9.5em; }
@media (max-width: 979px) {
  .book-page { padding-bottom: var(--s5); }
  body.has-pricebar { padding-bottom: 96px; }
  .step .step-actions .btn-primary { display: none; }
  .step[data-step="1"] .step-actions { display: none; }
  .step-actions { border-top: 0; padding-top: 0; }
}
@media (min-width: 980px) { .pricebar { display: none; } }

.pricebar .tx { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.lines tr.sub td { border-top: 1px solid var(--line); }
.pay-lines { width: 100%; font-size: var(--fs-sm); margin-bottom: var(--s3); }
.pay-lines td:last-child { text-align: right; white-space: nowrap; }

/* v30 polish: the form sits on a card over a soft page, like the home page sections */
body:has(.book-page) main { background: #F4F6FB; }
.book-page { padding-top: var(--s6); }
.book-head h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.5rem); letter-spacing: -.025em; }
.progress li { border-top-width: 5px; border-radius: 2px; font-size: var(--fs-sm); }
.booking > div:first-child { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: var(--s5); box-shadow: 0 1px 2px rgba(31,41,55,.05), 0 8px 24px rgba(31,41,55,.06); }
@media (min-width: 768px) { .booking > div:first-child { padding: var(--s6) var(--s7); } }
@media (max-width: 479px) { .booking > div:first-child { padding: var(--s4); margin: 0 calc(-1 * var(--s2)); } }
.summary { border-radius: 12px; box-shadow: 0 1px 2px rgba(31,41,55,.05), 0 8px 24px rgba(31,41,55,.06); }
@media (min-width: 980px) { .booking > aside, .booking > .summary-wrap { position: sticky; top: 100px; } }
.freq-options { align-items: stretch; }
.freq-options .option { height: 100%; }
.step-section > legend { font-weight: 700; font-size: var(--fs-md); }
#frequencies.freq-options { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
#zip-status { min-height: 0; }
.step[data-step="1"] fieldset.step-section:first-of-type { margin-top: var(--s5); }
