/* ── Booking wizard structural styles (extracted from the finalized bookings.html
 *    inline <style>) ───────────────────────────────────────────────────────────
 *
 * Byte-faithful port of the wizard's bespoke styles so the Next-ported /bookings
 * route renders pixel-identically to src/website/bookings.html. Loaded in the
 * Phase-1/2 cascade order (styles.css → site.css → animations.css → this), with the
 * Phase-4 UX layer (booking-flow.css) layered last for the .jas-* improvements.
 *
 * The legacy page set `body { background: var(--bone) }` and shipped its own
 * dedicated checkout <header> (back link · centered logo lockup · phone help aside)
 * with no site nav/footer; the Next route ships that same checkout chrome, styled
 * here as .bk-header. Class-scoped (not body[data-page='bookings'] …) because
 * PageRuntime only tags <body> post-hydration — element scoping under it would
 * leave the first static paint unstyled.
 */

body[data-page='bookings'] {
  background: var(--bone);
}

/* Checkout chrome — ported from the finalized bookings.html inline <style> header
   rules. The logo lockup itself reuses the shared .logo styles (styles.css). */
.bk-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bk-header .back {
  color: var(--ink-3);
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.bk-header .help {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Progress bar + steps */
.bk-progress {
  padding: 24px 56px;
  background: var(--bone);
  border-bottom: 1px solid var(--line-soft);
}
.bk-progress-bar {
  display: flex;
  gap: 0;
  height: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.bk-progress-bar div {
  height: 100%;
  background: var(--leaf);
  transition: width 0.3s;
}
.bk-progress-steps {
  /* UA <ol> reset: the legacy strip was a <div> of <span>s; the port's semantic
     <ol> must not render markers or list padding/margins. */
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bk-progress-steps li {
  display: flex;
  gap: 6px;
  align-items: center;
}
.bk-progress-steps span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.bk-progress-steps li.done {
  color: var(--leaf);
}
.bk-progress-steps li.active {
  color: var(--ink);
  font-weight: 700;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  padding: 48px 56px 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  min-height: 540px;
}
.step-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--leaf);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.step-title {
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 8px 0 24px;
}
.step-sub {
  color: var(--ink-3);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.5;
}

/* Field grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.panel label {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.panel input[type='text'],
.panel input[type='email'],
.panel input[type='tel'],
.panel input[type='number'],
.panel select,
.panel textarea {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 0 14px;
  font: inherit;
  font-size: 14.5px;
  outline: none;
  color: var(--ink);
}
.panel input:focus,
.panel select:focus,
.panel textarea:focus {
  border-color: var(--ink);
}
.panel textarea {
  height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

/* Tiles for select */
.tiles {
  display: grid;
  gap: 12px;
}
.tile-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tile {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  cursor: pointer;
  transition: 0.12s;
  position: relative;
}
.tile:hover {
  border-color: var(--ink-3);
}
.tile.on {
  border-color: var(--leaf);
  background: var(--leaf-bg);
}
.tile .ico {
  font-family: var(--display);
  font-size: 28px;
  color: var(--leaf);
  line-height: 1;
}
.tile .name {
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
}
.tile .desc {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.4;
}
.tile .price {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.tile.on::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.stepper button {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}
.stepper button:hover {
  background: var(--surface-2);
}
.stepper input {
  width: 60px;
  height: 44px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  background: transparent;
}

/* Add-on row */
.addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: 0.12s;
}
.addon:hover {
  border-color: var(--ink-3);
}
.addon.on {
  border-color: var(--leaf);
  background: var(--leaf-bg);
}
.addon-info h5 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.addon-info p {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 4px;
}
.addon-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.addon-right .price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}
.check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.addon.on .check-box {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}
.addon.on .check-box::after {
  content: '✓';
  font-size: 13px;
  font-weight: 700;
}

/* Calendar */
.cal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cal-head h4 {
  font-family: var(--display);
  font-size: 22px;
}
.cal-head button {
  background: transparent;
  border: 1px solid var(--line);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 8px;
}
.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  position: relative;
}
.cal-day:hover {
  background: var(--surface-2);
}
.cal-day.disabled {
  color: var(--mute);
  pointer-events: none;
}
.cal-day.has-slots::after {
  content: '';
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--leaf);
}
.cal-day.few-slots::after {
  background: var(--gold);
}
.cal-day.on {
  background: var(--ink);
  color: var(--paper);
}
.cal-day.on::after {
  background: var(--paper);
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.slot {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13px;
  background: var(--surface);
  transition: 0.12s;
}
.slot:hover {
  border-color: var(--ink);
}
.slot.on {
  background: var(--leaf);
  color: #fff;
  border-color: var(--leaf);
}
.slot .left {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  margin-left: 6px;
}
.slot.on .left {
  color: rgba(255, 255, 255, 0.7);
}

/* Cleaner cards */
.cleaners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cleaner {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: 0.12s;
}
.cleaner:hover {
  border-color: var(--ink-3);
}
.cleaner.on {
  border-color: var(--leaf);
  background: var(--leaf-bg);
}
.cleaner .avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 22px;
  color: var(--moss);
  flex-shrink: 0;
}
.cleaner .avatar.c2 {
  background: var(--coral-soft);
}
.cleaner .avatar.c3 {
  background: var(--sky-soft);
}
.cleaner h5 {
  font-size: 15px;
  font-weight: 600;
}
.cleaner .meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.4;
}
.cleaner .badges {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cleaner .badges .pill {
  font-size: 10px;
  height: 18px;
  padding: 0 6px;
}

/* Summary */
.summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky;
  top: 24px;
}
.summary h4 {
  font-family: var(--display);
  font-size: 24px;
}
.summary .line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line-soft);
}
.summary .line .lbl {
  color: var(--ink-3);
}
.summary .line .val {
  font-weight: 500;
  color: var(--ink);
}
.summary .line.discount .val {
  color: var(--leaf);
}
.summary .total {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.summary .total .lbl {
  font-size: 16px;
  font-weight: 600;
}
.summary .total .val {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
}
.summary .meta-note {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 12px;
  line-height: 1.5;
}
.summary .trust-mini {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-3);
}
.summary .trust-mini span {
  display: block;
  padding: 3px 0;
}

/* Footer nav */
.step-nav {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Success */
.success {
  text-align: center;
  padding: 40px 20px;
}
.success .check-big {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 40px;
  margin: 0 auto 24px;
}
.success h2 {
  font-family: var(--display);
  font-size: 56px;
}
.success p {
  color: var(--ink-3);
  font-size: 16px;
  margin-top: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.success .confirm-card {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 24px;
  margin: 32px auto;
  max-width: 420px;
  text-align: left;
}
.success .confirm-card .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.success .confirm-card .row .lbl {
  color: var(--ink-3);
}

/* Photo upload */
.photo-drop {
  border: 2px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 32px;
  text-align: center;
  background: var(--surface);
  cursor: pointer;
}
.photo-drop:hover {
  border-color: var(--ink);
}
.photo-drop .ico {
  font-family: var(--display);
  font-size: 36px;
  color: var(--ink-3);
}
.photo-drop p {
  font-size: 14px;
  margin-top: 8px;
  color: var(--ink-2);
}
.photo-drop .sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}

/* ── Mobile ──────────────────────────────────────────────────────────────────
 * Mirrors animations.css's [data-page="bookings"] header/.progress rules (the
 * mobile treatment: the header becomes the slim brand strip — logo lockup as
 * the home link + the phone tel: link; the back link folds into the logo and
 * "· need help?" trims to the number). Those [data-page] selectors only bind
 * after PageRuntime tags <body data-page> post-hydration — these class-scoped
 * copies make the first static paint correct too, and cover the renamed
 * .bk-progress strip. */
@media (max-width: 900px) {
  .bk-header {
    padding: 10px 16px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .bk-header .back {
    display: none;
  }
  .bk-header .help-suffix {
    display: none;
  }
  .bk-progress {
    padding: 16px 20px;
  }
  .bk-progress-steps {
    font-size: 9px;
    gap: 8px;
    flex-wrap: wrap;
  }
}
