/* Atelje Venček — 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, .bk-overlay [role="button"] { 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: radial-gradient(ellipse 70% 50% at 20% 0%, rgba(212,165,116,0.16), transparent 55%), rgba(30,23,20,0.78);
  backdrop-filter: blur(16px);
}
.bk-shell {
  position: relative; width: min(920px, 100%);
  max-height: min(92vh, 860px);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #1e1714, #140f0d);
  border-radius: 22px; border: 1px solid rgba(232,201,160,0.22);
  box-shadow: 0 40px 100px rgba(0,0,0,0.55);
  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: #f6eee4;
  font-family: "Figtree", 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: 2px;
  background: linear-gradient(90deg, #9a7540, #d4b584, #c4a06a);
  background-size: 200% 100%; animation: bkShimmer 4s linear infinite;
}
@keyframes bkShimmer { to { background-position: 200% 50%; } }

.bk-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.25rem 1.4rem 0.6rem; }
.bk-brand { display: flex; gap: 0.75rem; align-items: center; }
.bk-brand-mark { width: 38px; height: 38px; color: #c4a06a; }
.bk-brand-text strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.2rem; font-weight: 400; }
.bk-brand-text span { font-family: "Figtree", system-ui, sans-serif; font-size: 10px; letter-spacing: 0.14em; color: #c4a06a; }
.bk-close {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(232,201,160,0.25);
  background: transparent; color: #f6eee4; display: grid; place-items: center;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), background 0.3s, border-color 0.3s, color 0.3s;
}
.bk-close svg { width: 14px; height: 14px; }
.bk-close:hover {
  transform: rotate(90deg) scale(1.08);
  border-color: #c4a06a; color: #d4b584; background: rgba(212,165,116,0.12);
}

.bk-progress { padding: 0 1.4rem 0.6rem; }
.bk-progress-track { height: 2px; background: rgba(232,201,160,0.12); }
.bk-progress-fill { height: 100%; width: 20%; background: #c4a06a; transition: width 0.4s; }
.bk-steps { display: flex; gap: 0.4rem; margin-top: 0.55rem; flex-wrap: wrap; }
.bk-step-pill {
  font-family: "Figtree", system-ui, sans-serif; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(243,236,225,0.4); padding: 0.2rem 0.45rem;
}
.bk-step-pill.is-active { color: #d4b584; }
.bk-step-pill.is-done { color: #c4a06a; }

.bk-body { overflow: auto; padding: 0.4rem 1.4rem 1rem; flex: 1; }
.bk-panel { display: none; animation: bkIn 0.45s cubic-bezier(0.16,1,0.3,1); }
.bk-panel.is-active { display: block; }
@keyframes bkIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bk-panel-title { font-family: "Cormorant Garamond", serif; font-size: 1.7rem; font-weight: 400; margin: 0 0 0.4rem; }
.bk-panel-title em { font-style: italic; color: #d4b584; }
.bk-panel-sub { color: rgba(243,236,225,0.62); 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: #2a221e; border: 1px solid rgba(232,201,160,0.14);
  color: inherit; padding: 0.9rem; border-radius: 12px; cursor: pointer;
}
.bk-service-card.is-selected, .bk-provider-card.is-selected {
  border-color: #c4a06a; box-shadow: 0 0 0 1px #c4a06a inset;
}
.bk-service-top { display: flex; justify-content: space-between; color: #c4a06a; 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: rgba(243,236,225,0.6); }
.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: #2a221e; color: #c4a06a; font-family: "Figtree", system-ui, sans-serif; font-size: 11px;
}
.bk-provider-card span span { display: block; font-size: 0.78rem; color: rgba(243,236,225,0.55); }
.bk-check { margin-left: auto; opacity: 0; }
.bk-provider-card.is-selected .bk-check { opacity: 1; color: #c4a06a; }
.bk-check svg { width: 14px; height: 14px; }

.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(232,201,160,0.2);
  background: transparent; color: inherit; display: grid; place-items: center;
}
.bk-cal-nav svg { width: 14px; height: 14px; }
.bk-cal-dow, .bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.bk-cal-dow { font-family: "Figtree", system-ui, sans-serif; font-size: 10px; color: #c4a06a; text-align: center; margin-bottom: 0.3rem; }
.bk-cal-day {
  aspect-ratio: 1; border: 0; background: transparent; color: inherit; border-radius: 8px;
  position: relative; font-size: 0.85rem;
}
.bk-cal-day.has-slots::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px;
  background: #c4a06a; border-radius: 50%; transform: translateX(-50%);
}
.bk-cal-day.is-selected { background: #c4a06a; color: #1e1714; }
.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(232,201,160,0.14); border-radius: 12px; padding: 0.8rem; min-height: 220px; }
.bk-slots-empty, .bk-slots-loading { display: grid; place-items: center; gap: 0.5rem; min-height: 180px; color: rgba(243,236,225,0.5); text-align: center; }
.bk-slots-head { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.6rem; color: rgba(243,236,225,0.7); }
.bk-slots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.bk-slot {
  border: 1px solid rgba(232,201,160,0.18); background: #2a221e; color: inherit;
  padding: 0.55rem; border-radius: 8px; font-family: "Figtree", system-ui, sans-serif;
}
.bk-slot.is-selected { background: #c4a06a; color: #1e1714; border-color: #c4a06a; }
.bk-spinner { width: 22px; height: 22px; border: 2px solid rgba(212,165,116,0.2); border-top-color: #c4a06a; 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-family: "Figtree", system-ui, sans-serif; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #c4a06a; }
.bk-field input, .bk-field select, .bk-field textarea {
  background: #1e1714; border: 1px solid rgba(232,201,160,0.18); color: #f6eee4;
  padding: 0.7rem 0.75rem; outline: none;
}
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { border-color: #c4a06a; }
.req { color: #c4a06a; }
.bk-segment { display: flex; gap: 0.4rem; }
.bk-segment button {
  flex: 1; padding: 0.6rem; border: 1px solid rgba(232,201,160,0.18); background: #2a221e; color: inherit; border-radius: 8px;
}
.bk-segment button.is-active { border-color: #c4a06a; color: #d4b584; }
.bk-check-row { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; color: rgba(243,236,225,0.8); }
.bk-check-row input { position: absolute; opacity: 0; }
.bk-check-ui {
  width: 18px; height: 18px; border: 1px solid rgba(232,201,160,0.3); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
}
.bk-check-row.is-checked .bk-check-ui { background: #c4a06a; color: #1e1714; }
.bk-check-ui svg { width: 12px; height: 12px; }
.bk-hp { position: absolute; left: -9999px; }

.bk-review-highlight { padding: 1rem; border: 1px solid rgba(232,201,160,0.25); margin-bottom: 0.8rem; }
.bk-when { font-family: "Figtree", system-ui, sans-serif; font-size: 11px; color: #c4a06a; }
.bk-time { font-family: "Cormorant Garamond", serif; font-size: 1.8rem; }
.bk-review-card { border: 1px solid rgba(232,201,160,0.14); 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: rgba(243,236,225,0.5); }

.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 #c4a06a; display: grid; place-items: center; color: #c4a06a; }
.bk-success-icon svg { width: 28px; height: 28px; }
.bk-success-id { font-family: "Figtree", system-ui, sans-serif; color: #c4a06a; margin: 0.6rem 0 1rem; }
.bk-success-card { text-align: left; border: 1px solid rgba(232,201,160,0.18); padding: 1rem; }

.bk-error { color: #e07a7a; min-height: 1.1em; margin: 0 1.4rem; font-size: 0.88rem; }
.bk-error.is-visible { margin-bottom: 0.4rem; }
.bk-footer {
  display: flex; justify-content: space-between; gap: 0.8rem;
  padding: 0.8rem 1.4rem 1.2rem; border-top: 1px solid rgba(232,201,160,0.12);
}
.bk-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1.1rem;
  border-radius: 999px; border: 1px solid rgba(232,201,160,0.2); background: transparent; color: inherit;
}
.bk-btn-primary { background: #c4a06a; color: #1e1714; border-color: #c4a06a; }
.bk-btn-primary:disabled { opacity: 0.4; }
.bk-btn-primary.is-loading { opacity: 0.7; }
.bk-btn:hover { transform: translateY(-2px); }
.bk-btn-primary:hover { background: #d4b584; }
.bk-btn-ghost:hover { border-color: #c4a06a; color: #d4b584; }
.bk-service-card:hover, .bk-provider-card:hover { border-color: #c4a06a; transform: translateY(-2px); }
.bk-cal-nav button:hover, .bk-slot:hover { border-color: #c4a06a; transform: translateY(-1px); }

@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; }
}
