/* The booking form (src/partials/booking.html, js/booking.js): a dialog over the page, a sheet from the bottom on
   phones. Self-contained, because it shows on every page. */
.bk { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.bk::backdrop { background: rgba(13, 14, 19, 0.45); backdrop-filter: blur(4px); }
.bk[open] { animation: bk-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes bk-in { from { opacity: 0; transform: translateY(12px); } }

.bk-form, .bk-done { display: grid; gap: 14px; padding: 26px 28px 24px; }
.bk-form[hidden], .bk-done[hidden] { display: none; }
.bk-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.bk h2 { margin: 0; font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.bk h2:focus { outline: none; }
.bk-close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin: -4px -6px 0 0; border: 0; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer; }
[dir="rtl"] .bk-close { margin: -4px 0 0 -6px; }
.bk-close:hover { background: var(--bg-soft); color: var(--ink); }
.bk-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-close .i { width: 16px; height: 16px; }
.bk-lead { margin: -4px 0 4px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

.bk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bk-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.bk-field label { font-size: 14px; font-weight: 500; }
.bk-field label small { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.bk-field input, .bk-field select { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
.bk-field select { padding-inline-end: 8px; cursor: pointer; }
.bk-field input::placeholder { color: var(--ink-3); }
.bk-field input:focus, .bk-field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.bk-field [aria-invalid="true"] { border-color: var(--err); }
.bk-error { margin: 0; font-size: 14px; font-weight: 500; color: var(--err); }
.bk-submit { justify-self: start; margin-top: 4px; }
.bk-after { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.bk-after a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

.bk-done { justify-items: center; padding-block: 36px 30px; text-align: center; }
.bk-done p { max-width: 30em; margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.bk-done-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--bg-soft); color: var(--ink); }
.bk-done-icon .i { width: 22px; height: 22px; }
.bk-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

@media (max-width: 560px) {
  .bk { width: 100%; max-width: none; max-height: calc(100dvh - 24px); margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .bk[open] { animation-name: bk-up; }
  .bk-form, .bk-done { padding: 22px 16px calc(20px + env(safe-area-inset-bottom)); }
  .bk-row { grid-template-columns: minmax(0, 1fr); }
  .bk h2 { font-size: 23px; }
  .bk-submit { justify-self: stretch; justify-content: center; }
}
@keyframes bk-up { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .bk[open] { animation: none; }
}
