/* Service booking widget (views/nd/partials/booking.ejs). Scoped under .bk, in the homepage's design:
   stone band, white card, 72 px display heading, black pill buttons. */
.bk { --ink: #151515; --ink-2: #3d3d3d; --muted: #5c5c5c; --line: #dcdcdc; --stone: #f2f2f2; --err: #b3261e; --pad: clamp(16px, 4vw, 40px);
  background: var(--stone); color: var(--ink); padding: clamp(56px, 7vw, 104px) 0; font-size: 16px; line-height: 24px; letter-spacing: -.32px; scroll-margin-top: 72px; }
.bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
.bk-wrap { max-width: 900px; margin: 0 auto; padding: 0 var(--pad); }
.bk-display { margin: 0; font-size: clamp(36px, 4.2vw + 8px, 72px); line-height: 1; font-weight: 600; letter-spacing: clamp(-1.8px, -.025em, -.88px); text-align: center; text-wrap: balance; }
.bk-sub { margin: 18px auto 0; max-width: 52ch; text-align: center; color: var(--ink-2); text-wrap: pretty; }
.bk-card { margin-top: clamp(28px, 4vw, 44px); background: #fff; border-radius: 20px; padding: clamp(20px, 3.4vw, 36px); }
.bk-step { border: 0; margin: 0; padding: 0 0 28px; min-width: 0; }
.bk-step + .bk-step { border-top: 1px solid var(--line); padding-top: 26px; }
.bk-legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; font-size: clamp(19px, .5vw + 16px, 22px); line-height: 1.2; font-weight: 600; letter-spacing: -.45px; }
.bk-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; flex: none; }
.bk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.bk-tile, .bk-day, .bk-time { font: inherit; color: var(--ink); background: #fff; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; cursor: pointer; text-align: left;
  transition: box-shadow .15s, background-color .15s; -webkit-tap-highlight-color: transparent; }
.bk-tile { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; min-height: 64px; }
.bk-tile:hover, .bk-day:hover, .bk-time:not(:disabled):hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bk-tile[aria-checked="true"], .bk-day[aria-checked="true"], .bk-time[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.bk-tile-t { font-weight: 600; font-size: 15px; line-height: 20px; }
.bk-tile-h { font-size: 13px; line-height: 18px; color: var(--muted); }
.bk-tile[aria-checked="true"] .bk-tile-h { color: #cfcfcf; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-step[data-step="vehicle"] .bk-grid { grid-template-columns: 110px 1fr 1fr; }
.bk-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 18px; font-weight: 500; color: var(--ink-2); min-width: 0; }
.bk-f-wide { margin-top: 12px; }
.bk-f input, .bk-f textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 0; box-shadow: inset 0 0 0 1px #bdbdbd; border-radius: 12px; padding: 13px 14px; min-height: 50px; width: 100%; }
.bk-f textarea { resize: vertical; min-height: 84px; line-height: 22px; }
.bk-f input:focus, .bk-f textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.bk :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.bk-day { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 74px; padding: 10px 0; scroll-snap-align: start; text-align: center; }
.bk-day-w { font-size: 13px; line-height: 16px; color: var(--muted); text-transform: capitalize; }
.bk-day[aria-checked="true"] .bk-day-w { color: #cfcfcf; }
.bk-day-d { font-size: 15px; line-height: 20px; font-weight: 600; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 12px; min-height: 8px; }
.bk-time { padding: 12px 0; text-align: center; font-weight: 600; font-size: 15px; }
.bk-time:disabled { color: #a3a3a3; text-decoration: line-through; cursor: not-allowed; box-shadow: inset 0 0 0 1px #ececec; }
.bk-hint { margin: 10px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); grid-column: 1 / -1; }
.bk-err { margin: 10px 0 0; font-size: 14px; line-height: 20px; color: var(--err); font-weight: 500; }
.bk-err[hidden] { display: none; }
.bk-err a { color: inherit; }
.bk-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 15px; line-height: 22px; cursor: pointer; }
.bk-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #000; flex: none; }
.bk-est { margin-top: 12px; padding: 12px 14px; background: var(--stone); border-radius: 12px; color: var(--ink-2); }
.bk-est[hidden] { display: none; }
.bk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bk-foot { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0; background: #000; color: #fff;
  font: 500 16px/20px 'Inter', sans-serif; letter-spacing: -.32px; text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s; }
.bk-btn:hover { background: var(--ink-2); }
.bk-btn:active { transform: scale(.98); }
.bk-btn:disabled { opacity: .6; cursor: progress; }
.bk-btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bk-btn-line:hover { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.bk-rule { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); max-width: 60ch; }
.bk-done { text-align: left; }
.bk-done[hidden] { display: none; }
.bk-done-h { margin: 0 0 10px; font-size: clamp(26px, 1.4vw + 18px, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -.7px; }
.bk-done p { margin: 0 0 10px; }
.bk-muted { color: var(--muted); }
.bk-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bk-help { margin: 22px auto 0; text-align: center; font-size: 15px; line-height: 22px; color: var(--ink-2); max-width: 60ch; }
.bk-help a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .bk-grid, .bk-step[data-step="vehicle"] .bk-grid { grid-template-columns: 1fr 1fr; }
  .bk-step[data-step="vehicle"] .bk-f-s { grid-column: 1 / -1; }
  .bk-step[data-step="contact"] .bk-grid { grid-template-columns: 1fr; }
  .bk-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bk-tile { padding: 11px 12px; min-height: 0; }
  .bk-tile-t { font-size: 14px; line-height: 18px; }
  .bk-tile-h { font-size: 12px; line-height: 16px; }
  .bk-btn { width: 100%; }
}
@media (max-width: 340px) { .bk-tiles, .bk-grid, .bk-step[data-step="vehicle"] .bk-grid { grid-template-columns: 1fr; } }
