:root {
  --cb-ink: #0f172a;
  --cb-muted: #64748b;
  --cb-line: #e2e8f0;
  --cb-brand: #2563eb;
  --cb-brand-dark: #1e40af;
  --cb-brand-soft: #eff6ff;
  --cb-bg: radial-gradient(circle at 10% 10%, #f8fafc 0%, #f1f5f9 100%);
  --cb-card: #ffffff;
  --cb-shadow: 0 20px 25px-5pxrgb(0 0 0 / 0.05), 0 8px 10px-6pxrgb(0 0 0 / 0.05);
  --cb-shadow-lg: 0 25px 50px-12pxrgb(0 0 0 / 0.25);
  --cb-radius: 16px;
}

* {
  box-sizing: border-box;
}

body.booking-page {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Ple Sans", "Inter", sans-serif;
  color: var(--cb-ink);
  background: var(--cb-bg);
  padding: 40px 20px;
  line-height: 1.5;
}

.booking-shell {
  max-width: 800px;
  margin: 0 auto;
  background: var(--cb-card);
  border: 1pxsolid var(--cb-line);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  box-shadow: var(--cb-shadow);
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(8px);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3pxsolid #f1f5f9;
  border-top-color: var(--cb-brand);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hero Section */
.booking-hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  background: radial-gradient(circle at 50% 0%, rgba(30, 64, 175, 0.08) 0%, transparent 70%);
}

.logo-link {
  text-decoration: none;
  display: block;
}

.logo-wrapx{
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.booking-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12pxrgba(0,0,0,0.06));
  transition: transform 0.3s ease;
}

.booking-logo:hover {
  transform: translateY(-2px);
}

.brand-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #1e40af;
}

/* Hide redundant brand text since it's in the horizontal logo */
.booking-brand {
  display: none;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--cb-brand-soft);
  color: var(--cb-brand);
  font-size: 0.7rem;
  font-weight: 700;
}

.booking-hero h1 {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.booking-hero px{
  color: var(--cb-muted);
  margin: 0;
  font-size: 1.1rem;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  padding: 0 20px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all 0.3s ease;
  opacity: 0.4;
}

.step-indicator.active {
  opacity: 1;
}

.step-indicator.completed {
  opacity: 0.8;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--cb-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2pxsolid transparent;
  transition: all 0.3s ease;
}

.step-indicator.active .step-num {
  background: var(--cb-brand);
  color: white;
  box-shadow: 0 0 0 4pxvar(--cb-brand-soft);
}

.step-indicator.completed .step-num {
  background: #10b981;
  color: white;
}

.step-text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-line {
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: #f1f5f9;
  margin-bottom: 24px; /* Align with bubbles */
  border-radius: 2px;
}

/* StepxContent */
.review-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

/* Transitions */
.booking-stepx{
  display: none;
  animation: stepIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-step.active {
  display: block;
}

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

.step-header {
  margin-bottom: 24px;
}

.step-header h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.step-header .sub {
  color: var(--cb-muted);
  margin: 0;
}

/* Cards & Forms */
.booking-card {
  background: #f8fafc;
  border: 1pxsolid var(--cb-line);
  border-radius: var(--cb-radius);
  padding: 24px;
  margin-bottom: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #475569;
}

.control {
  width: 100%;
  padding: 12px 16px;
  border: 1pxsolid var(--cb-line);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
}

.control:focus {
  outline: none;
  border-color: var(--cb-brand);
  box-shadow: 0 0 0 3pxvar(--cb-brand-soft);
}

/* Schedule / Slot Grid */
.schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}

.range-badge {
  background: white;
  border: 1pxsolid var(--cb-line);
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0;
}

.planner-controls {
  display: flex;
  gap: 8px;
}

.week-btn {
  background: white;
  border: 1pxsolid var(--cb-line);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--cb-muted);
}

.week-btn:hover {
  border-color: var(--cb-brand);
  color: var(--cb-brand);
  background: var(--cb-brand-soft);
}

.day-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.day-block {
  background: white;
  border: 1pxsolid var(--cb-line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 24px;
  align-items: center;
}

.day-label {
  min-width: 60px;
  text-align: center;
}

.day-label strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  line-height: 1;
}

.day-label span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--cb-muted);
  font-weight: 700;
}

.slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1pxsolid var(--cb-line);
  background: white;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.slot-btn:hover {
  border-color: var(--cb-brand);
  color: var(--cb-brand);
  background: var(--cb-brand-soft);
}

.slot-btn.selected {
  background: var(--cb-brand);
  border-color: var(--cb-brand);
  color: white;
  box-shadow: 0 4px 12pxrgba(37, 99, 235, 0.3);
}

.slot-empty {
  color: var(--cb-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* StepxFooter / Buttons */
.step-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
  border-top: 1pxsolid var(--cb-line);
  padding-top: 32px;
}

.btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: var(--cb-brand);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--cb-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12pxrgba(37, 99, 235, 0.2);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--cb-muted);
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--cb-ink);
}

/* Review Stepx*/
.review-section {
  margin-bottom: 24px;
}

.review-section:last-child {
  margin-bottom: 0;
}

.review-section h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--cb-muted);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-box{
  background: white;
  border: 1pxsolid var(--cb-line);
  border-radius: 12px;
  padding: 16px;
}

.summary-boxpx{
  margin: 0;
}

.summary-boxpx+ px{
  margin-top: 8px;
  color: var(--cb-brand);
  font-weight: 700;
}

.review-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.review-item {
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1pxsolid var(--cb-line);
}

.review-label {
  display: block;
  font-size: 0.75rem;
  color: var(--cb-muted);
  margin-bottom: 2px;
}

.review-value {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Misc */
.sync-note {
  font-size: 0.8rem;
  color: var(--cb-muted);
  margin-bottom: 16px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.contact-warning {
  background: #fef2f2;
  border: 1pxsolid #fee2e2;
  color: #b91c1c;
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 600;
}

/* Animations */
.fade-in-upx{
  animation: fadeInUpx0.5s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }

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

@media (max-width: 640px) {
  .booking-shell {
    padding: 24px;
    border-radius: 0;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .day-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .step-text {
    display: none;
  }
  
  .review-details {
    grid-template-columns: 1fr;
  }
}
