:root {
  --ink: #101828; --muted: #526278; --line: #d9e2ee; --surface: #fff; --soft: #f6f8fb;
  --navy: #10223d; --brand: #075eaa; --brand-dark: #064d8a; --gold: #f7ae24; --success: #116843; --danger: #b71919;
  font-family: "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--soft); font-size: 16px; line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { min-height: 48px; padding: 10px 20px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 650; cursor: pointer; }
button:hover { background: var(--brand-dark); }
button:disabled { cursor: not-allowed; background: #e1e7ef; color: var(--muted); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
h2:focus { outline: none; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #a2b0c2; border-radius: 10px; background: var(--surface); color: var(--ink); caret-color: var(--brand); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input[readonly] { background: var(--soft); }
label { display: grid; gap: 7px; font-weight: 600; }
textarea { resize: vertical; }
::selection { background: #fce4b2; color: var(--navy); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 1.8rem; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; margin-bottom: 24px; }
h3 { font-size: 1.2rem; margin-bottom: 12px; }
p { max-width: 70ch; }
.app-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px max(24px, calc((100% - 1240px) / 2)); color: #fff; background: var(--navy); }
.brand-lockup { display: flex; align-items: center; gap: 16px; }
.brand-logo { display: block; flex: 0 0 auto; width: 144px; height: auto; background: transparent; }
.brand-lockup { min-width: 0; }
.header-contact { display: grid; gap: 4px; font-size: 0.9rem; }
.header-contact a { color: #fff; text-decoration: none; }
.scheduler { width: min(1240px, calc(100% - 48px)); margin: 32px auto 64px; }
.progress-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); list-style: none; padding: 0; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.progress-steps li { padding: 12px 8px; color: var(--muted); }
.progress-steps [aria-current] { color: var(--brand); border-bottom: 3px solid var(--brand); font-weight: 700; }
.wizard-shell { background: var(--surface); border-radius: 16px; box-shadow: 0 12px 40px rgba(16,34,61,.08); }
.wizard-step { padding: 40px; }
.step-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: 64px; align-items: center; min-height: 430px; }
.step-copy p { color: var(--muted); }
.step-copy .privacy-note { font-size: .9rem; }
.step-copy.compact { margin-bottom: 28px; }
.action-panel { padding: 28px; border-radius: 12px; background: var(--soft); }
.action-panel form { display: grid; gap: 16px; margin-bottom: 16px; }
output { display: block; color: var(--muted); margin-top: 12px; overflow-wrap: anywhere; }
.is-error { color: var(--danger); }
.is-success { color: var(--success); }
.record-choices { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.lookup-form { display: flex; align-items: end; gap: 12px; margin-bottom: 28px; }
.lookup-form label { flex: 1; }
.builder-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: start; }
.make-control { display: grid; gap: 6px; align-content: start; }
.make-toggle { min-height: 44px; padding: 6px 2px; justify-self: start; background: transparent; color: var(--brand-dark); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.make-toggle:hover { background: var(--soft); }
.make-toggle:disabled { background: transparent; }
.customer-choice { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.customer-choice legend { font-weight: 650; margin-bottom: 12px; }
.customer-options { display: flex; flex-wrap: wrap; gap: 12px; }
.customer-options label { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.customer-options label:has(:checked) { border-color: var(--brand); background: #edf5fc; color: var(--brand-dark); }
.customer-options input { width: 20px; height: 20px; min-height: 20px; margin: 0; accent-color: var(--brand); }
.customer-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-bottom: 24px; }
.intake-help { color: var(--muted); font-weight: 400; }
.ghost-button { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.ghost-button:hover { background: #eaf4ff; color: var(--brand-dark); }
.wizard-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; }
.service-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.45fr); gap: 32px; align-items: start; }
.service-item { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 8px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.service-item input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--brand); }
.service-item small { grid-column: 2 / -1; color: var(--muted); font-weight: 400; }
.estimate-card { background: var(--navy); color: #fff; padding: 24px; border-radius: 12px; position: sticky; top: 24px; }
.estimate-card p { color: #d4dfed; }
dt { color: var(--muted); font-weight: 400; } dd { margin: 4px 0 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.estimate-card dt { color: #d4dfed; }
.confirm-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.45fr); gap: 32px; align-items: start; }
.schedule-toolbar { display: grid; grid-template-columns: auto minmax(160px,1fr) auto; gap: 12px; align-items: end; }
.available-days { margin-top: 24px; }
.day-picker { display: none; }
.available-days > section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.available-days h3 { margin-bottom: 12px; }
.time-options { display: flex; flex-wrap: wrap; gap: 8px; }
.time-options button { font-size: .9rem; padding: 8px 12px; font-variant-numeric: tabular-nums; min-width: 90px; }
.time-options [aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.contact-card { display: grid; gap: 20px; margin-top: 32px; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.consent { display: flex; gap: 12px; align-items: start; font-size: .9rem; font-weight: 400; }
.consent input { flex: 0 0 20px; min-height: 20px; height: 20px; accent-color: var(--brand); margin-top: 2px; }
.final-summary { padding: 24px; background: var(--soft); border-radius: 12px; position: sticky; top: 24px; }
.final-summary ul { padding-left: 20px; } .final-summary li { margin-bottom: 12px; }
.final-summary button { width: 100%; }
@media (max-width: 1000px) { .confirm-layout { grid-template-columns: minmax(0,1fr); } .final-summary { position: static; } }
@media (max-width: 760px) {
  .app-header { padding: 20px; flex-direction: column; align-items: start; }
  .brand-logo { width: 96px; }
  h1 { font-size: 1.4rem; } h2 { font-size: 2rem; }
  .scheduler { width: calc(100% - 24px); margin: 20px auto 40px; }
  .wizard-step { padding: 24px 20px; }
  .step-grid, .service-layout { grid-template-columns: minmax(0,1fr); gap: 28px; min-height: auto; }
  .builder-controls, .contact-grid, .customer-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .schedule-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); } .schedule-toolbar label { grid-column: 1 / -1; grid-row: 1; }
  .day-picker { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 6px 4px 12px; margin: 16px -4px 0; scroll-snap-type: x proximity; }
  .day-picker button { flex: 0 0 104px; padding: 10px 8px; scroll-snap-align: start; font-size: .9rem; }
  .day-picker [aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
  .schedule-day[data-selected="false"] { display: none; }
  .available-days { margin-top: 0; }
  .time-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .time-options button { min-width: 0; min-height: 48px; padding: 8px 4px; }
  .lookup-form { flex-direction: column; align-items: stretch; }
  .estimate-card { position: static; }
  .progress-steps li { font-size: .85rem; padding: 10px 4px; }
}
@media (max-width: 460px) { .builder-controls, .contact-grid, .customer-controls { grid-template-columns: minmax(0,1fr); } .customer-options { display: grid; grid-template-columns: minmax(0,1fr); } .wizard-actions { flex-direction: column-reverse; } .action-panel { padding: 20px; } .service-item { grid-template-columns: 24px minmax(0,1fr); } .service-item strong { grid-column: 2; } }
@media (prefers-reduced-motion: no-preference) { button { transition: background-color 160ms ease-out; } }

/* Scheduler service details R53. */
.service-details { display: grid; gap: 16px; padding: 4px 0 20px 36px; border-bottom: 1px solid var(--line); }
.service-details textarea { min-height: 100px; }
.service-details select, .service-details label { min-width: 0; }
