/* ==========================================================
   Public booking flow
   ========================================================== */
.bk-page { min-height: 100vh; display: flex; flex-direction: column; }

.bk-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.bk-header-inner { display: flex; align-items: center; gap: 15px; }
.bk-logo { height: 40px; width: auto; }
.bk-brand-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.bk-brand-tag { font-size: .875rem; color: var(--muted); margin: 1px 0 0; }

.bk-main { flex: 1; padding: 30px 0 60px; }

/* ── Stepper ────────────────────────────────────────────── */
.stepper { display: flex; align-items: center; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted-2); font-weight: 600; }
.step-num {
  width: 25px; height: 25px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--line); color: var(--muted); font-size: .75rem; font-weight: 700;
  transition: background .2s, color .2s;
}
.step.active { color: var(--brand); }
.step.active .step-num { background: var(--brand); color: #fff; }
.step.done { color: var(--ok); }
.step.done .step-num { background: var(--ok); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--line); min-width: 14px; border-radius: 2px; }

/* ── Service cards ──────────────────────────────────────── */
.svc-group + .svc-group { margin-top: 26px; }
.svc-group-title {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 11px;
}
.svc-list { display: grid; gap: 12px; }
.svc {
  display: flex; align-items: flex-start; gap: 15px;
  padding: 17px 19px; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  font: inherit; color: inherit; width: 100%;
}
.svc:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.svc:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.svc-name { font-weight: 700; font-size: 1.02rem; margin: 0 0 3px; }
.svc-desc { font-size: .875rem; color: var(--muted); margin: 0 0 9px; line-height: 1.55; }
.svc-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.svc-price { text-align: right; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.svc-price .free { color: var(--ok); font-size: .875rem; }

/* ── Staff picker ───────────────────────────────────────── */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 11px; }
.staff-card {
  padding: 16px 13px; text-align: center; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
  font: inherit; color: inherit;
}
.staff-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.staff-card.sel { border-color: var(--brand); background: var(--brand-light); }
.staff-avatar {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 9px;
  background: var(--brand); color: #fff; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem;
}
.staff-name { font-weight: 600; font-size: .875rem; margin: 0; }
.staff-role { font-size: .75rem; color: var(--muted); margin: 2px 0 0; }

/* ── Calendar ───────────────────────────────────────────── */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 24px; align-items: start; }
@media (max-width: 800px) { .cal-layout { grid-template-columns: 1fr; } }

.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-month { font-size: 1.05rem; font-weight: 700; margin: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow {
  text-align: center; font-size: .7rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
  padding-bottom: 7px;
}
.cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; font: inherit; font-size: .875rem; font-weight: 600;
  color: var(--ink); cursor: pointer; transition: background .12s, border-color .12s;
  position: relative; min-height: 40px;
}
.cal-day.avail { background: var(--brand-light); color: var(--brand-dark); border-color: #dbeafe; }
.cal-day.avail:hover { background: #dbeafe; border-color: var(--brand); }
.cal-day.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.cal-day.sel .cal-dot { background: #fff; }
.cal-day.disabled { color: var(--muted-2); cursor: not-allowed; opacity: .45; }
.cal-day.empty { visibility: hidden; }
.cal-day.today::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: currentColor;
}
.cal-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }

/* ── Time slots ─────────────────────────────────────────── */
.slots-panel { position: sticky; top: 20px; }
.slots-head { font-size: .9375rem; font-weight: 700; margin-bottom: 3px; }
.slots-tz { font-size: .78125rem; color: var(--muted); margin-bottom: 13px; }
.slots-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px; max-height: 400px; overflow-y: auto; padding-right: 3px;
}
@media (max-width: 800px) {
  .slots-panel { position: static; }
  .slots-list { max-height: none; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}
.slot {
  padding: 10px 8px; text-align: center;
  background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm); cursor: pointer;
  font: inherit; font-size: .875rem; font-weight: 600; color: var(--ink);
  transition: border-color .12s, background .12s;
}
.slot:hover { border-color: var(--brand); background: var(--brand-light); }
.slot.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot-left { display: block; font-size: .68rem; font-weight: 500; opacity: .75; margin-top: 1px; }

/* ── Summary rail ───────────────────────────────────────── */
.summary { background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; }
.summary h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 11px; }
.summary-row { display: flex; gap: 10px; padding: 7px 0; font-size: .875rem; border-bottom: 1px solid #eef2f6; }
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--muted); flex-shrink: 0; width: 74px; }
.summary-value { font-weight: 600; flex: 1; }

/* ── Confirmation ───────────────────────────────────────── */
.confirm-hero { text-align: center; padding: 12px 0 22px; }
.confirm-check {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 15px;
  background: var(--ok-bg); color: var(--ok);
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
  animation: pop .35s cubic-bezier(.2,1.3,.4,1);
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.cal-buttons { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.cal-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: .84rem; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.cal-btn:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); text-decoration: none; }

.meet-box {
  background: #0f172a; color: #fff; border-radius: var(--radius);
  padding: 19px; text-align: center; margin: 18px 0;
}
.meet-box .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; opacity: .65; margin-bottom: 7px; }
.meet-box a { color: #93c5fd; word-break: break-all; font-size: .875rem; }

.ref-chip {
  display: inline-block; padding: 5px 13px;
  background: #f1f5f9; border-radius: 7px;
  font-family: var(--mono); font-size: .9375rem; font-weight: 700; letter-spacing: .03em;
}

.bk-footer {
  padding: 22px 0; border-top: 1px solid var(--line);
  text-align: center; font-size: .8125rem; color: var(--muted);
  background: var(--surface);
}
.bk-footer a { color: var(--muted); }
