/* ============================================================
   BOOKING WIZARD STYLES — PhoneDoc ATL
   ============================================================ */

/* Force dark body background so no whitespace bleeds outside the booking layout */
html, body { background: #111111; }

/* Force nav dark — booking page has a dark background so transparent nav reads wrong */
#main-nav {
  background-color: var(--color-dark-bg) !important;
  box-shadow: var(--shadow-nav) !important;
}

.booking {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: stretch;
  background: #111111;

  /* Dark-theme token overrides for all booking content */
  --color-text-primary:   #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.60);
  --color-border:         rgba(255, 255, 255, 0.13);
  --color-light-gray:     rgba(255, 255, 255, 0.07);
  --color-body-bg:        rgba(255, 255, 255, 0.07);
}

/* ── Left dark panel ─────────────────────────────────────── */
.booking__panel {
  width: 360px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #111111 0%, #1a1a1a 100%);
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  padding: 48px 40px 40px;
  overflow: hidden;
}

.booking__panel-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.38;
  pointer-events: none;
}

.booking__panel-glow {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,57,53,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.booking__panel-body {
  flex: 1;
  position: relative;
  z-index: 1;
}

.booking__panel-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.5vw, 52px);
  color: #fff;
  line-height: 1.0;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.booking__panel-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 40px;
}

.booking__trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking__trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
}

.booking__trust-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.18);
  border: 1px solid rgba(229, 57, 53, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.booking__panel-footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.30);
  font-family: var(--font-label);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ── Right dark panel ────────────────────────────────────── */
.booking__right {
  flex: 1;
  background: linear-gradient(160deg, #111111 0%, #1a1a1a 60%, #141414 100%);
  min-height: calc(100vh - var(--nav-height));
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: clip; /* clips grain overlay without breaking child scroll containers */
}

/* Grain overlay */
.booking__right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

.booking__container {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 32px 80px;
  position: relative;
  z-index: 1;
}

/* ---- Breadcrumb (horizontal, full-width strip) ---- */
.booking__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.breadcrumb-step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 1;
  min-width: 0;
}

.breadcrumb-step__number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-light-gray);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
  flex-shrink: 0;
}

.breadcrumb-step__label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: color 0.3s;
}

.breadcrumb-step--completed .breadcrumb-step__number {
  background: var(--color-primary);
  color: #fff;
}

.breadcrumb-step--active .breadcrumb-step__number {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(229,57,53,0.18);
}

.breadcrumb-step--active .breadcrumb-step__label {
  color: var(--color-primary);
  font-weight: 700;
}

.breadcrumb-step--clickable { cursor: pointer; }
.breadcrumb-step--clickable:hover .breadcrumb-step__number { opacity: 0.85; }

.breadcrumb-sep {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  flex-shrink: 1;
  min-width: 8px;
  max-width: 28px;
  margin: 0 2px;
}

.breadcrumb-sep--done { background: var(--color-primary); opacity: 0.4; }

/* Mobile breadcrumb */
.breadcrumb-mobile {
  display: none;
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

/* ---- Step Content ---- */
.step-content {
  animation: step-fade-in 0.3s ease;
}

@keyframes step-fade-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.step-subheading {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.step-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ---- Toggle Switch ---- */
.account-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 8px;
  cursor: pointer;
  user-select: none;
}

.account-toggle__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.account-toggle__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--color-border);
  border-radius: 12px;
  transition: background 0.3s;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch.is-on { background: var(--color-primary); }

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: left 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch.is-on::after { left: 23px; }

.toggle-slide {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.toggle-slide.is-open {
  max-height: 240px;
  opacity: 1;
}

/* ---- Calendar ---- */
.calendar {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--color-border);
}

.calendar__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.calendar__nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.calendar__nav-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px;
  gap: 2px;
}

.calendar__day-name {
  text-align: center;
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--color-text-secondary);
  padding: 8px 0;
  letter-spacing: 0.5px;
}

.calendar__day {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  transition: background 0.2s, color 0.2s;
  margin: 2px auto;
  border: none;
  background: none;
}

.calendar__day:hover:not(.calendar__day--disabled):not(.calendar__day--empty) {
  background: var(--color-light-gray);
}

.calendar__day--selected {
  background: var(--color-primary) !important;
  color: #fff !important;
}

.calendar__day--today {
  border: 2px solid var(--color-primary);
  font-weight: 700;
}

.calendar__day--disabled {
  color: var(--color-border);
  cursor: not-allowed;
  pointer-events: none;
}

.calendar__day--empty { cursor: default; pointer-events: none; }

/* ---- Time Slots ---- */
.time-slots-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 24px 0 12px;
}

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

.time-slot {
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  background: none;
  color: var(--color-text-primary);
}

.time-slot:hover { border-color: var(--color-primary); color: var(--color-primary); }
.time-slot--selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.time-slot--unavailable { opacity: 0.38; cursor: not-allowed; pointer-events: none; }

/* ---- Summary Card (Step 7) ---- */
.summary-card {
  background: var(--color-light-gray);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  gap: 16px;
}

.summary-row:last-child { border-bottom: none; }

.summary-label {
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--color-text-secondary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: right;
}

.summary-edit {
  font-size: 12px;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.summary-edit-icon {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.summary-edit-icon:hover {
  color: var(--color-text-primary);
  transform: scale(1.1);
}

.summary-edit-icon:active {
  transform: scale(0.95);
}

/* ---- Terms ---- */
.terms-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
}

.terms-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.terms-checkbox label {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  cursor: pointer;
}

.terms-checkbox label a {
  color: var(--color-primary);
  text-decoration: underline;
}

.terms-checkbox--error {
  background: #fff5f5;
  border: 1px solid var(--color-error);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 20px 0;
  animation: shake 0.3s ease;
}

.terms-checkbox--error input[type="checkbox"] {
  outline: 2px solid var(--color-error);
  outline-offset: 2px;
}

.terms-checkbox--error label {
  color: var(--color-error);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

/* ---- Success Screen ---- */
.booking-success {
  text-align: center;
  padding: 48px 0;
}

.booking-success__icon { font-size: 56px; margin-bottom: 16px; }

.booking-success__title {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.booking-success__ref-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.booking-success__ref {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-primary);
  background: rgba(229,57,53,0.18);
  padding: 8px 24px;
  border-radius: var(--radius-btn);
  letter-spacing: 1px;
}

.booking-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.booking-copy-btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.booking-copy-btn--copied {
  background: rgba(22,101,52,0.2);
  border-color: rgba(22,101,52,0.5);
  color: #86efac;
}

.booking-success__sub {
  color: var(--color-text-secondary);
  font-size: 15px;
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.booking-success__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.booking-calendar {
  margin: 20px auto 28px;
  max-width: 380px;
}

.booking-calendar__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.booking-calendar__btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.booking-cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  border: 1.5px solid transparent;
}

.booking-cal-btn--google {
  background: rgba(66, 133, 244, 0.12);
  color: #93c5fd;
  border-color: rgba(66, 133, 244, 0.3);
}
.booking-cal-btn--google:hover {
  background: rgba(66, 133, 244, 0.22);
  border-color: rgba(66, 133, 244, 0.55);
}

.booking-cal-btn--apple {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.15);
}
.booking-cal-btn--apple:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---- Loading / Error ---- */
.step-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-secondary);
  padding: 32px 0;
  font-size: 14px;
}

.step-error-msg {
  background: rgba(211,47,47,0.08);
  border: 1px solid rgba(211,47,47,0.3);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  color: var(--color-error);
  font-size: 14px;
  margin: 16px 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .booking__panel { width: 300px; padding: 40px 28px 32px; }
  .booking__panel-title { font-size: 38px; }
}

@media (max-width: 768px) {
  .booking { display: block; }
  .booking__panel { display: none; }
  .booking__right {
    border-left: none;
    min-height: calc(100vh - var(--nav-height));
  }
  .booking__container { padding: 24px 16px 60px; }
  .booking__breadcrumb { display: none; }
  .breadcrumb-mobile { display: block; }
  .step-actions { flex-direction: column; }
  .step-actions .btn { width: 100%; }
  .calendar__day { width: 34px; height: 34px; font-size: 12px; }
}

/* ---- Persistent Price Bar ---- */
.price-bar {
  display: none; /* JS shows it after Step 3 */
  position: fixed;
  bottom: 0;
  left: 360px; /* align with right panel — matches .booking__panel width */
  right: 0;
  z-index: 50;
  background: #0e0e0e;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 14px 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-bar__label {
  font-family: var(--font-label);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.price-bar__right {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-bar__value {
  font-family: var(--font-display);
  font-size: 24px;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1;
}

.price-bar__tax {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .price-bar { left: 300px; padding: 14px 28px; }
}

@media (max-width: 768px) {
  .price-bar { left: 0; padding: 14px 20px; }
  .booking__container { padding-bottom: 80px; } /* clear price bar */
}

/* ── Special Order UI ──────────────────────────────────────── */
.special-order-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #6B1414 0%, #8B2020 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-left: 4px solid #fff;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
  font-family: var(--font-body), sans-serif;
}
.special-order-banner__icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.special-order-banner__body strong { display:block; font-size:14px; font-weight:700; color:#fff; margin-bottom:8px; }
.special-order-banner__body p { margin:0; font-size:13px; color:rgba(255,255,255,0.85); line-height:1.6; }
.special-order-banner__body p a { color:#fff; }

.special-order-lead-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, rgba(107,20,20,0.15) 0%, rgba(139,32,32,0.15) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  font-family: var(--font-body), sans-serif;
}

.special-order-confirm-notice {
  background: linear-gradient(135deg, #6B1414 0%, #8B2020 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-left: 4px solid #fff;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
  font-family: var(--font-body), sans-serif;
}
.special-order-confirm-notice strong { display:block; font-size:14px; color:#fff; margin-bottom:8px; }
.special-order-confirm-notice p { margin:0; font-size:13px; color:rgba(255,255,255,0.85); line-height:1.65; }

.special-order-success-notice {
  background: linear-gradient(135deg, #6B1414 0%, #8B2020 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 16px 0;
  text-align: left;
  font-family: var(--font-body), sans-serif;
}
.special-order-success-notice strong { display:block; font-size:14px; font-weight:700; color:#fff; margin-bottom:8px; }
.special-order-success-notice p { margin:0 0 6px; font-size:13px; color:rgba(255,255,255,0.85); line-height:1.65; }

.special-order-image-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  padding: 16px;
}

.special-order-banner-img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}

.calendar__day--lead {
  background: rgba(107,20,20,0.15) !important;
  color: rgba(255,255,255,0.40) !important;
  cursor: not-allowed !important;
  text-decoration: line-through;
}
