/* ============================================================
   SALONIQA — Online Booking (Phase 10 Task 3 — luxury polish)
   Uses css/theme.css tokens (emerald/gold/ivory + luxe shadows).
   Presentation only — every class/ID preserved.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.booking-page {
  font-family: var(--font-body);
  background: var(--gradient-soft);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Container ────────────────────────────── */
.bk-container {
  max-width: 660px;
  margin: 0 auto;
  padding: 32px 18px 60px;
}

/* ── Header ───────────────────────────────── */
.bk-header { text-align: center; margin-bottom: 26px; }
.bk-logo {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--emerald-deep);
  text-decoration: none;
  letter-spacing: .5px;
}
.bk-logo span { color: var(--gold-dark); }
.bk-logo img { vertical-align: middle; }
.bk-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--emerald);
  margin-top: 6px;
}

/* ── Hero banner (dynamic) ──────────────────── */
.bk-hero {
  height: 190px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-xl);
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(0,0,0,.04);
}

/* ── Feedback ─────────────────────────────── */
.bk-feedback {
  display: none;
  padding: 13px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.bk-feedback.show { display: block; }
.bk-feedback.error { background: #fff0f1; color: #9b2330; border: 1px solid #f3c9ce; }
.bk-feedback.info  { background: var(--green-soft, #e6f0ec); color: var(--emerald-deep); border: 1px solid #cfe3dc; }

/* ── Stepper ──────────────────────────────── */
.bk-stepper {
  display: flex;
  gap: 0;
  margin-bottom: 26px;
  counter-reset: step;
}
.bk-step {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  position: relative;
  padding-top: 40px;
}
.bk-step::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 50%;
  right: -50%;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  z-index: 0;
  transition: var(--transition-smooth);
}
.bk-step:last-child::before { display: none; }
.bk-step.active::before { background: var(--gradient-gold); }
.bk-step-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: var(--transition-smooth);
}
.bk-step.active .bk-step-num {
  background: var(--gradient-green);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px -4px rgba(7,47,42,.45);
}
.bk-step.active { color: var(--emerald); }

/* ── Step content (each step = luxe panel) ── */
.bk-step-content { display: none; }
.bk-step-content.active {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 28px 26px 30px;
  animation: bkFade .4s ease;
}
@keyframes bkFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.bk-step-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--emerald-deep);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.bk-step-desc {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ── Loading ──────────────────────────────── */
.bk-loading {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 40px;
}
.bk-loading span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  animation: bkBounce 1.4s ease-in-out infinite both;
}
.bk-loading span:nth-child(1) { animation-delay: -0.32s; }
.bk-loading span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bkBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.bk-empty {
  text-align: center;
  padding: 44px 16px;
  color: var(--muted);
  font-size: 14.5px;
}
.bk-empty::before {
  content: '✦';
  display: block;
  font-size: 26px;
  color: var(--gold-soft);
  margin-bottom: 10px;
}

/* ── Cards (service & employee) ───────────── */
.bk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bk-card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.bk-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.bk-card.selected {
  border-color: var(--emerald);
  background: linear-gradient(180deg, #fff 0%, var(--green-soft,#eef5f1) 100%);
  box-shadow: 0 10px 30px -12px rgba(7,47,42,.30);
}
.bk-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-green);
  color: #fff;
  font-size: 13px;
  display: grid; place-items: center;
  box-shadow: 0 3px 8px -2px rgba(7,47,42,.4);
}
.bk-card-body { }
.bk-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.bk-card-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  align-items: center;
}
.bk-card-price {
  color: var(--emerald);
  font-weight: 700;
}
.bk-card-duration { }

/* ── Date picker ──────────────────────────── */
.bk-date-field { margin-bottom: 18px; }
.bk-date-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.bk-date-field input {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--soft-white);
  transition: var(--transition-smooth);
}
.bk-date-field input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(13,79,69,.10);
}

/* ── Slots ────────────────────────────────── */
.bk-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 8px;
}
.bk-slot {
  padding: 12px 8px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  background: var(--soft-white);
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.bk-slot:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-1px); }
.bk-slot.selected {
  border-color: transparent;
  background: var(--gradient-green);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(7,47,42,.45);
}
.bk-slot-unavailable {
  background: var(--bg);
  color: #c7c2b8;
  border-color: var(--line);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ── Back buttons ─────────────────────────── */
.bk-btn-back { margin-top: 18px; display: inline-block; }

/* ── Form ─────────────────────────────────── */
.bk-form { margin-top: 8px; }
.bk-form-group { margin-bottom: 16px; }
.bk-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.bk-form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--soft-white);
  transition: var(--transition-smooth);
}
.bk-form-group input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(13,79,69,.10);
}

/* ── Summary ──────────────────────────────── */
.bk-summary {
  background: var(--gradient-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
.bk-summary h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--emerald-deep);
  margin-bottom: 12px;
}
.bk-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(7,47,42,.08);
}
.bk-summary-row:last-child { border-bottom: none; }
.bk-sr-label { color: var(--muted); }
.bk-sr-value { color: var(--ink); font-weight: 600; }

/* ── Buttons ──────────────────────────────── */
.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: 1.5px solid transparent;
  line-height: 1.2;
}
.bk-btn-full { width: 100%; text-align: center; }
.bk-btn-primary {
  background: var(--gradient-green);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(7,47,42,.5);
}
.bk-btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(7,47,42,.6); transform: translateY(-1px); }
.bk-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }
.bk-btn-outline {
  background: transparent;
  color: var(--emerald);
  border-color: var(--emerald);
}
.bk-btn-outline:hover { background: var(--emerald); color: #fff; }
.bk-btn-success {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37,211,102,.55);
}
.bk-btn-success:hover { background: #1da851; transform: translateY(-1px); }

/* ── Success ──────────────────────────────── */
.bk-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-green);
  color: #fff;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 18px;
  box-shadow: var(--shadow-luxe);
  animation: bkPop .5s cubic-bezier(.2,.8,.3,1.4) both;
}
@keyframes bkPop { from { transform: scale(0); } to { transform: scale(1); } }
.bk-success-details {
  background: var(--gradient-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 18px 0;
}
.bk-success-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(7,47,42,.08);
}
.bk-success-row:last-child { border-bottom: none; }
.bk-success-row span:first-child { color: var(--muted); }
.bk-success-row span:last-child { color: var(--ink); font-weight: 600; }
.bk-success-hint {
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 12px;
}

/* ── Public salon info & gallery (dynamic) ──── */
.bk-public-gallery { margin-top: 40px; }
.bk-public-gallery h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 16px; color: var(--emerald-deep); }
.bk-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bk-gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: var(--transition-smooth); }
.bk-gallery-grid img:hover { transform: translateY(-3px); box-shadow: var(--shadow-luxe); }

.bk-public-info { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.bk-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-bottom: 16px; }
.bk-info-item h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.8px; color: var(--gold-dark); margin-bottom: 5px; }
.bk-info-item p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.bk-info-item a { color: var(--emerald); font-weight: 600; }
.bk-info-wa { color: var(--wa) !important; font-weight: 700; }
.bk-info-map { margin: 12px 0; }
.bk-info-map iframe { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.bk-info-social { font-size: 14px; color: var(--muted); }
.bk-info-social a { color: var(--emerald); font-weight: 600; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 560px) {
  .bk-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-hero { height: 150px; }
  .bk-step-content.active { padding: 22px 18px 24px; }
  .bk-step-content h2 { font-size: 23px; }
}
@media (max-width: 420px) {
  .bk-grid { grid-template-columns: 1fr; }
  .bk-slots-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-step { font-size: 0; }            /* hide step labels on very small screens, keep numbers */
  .bk-step-num { font-size: 15px; }
}

/* ── Language switcher + RTL (Task 4A) ──────── */
.bk-lang{ display:flex; gap:2px; width:max-content; margin:0 auto 14px; border:1px solid var(--line); border-radius:var(--radius-pill); padding:3px; background:var(--card); box-shadow:var(--shadow-soft); }
.bk-lang button{ border:none; background:none; padding:5px 13px; border-radius:var(--radius-pill); font-size:13px; font-weight:700; color:var(--muted); cursor:pointer; font-family:inherit; transition:var(--transition-smooth); }
.bk-lang button.active{ background:var(--gradient-green); color:#fff; }

html[dir="rtl"] .bk-logo, html[dir="rtl"] .bk-title,
html[dir="rtl"] .bk-step-content h2, html[dir="rtl"] .bk-summary h3,
html[dir="rtl"] .bk-public-gallery h3 { font-family:'Tajawal','Inter',sans-serif; letter-spacing:0; }
html[dir="rtl"] .bk-date-field label, html[dir="rtl"] .bk-form-group label,
html[dir="rtl"] .bk-info-item h4 { letter-spacing:0; text-transform:none; }
html[dir="rtl"] .bk-step::before { left:-50%; right:50%; }
html[dir="rtl"] .bk-summary-row, html[dir="rtl"] .bk-success-row { direction:rtl; }

/* ── presentation videos (16:9, rounded) ── */
.bk-public-video { margin: 24px 0; }
.bk-public-video h3 { font-family:'Playfair Display',Georgia,serif; font-size:18px; margin-bottom:12px; }
.bk-videos { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px; }
.salon-video { width:100%; aspect-ratio:16/9; display:block; border-radius:14px; background:#000; object-fit:cover; box-shadow:0 1px 4px rgba(0,0,0,.12); }

/* ── before / after slider ── */
.bk-public-ba { margin:24px 0; }
.bk-public-ba h3 { font-family:'Playfair Display',Georgia,serif; font-size:18px; margin-bottom:12px; }
.bk-ba-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px; }
.bk-ba-card { border:1px solid #eee; border-radius:14px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.1); background:#fff; }
.bk-ba-slider { position:relative; aspect-ratio:16/10; --pos:50%; overflow:hidden; touch-action:none; cursor:ew-resize; user-select:none; background:#000; }
.bk-ba-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; pointer-events:none; }
.bk-ba-before { clip-path:inset(0 calc(100% - var(--pos)) 0 0); }
.bk-ba-tag { position:absolute; top:10px; z-index:3; padding:3px 10px; border-radius:999px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; background:rgba(0,0,0,.55); color:#fff; pointer-events:none; }
.bk-ba-tag-before { left:10px; } .bk-ba-tag-after { right:10px; }
.bk-ba-divider { position:absolute; top:0; bottom:0; left:var(--pos); width:2px; background:#fff; transform:translateX(-1px); z-index:4; pointer-events:none; box-shadow:0 0 6px rgba(0,0,0,.3); }
.bk-ba-handle { position:absolute; top:50%; left:var(--pos); transform:translate(-50%,-50%); z-index:5; width:40px; height:40px; border-radius:50%; background:#fff; color:#0D4F45; display:grid; place-items:center; font-size:17px; box-shadow:0 4px 14px rgba(0,0,0,.25); pointer-events:none; }
.bk-ba-info { padding:14px; }
.bk-ba-title { font-family:'Playfair Display',Georgia,serif; font-size:16px; font-weight:600; }
.bk-ba-meta { font-size:12px; color:#b8860b; font-weight:600; margin-top:2px; }
.bk-ba-desc { font-size:13px; color:#777; margin-top:6px; line-height:1.5; }

/* Phase 9 — white-label powered-by */
.bk-powered{ text-align:center; padding:18px 0 26px; color:var(--muted); font-size:13px; }
.bk-powered a{ color:var(--emerald); font-weight:600; text-decoration:none; }