:root {
  --wws-bg: #F4F4F2;
  --wws-text: #1a1a1a;
  --wws-text-muted: rgba(0, 0, 0, 0.54);
  --wws-panel: rgba(255, 255, 255, 0.85);
  --wws-panel-strong: rgba(255, 255, 255, 0.95);
  --wws-border: rgba(0, 0, 0, 0.12);
  --wws-soft: rgba(0, 0, 0, 0.04);
  --wws-success: #2e7d32;
  --wws-warning: #b45309;
  --wws-danger: #c62828;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.booking-page {
  font-family: "Inter", sans-serif;
  background: var(--wws-bg);
  color: var(--wws-text);
  overflow-x: hidden;
}

.booking-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 1024px) {
  .booking-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    align-items: start;
  }
}

.booking-panel {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
}

.booking-panel-soft {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 1.25rem;
}

.step-pill,
.status-pill,
.summary-pill,
.addon-chip,
.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.step-pill,
.status-pill,
.summary-pill,
.location-chip {
  padding: 0.6rem 0.9rem;
}

.status-pill {
  border: 1px solid var(--wws-border);
  color: var(--wws-text-muted);
}

.status-pill.is-live {
  border-color: rgba(46, 125, 50, 0.4);
  color: var(--wws-success);
}

.status-pill.is-pending {
  border-color: rgba(180, 83, 9, 0.35);
  color: var(--wws-warning);
}

.location-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.location-chip {
  border: 1px solid var(--wws-border);
  color: var(--wws-text-muted);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.location-chip:hover {
  color: var(--wws-text);
  border-color: rgba(0, 0, 0, 0.24);
}

.location-chip.is-active {
  color: #ffffff;
  background: var(--wws-text);
  border-color: var(--wws-text);
}

.location-chip.is-powdersville.is-active {
  background: #4A90D9;
  border-color: #4A90D9;
  color: #ffffff;
}

.location-chip.is-taylors-mill.is-active {
  background: #c4a882;
  border-color: #c4a882;
  color: #ffffff;
}

.progress-track-wrapper {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--wws-bg);
  padding: 0.6rem 0 0.4rem;
}

.progress-track {
  position: relative;
  padding: 0 1rem;
}

.progress-bar-track {
  position: absolute;
  top: 0.7rem;
  height: 2px;
  background: var(--wws-border);
  border-radius: 1px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--wws-text);
  border-radius: 1px;
  transition: width 300ms ease;
}

.progress-bar-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.progress-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--wws-text-muted);
  transition: color 180ms ease;
  min-width: 2.5rem;
}

.progress-dot.is-active,
.progress-dot.is-complete {
  color: var(--wws-text);
}

.progress-dot.is-locked {
  opacity: 0.3;
  cursor: not-allowed;
}

.progress-dot-num {
  display: flex;
  width: 1.4rem;
  height: 1.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 0.65rem;
  font-weight: 500;
  background: var(--wws-bg);
}

.progress-dot.is-active .progress-dot-num {
  background: var(--wws-text);
  color: var(--wws-bg);
  border-color: var(--wws-text);
}

.progress-dot.is-complete .progress-dot-num {
  background: var(--wws-text);
  color: var(--wws-bg);
  border-color: var(--wws-text);
}

.progress-dot-label {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.choice-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .choice-grid.is-two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.booking-choice,
.addon-card,
.info-card {
  border: 1px solid var(--wws-border);
  border-radius: 1.25rem;
  background: #ffffff;
}

.addon-card,
.info-card {
  overflow: hidden;
}

.panel-pad {
  padding: 1.25rem;
}

.booking-choice {
  width: 100%;
  padding: 1.1rem;
  text-align: left;
  min-width: 0;
  overflow-wrap: break-word;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.booking-choice.duration-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
}

.duration-pill-label {
  font-size: 0.95rem;
  font-weight: 500;
}

.duration-pill-badge {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5a7d8f;
  border: 1px solid rgba(139, 167, 184, 0.4);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

.booking-choice:hover,
.addon-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.2);
}

.booking-choice.is-active {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.04);
}

/* Session type selector (Photo/Video vs Event) — inversed styling */
.choice-grid.is-two-up > .booking-choice {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

.choice-grid.is-two-up > .booking-choice.is-active {
  background: #ffffff;
  border: 2px solid #4A90D9;
  font-weight: 600;
}

.booking-step {
  display: none;
}

.booking-step.is-active {
  display: block;
  background: #eaeae8;
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}

.booking-input,
.booking-textarea,
.booking-select {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--wws-border);
  background: #ffffff;
  color: var(--wws-text);
  padding: 0.9rem 1rem;
}

.booking-input::placeholder,
.booking-textarea::placeholder {
  color: rgba(0, 0, 0, 0.34);
}

.booking-select option {
  color: var(--wws-text);
}

.booking-textarea {
  min-height: 120px;
  resize: vertical;
}

.booking-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.booking-button:hover {
  transform: translateY(-1px);
}

.booking-button-primary {
  background: var(--wws-text);
  color: #ffffff;
}

.booking-button-secondary {
  border: 1px solid var(--wws-border);
  color: var(--wws-text);
}

.booking-button-muted {
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--wws-text-muted);
}

.booking-button[disabled] {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.addon-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-top-left-radius: 1.2rem;
  border-top-right-radius: 1.2rem;
}

.addon-card-content {
  padding: 1rem;
}

.addon-chip {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--wws-border);
  color: var(--wws-text-muted);
  background: #ffffff;
}

.addon-chip.is-active {
  color: #ffffff;
  border-color: var(--wws-text);
  background: var(--wws-text);
}

.addon-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

.backdrop-carousel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.backdrop-carousel::-webkit-scrollbar {
  height: 4px;
}

.backdrop-carousel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 2px;
}

.backdrop-carousel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

.backdrop-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  border: 2px solid var(--wws-border);
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  transition: border-color 180ms ease, transform 180ms ease;
}

.backdrop-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.2);
}

.backdrop-card.is-selected {
  border-color: var(--wws-text);
}

.backdrop-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.backdrop-card-body {
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.backdrop-card-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.backdrop-card-price {
  font-size: 0.65rem;
  color: var(--wws-text-muted);
}

.backdrop-check {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--wws-text);
  color: #ffffff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}

.backdrop-check.is-visible {
  opacity: 1;
  transform: scale(1);
}

.summary-list {
  display: grid;
  gap: 0.85rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--wws-text);
}

.summary-line-muted {
  color: var(--wws-text-muted);
}

.summary-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.helper-list {
  display: grid;
  gap: 0.65rem;
}

.helper-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.helper-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.warning-card,
.note-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.warning-card {
  background: rgba(180, 83, 9, 0.08);
  color: var(--wws-warning);
}

.note-card {
  background: rgba(0, 0, 0, 0.03);
  color: var(--wws-text-muted);
}

.scheduler-frame {
  width: 100%;
  min-height: 780px;
  margin-top: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1.25rem;
  background: #ffffff;
}

.scheduler-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--wws-text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.waiver-signed {
  text-align: center;
  padding: 1rem 0;
}

.waiver-signature {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-style: italic;
  color: var(--wws-text);
  line-height: 1.2;
}

.waiver-signature-line {
  width: 280px;
  max-width: 100%;
  height: 1px;
  background: var(--wws-text);
  margin: 0.5rem auto 0;
}

.waiver-unsigned {
  text-align: center;
  padding: 0.5rem 0;
}

/* Calendar (Step 5) */
.booking-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 1rem;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wws-text-muted);
  padding: 0.4rem 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  border: 1px solid transparent;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.calendar-day.is-empty {
  visibility: hidden;
}

.calendar-day.is-unavailable {
  color: rgba(0, 0, 0, 0.2);
  cursor: default;
}

.calendar-day.is-available {
  color: var(--wws-text);
  cursor: pointer;
  border-color: var(--wws-border);
  background: #ffffff;
}

.calendar-day.is-available:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
}

.calendar-day.is-selected {
  background: var(--wws-text);
  color: #ffffff;
  border-color: var(--wws-text);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Time slots */
.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
}

.time-slot {
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid var(--wws-border);
  background: #ffffff;
  font-size: 0.82rem;
  text-align: center;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.time-slot:hover {
  border-color: rgba(0, 0, 0, 0.24);
  background: rgba(0, 0, 0, 0.03);
}

.time-slot.is-selected {
  background: var(--wws-text);
  color: #ffffff;
  border-color: var(--wws-text);
}

/* Order total */
.order-total {
  font-size: 1.15rem;
}

/* Loading spinner */
.booking-spinner {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.booking-spinner::after {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--wws-border);
  border-top-color: var(--wws-text);
  border-radius: 50%;
  animation: booking-spin 0.6s linear infinite;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.ui-row-start {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.ui-row-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ui-stack-sm {
  display: grid;
  gap: 1rem;
}

.ui-stack-md {
  display: grid;
  gap: 1.5rem;
}

.ui-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wws-text-muted);
}

.ui-kicker-strong {
  color: rgba(0, 0, 0, 0.72);
}

.ui-display-sm {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.4rem);
  line-height: 1;
}

.ui-copy {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
}

.ui-copy-strong {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--wws-text);
}

.ui-copy-muted {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.42);
}

.ui-empty {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.38);
}

.ui-field-label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wws-text-muted);
}

.ui-count {
  font-size: 1.125rem;
}

.sticky-column {
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 767px) {
  .progress-dot-label {
    font-size: 0.5rem;
  }

  .booking-panel {
    padding: 1rem;
  }

  .ui-row,
  .ui-row-start {
    flex-wrap: wrap;
  }

  .ui-display-sm {
    font-size: 1.6rem;
  }

  .summary-pill,
  .status-pill,
  .code-pill {
    font-size: 0.6rem;
    padding: 0.45rem 0.65rem;
    letter-spacing: 0.12em;
  }

  .addon-chip {
    font-size: 0.6rem;
    padding: 0.4rem 0.6rem;
    letter-spacing: 0.12em;
  }

  .booking-button {
    font-size: 0.68rem;
    padding: 0.8rem 1rem;
    letter-spacing: 0.14em;
  }

  .booking-choice {
    padding: 0.85rem;
  }

  .ui-kicker,
  .ui-kicker-strong {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }

  .ui-copy {
    font-size: 0.85rem;
  }

  .ui-copy-muted {
    font-size: 0.75rem;
  }

  header h1 {
    font-size: 2.4rem;
  }
}

/* Signature hint (name mismatch / match feedback) */
.signature-hint {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  min-height: 1.15em;
  transition: opacity 0.2s ease;
}
.signature-hint:empty {
  display: none;
}
.signature-hint.hint-mismatch {
  color: #b91c1c;
}
.signature-hint.hint-match {
  color: #15803d;
}

/* Shake animation for invalid event selection */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-6px); }
  30%, 60%, 90% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* Toast notification */
.toast-popup {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  max-width: 90vw;
  text-align: center;
}

.toast-popup.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Event textarea notice (subtle border for 35+ participants) */
.event-textarea-warning {
  border-color: #4A90D9 !important;
  box-shadow: 0 0 0 1px rgba(139, 167, 184, 0.4);
}

/* TM high-traffic modal overlay */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.booking-modal {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
