/* ==========================================================================
   Eleven Studio-Grade Dark Luxury Online Booking
   Awwwards / Apple-Level Aesthetics · Zero AI Slop · 60fps Micro-Interactions
   ========================================================================== */

:root {
  --booking-bg: #111315;
  --booking-panel: #141619;
  --booking-card: #191c20;
  --booking-card-hover: #1f2328;
  --booking-card-selected: #22262c;
  --booking-border: rgba(255, 255, 255, 0.08);
  --booking-border-hover: rgba(201, 143, 74, 0.35);
  --booking-border-active: #c98f4a;
  --booking-text: #f7f5f0;
  --booking-muted: rgba(247, 245, 240, 0.78);
  --booking-dim: rgba(247, 245, 240, 0.55);
  --ease-studio: cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-page-body {
  min-height: 100vh;
  background: var(--booking-bg);
  color: var(--booking-text);
  font-family: var(--body, 'Manrope', -apple-system, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header bar */
.booking-page-top {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.booking-page-top a {
  color: var(--booking-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease-studio), transform 0.2s var(--ease-studio);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.booking-page-top a:hover {
  color: var(--gold-light, #d3a568);
  transform: translateX(-2px);
}

.booking-page-top .booking-brand {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #c98f4a);
  font-weight: 700;
}

/* Main panel container */
.booking-page-wrap {
  padding: 20px 16px 64px;
}

.booking-page-body .dialog {
  position: static;
  inset: auto;
  z-index: auto;
  display: grid;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: transparent;
  padding: 0;
  overflow: visible;
}

.booking-page-body .dialog-panel {
  max-height: none;
  overflow: visible;
}

.booking-page-body .booking-panel {
  width: min(640px, 100%);
  margin: 20px auto 0;
  background: var(--booking-panel);
  color: var(--booking-text);
  border: 1px solid var(--booking-border);
  border-radius: 14px;
  padding: clamp(26px, 4.5vw, 44px);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

/* Brand badge inside panel */
.dialog-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.dialog-brand .logo-mark {
  width: 22px;
  height: 32px;
  object-fit: contain;
  opacity: 0.95;
}

/* Progress bar */
.booking-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 14px;
  color: var(--booking-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.booking-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  flex: 1;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
}

.booking-progress-track i {
  display: block;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--gold, #c98f4a), var(--gold-light, #d3a568));
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(201, 143, 74, 0.5);
  transition: width 0.4s var(--ease-studio);
}

/* Headings */
#bookingTitle {
  font: 500 clamp(26px, 4.5vw, 36px) / 1.1 var(--display, 'Bodoni Moda', serif);
  margin: 0 0 8px;
  color: var(--booking-text);
  letter-spacing: -0.02em;
}

.booking-lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--booking-muted);
  margin: 0 0 28px;
  font-weight: 400;
}

/* Step container & 60fps sliding transition */
.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
  animation: bookingStepIn 0.35s var(--ease-studio) both;
}

@keyframes bookingStepIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Branch step */
.branch-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.branch-option {
  position: relative;
  min-height: 124px;
  text-align: left;
  padding: 22px 42px 20px 20px;
  border: 1px solid var(--booking-border);
  background: var(--booking-card);
  color: var(--booking-text);
  border-radius: 10px;
  transition: 
    border-color 0.22s var(--ease-studio), 
    background 0.22s var(--ease-studio), 
    transform 0.22s var(--ease-studio),
    box-shadow 0.22s var(--ease-studio);
  cursor: pointer;
}

.branch-option:hover {
  border-color: var(--booking-border-hover);
  background: var(--booking-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.branch-option.selected {
  border-color: var(--booking-border-active);
  background: linear-gradient(145deg, var(--booking-card-selected), var(--booking-card));
  box-shadow: 0 0 0 1px var(--booking-border-active), 0 12px 30px rgba(201, 143, 74, 0.15);
}

.branch-option strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--booking-text);
}

.branch-option small {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--booking-muted);
}

.choice-check {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 11px;
  transition: all 0.2s var(--ease-studio);
}

.branch-option.selected .choice-check {
  color: #111315;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(201, 143, 74, 0.5);
}

/* Primary actions */
.booking-next {
  min-height: 50px;
  margin-top: 24px;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold, #c98f4a), var(--gold-light, #d3a568));
  color: #111315;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(201, 143, 74, 0.28);
  transition: transform 0.2s var(--ease-studio), box-shadow 0.2s var(--ease-studio), opacity 0.2s;
  cursor: pointer;
}

.booking-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 143, 74, 0.42);
}

.booking-next:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Route step */
.route-options {
  display: grid;
  gap: 12px;
}

.route-option {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--booking-border);
  background: var(--booking-card);
  border-radius: 10px;
  text-align: left;
  color: var(--booking-text);
  transition: 
    border-color 0.22s var(--ease-studio), 
    background 0.22s var(--ease-studio), 
    transform 0.22s var(--ease-studio),
    box-shadow 0.22s var(--ease-studio);
  cursor: pointer;
}

.route-option:hover {
  border-color: var(--booking-border-hover);
  background: var(--booking-card-hover);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.route-index {
  font: 500 22px var(--display, 'Bodoni Moda', serif);
  color: var(--gold);
}

.route-option strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--booking-text);
}

.route-option small {
  display: block;
  color: var(--booking-muted);
  font-size: 13.5px;
  font-weight: 500;
  margin-top: 3px;
}

.route-arrow {
  font-size: 18px;
  color: var(--gold);
  transition: transform 0.2s var(--ease-studio);
}

.route-option:hover .route-arrow {
  transform: translate(2px, -2px);
}

/* Back navigation */
.text-back {
  display: inline-block;
  border: 0;
  background: none;
  color: var(--booking-muted);
  padding: 16px 0 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.text-back:hover {
  color: var(--gold-light);
  transform: translateX(-2px);
}

/* Master step */
.booking-master-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-master-option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--booking-border);
  border-radius: 10px;
  background: var(--booking-card);
  color: var(--booking-text);
  text-align: left;
  cursor: pointer;
  transition: 
    border-color 0.2s var(--ease-studio), 
    background 0.2s var(--ease-studio),
    transform 0.2s var(--ease-studio);
}

.booking-master-option:hover {
  border-color: var(--booking-border-hover);
  background: var(--booking-card-hover);
  transform: translateY(-2px);
}

.booking-master-option.selected {
  border-color: var(--booking-border-active);
  background: linear-gradient(145deg, var(--booking-card-selected), var(--booking-card));
  box-shadow: 0 0 0 1px var(--booking-border-active), 0 8px 24px rgba(201, 143, 74, 0.15);
}

.booking-master-option img {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.any-master-icon {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-dim, rgba(201, 143, 74, 0.3));
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
  background: rgba(201, 143, 74, 0.08);
}

.booking-master-option strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--booking-text);
}

.booking-master-option small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--booking-muted);
  margin-top: 2px;
}

/* Services step */
.booking-price-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--booking-border);
  margin-bottom: 16px;
}

.booking-price-tabs .price-tab {
  background: transparent;
  border: 0;
  color: var(--booking-muted);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.booking-price-tabs .price-tab:hover {
  color: var(--booking-text);
}

.booking-price-tabs .price-tab.active {
  color: var(--booking-text);
}

.booking-price-tabs .price-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 143, 74, 0.6);
}

.booking-service-list {
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.booking-service-list::-webkit-scrollbar {
  width: 5px;
}
.booking-service-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.booking-service-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.18s;
}

.booking-service-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.booking-service-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

.booking-service-row strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--booking-text);
}

.booking-service-row small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--booking-muted);
  margin-top: 2px;
}

.booking-service-price {
  font-size: 14px;
  white-space: nowrap;
  font-weight: 600;
  color: var(--gold-light, #d3a568);
}

.booking-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 8px 4px;
  color: var(--booking-muted);
  font-size: 13px;
  border-top: 1px solid var(--booking-border);
  margin-top: 12px;
}

.booking-total strong {
  color: var(--gold);
  font-size: 17px;
  font-weight: 700;
  text-align: right;
}

/* Schedule step */
.schedule-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.field {
  margin: 14px 0;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--booking-muted);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.field input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--booking-border);
  border-radius: 8px;
  background: #0e1012;
  color: var(--booking-text);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 143, 74, 0.2);
  outline: none;
}

.time-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-options button {
  padding: 10px 13px;
  border: 1px solid var(--booking-border);
  border-radius: 7px;
  background: var(--booking-card);
  color: var(--booking-text);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
  cursor: pointer;
}

.time-options button:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--booking-card-hover);
  transform: translateY(-1px);
}

.time-options button.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #111315;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(201, 143, 74, 0.35);
}

.time-options button:disabled,
.time-options button.slot-disabled {
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.booking-summary {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #171a1e;
  border: 1px solid rgba(201, 143, 74, 0.22);
  border-radius: 8px;
  color: var(--booking-text);
  font-size: 13px;
  line-height: 1.6;
}

.booking-notice {
  font-size: 12px;
  color: var(--booking-muted);
  margin: 12px 0 0;
  text-align: center;
  letter-spacing: 0.02em;
}

.success {
  display: none;
  margin: 18px 0 0;
  padding: 14px 18px;
  background: rgba(46, 125, 50, 0.16);
  border: 1px solid rgba(76, 175, 80, 0.35);
  border-left: 4px solid #4caf50;
  border-radius: 8px;
  color: #a5d6a7;
  font-size: 14px;
  line-height: 1.5;
}

.success.open {
  display: block;
  animation: bookingStepIn 0.3s var(--ease-studio) both;
}

.success code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  color: #c8e6c9;
}

/* Responsive */
@media (max-width: 600px) {
  .branch-options { grid-template-columns: 1fr; }
  .booking-master-list { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .booking-page-body .booking-panel { padding: 22px 18px; }
}
