/* Advanced booking portal */
.booking-page .page-main { animation: none; }
body.page-booking .footer.footer-pro { margin-top: 0; }

/* Hero — compact, no overlap bleed */
.booking-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, #0a0b0c 0%, #141516 100%);
  color: #fff;
  overflow: hidden;
}
.booking-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.booking-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(187, 152, 93, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(187, 152, 93, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}
.booking-glow {
  position: absolute;
  width: 50%;
  height: 60%;
  top: 0;
  inset-inline-start: 25%;
  background: radial-gradient(circle, rgba(187, 152, 93, 0.18), transparent 70%);
  filter: blur(50px);
}
.booking-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.booking-hero .sec-tag-light {
  color: var(--gold-l);
  border: 1px solid rgba(187, 152, 93, 0.35);
  background: rgba(187, 152, 93, 0.08);
  padding: 0.35rem 1rem;
  border-radius: 99px;
  font-size: 0.75rem;
}
.booking-hero .hero-display-sm {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem) !important;
  margin: 0.75rem 0 0.65rem;
  background: linear-gradient(135deg, #fff 20%, var(--gold-l) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.booking-hero .page-hero-lead {
  color: rgba(255, 255, 255, 0.7);
  margin-inline: auto;
  max-width: 52ch;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}
.booking-hero-stats {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.booking-hero-stats > div {
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  min-width: 100px;
}
.booking-hero-stats strong {
  display: inline;
  font-size: 1rem;
  color: var(--gold-l);
  margin-inline-end: 0.35rem;
}
.booking-hero-stats span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Workspace */
.booking-app {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(4rem, 8vw, 5rem);
  margin-top: 0;
  background: var(--bg-subtle);
  position: relative;
  z-index: 1;
}
.booking-soon-card {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.booking-soon-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: rgba(187, 152, 93, 0.12);
  color: var(--gold);
}
.booking-soon-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.booking-soon-card p {
  margin: 0 auto 2rem;
  max-width: 46ch;
  color: var(--text-2);
  line-height: 1.85;
}
.booking-soon-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.booking-app-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 360px);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
.booking-wizard-pro { order: 1; }
.booking-summary-panel { order: 2; }
html[dir="rtl"] .booking-app-grid {
  grid-template-columns: minmax(300px, 360px) 1fr;
}
html[dir="rtl"] .booking-summary-panel { order: 1; }
html[dir="rtl"] .booking-wizard-pro { order: 2; }

/* Summary sidebar */
.booking-summary-panel {
  position: sticky;
  top: calc(var(--topbar-h) + var(--header-h) + 1.25rem);
}
.summary-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.summary-card::before {
  content: "";
  display: block;
  height: 3px;
  margin: -1.75rem -1.75rem 1.25rem;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--gold-d), var(--gold-l));
}
.summary-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
}
.summary-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--bg-muted); stroke-width: 5; }
.ring-fill {
  fill: none;
  stroke: url(#ringGrad);
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 198;
  transition: stroke-dashoffset 0.65s var(--ease);
}
.summary-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}
.summary-card > h3 {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}
.summary-list { margin-bottom: 1.25rem; }
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.875rem;
}
.summary-item:last-child { border-bottom: none; }
.summary-item dt { color: var(--text-3); font-weight: 500; }
.summary-item dd {
  font-weight: 600;
  color: var(--text-2);
  text-align: end;
  max-width: 58%;
  line-height: 1.4;
}
.summary-item dd.is-set { color: var(--gold-d); }
.summary-location {
  padding: 1.15rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}
.summary-location strong { display: block; color: var(--text-2); font-size: 0.875rem; margin-bottom: 0.2rem; }
.summary-location p { color: var(--text-3); margin: 0; line-height: 1.55; }
.summary-trust {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 0.65rem;
}
.pay-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pay-badges span {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-3);
}
.summary-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(187, 152, 93, 0.1);
  border: 1px solid rgba(187, 152, 93, 0.25);
  transition: background 0.25s;
}
.summary-phone:hover { background: rgba(187, 152, 93, 0.18); }

/* Wizard */
.booking-wizard-pro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.wizard-top {
  padding: 1.5rem 1.75rem 0;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}
.booking-steps-pro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  position: relative;
}
.booking-steps-pro::before {
  content: "";
  position: absolute;
  top: 1.125rem;
  inset-inline: 12%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.bstep {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.25rem 0.75rem;
  color: var(--text-3);
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  cursor: default;
  max-width: 120px;
}
.bstep:not(:disabled) { cursor: pointer; }
.bstep-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--surface);
  transition: all 0.35s var(--ease);
}
.bstep.done .bstep-icon {
  background: var(--grey-100);
  border-color: var(--gold-l);
  color: var(--gold-d);
}
.bstep.active .bstep-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 4px 20px rgba(187, 152, 93, 0.45);
  transform: scale(1.08);
}
.bstep.active { color: var(--gold); font-weight: 600; }
.bstep.done { color: var(--text-2); }
.bstep span:last-child {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.booking-progress-pro {
  height: 3px;
  background: var(--bg-muted);
  border-radius: 99px;
  margin: 1rem 0 0;
  overflow: hidden;
}
.booking-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--gold-d), var(--gold-l));
  border-radius: 99px;
  transition: width 0.55s var(--ease);
}

.wizard-body {
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
  min-height: 420px;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.panel-step-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(187, 152, 93, 0.15);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wizard-heading {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text-2);
  margin: 0;
}
.wizard-hint {
  font-size: 0.875rem;
  color: var(--text-3);
  margin: -0.75rem 0 1.25rem;
  padding-inline-start: 2.75rem;
}
.booking-panel-pro { animation: panelIn 0.4s var(--ease) both; }
.booking-panel-pro[hidden] { display: none !important; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Service cards */
.service-pick-grid-pro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.svc-card-pro {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.85rem;
  padding: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
  align-items: start;
}
.svc-card-pro input { position: absolute; opacity: 0; pointer-events: none; }
.svc-glow { display: none; }
.svc-card-pro::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  transition: all 0.25s;
}
.svc-card-pro:has(input:checked) {
  border-color: var(--gold);
  background: rgba(187, 152, 93, 0.06);
  box-shadow: 0 8px 32px rgba(187, 152, 93, 0.15);
  transform: translateY(-2px);
}
.svc-card-pro:has(input:checked)::after {
  border-color: var(--gold);
  background: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.svc-icon-wrap {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(187, 152, 93, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.svc-card-pro:has(input:checked) .svc-icon-wrap {
  background: var(--gold);
  color: #fff;
}
.svc-icon-wrap svg { width: 24px; height: 24px; }
.svc-ico { display: none; }
.svc-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-2);
  align-self: end;
}
.svc-dur {
  font-size: 0.78rem;
  color: var(--text-3);
  grid-column: 2;
}

.meeting-block { margin-top: 0.5rem; }
.wizard-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}
.meeting-types-pro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.meet-chip { cursor: pointer; }
.meet-chip input { position: absolute; opacity: 0; }
.meet-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg);
  transition: all 0.25s;
  text-align: center;
}
.meet-chip:has(input:checked) span {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

/* Calendar */
.schedule-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 768px) {
  .schedule-layout { grid-template-columns: 1fr; }
}
.calendar-pro {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cal-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-2); }
.cal-nav {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.2rem;
  color: var(--text-2);
  transition: all 0.2s;
}
.cal-nav:hover { border-color: var(--gold); color: var(--gold); background: rgba(187, 152, 93, 0.08); }
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
  text-align: center;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text-2);
  transition: all 0.2s;
}
.cal-day:not(:disabled):not(.empty):hover {
  border-color: var(--gold-l);
  background: rgba(187, 152, 93, 0.1);
}
.cal-day.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(187, 152, 93, 0.35);
}
.cal-day.empty { background: transparent; border: none; pointer-events: none; }
.cal-day:disabled, .cal-day.off {
  opacity: 0.28;
  cursor: not-allowed;
  background: transparent;
}

.time-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem;
}
.time-panel h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}
.period-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.period-tab {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  transition: all 0.25s;
}
.period-tab.active {
  background: var(--grey-800);
  color: #fff;
  border-color: var(--grey-800);
}
[data-theme="dark"] .period-tab.active {
  background: var(--gold);
  border-color: var(--gold);
}
.time-slots-pro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  min-height: 120px;
}
.time-slot-pro {
  padding: 0.7rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--surface);
  transition: all 0.2s;
}
.time-slot-pro:hover { border-color: var(--gold-l); }
.time-slot-pro.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
}
.time-hint {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-3);
  text-align: center;
  padding: 1.5rem;
}

/* Form */
.booking-form-pro .form-row { gap: 1rem; }
.float-field { position: relative; margin-bottom: 0.25rem; }
.float-field input,
.float-field textarea {
  width: 100%;
  padding: 1.15rem 1rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.float-field label {
  position: absolute;
  top: 50%;
  inset-inline-start: 1rem;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-3);
  pointer-events: none;
  transition: all 0.2s;
}
.float-field textarea ~ label { top: 1.15rem; transform: none; }
.float-field input:focus,
.float-field textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(187, 152, 93, 0.12);
}
.float-field input:focus ~ label,
.float-field input:not(:placeholder-shown) ~ label,
.float-field textarea:focus ~ label,
.float-field textarea:not(:placeholder-shown) ~ label {
  top: 0.45rem;
  transform: none;
  font-size: 0.68rem;
  color: var(--gold);
  font-weight: 600;
}

.review-card-pro {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-subtle);
}
.review-row {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  background: var(--surface);
}
.review-row:nth-child(even) { background: var(--bg); }
.review-row:last-child { border-bottom: none; }
.review-key { color: var(--text-3); font-weight: 500; }
.review-val { font-weight: 700; color: var(--text-2); }
.review-note {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 1rem;
  line-height: 1.65;
}

.booking-done { text-align: center; padding: 3rem 1.5rem; position: relative; }
.done-burst {
  position: absolute;
  width: 240px;
  height: 240px;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(187, 152, 93, 0.25), transparent 70%);
  animation: burst 1.2s ease-out forwards;
}
@keyframes burst {
  from { transform: translateX(-50%) scale(0.5); opacity: 1; }
  to { transform: translateX(-50%) scale(1.8); opacity: 0; }
}
.done-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-l), var(--gold-d));
  color: #fff;
  font-size: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  position: relative;
}
.booking-done h2 { font-size: 1.5rem; color: var(--text-2); margin-bottom: 0.5rem; }
.ref-code-pro {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-family: var(--font-en);
  margin: 0.75rem 0 1rem;
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}
.wizard-footer [hidden] { display: none !important; }
.wizard-footer .btn-lg {
  min-width: 160px;
  padding: 0.9rem 2rem;
}
.wizard-footer #bookingPrimary { margin-inline-start: auto; }

@media (max-width: 1024px) {
  .booking-app-grid,
  html[dir="rtl"] .booking-app-grid {
    grid-template-columns: 1fr;
  }
  .booking-summary-panel { position: static; }
  .summary-card::before { margin-inline: -1.75rem; }
}

@media (max-width: 640px) {
  .service-pick-grid-pro { grid-template-columns: 1fr; }
  .meeting-types-pro { grid-template-columns: 1fr; }
  .booking-steps-pro .bstep span:last-child { font-size: 0.62rem; }
  .review-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .wizard-footer { flex-direction: column-reverse; }
  .wizard-footer .btn { width: 100%; margin: 0 !important; }
}
