/* Booking flow (prototype). Stands in for Brett's booking calendar (Square Appointments or similar) until it's set up. */
.bk-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(4, 20, 44, 0.6); opacity: 0; transition: opacity 200ms ease; }
.bk-modal.is-open { opacity: 1; }
.bk-modal[hidden] { display: none; }
.bk-box { position: relative; width: min(560px, 100%); max-height: 100%; overflow: auto; background: #ffffff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 20px; color: var(--text, #1f2a37); box-shadow: 0 40px 80px -30px rgba(4, 30, 64, 0.55); }
.bk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bk-top h2 { margin: 0; font-family: var(--font-display, inherit); font-weight: 500; font-size: 28px; line-height: 32px; letter-spacing: -0.03em; color: var(--ink, #042d62); }
.bk-top p { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted, #5b6878); }
.bk-close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--surface-soft, #f4f6f9); color: var(--ink, #042d62); font-size: 22px; line-height: 1; cursor: pointer; }
.bk-close:hover { background: var(--surface-sunk, #e8ecf1); }
.bk-steps { display: flex; gap: 6px; }
.bk-steps span { flex: 1; height: 4px; border-radius: 999px; background: var(--surface-sunk, #e8ecf1); }
.bk-steps span.is-done { background: var(--ink, #042d62); }
.bk-h { margin: 0 0 10px; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink, #042d62); }

.bk-types { display: grid; gap: 10px; }
.bk-opt { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--surface-soft, #f4f6f9); cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 150ms ease, background 150ms ease; }
.bk-opt:hover { background: var(--surface-sunk, #e8ecf1); }
.bk-opt.is-on { background: #ffffff; box-shadow: inset 0 0 0 2px var(--ink, #042d62); }
.bk-opt:focus-visible { outline: 2px solid var(--pulse, #3570be); outline-offset: 2px; }
.bk-opt b { display: block; font-size: 16px; font-weight: 600; color: var(--ink, #042d62); }
.bk-opt small { font-size: 13px; color: var(--text-muted, #5b6878); }
.bk-opt em { font-style: normal; font-size: 17px; font-weight: 600; color: var(--ink, #042d62); }

.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.bk-day { all: unset; box-sizing: border-box; flex: none; width: 64px; padding: 10px 0; border-radius: 14px; text-align: center; background: var(--surface-soft, #f4f6f9); cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; }
.bk-day small { display: block; font-size: 12px; color: var(--text-muted, #5b6878); }
.bk-day b { display: block; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink, #042d62); }
.bk-day.is-on { background: var(--ink, #042d62); }
.bk-day.is-on small, .bk-day.is-on b { color: #ffffff; }
.bk-day[disabled] { opacity: 0.4; cursor: default; }
.bk-day:focus-visible, .bk-time:focus-visible { outline: 2px solid var(--pulse, #3570be); outline-offset: 2px; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bk-time { all: unset; box-sizing: border-box; padding: 11px 0; border-radius: 12px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink, #042d62); background: var(--surface-soft, #f4f6f9); cursor: pointer; }
.bk-time:hover { background: var(--surface-sunk, #e8ecf1); }
.bk-time.is-on { background: var(--ink, #042d62); color: #ffffff; }
.bk-time[disabled] { text-decoration: line-through; opacity: 0.4; cursor: default; }
.bk-empty { font-size: 14px; color: var(--text-muted, #5b6878); }

.bk-form { display: grid; gap: 12px; }
.bk-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink, #042d62); }
.bk-form input[type="text"], .bk-form input[type="tel"], .bk-form input[type="email"] { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, #dfe4ea); background: #ffffff; color: var(--text, #1f2a37); }
.bk-form input:focus { outline: 2px solid var(--pulse, #3570be); outline-offset: 1px; border-color: transparent; }
.bk-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: var(--text, #1f2a37) !important; line-height: 20px; }
.bk-check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--ink, #042d62); }
.bk-err { margin: 0; font-size: 13px; color: #b42318; }

.bk-sum { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--surface-soft, #f4f6f9); font-size: 15px; line-height: 22px; }
.bk-sum b { color: var(--ink, #042d62); }
.bk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bk-back { all: unset; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink, #042d62); }
.bk-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.bk-note { margin: 0; font-size: 12px; line-height: 18px; color: var(--text-muted, #5b6878); }
.bk-tick { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--pulse-soft, #eaf1fa); color: var(--ink, #042d62); }
.bk-tick svg { width: 26px; height: 26px; }

@media (max-width: 560px) {
  .bk-modal { place-items: end center; padding: 0; }
  .bk-box { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .bk-modal { transition: none; } }
.bk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-form input[readonly] { background: var(--surface-soft, #f4f6f9); color: var(--text-muted, #5b6878); }
.bk-form input[type="text"], .bk-form input[type="tel"], .bk-form input[type="email"] { box-sizing: border-box; width: 100%; min-width: 0; }

/* month calendar */
.bk-cal { display: grid; gap: 10px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; }
.bk-cal-head b { font-size: 17px; font-weight: 600; color: var(--ink, #042d62); }
.bk-cal-head span { display: flex; gap: 6px; }
.bk-nav { all: unset; box-sizing: border-box; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--ink, #042d62); background: var(--surface-soft, #f4f6f9); cursor: pointer; }
.bk-nav:hover { background: var(--surface-sunk, #e8ecf1); }
.bk-nav[disabled] { opacity: 0.35; cursor: default; }
.bk-dow, .bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-dow span { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-muted, #5b6878); }
.bk-cell { all: unset; box-sizing: border-box; position: relative; height: 48px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; line-height: 1; color: var(--ink, #042d62); background: var(--surface-soft, #f4f6f9); cursor: pointer; }
.bk-cell:hover { background: var(--surface-sunk, #e8ecf1); }
.bk-cell[disabled] { background: none; color: #a9b3c0; font-weight: 400; cursor: default; }
.bk-cell.is-on { background: var(--ink, #042d62); color: #ffffff; }
.bk-cell.is-today { box-shadow: inset 0 0 0 2px var(--pulse, #3570be); color: var(--ink, #042d62); font-weight: 600; }
.bk-cell small { margin-top: 3px; font-size: 9px; font-weight: 600; letter-spacing: 0.02em; color: var(--pulse, #3570be); }
.bk-cell:focus-visible, .bk-nav:focus-visible { outline: 2px solid var(--pulse, #3570be); outline-offset: 2px; }
@media (max-width: 560px) { .bk-cell { height: 42px; font-size: 15px; } .bk-dow, .bk-grid { gap: 4px; } }
.bk-cell.is-on.is-today { color: #ffffff; }
.bk-cell.is-on.is-today small { color: #ffffff; }
.bk-cell.is-today[disabled] { color: #a9b3c0; font-weight: 400; }
.bk-info { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-soft, #f4f6f9); font-size: 14px; line-height: 20px; color: var(--ink, #042d62); }
