/* Rezervacijos forma (booking.js). Puslapis nustato --bk-* spalvas ir šriftus. */
.bk {
  --bk-radius: 14px;
  /* grid/flex vaikas: neleidžia datų juostai ir žingsniams išplėsti stulpelio telefone */
  min-width: 0;
  background: var(--bk-surface);
  color: var(--bk-text);
  border: 1px solid var(--bk-line);
  border-radius: calc(var(--bk-radius) + 6px);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--bk-shadow, 0 24px 60px -30px rgba(0, 0, 0, 0.35));
}
.bk button { font: inherit; color: inherit; cursor: pointer; }
.bk button:disabled { cursor: not-allowed; }
.bk :focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 2px; }

.bk-steps {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.bk .bk-step > * {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  border-radius: var(--bk-btn-radius, 999px);
  border: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--bk-muted);
}
.bk-step-n {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--bk-line);
  font-size: 0.75rem;
}
.bk-step.is-current > * { color: var(--bk-text); background: var(--bk-chip); }
.bk-step.is-current .bk-step-n { background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-on-accent); }
.bk-step.is-done .bk-step-n { border-color: var(--bk-accent); color: var(--bk-accent); }
.bk-step.is-done button:hover { color: var(--bk-text); }

.bk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.bk-title { font-stretch: var(--bk-head-stretch, normal); margin: 0; font-family: var(--bk-font-head, inherit); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; }

.bk-list, .bk-grid { display: grid; gap: 0.625rem; }
.bk-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.bk-choice {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  text-align: left;
  padding: 0.875rem 1rem;
  border-radius: var(--bk-radius);
  border: 1px solid var(--bk-line);
  background: var(--bk-bg);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.bk-choice:hover { border-color: var(--bk-accent); }
.bk-choice.is-selected { border-color: var(--bk-accent); background: var(--bk-chip); }
.bk-choice-main { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.bk-choice-title { font-weight: 650; }
.bk-choice-sub { font-size: 0.8125rem; color: var(--bk-muted); }
.bk-choice-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; white-space: nowrap; }
.bk-price { font-weight: 700; color: var(--bk-accent-text, var(--bk-accent)); }

.bk-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--bk-avatar, var(--bk-chip));
  color: var(--bk-accent-text, var(--bk-accent));
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Data ir laikas: mėnesio kalendorius + laisvi laikai (plačioje formoje — dviem stulpeliais). */
.bk { container-type: inline-size; }
.bk-when { display: grid; gap: 1.5rem; }
@container (min-width: 540px) {
  .bk-when { grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr); align-items: start; gap: 2rem; }
}
.bk-cal { padding: 1rem; border: 1px solid var(--bk-line); border-radius: var(--bk-radius); background: var(--bk-bg); }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.bk-cal-title { font-stretch: var(--bk-head-stretch, normal); font-family: var(--bk-font-head, inherit); font-weight: 700; font-size: 1.05rem; }
.bk-cal-nav {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--bk-cal-radius, 999px);
  border: 1px solid var(--bk-line);
  background: var(--bk-surface);
  font-size: 1.25rem;
  line-height: 1;
}
.bk-cal-nav:hover:not(:disabled) { border-color: var(--bk-accent); }
.bk-cal-nav:disabled { opacity: 0.3; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.bk-cal-wd { padding: 0.25rem 0 0.4rem; text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--bk-muted); }
.bk-cal-cell { aspect-ratio: 1; }
.bk-cal-day {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--bk-cal-radius, 10px);
  background: none;
  font-weight: 600;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.bk-cal-num { transform: translateY(-2px); }
.bk-cal-day:disabled { color: var(--bk-muted); opacity: 0.4; font-weight: 400; }
.bk-cal-day.has-free::after {
  content: "";
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 99px;
  background: var(--bk-accent);
}
.bk-cal-day.has-free:hover { border-color: var(--bk-accent); }
.bk-cal-day.is-today { border-color: var(--bk-line); }
.bk-cal-day.is-selected { background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-on-accent); }
.bk-cal-day.is-selected::after { background: var(--bk-on-accent); }
.bk-cal-legend { display: flex; align-items: center; gap: 0.4rem; margin: 0.75rem 0 0; font-size: 0.75rem; color: var(--bk-muted); }
.bk-cal-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--bk-accent); }

.bk-slot-date { margin: 0 0 1rem; font-size: 0.9375rem; color: var(--bk-muted); }
.bk-slot-date strong { color: var(--bk-text); }
.bk-slot-group + .bk-slot-group { margin-top: 1rem; }
.bk-slot-group-label { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bk-muted); }

.bk-hint { margin: 0.75rem 0; font-size: 0.875rem; color: var(--bk-muted); }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 0.5rem; }
.bk-slot {
  padding: 0.625rem 0;
  border-radius: var(--bk-slot-radius, 10px);
  border: 1px solid var(--bk-line);
  background: var(--bk-bg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bk-slot:hover:not(:disabled) { border-color: var(--bk-accent); }
.bk-slot:disabled { opacity: 0.35; text-decoration: line-through; }
.bk-slot.is-selected { background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-on-accent); }
.bk-empty { color: var(--bk-muted); }

.bk-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.125rem;
  border-radius: var(--bk-radius);
  background: var(--bk-chip);
  font-size: 0.9375rem;
}
.bk-summary dt { color: var(--bk-muted); }
.bk-summary dd { margin: 0; font-weight: 600; }

.bk-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.bk-field { display: flex; flex-direction: column; gap: 0.35rem; }
.bk-label { font-size: 0.8125rem; font-weight: 600; color: var(--bk-muted); }
.bk-field input {
  font: inherit;
  color: var(--bk-text);
  padding: 0.75rem 0.875rem;
  border-radius: 10px;
  border: 1px solid var(--bk-line);
  background: var(--bk-bg);
}
.bk-field input:focus { outline: none; border-color: var(--bk-accent); box-shadow: 0 0 0 3px var(--bk-ring, rgba(0, 0, 0, 0.08)); }

.bk-submit, .bk-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: var(--bk-btn-radius, 999px);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--bk-accent);
}
.bk-submit { margin-top: 1.25rem; background: var(--bk-accent); color: var(--bk-on-accent) !important; }
.bk-submit:hover { filter: brightness(1.08); }
.bk-ghost { background: transparent; color: var(--bk-text); }
.bk-ghost:hover { background: var(--bk-chip); }
.bk-link { border: 0; background: none; padding: 0.25rem 0; font-size: 0.875rem; font-weight: 600; color: var(--bk-muted) !important; }
.bk-link:hover { color: var(--bk-text) !important; }
.bk-fineprint { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--bk-muted); }

.bk-done { text-align: center; }
.bk-done .bk-summary { text-align: left; max-width: 26rem; margin: 1.25rem auto; }
.bk-done-icon {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--bk-accent);
  color: var(--bk-on-accent);
  font-size: 1.5rem;
  font-weight: 700;
}
.bk-done-title { font-stretch: var(--bk-head-stretch, normal); margin: 1rem 0 0; font-family: var(--bk-font-head, inherit); font-size: 1.5rem; }
.bk-demo-note {
  max-width: 30rem;
  margin: 0 auto;
  padding: 0.875rem 1rem;
  border-radius: var(--bk-radius);
  border: 1px dashed var(--bk-line);
  font-size: 0.875rem;
  color: var(--bk-muted);
}
.bk-demo-note strong { color: var(--bk-text); }
.bk-done-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.bk-done-actions .bk-submit { margin-top: 0; }

/* Viršutinė juosta „Tai pavyzdys“ — vienoda visiems pavyzdžiams. */
.cc-demo-bar {
  position: relative;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.5rem 1rem;
  background: #0b1220;
  color: #cbd5e1;
  font: 500 0.8125rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
}
.cc-demo-bar strong { color: #fff; font-weight: 700; }
.cc-demo-bar a { color: #8fb3ff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cc-demo-bar a:hover { text-decoration: underline; }

/* Telefone matomas tik dabartinio žingsnio pavadinimas — kiti tik numeriais. */
@media (max-width: 520px) {
  .bk-step:not(.is-current) .bk-step-label { display: none; }
  .bk-step:not(.is-current) > * { padding-right: 0.4rem; }
}
.sticky-book.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
.sticky-book { transition: opacity 0.2s, transform 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .bk * { transition: none !important; scroll-behavior: auto !important; }
}
