:root {
  --color-cream: #FFFDFA;
  --color-orange: #FF7A59;
  --color-orange-hover: #e8694d;
  --color-teal: #3E847B;
  --color-teal-hover: #356e67;
  --color-black: #111111;
  --color-mint: #F9FCFA;
  --color-navy-dark: #0f172a;
  --color-navy-light: #1e293b;
  --color-gray-medium: #64748b;
  --color-gray-light: #e5e7eb;
  --color-bg: #f5f7fa;
  --font-heading: 'Open Sans', sans-serif;
  --font-body: 'Lato', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--color-black);
  font-size: 18px;
  line-height: 1.6;
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

/* ── BOOKING CARD ── */
.booking-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto;
}

/* ── STEP INDICATOR ── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 24px 0;
}
.step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}
.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  background: var(--color-gray-light);
  color: var(--color-gray-medium);
  transition: all 0.35s ease;
  flex-shrink: 0;
}
.step-circle.active {
  background: var(--color-orange);
  color: white;
  box-shadow: 0 4px 14px rgba(255,122,89,0.35);
}
.step-circle.completed {
  background: var(--color-teal);
  color: white;
}
.step-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gray-medium);
  transition: color 0.35s;
  white-space: nowrap;
}
.step-label.active { color: var(--color-black); }
.step-label.completed { color: var(--color-teal); }
.step-connector {
  width: 40px;
  height: 2px;
  background: var(--color-gray-light);
  margin: 0 10px;
  transition: background 0.35s;
  flex-shrink: 0;
}
.step-connector.completed { background: var(--color-teal); }

/* ── PANELS ── */
.panels-container {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}
.panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 20px 24px 28px;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.panel.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  position: relative;
}
.panel.exit-left {
  transform: translateX(-40px);
  opacity: 0;
}

/* ── CALENDAR (Step 1) ── */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.calendar-header h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
}
.calendar-nav {
  display: flex;
  gap: 6px;
}
.calendar-nav button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gray-light);
  background: white;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-black);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-nav button:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}
.calendar-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  max-width: 320px;
  margin: 0 auto;
}
.calendar-day-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gray-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
}
.calendar-day {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-black);
  position: relative;
  border: none;
  background: transparent;
}
.calendar-day:hover:not(.disabled):not(.empty) {
  background: rgba(62, 132, 123, 0.1);
}
.calendar-day.today {
  font-weight: 800;
}
.calendar-day.today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-orange);
}
.calendar-day.selected {
  background: var(--color-teal);
  color: white;
  box-shadow: 0 3px 10px rgba(62, 132, 123, 0.3);
}
.calendar-day.selected::after { display: none; }
.calendar-day.disabled {
  color: var(--color-gray-light);
  cursor: default;
  pointer-events: none;
}
.calendar-day.empty {
  cursor: default;
  pointer-events: none;
}
.calendar-meeting-info {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-gray-light);
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.meeting-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-gray-medium);
}
.meeting-detail .icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--color-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ── TIME SLOTS (Step 2) ── */
.time-header {
  margin-bottom: 6px;
}
.time-header h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
}
.time-header .selected-date {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-gray-medium);
  margin-top: 2px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-teal);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 10px;
  border: none;
  background: none;
  padding: 0;
}
.back-link:hover { text-decoration: underline; }

.timezone-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-gray-medium);
}
.timezone-selector select {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-teal);
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.time-slot {
  padding: 10px 6px;
  border: 1.5px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-black);
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}
.time-slot:hover {
  border-color: var(--color-teal);
  background: rgba(62, 132, 123, 0.04);
  color: var(--color-teal);
}
.time-slot.selected {
  border-color: var(--color-teal);
  background: var(--color-teal);
  color: white;
  box-shadow: 0 3px 10px rgba(62, 132, 123, 0.3);
}

/* ── FORM (Step 3) ── */
.form-header {
  margin-bottom: 4px;
}
.form-header h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
}
.form-header .booking-summary {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-gray-medium);
  margin-top: 2px;
  margin-bottom: 18px;
}
.form-header .booking-summary strong {
  color: var(--color-black);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-black);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  border: 1.5px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  color: var(--color-black);
  transition: border-color 0.2s;
  outline: none;
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-teal);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0b8c4;
}
.form-group textarea {
  resize: vertical;
  min-height: 70px;
}
.form-group .field-error {
  font-size: 12px;
  color: #e53e3e;
  min-height: 16px;
}
.form-group input.invalid,
.form-group select.invalid {
  border-color: #e53e3e;
}

/* ── CTA BUTTON ── */
.btn-primary {
  background: var(--color-orange);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  width: 100%;
  margin-top: 10px;
  letter-spacing: 0.2px;
  position: relative;
}
.btn-primary:hover {
  background: var(--color-orange-hover);
  box-shadow: 0 6px 20px rgba(255,122,89,0.3);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  background: var(--color-gray-light);
  color: var(--color-gray-medium);
  cursor: default;
  box-shadow: none;
  transform: none;
}
.btn-primary.loading {
  color: transparent;
  pointer-events: none;
}
.btn-primary.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── CONFIRMATION PANEL ── */
.confirmation {
  text-align: center;
  padding: 36px 24px 40px;
}
.confirmation .check-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal), #4fa89e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  color: white;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes scaleIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.confirmation h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 6px;
}
.confirmation p {
  font-family: var(--font-body);
  color: var(--color-gray-medium);
  font-size: 14px;
  max-width: 360px;
  margin: 0 auto;
}
.confirmation .booking-detail-card {
  background: var(--color-mint);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px auto 0;
  max-width: 320px;
  text-align: left;
}
.confirmation .booking-detail-card .detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 13px;
}
.confirmation .booking-detail-card .detail-row .icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

/* ── LOADING / ERROR STATES ── */
.calendar-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: var(--color-gray-medium);
  font-size: 14px;
}
.calendar-loading .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-gray-light);
  border-top-color: var(--color-teal);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 10px;
}

.error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0 24px 12px;
  font-size: 13px;
  color: #991b1b;
  display: none;
}
.error-banner.visible {
  display: block;
}
.error-banner button {
  background: none;
  border: none;
  color: var(--color-teal);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
  margin-left: 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .booking-card { border-radius: var(--radius-md); }
  .panel { padding: 16px 16px 20px; }
  .calendar-grid { max-width: 280px; }
  .calendar-day { width: 34px; height: 34px; font-size: 12px; }
  .time-slots { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .step-connector { width: 24px; margin: 0 6px; }
}
@media (max-width: 380px) {
  .calendar-grid { max-width: 252px; }
  .calendar-day { width: 30px; height: 30px; font-size: 11px; }
  .time-slots { grid-template-columns: 1fr 1fr; gap: 6px; }
  .time-slot { padding: 8px 4px; font-size: 12px; }
}
