@charset "UTF-8";
/* === CSS TOKENS === */
:root {
  /* Brand — overridden per-clinic via inline <style> */
  --brand: #8B5CF6;
  --brand-dark: #7C3AED;
  --brand-light: #EDE9FE;
  /* Neutrals */
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #64748B;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  /* Semantic */
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  /* Typography */
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 20px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 32px rgba(15,23,42,0.10), 0 2px 8px rgba(15,23,42,0.06);
  /* Radius */
  --r: 16px;
  --r-sm: 12px;
  --r-xs: 8px;
  --r-full: 9999px;
  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Focus ring — same brand token, just a dedicated alias for clarity */
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent);
}

/* === FULL RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  line-height: inherit;
}

input, select, textarea {
  font-family: var(--font);
  font-size: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

/* === ACCESSIBLE FOCUS (keyboard only — no ring on mouse/touch click) === */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.bk-input:focus-visible,
.form-input:focus-visible {
  outline: none;
}

.bk-cal-day:focus-visible,
.bk-slot-btn:focus-visible,
.bk-step-dot:focus-visible {
  outline-offset: 1px;
  border-radius: 6px;
}

/* === REDUCED MOTION ===
   Duration alone isn't enough: several entrance animations use a delay with
   fill-mode:both (e.g. .bk-form), which holds the element at its "from"
   state — opacity:0 — for the full delay before a (now near-instant)
   animation reveals it. Zeroing the delay too means content is simply
   there immediately, with no flash-then-appear. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
}
/* === KEYFRAMES === */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes slot-pop {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes day-pop {
  0% {
    transform: scale(0.82);
  }
  55% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes draw-circle {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes success-bloom {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  60% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes bk-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes copy-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
/* === APP SHELL === */
.booking-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bk-main {
  flex: 1;
}

/* === NAVBAR === */
.bk-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.bk-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bk-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
}

.bk-brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.bk-brand-initial {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bk-brand-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.bk-nav-phone {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-3);
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.bk-nav-phone:hover {
  color: var(--brand);
  border-color: var(--brand-light);
  background: var(--brand-light);
}

/* === FOOTER === */
.bk-footer {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
}

.bk-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.bk-footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.bk-footer-link {
  font-size: 0.8125rem;
  color: var(--ink-3);
  font-weight: 500;
  transition: color 0.15s;
}

.bk-footer-link:hover {
  color: var(--brand);
}

.bk-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--ink-3);
}

.bk-footer-brand strong {
  color: var(--ink-2);
  font-weight: 600;
}

.bk-footer-logo {
  height: 19px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(0.2);
  transition: opacity 0.15s;
}

.bk-footer-logo:hover {
  opacity: 1;
}

/* === PRIVACY CHECKBOX === */
.bk-privacy-check {
  margin-bottom: 1.25rem;
  padding: 1rem 1.125rem;
  background: var(--border-light);
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
}

.bk-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}

.bk-privacy-input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 1px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  accent-color: var(--brand);
  cursor: pointer;
}

.bk-privacy-text {
  font-size: 0.8125rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.bk-privacy-link {
  color: var(--brand);
  text-decoration: underline;
  font-weight: 500;
}

/* === HERO SECTION === */
.bk-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 3.2rem 1.5rem 2.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% -10%, color-mix(in srgb, var(--brand) 10%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.bk-hero-inner {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  animation: fade-up 0.5s var(--ease) both;
}

.bk-hero-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 1.2rem;
}

.bk-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.625rem;
}

.bk-hero-address {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-bottom: 0.875rem;
  background: var(--bg);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
}

.bk-hero-msg {
  font-size: 0.75rem;
  color: var(--ink-2);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.65;
}

/* === SECTION WRAPPER === */
.bk-section {
  padding: 2.5rem 1.5rem 3rem;
}

.bk-section--locations {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 1.75rem 1.5rem;
}

.bk-section-inner {
  max-width: 760px;
  margin: 0 auto;
}

.bk-section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
  animation: fade-up 0.4s 0.1s var(--ease) both;
}

.bk-section-sub {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin-bottom: 2rem;
  animation: fade-up 0.4s 0.15s var(--ease) both;
}

/* === LOCATION CHIPS === */
.bk-location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.bk-location-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.625rem 1rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  text-align: left;
}

.bk-location-chip.active,
.bk-location-chip:hover {
  border-color: var(--brand);
  background: var(--brand-light);
}

.bk-loc-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.bk-loc-addr {
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 0.125rem;
}

/* === CATEGORY GROUPS === */
.bk-cat-group {
  margin-bottom: 2rem;
}

.bk-cat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

/* === SERVICE CARDS === */
.bk-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.bk-services form {
  display: contents;
}

.bk-service-card {
  width: 100%;
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--spring);
  animation: card-in 0.35s var(--ease) both;
}

.bk-service-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md), 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
  transform: translateY(-2px);
}

.bk-service-card:active {
  transform: translateY(0);
}

.bk-service-bar {
  width: 5px;
  flex-shrink: 0;
  transition: width 0.2s var(--ease);
}

.bk-service-card:hover .bk-service-bar {
  width: 7px;
}

.bk-service-body {
  flex: 1;
  padding: 1.125rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bk-service-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.bk-service-desc {
  font-size: 0.8125rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 0.125rem;
}

.bk-service-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.bk-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border-light);
}

.bk-pill--price {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-light);
  border-color: transparent;
}

.bk-service-arrow {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--border);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.2s var(--spring);
}

.bk-service-card:hover .bk-service-arrow {
  color: var(--brand);
  transform: translateX(4px);
}

/* === WAITLIST HINT === */
.bk-waitlist-hint {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.bk-waitlist-hint a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
  font-weight: 500;
  transition: color 0.15s;
}

.bk-waitlist-hint a:hover {
  color: var(--brand);
}

/* === EMPTY STATE === */
.bk-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--ink-3);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* === CLOSED PAGE === */
.bk-closed {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.bk-closed-inner {
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: fade-up 0.5s var(--ease) both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.bk-closed-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}

.bk-closed-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.bk-closed-text {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.65;
}

/* === FLOW WRAPPER === */
.bk-flow {
  padding: 2.5rem 1.5rem 3.5rem;
  animation: fade-in 0.3s var(--ease) both;
}

.bk-flow-inner {
  max-width: 680px;
  margin: 0 auto;
}

.bk-flow-inner--narrow {
  max-width: 540px;
}

.bk-flow-header {
  margin-bottom: 2rem;
  animation: fade-up 0.4s 0.05s var(--ease) both;
}

.bk-flow-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.375rem;
}

.bk-flow-sub {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.bk-flow-sub strong {
  color: var(--ink);
  font-weight: 600;
}

/* === STEPPER ===
   Supports any number of steps (currently 5: Tjeneste, Behandler, Tid,
   Detaljer, Bekreft) — the confirm step is included so progress stays
   visible all the way through checkout instead of vanishing right before
   the commitment moment. */
.bk-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 2.25rem;
  animation: fade-in 0.35s var(--ease) both;
}

.bk-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.bk-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--ink-3);
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}

.bk-step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-3);
  display: none;
}

.bk-step--done .bk-step-dot {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: var(--brand);
}

.bk-step--active .bk-step-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.bk-step--active .bk-step-label {
  color: var(--ink);
  display: inline;
}

.bk-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.375rem;
  transition: background 0.2s;
}

.bk-step-line--done {
  background: var(--brand-light);
}

@media (min-width: 480px) {
  .bk-step-label {
    display: inline;
  }
}
/* === STAFF CARDS === */
.bk-staff-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 1rem 1.125rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--spring);
  animation: card-in 0.35s var(--ease) both;
  margin-bottom: 0.625rem;
}

.bk-staff-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md), 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
  transform: translateX(4px);
}

.bk-staff-card--any {
  border-style: dashed;
  border-color: var(--border);
  background: color-mix(in srgb, var(--brand) 3%, white);
}

.bk-staff-card--any:hover {
  background: var(--brand-light);
}

.bk-staff-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--brand) 30%, transparent);
}

.bk-staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-staff-avatar--any {
  background: var(--bg);
  border: 2px dashed var(--border);
  color: var(--ink-3);
  box-shadow: none;
}

.bk-staff-info {
  flex: 1;
  min-width: 0;
}

.bk-staff-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.bk-staff-title {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 0.125rem;
}

.bk-staff-bio {
  display: block;
  font-size: 0.775rem;
  color: var(--ink-2);
  margin-top: 0.25rem;
  line-height: 1.45;
}

.bk-staff-arrow {
  color: var(--border);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.2s var(--spring);
}

.bk-staff-card:hover .bk-staff-arrow {
  color: var(--brand);
  transform: translateX(3px);
}

/* === TIME PICKER === */
.bk-time-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  animation: fade-up 0.4s 0.1s var(--ease) both;
}

/* Calendar */
.bk-calendar {
  background: var(--white);
  border-radius: var(--r);
  border: 1.5px solid var(--border-light);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.bk-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.bk-cal-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.bk-cal-btn:hover {
  background: var(--brand-light);
  color: var(--brand);
  border-color: transparent;
}

.bk-cal-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: capitalize;
}

.bk-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.375rem;
}

.bk-cal-weekdays span {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--ink-3);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bk-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* Slot panel */
.bk-slots-panel {
  background: var(--white);
  border-radius: var(--r);
  border: 1.5px solid var(--border-light);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.bk-slots-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  text-transform: capitalize;
}

.bk-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  overflow-y: auto;
  max-height: 260px;
}

.bk-slots-empty {
  grid-column: 1/-1;
  font-size: 0.8125rem;
  color: var(--ink-3);
  text-align: center;
  padding: 2.5rem 0;
  line-height: 1.55;
}

/* No slots */
.bk-no-slots {
  text-align: center;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

.bk-no-slots svg {
  color: var(--ink-3);
  opacity: 0.5;
}

.bk-no-slots h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.bk-no-slots p {
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: 320px;
  line-height: 1.6;
}

@media (max-width: 580px) {
  .bk-time-layout {
    grid-template-columns: 1fr;
  }
  .bk-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* === SUMMARY BAR === */
.bk-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.125rem;
  background: var(--white);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.75rem;
  animation: fade-up 0.35s 0.1s var(--ease) both;
}

.bk-summary-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.bk-summary-item svg {
  color: var(--brand);
  flex-shrink: 0;
}

.bk-summary-sep {
  color: var(--border);
  font-size: 0.875rem;
}

/* === PREFILL HINT === */
.bk-prefill-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--brand-light);
  border-radius: var(--r-xs);
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
  animation: fade-up 0.3s var(--ease) both;
}

.bk-prefill-hint svg {
  color: var(--brand);
  flex-shrink: 0;
}

.bk-prefill-apply {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  padding: 0.2rem 0.625rem;
  border-radius: var(--r-xs);
  background: #fff;
  border: 1px solid var(--brand-light);
  transition: background 0.15s;
}

.bk-prefill-apply:hover {
  background: var(--brand);
  color: #fff;
}

/* === FORM === */
.bk-form {
  animation: fade-up 0.4s 0.15s var(--ease) both;
}

.bk-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.bk-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.bk-field--full {
  grid-column: 1/-1;
}

.bk-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.bk-req {
  color: var(--error);
}

.bk-opt {
  font-weight: 400;
  color: var(--ink-3);
}

.bk-input,
.form-input {
  width: 100%;
  padding: 0.75rem 0.9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.bk-input:focus,
.form-input:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
  background: #FDFCFF;
}
.bk-input::placeholder,
.form-input::placeholder {
  color: var(--ink-3);
}

textarea.bk-input,
textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

select.bk-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.bk-field-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.125rem;
}

.bk-form-error-banner {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 0.75rem 1rem;
  border-radius: var(--r-xs);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.bk-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

@media (max-width: 540px) {
  .bk-form-grid {
    grid-template-columns: 1fr;
  }
}
/* === GIFT CARD ===
   Reveals with a real height/opacity transition instead of an instant
   display:none/block swap — toggled via the --open class (see booking.js
   / patient_details.html), not inline styles. */
.bk-gift-card {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.bk-gift-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.15s;
  width: 100%;
}

.bk-gift-toggle:hover {
  color: var(--brand);
}

.bk-gift-toggle svg:last-child {
  margin-left: auto;
  transition: transform 0.2s var(--ease);
}

.bk-gift-toggle[aria-expanded=true] svg:last-child {
  transform: rotate(180deg);
}

.bk-gift-field {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s var(--ease), opacity 0.2s var(--ease);
}

.bk-gift-field--open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.75rem;
}

.bk-gift-field-inner {
  overflow: hidden;
}

.bk-gift-applied {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--success);
  margin-top: 0.625rem;
  padding: 0.5rem 0.75rem;
  background: #F0FDF4;
  border-radius: var(--r-xs);
  border: 1px solid #BBF7D0;
}

/* === FORM ACTIONS === */
.bk-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  gap: 1rem;
}

/* === BACK LINK === */
.bk-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--ink-3);
  font-weight: 500;
  transition: color 0.15s;
  margin-top: 1.75rem;
  border-radius: var(--r-xs);
}

.bk-back:hover {
  color: var(--ink);
}

.bk-form-actions .bk-back {
  margin-top: 0;
}

/* === BUTTONS === */
.bk-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6875rem 1.375rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s var(--spring), border-color 0.18s;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.bk-btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--brand) 30%, transparent);
}

.bk-btn--primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--brand) 40%, transparent);
  transform: translateY(-2px);
}

.bk-btn--primary:active {
  transform: translateY(0);
}

.bk-btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border);
}

.bk-btn--ghost:hover {
  border-color: var(--ink-3);
  background: var(--bg);
}

.bk-btn--danger {
  background: var(--error);
  color: #fff;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.25);
}

.bk-btn--danger:hover {
  background: #DC2626;
  transform: translateY(-1px);
}

.bk-btn--lg {
  padding: 0.8125rem 1.75rem;
  font-size: 0.9375rem;
}

.bk-btn--confirm {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 4px 18px color-mix(in srgb, var(--brand) 35%, transparent);
}

.bk-btn--confirm:hover {
  box-shadow: 0 6px 28px color-mix(in srgb, var(--brand) 45%, transparent);
  transform: translateY(-2px);
}

.bk-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.bk-btn--loading {
  opacity: 0.75 !important;
  cursor: wait !important;
  transform: none !important;
  pointer-events: none;
  position: relative;
}

.bk-btn--loading::after {
  content: "";
  position: absolute;
  right: 0.875rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: bk-spin 0.65s linear infinite;
}

/* === CONFIRM CARD === */
.bk-confirm-card {
  background: var(--white);
  border-radius: var(--r);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  animation: card-in 0.4s 0.1s var(--ease) both;
}

.bk-confirm-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  animation: fade-up 0.35s var(--ease) both;
}
.bk-confirm-section:nth-child(1) {
  animation-delay: 0.05s;
}
.bk-confirm-section:nth-child(2) {
  animation-delay: 0.1s;
}
.bk-confirm-section:nth-child(3) {
  animation-delay: 0.15s;
}
.bk-confirm-section:last-child {
  border-bottom: none;
}

.bk-confirm-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 0.875rem;
}

.bk-confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.bk-confirm-row:last-child {
  margin-bottom: 0;
}

.bk-confirm-row span {
  color: var(--ink-2);
}

.bk-confirm-row strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.bk-confirm-price {
  color: var(--brand);
  font-size: 1rem;
}

/* === ALERTS === */
.bk-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  border-radius: var(--r-xs);
  font-size: 0.875rem;
  line-height: 1.55;
}

.bk-alert--warning {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.bk-alert--info {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.bk-alert svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* === SUCCESS PAGE === */
.bk-success {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.bk-success-inner {
  max-width: 460px;
  width: 100%;
  text-align: center;
  animation: fade-up 0.5s var(--ease) both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.bk-success-icon {
  margin-bottom: 1.75rem;
  animation: success-bloom 0.55s var(--spring) both;
}

.bk-success-icon--cancel svg {
  color: var(--error);
}

.success-circle {
  stroke: var(--brand-light);
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: draw-circle 0.55s 0.2s var(--ease) forwards;
}

.success-check {
  stroke: var(--brand);
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw-check 0.4s 0.65s var(--ease) forwards;
}

.bk-success-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.bk-success-msg {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.bk-success-ref {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.375rem 1.75rem;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  width: 100%;
}

.bk-success-ref-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bk-success-ref-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.bk-success-ref-code {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.15em;
  font-family: "Courier New", Courier, monospace;
}

.bk-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-xs);
  color: var(--ink-3);
  border: 1.5px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.bk-copy-btn:hover {
  color: var(--brand);
  border-color: var(--brand-light);
  background: var(--brand-light);
}

.bk-copy-btn--copied {
  color: var(--success);
  border-color: var(--success);
  animation: copy-pop 0.3s var(--spring);
}

.bk-success-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bk-success-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
  font-weight: 500;
  transition: color 0.15s;
  border-radius: var(--r-xs);
}

.bk-success-link:hover {
  color: var(--ink);
}

.bk-success-link--cancel:hover {
  color: var(--error);
}

.bk-success-link--danger {
  color: #DC2626;
}

.bk-success-link--danger:hover {
  color: #991B1B;
}

.bk-success-details {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.bk-success-detail-row {
  display: grid;
  grid-template-columns: 20px 1fr 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
  animation: fade-up 0.3s var(--ease) both;
}
.bk-success-detail-row:nth-child(1) {
  animation-delay: 0.05s;
}
.bk-success-detail-row:nth-child(2) {
  animation-delay: 0.1s;
}
.bk-success-detail-row:nth-child(3) {
  animation-delay: 0.15s;
}
.bk-success-detail-row:nth-child(4) {
  animation-delay: 0.2s;
}
.bk-success-detail-row:last-child {
  border-bottom: none;
}

.bk-success-detail-icon {
  color: var(--ink-3);
  display: flex;
  align-items: center;
}

.bk-success-detail-label {
  color: var(--ink-3);
  font-weight: 500;
}

.bk-success-detail-value {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.bk-success-email-note {
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}

.bk-success-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* === STAR RATING === */
.bk-star-rating {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin: 1rem 0;
}

.bk-star {
  color: var(--border);
  transition: transform 0.15s var(--spring), color 0.15s;
  padding: 0.25rem;
  border-radius: var(--r-xs);
}

.bk-star:hover {
  transform: scale(1.2);
  color: var(--brand);
}

.bk-star svg {
  display: block;
  transition: fill 0.15s, stroke 0.15s;
}

/* === TOAST === */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 360px;
  pointer-events: all;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.3s, transform 0.3s var(--spring);
  border: 1px solid transparent;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast--exit {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}

.toast--success {
  background: #F0FDF4;
  color: #166534;
  border-color: #BBF7D0;
}

.toast--error {
  background: #FEF2F2;
  color: #991B1B;
  border-color: #FECACA;
}

.toast--info {
  background: #EFF6FF;
  color: #1E40AF;
  border-color: #BFDBFE;
}

.toast .toast-icon {
  flex-shrink: 0;
}

.toast .toast-message {
  flex: 1;
}

.toast .toast-close {
  background: none;
  border: none;
  opacity: 0.5;
  cursor: pointer;
  padding: 2px;
  display: flex;
}

.toast .toast-close:hover {
  opacity: 1;
}

/* === CALENDAR DAY CELLS (rendered by JS) === */
.bk-cal-day {
  aspect-ratio: 1;
  border-radius: 6px;
  font-size: 0.775rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
  width: 100%;
  border: 1.5px solid transparent;
  font-weight: 400;
  color: var(--ink);
}

.bk-cal-day--past {
  color: var(--border);
}

.bk-cal-day--today {
  font-weight: 700;
  border-color: var(--ink-2);
}

.bk-cal-day--available {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
}

.bk-cal-day--available:hover {
  background: var(--brand-light);
}

.bk-cal-day--selected {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
  font-weight: 700;
  animation: day-pop 0.25s var(--spring) both;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--brand) 35%, transparent);
}

.bk-cal-day:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* === SLOT BUTTONS (rendered by JS) === */
.bk-slot-btn {
  padding: 0.575rem 0;
  border-radius: var(--r-xs);
  background: var(--bg);
  border: 1.5px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s var(--spring);
  animation: slot-pop 0.2s var(--ease) both;
  font-family: var(--font);
  width: 100%;
}

.bk-slot-btn:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
  transform: scale(1.04);
}

.bk-slot-btn--active {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--brand) 30%, transparent);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .bk-hero {
    padding: 2rem 1rem 1.6rem;
  }
  .bk-hero-title {
    font-size: 1.4rem;
  }
  .bk-section {
    padding: 1.75rem 1rem 2.5rem;
  }
  .bk-flow {
    padding: 1.75rem 1rem 2.5rem;
  }
  .bk-flow-title {
    font-size: 1.375rem;
  }
  .bk-nav-inner {
    padding: 0 1rem;
  }
  .bk-confirm-section {
    padding: 1rem 1.125rem;
  }
  .bk-success {
    padding: 3rem 1rem;
  }
  .bk-success-title {
    font-size: 1.5rem;
  }
}
@media (max-width: 400px) {
  .bk-stepper {
    gap: 0;
  }
  .bk-step-label {
    display: none !important;
  }
  .bk-step-dot {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }
  .bk-step-line {
    margin: 0 0.25rem;
  }
}
