/* Studio Demo — light booking wizard */
.bk-overlay {
  position: fixed; inset: 0; z-index: 12000;
  display: flex; align-items: center; justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1), visibility 0.4s;
  cursor: auto !important;
}
.bk-overlay, .bk-overlay * { cursor: auto !important; }
.bk-overlay button, .bk-overlay a, .bk-overlay label { cursor: pointer !important; }
.bk-overlay input, .bk-overlay select, .bk-overlay textarea { cursor: text !important; }
.bk-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.bk-backdrop {
  position: absolute; inset: 0;
  background: rgba(28,24,20,0.45);
  backdrop-filter: blur(10px);
}
.bk-shell {
  position: relative; width: min(920px, 100%);
  max-height: min(92vh, 860px);
  display: flex; flex-direction: column;
  background: #fbf7f0;
  border-radius: 22px; border: 1px solid rgba(28,24,20,0.1);
  box-shadow: 0 40px 100px rgba(28,24,20,0.22);
  overflow: hidden;
  transform: translateY(24px) scale(0.97); opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.45s;
  color: #1c1814;
  font-family: "Sora", system-ui, sans-serif;
}
.bk-overlay.is-open .bk-shell { transform: none; opacity: 1; }
.bk-shell::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: #c45c32;
}

.bk-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.25rem 1.4rem 0.6rem; }
.bk-brand-text strong { display: block; font-family: "Fraunces", serif; font-size: 1.25rem; font-weight: 400; }
.bk-brand-text span { font-size: 11px; letter-spacing: 0.12em; color: #c45c32; text-transform: uppercase; }
.bk-close {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(28,24,20,0.15);
  background: transparent; color: #1c1814; font-size: 1.3rem;
}
.bk-close:hover { border-color: #c45c32; color: #c45c32; }

.bk-progress { padding: 0 1.4rem 0.6rem; }
.bk-progress-track { height: 2px; background: rgba(28,24,20,0.1); }
.bk-progress-fill { height: 100%; width: 20%; background: #c45c32; transition: width 0.4s; }
.bk-steps { display: flex; gap: 0.4rem; margin-top: 0.55rem; flex-wrap: wrap; }
.bk-step-pill { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(28,24,20,0.35); padding: 0.2rem 0.45rem; }
.bk-step-pill.is-active { color: #c45c32; }
.bk-step-pill.is-done { color: #5f6f58; }

.bk-body { overflow: auto; padding: 0.4rem 1.4rem 1rem; flex: 1; }
.bk-panel { display: none; }
.bk-panel.is-active { display: block; }
.bk-panel-title { font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 400; margin: 0 0 0.4rem; }
.bk-panel-title em { font-style: italic; color: #c45c32; }
.bk-panel-sub { color: #6a635b; margin: 0 0 1.1rem; }

.bk-service-grid, .bk-provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.bk-service-card, .bk-provider-card {
  text-align: left; background: #f3eee4; border: 1px solid rgba(28,24,20,0.1);
  color: inherit; padding: 0.9rem; border-radius: 12px; cursor: pointer;
}
.bk-service-card.is-selected, .bk-provider-card.is-selected {
  border-color: #c45c32; box-shadow: 0 0 0 1px #c45c32 inset;
}
.bk-service-top { display: flex; justify-content: space-between; color: #c45c32; font-size: 12px; }
.bk-service-icon { width: 22px; height: 22px; display: grid; }
.bk-service-icon svg { width: 22px; height: 22px; }
.bk-service-card strong, .bk-provider-card strong { display: block; margin: 0.35rem 0 0.2rem; }
.bk-service-card p { margin: 0; font-size: 0.82rem; color: #6a635b; }
.bk-provider-card { display: flex; gap: 0.7rem; align-items: center; }
.bk-provider-avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #e7dfd0; color: #c45c32; font-size: 11px;
}
.bk-provider-card span span { display: block; font-size: 0.78rem; color: #6a635b; }
.bk-check { margin-left: auto; opacity: 0; }
.bk-provider-card.is-selected .bk-check { opacity: 1; color: #c45c32; }

.bk-datetime { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bk-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.bk-cal-nav { display: flex; gap: 0.3rem; }
.bk-cal-nav button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(28,24,20,0.15);
  background: transparent; color: inherit;
}
.bk-cal-dow, .bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.bk-cal-dow { font-size: 10px; color: #c45c32; text-align: center; margin-bottom: 0.3rem; }
.bk-cal-day {
  aspect-ratio: 1; border: 0; background: transparent; color: inherit; border-radius: 8px; font-size: 0.85rem;
  position: relative;
}
.bk-cal-day.has-slots::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px;
  background: #c45c32; border-radius: 50%; transform: translateX(-50%);
}
.bk-cal-day.is-selected { background: #c45c32; color: #fbf7f0; }
.bk-cal-day.is-past, .bk-cal-day.is-closed, .bk-cal-day.is-empty, .bk-cal-day:disabled { opacity: 0.28; }
.bk-slots-panel { border: 1px solid rgba(28,24,20,0.1); border-radius: 12px; padding: 0.8rem; min-height: 220px; }
.bk-slots-empty, .bk-slots-loading { display: grid; place-items: center; min-height: 180px; color: #6a635b; text-align: center; }
.bk-slots-head { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.6rem; color: #6a635b; }
.bk-slots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.bk-slot {
  border: 1px solid rgba(28,24,20,0.12); background: #f3eee4; color: inherit;
  padding: 0.55rem; border-radius: 8px;
}
.bk-slot.is-selected { background: #c45c32; color: #fbf7f0; border-color: #c45c32; }
.bk-spinner { width: 22px; height: 22px; border: 2px solid rgba(196,92,50,0.2); border-top-color: #c45c32; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.bk-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.bk-field { display: grid; gap: 0.3rem; }
.bk-full { grid-column: 1 / -1; }
.bk-field label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #c45c32; }
.bk-field input, .bk-field select, .bk-field textarea {
  background: #f3eee4; border: 1px solid rgba(28,24,20,0.12); color: #1c1814;
  padding: 0.7rem 0.75rem; outline: none;
}
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { border-color: #c45c32; }
.req { color: #c45c32; }
.bk-segment { display: flex; gap: 0.4rem; }
.bk-segment button {
  flex: 1; padding: 0.6rem; border: 1px solid rgba(28,24,20,0.12); background: #f3eee4; color: inherit; border-radius: 8px;
}
.bk-segment button.is-active { border-color: #c45c32; color: #c45c32; }
.bk-check-row { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; color: #6a635b; }
.bk-check-row input { position: absolute; opacity: 0; }
.bk-check-ui {
  width: 18px; height: 18px; border: 1px solid rgba(28,24,20,0.25); display: grid; place-items: center; flex-shrink: 0;
}
.bk-check-row.is-checked .bk-check-ui { background: #c45c32; color: #fbf7f0; }
.bk-hp { position: absolute; left: -9999px; }

.bk-review-highlight { padding: 1rem; border: 1px solid rgba(196,92,50,0.35); margin-bottom: 0.8rem; }
.bk-when { font-size: 11px; color: #c45c32; text-transform: uppercase; letter-spacing: 0.12em; }
.bk-time { font-family: "Fraunces", serif; font-size: 1.8rem; }
.bk-review-card { border: 1px solid rgba(28,24,20,0.1); padding: 0.9rem; margin-bottom: 0.6rem; }
.bk-review-card h4 { margin: 0 0 0.5rem; font-weight: 500; }
.bk-review-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; font-size: 0.9rem; }
.bk-review-row dt { color: #6a635b; }

.bk-success { text-align: center; padding: 1.4rem 0; }
.bk-success-icon { width: 56px; height: 56px; margin: 0 auto 0.8rem; border-radius: 50%; border: 1px solid #c45c32; display: grid; place-items: center; color: #c45c32; }
.bk-success-id { color: #c45c32; margin: 0.6rem 0 1rem; }
.bk-success-card { text-align: left; border: 1px solid rgba(28,24,20,0.12); padding: 1rem; }

.bk-error { color: #b5472a; min-height: 1.1em; margin: 0 1.4rem; font-size: 0.88rem; }
.bk-footer {
  display: flex; justify-content: space-between; gap: 0.8rem;
  padding: 0.8rem 1.4rem 1.2rem; border-top: 1px solid rgba(28,24,20,0.08);
}
.bk-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1.1rem;
  border-radius: 999px; border: 1px solid rgba(28,24,20,0.15); background: transparent; color: inherit;
}
.bk-btn-primary { background: #c45c32; color: #fbf7f0; border-color: #c45c32; }
.bk-btn-primary:disabled { opacity: 0.4; }
.bk-btn:hover { transform: translateY(-2px); }
@media (max-width: 760px) {
  .bk-service-grid, .bk-provider-grid, .bk-datetime, .bk-form-grid { grid-template-columns: 1fr; }
  .bk-shell { max-height: 96svh; border-radius: 16px; }
  .bk-field input, .bk-field select, .bk-field textarea { font-size: 16px; }
}
