/* ═══ Rezervácia oslavy — dialóg (tokeny zo styles.css) ═══ */
.bk {
  margin: auto; /* globálny reset * { margin: 0 } by zrušil centrovanie <dialog> */
  width: min(720px, 100% - 1.5rem);
  max-height: min(92vh, 100dvh - 1.5rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  overscroll-behavior: contain;
}
.bk::backdrop { background: rgba(44, 58, 74, 0.55); backdrop-filter: blur(3px); }
.bk[open] { animation: bk-in var(--dur) var(--ease); }
@keyframes bk-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .bk[open] { animation: none; } }

.bk-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.bk-head h2 { font-size: 1.6rem; }
.bk-close {
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: var(--bg); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.bk-close:hover { background: var(--bg-sky); }

.bk-form, .bk-done { padding: 1.25rem 1.5rem 1.5rem; }
.bk-step { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.bk-step legend {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.7rem;
}
.bk-num {
  display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--c-sky-dk); color: #fff; font-size: 0.95rem;
}

/* Rádiá ako „čipy“ — natívny input ostáva pre klávesnicu a čítačky. */
.bk-pkg, .bk-day, .bk-time { position: relative; cursor: pointer; }
.bk-pkg input, .bk-day input, .bk-time input {
  position: absolute; inset: 0; opacity: 0; margin: 0; cursor: inherit;
}
.bk-pkg > span, .bk-day, .bk-time > span {
  border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.bk-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.bk-pkg > span { display: flex; flex-direction: column; padding: 0.7rem 0.9rem; font-weight: 700; }
.bk-pkg small { color: var(--ink-soft); font-weight: 600; }

.bk-days {
  display: grid; grid-auto-flow: column; grid-auto-columns: 5.2rem; gap: 0.5rem;
  overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory;
}
.bk-day {
  display: flex; flex-direction: column; align-items: center; padding: 0.55rem 0.3rem;
  scroll-snap-align: start; text-align: center;
}
.bk-day-wd { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 700; }
.bk-day-d { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.bk-day-n { font-size: 0.75rem; color: #2F7A38; font-weight: 700; }
.bk-day:has(input:disabled) { cursor: not-allowed; background: var(--bg); }
.bk-day:has(input:disabled) .bk-day-d { color: var(--ink-soft); }
.bk-day:has(input:disabled) .bk-day-n { color: var(--ink-soft); }

.bk-times { display: flex; flex-wrap: wrap; gap: 0.6rem; min-height: 3rem; }
.bk-time > span { display: block; padding: 0.7rem 1.1rem; font-weight: 700; }
.bk-hint { color: var(--ink-soft); }

.bk-pkg:hover > span, .bk-time:hover > span, .bk-day:not(:has(input:disabled)):hover { border-color: var(--c-sky); }
.bk-pkg input:checked + span, .bk-time input:checked + span, .bk-day:has(input:checked) {
  border-color: var(--c-sky-dk); background: var(--bg-sky);
}
.bk-pkg input:focus-visible + span, .bk-time input:focus-visible + span, .bk-day:has(input:focus-visible) {
  outline: 3px solid var(--c-yellow); outline-offset: 2px;
}

.bk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
.bk-field { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; font-size: 0.95rem; }
.bk-field small { color: var(--ink-soft); font-weight: 600; }
.bk-field--wide { grid-column: 1 / -1; }
.bk-field input, .bk-field textarea {
  font: inherit; font-weight: 600; color: var(--ink);
  padding: 0.7rem 0.85rem; border: 2px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: border-color var(--dur) var(--ease);
}
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--c-sky-dk); }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bk-error { color: #B3362F; font-size: 0.85rem; font-weight: 700; min-height: 0; }
.bk-error:empty { display: none; }
.bk-status { min-height: 1.4rem; font-weight: 700; margin-bottom: 0.6rem; }
.bk-status[data-kind="error"] { color: #B3362F; }
.bk-status[data-kind="info"] { color: var(--ink-soft); }

.bk-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bk-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
.bk-foot .btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.bk-alt { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.95rem; }
.bk-alt a { color: var(--c-sky-dk); font-weight: 700; }

.bk-done { text-align: center; padding-block: 2.5rem; }
.bk-done-icon { font-size: 3rem; }
.bk-done h3 { font-size: 1.8rem; margin-bottom: 0.4rem; }
.bk-done-what { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.8rem; }
.bk-done p { margin-bottom: 0.4rem; }
.bk-done .btn { margin-top: 1.2rem; }

@media (max-width: 560px) {
  .bk-head, .bk-form, .bk-done { padding-inline: 1rem; }
  .bk-pkg > span { padding: 0.55rem 0.5rem; font-size: 0.9rem; text-align: center; }
  .bk-fields { grid-template-columns: 1fr; }
  .bk-foot .btn { width: 100%; }
}
