/* C-35 (2026-10-09): the parent site's styles.css (loaded before this file) points DM Sans / Outfit at
   theitexperience.com/fonts/, which browsers refuse cross-origin (no CORS header), so these pages fell back
   to system fonts. The same faces, served from this subdomain and declared later here, take precedence:
   no font request leaves booking.theitexperience.com. Keep in step with styles.css' @font-face block. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/dm-sans-v17-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/dm-sans-v17-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700 800; font-display: swap; src: url('/fonts/outfit-v15-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700 800; font-display: swap; src: url('/fonts/outfit-v15-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* ============================================================
   BOOKING APP STYLES
   Extends styles.css — only contains booking-specific components.
   ============================================================ */

/* ===== Step indicator ===== */
.booking-steps {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0 0 48px;
  padding: 0;
  flex-wrap: wrap;
}
.booking-steps .step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.booking-steps .step.active {
  background: var(--accent-glow);
  border-color: var(--accent-border-strong);
  color: var(--accent);
}
.booking-steps .step.complete {
  background: transparent;
  border-color: var(--accent-border);
  color: var(--text-secondary);
}
.booking-steps .step.complete .step-num::before {
  content: "✓";
}
.booking-steps .step.complete .step-num {
  font-size: 0;
}
.booking-steps .step.complete .step-num::before {
  font-size: 0.85rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
}
.booking-steps .step.active .step-num {
  background: var(--accent);
  color: var(--bg-primary);
}
.booking-steps .step.complete .step-num {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ===== Shell ===== */
.booking-shell {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.booking-step {
  animation: fadeUp 0.5s var(--ease-out);
}
.booking-step.hidden {
  display: none;
}
.booking-step-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
  text-align: center;
}
.booking-step-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 36px;
  line-height: 1.6;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.back-btn:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

/* ===== Service grid ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.service-card {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover,
.service-card:focus-visible {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  outline: none;
}
.service-card:hover::before,
.service-card:focus-visible::before {
  opacity: 1;
}
.service-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.service-meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.service-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
}
.service-loc {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-arrow {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.25s;
}
.service-card:hover .service-arrow {
  transform: translateX(4px);
}

/* ===== Calendar ===== */
.calendar-shell {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.calendar-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.cal-nav:hover:not(:disabled) {
  border-color: var(--border-hover);
  color: var(--accent);
  background: var(--accent-glow);
}
.cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.calendar-dows {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.calendar-dows span {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.15s;
  cursor: default;
}
.cal-cell.empty {
  visibility: hidden;
}
.cal-cell.available {
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  border-color: var(--border);
}
.cal-cell.available:hover,
.cal-cell.available:focus-visible {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  outline: none;
  transform: translateY(-1px);
}
.cal-cell.selected {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  font-weight: 700;
}
.cal-cell.today {
  position: relative;
}
.cal-cell.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* ===== Time slot grid ===== */
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.time-slot {
  padding: 14px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.time-slot:hover,
.time-slot:focus-visible {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  outline: none;
  transform: translateY(-1px);
}
.time-slot.selected {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}
.time-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Booking summary on details step ===== */
.booking-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.booking-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.booking-summary-icon svg { width: 22px; height: 22px; }
.booking-summary-text {
  flex: 1;
  min-width: 0;
}
.booking-summary-service {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}
.booking-summary-when {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.booking-summary-edit {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.booking-summary-edit:hover {
  background: var(--accent-glow);
}

/* ===== Form actions ===== */
.form-actions {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}
.form-fineprint {
  margin-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.form-fineprint a {
  color: var(--text-secondary);
  text-decoration: underline;
}
.form-fineprint a:hover { color: var(--accent); }

/* Submit button loading state */
#bookingSubmit {
  position: relative;
  min-width: 200px;
  justify-content: center;
}
#bookingSubmit .submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 14, 23, 0.3);
  border-top-color: var(--bg-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
#bookingSubmit.loading .submit-label,
#bookingSubmit.loading .submit-arrow {
  display: none;
}
#bookingSubmit.loading .submit-spinner {
  display: block;
}
#bookingSubmit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Success ===== */
.success-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 40px;
  max-width: 560px;
  margin: 0 auto;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.success-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.success-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.65;
}
.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Inline error ===== */
.booking-error {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 0.92rem;
  line-height: 1.6;
}
.booking-error.hidden { display: none; }

/* ===== Empty state ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
}
.empty-state a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ===== Form styles (mirrored from contact-us.html) ===== */
.form-layout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.form-body { padding: 32px 28px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row.full { grid-template-columns: 1fr; }
.fld { margin-bottom: 20px; }
.fld label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.fld label .req { color: #dc2626; margin-left: 2px; }
.fld input,
.fld select,
.fld textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.fld input::placeholder,
.fld textarea::placeholder { color: var(--text-muted); opacity: 1; }
.fld input:focus,
.fld select:focus,
.fld textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.fld textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
.fld.has-error input,
.fld.has-error select,
.fld.has-error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
}
.fld .err-msg {
  display: none;
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 5px;
}
.fld.has-error .err-msg { display: block; }

/* ===== Cancel/confirm pages ===== */
.confirm-card {
  max-width: 560px;
  margin: 80px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}
.confirm-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.confirm-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.65;
}
.confirm-card .when {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  color: var(--text-primary);
  font-weight: 600;
  margin: 24px 0 28px;
}

/* ===== Mobile tweaks ===== */
@media (max-width: 768px) {
  .booking-steps { gap: 4px; padding: 0 4px; }
  .booking-steps .step { padding: 8px 12px; font-size: 0.78rem; }
  .step-label { display: none; }
  .booking-steps .step.active .step-label { display: inline; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .calendar-shell { padding: 18px 14px; }
  .cal-cell { font-size: 0.85rem; }
  .service-grid { grid-template-columns: 1fr; }
  .form-body { padding: 24px 18px; }
  .booking-summary { flex-direction: column; align-items: stretch; text-align: left; }

  /* Tap-target sizing — buttons and inputs must hit 44px+ on touch */
  .btn-primary, .btn-secondary,
  .form-actions button,
  .time-slot { min-height: 48px; padding-top: 12px; padding-bottom: 12px; }
  .fld input, .fld select, .fld textarea { min-height: 48px; font-size: 16px; /* prevents iOS auto-zoom */ }
  .fld textarea { min-height: 96px; }

  /* Calendar nav buttons need to be tappable */
  .cal-nav { width: 40px; height: 40px; font-size: 1.4rem; }

  /* Confirm card / cancel-prompt on mobile */
  .confirm-card { padding: 28px 22px; }
}

/* ===== Very narrow phones (≤380px — iPhone SE 1st gen, etc.) ===== */
@media (max-width: 380px) {
  .calendar-grid { gap: 2px; }
  .cal-cell { font-size: 0.78rem; border-radius: 8px; }
  .calendar-shell { padding: 14px 8px; }
  .calendar-dows { font-size: 0.68rem; }
  .calendar-head h3 { font-size: 1rem; }
  .time-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .form-body { padding: 20px 14px; }
  .booking-step-title { font-size: 1.4rem; }
  .container { padding: 0 14px; }
}

/* ===== Mobile menu — match parent's behavior ===== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
  border-radius: 2px;
}
@media (max-width: 1024px) {
  .nav-links, .nav-right .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
}
