/* ================================================================
   EasySlot — Slot-Booking Customer Interface Stylesheet
   ================================================================
   TABLE OF CONTENTS
   01. CSS Custom Properties (Design Tokens)
   02. CSS Reset & Base
   03. Typography
   04. Site Header
   05. Progress Steps Bar
   06. Booking Main & Step Panels
   07. Step 1 — Service Selection
   08. Step 2 — Staff Selection
   09. Step 3 — Date & Time Picker
   10. Step 4 — Customer Details Form
   11. Step 5 — Confirm & Review
   12. Success Screen
   13. Shared Step Components (summaries, step footer, next btn)
   14. Toast Notifications
   15. Site Footer
   16. Utility Classes & Animations
   17. Responsive — Tablet (≤ 900px)
   18. Responsive — Mobile (≤ 600px)
   ================================================================ */


/* ================================================================
   01. CSS CUSTOM PROPERTIES
   ================================================================ */
:root {
  /* --- Accent colour — change ONE value to re-brand --- */
  --accent:        #2563EB;
  --accent-hover:  #1D4ED8;
  --accent-light:  #EFF6FF;
  --accent-mid:    rgba(37,99,235,.12);
  --accent-rgb:    37,99,235;

  /* --- Neutral Palette --- */
  --white:         #FFFFFF;
  --bg:            #F8FAFC;
  --surface:       #FFFFFF;
  --surface-2:     #F1F5F9;
  --surface-3:     #E2E8F0;
  --border:        #E2E8F0;
  --border-focus:  var(--accent);

  /* --- Text --- */
  --text-h:        #0F172A;
  --text-body:     #334155;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;
  --text-accent:   var(--accent);

  /* --- Success / Error --- */
  --success:       #059669;
  --success-bg:    #ECFDF5;
  --error:         #DC2626;
  --error-bg:      #FEF2F2;
  --warning:       #D97706;
  --warning-bg:    #FFFBEB;

  /* --- Shadows --- */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 36px rgba(0,0,0,.11), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 24px 60px rgba(0,0,0,.14);

  /* --- Spacing --- */
  --s1:  4px;
  --s2:  8px;
  --s3:  12px;
  --s4:  16px;
  --s5:  20px;
  --s6:  24px;
  --s8:  32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;

  /* --- Border Radius --- */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* --- Typography --- */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   16px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;

  /* --- Layout --- */
  --header-h:      72px;
  --progress-h:    72px;
  --max-w:         860px;
  --content-pad:   24px;

  /* --- Transitions --- */
  --t:      0.18s ease;
  --t-slow: 0.3s ease;
}


/* ================================================================
   02. CSS RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font);
  font-size: var(--text-base);
}

img { display: block; max-width: 100%; }
ul  { list-style: none; }


/* ================================================================
   03. TYPOGRAPHY
   ================================================================ */
.step-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.step-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-top: 4px;
}


/* ================================================================
   04. SITE HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-name {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.brand-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.contact-item i {
  color: var(--accent);
  font-size: 13px;
}


/* ================================================================
   05. PROGRESS STEPS BAR
   ================================================================ */
.progress-bar-outer {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  box-shadow: var(--shadow-xs);
}

.progress-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s5) var(--content-pad);
}

.step-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Step circle + label */
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  cursor: default;
  position: relative;
  flex-shrink: 0;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 2px solid var(--border);
  transition: all var(--t-slow);
  position: relative;
  z-index: 1;
}

.step-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  transition: color var(--t-slow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Active step */
.step-item.active .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 0 4px var(--accent-mid);
}

.step-item.active .step-label {
  color: var(--accent);
}

/* Completed step */
.step-item.done .step-circle {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.step-item.done .step-label {
  color: var(--success);
}

.step-item.done { cursor: pointer; }
.step-item.done:hover .step-circle {
  background: var(--success);
  color: white;
}

/* Connector lines */
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 var(--s2);
  margin-bottom: 22px; /* vertically align with circles */
  border-radius: var(--r-full);
  transition: background var(--t-slow);
}

.step-line.done { background: var(--success); }
.step-line.active { background: var(--accent); }


/* ================================================================
   06. BOOKING MAIN & STEP PANELS
   ================================================================ */
.booking-main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: var(--s8) var(--content-pad) var(--s12);
}

/* Step panels — only the active one is visible */
.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
  animation: stepFadeIn 0.25s ease;
}

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

/* Step header row */
.step-header {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  margin-bottom: var(--s8);
}

.step-header > div { flex: 1; }

/* Back button */
.btn-back-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 4px;
  flex-shrink: 0;
  transition: all var(--t);
}

.btn-back-step:hover {
  background: var(--surface-2);
  color: var(--text-h);
}
.btn-back-step:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Step footer — contains the Next / Continue button */
.step-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--s8);
}

/* Next button */
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 0 var(--s8);
  height: 52px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: white;
  font-size: var(--text-md);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb),.35);
  transition: all var(--t);
}

.btn-next:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb),.45);
}
.btn-next:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-next:active:not(:disabled) { transform: translateY(0); }

.btn-next:disabled {
  background: var(--surface-3);
  color: var(--text-light);
  box-shadow: none;
  cursor: not-allowed;
}


/* ================================================================
   07. STEP 1 — SERVICE SELECTION
   ================================================================ */
/* Toolbar: search + category pills */
.service-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-bottom: var(--s6);
}

.search-wrap {
  position: relative;
  max-width: 400px;
}

.search-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 var(--s4) 0 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-h);
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-mid);
}

.search-input::placeholder { color: var(--text-light); }

/* Category pill filters */
.category-pills {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

.category-pill {
  padding: var(--s1) var(--s4);
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}

.category-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.category-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.category-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Service cards grid — 2 columns */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6);
  cursor: pointer;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-mid);
}

.service-card.selected::before { transform: scaleX(1); }

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.service-card-name {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-h);
  line-height: 1.3;
}

.service-card-category {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px var(--s2);
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.service-card-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: var(--s4);
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.service-card-meta {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.service-meta-item {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.service-meta-item i { font-size: 12px; color: var(--accent); }

.service-card-price {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-h);
}

.service-card-select-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: all var(--t);
  flex-shrink: 0;
}

.service-card.selected .service-card-select-icon {
  background: var(--accent);
  color: white;
}

/* Empty / loading states */
.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s12);
  gap: var(--s4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--s12);
  color: var(--text-muted);
}

.no-results i {
  font-size: 40px;
  opacity: 0.25;
  display: block;
  margin-bottom: var(--s4);
}


/* ================================================================
   08. STEP 2 — STAFF SELECTION
   ================================================================ */

/* "Any staff" card */
.staff-any-card {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s5) var(--s6);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t);
  margin-bottom: var(--s4);
  position: relative;
}

.staff-any-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.staff-any-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.staff-any-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.staff-any-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.staff-any-card.selected .staff-any-icon {
  background: var(--accent);
  color: white;
}

.staff-any-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.staff-any-text strong {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-h);
}

.staff-any-text span {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.staff-card-check {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: all var(--t);
}

.staff-any-card.selected .staff-card-check,
.staff-member-card.selected .staff-card-check {
  background: var(--accent);
  color: white;
}

/* Staff cards grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.staff-member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s6) var(--s4);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t);
  gap: var(--s3);
  position: relative;
}

.staff-member-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.staff-member-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-color: var(--accent);
}
  transform: translateY(-3px);
}

.staff-member-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.staff-member-card .staff-card-check {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
}

.staff-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.staff-member-name {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-h);
}

.staff-member-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.staff-availability {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px var(--s3);
  border-radius: var(--r-full);
  background: var(--success-bg);
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 4px;
}

.staff-availability::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}


/* ================================================================
   09. STEP 3 — DATE & TIME PICKER
   ================================================================ */
.datetime-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  align-items: start;
}

/* Shared card shell */
.calendar-card,
.timeslots-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Calendar navigation */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.cal-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}

.cal-nav-btn:hover {
  background: var(--border);
  color: var(--text-h);
}

.cal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-month-label {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-h);
}

/* Day-of-week headers */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
}

.cal-weekdays span {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* Date grid */
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: var(--s3) var(--s4) var(--s5);
  gap: var(--s1);
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t);
  color: var(--text-h);
  position: relative;
}

.cal-day:hover:not(.disabled):not(.empty) {
  background: var(--accent-light);
  color: var(--accent);
}

.cal-day.today {
  font-weight: 800;
  color: var(--accent);
}

.cal-day.today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.cal-day.selected {
  background: var(--accent);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb),.4);
}

.cal-day.selected::after { display: none; }

.cal-day.disabled {
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.45;
}

.cal-day.empty { cursor: default; }

.cal-day.has-slots::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.cal-day.selected.has-slots::after { display: none; }

/* Time slots panel */
.timeslots-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-h);
}

.timeslots-header i { color: var(--accent); }

.timeslots-grid {
  padding: var(--s4);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  max-height: 330px;
  overflow-y: auto;
}

/* Thin scroll track */
.timeslots-grid::-webkit-scrollbar { width: 4px; }
.timeslots-grid::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--r-full);
}

.timeslot-btn {
  padding: var(--s2) var(--s3);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-h);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--t);
  text-align: center;
}

.timeslot-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.timeslot-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
  background: var(--accent-light);
}

.timeslot-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb),.3);
}

.timeslot-btn:disabled {
  background: var(--surface-2);
  color: var(--text-light);
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.6;
}

.timeslots-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--s10) var(--s4);
  color: var(--text-muted);
}

.timeslots-empty i {
  font-size: 32px;
  display: block;
  margin-bottom: var(--s3);
  opacity: 0.3;
}

.timeslots-empty p {
  font-size: var(--text-sm);
}


/* ================================================================
   10. STEP 4 — CUSTOMER DETAILS FORM
   ================================================================ */
.booking-summary-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  background: var(--accent-light);
  border: 1.5px solid rgba(var(--accent-rgb),.2);
  border-radius: var(--r-lg);
  margin-bottom: var(--s6);
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s1) var(--s3);
  background: white;
  border: 1px solid rgba(var(--accent-rgb),.2);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.summary-chip i { font-size: 12px; }

/* Form card */
.details-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  box-shadow: var(--shadow-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.form-label i {
  font-size: 13px;
  color: var(--accent);
}

.required {
  color: var(--error);
  font-size: var(--text-xs);
}

.optional {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

.form-input {
  width: 100%;
  padding: 0 var(--s4);
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-h);
  font-size: var(--text-base);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-mid);
}

.form-input::placeholder { color: var(--text-light); }

.form-input.error { border-color: var(--error); }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.12); }

.form-textarea {
  height: auto;
  min-height: 100px;
  padding: var(--s3) var(--s4);
  resize: vertical;
  line-height: 1.6;
}

.field-error {
  font-size: var(--text-xs);
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 4px;
}

.field-error::before {
  content: '⚠';
  font-size: 11px;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--surface-2);
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.privacy-note i { color: var(--success); margin-top: 1px; flex-shrink: 0; }


/* ================================================================
   11. STEP 5 — CONFIRM & REVIEW
   ================================================================ */
.confirm-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--s5);
}

.confirm-card-header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  padding: var(--s8) var(--s8);
  color: white;
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.confirm-header-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.confirm-header-title {
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.2;
}

.confirm-header-sub {
  font-size: var(--text-sm);
  opacity: 0.85;
  margin-top: 4px;
}

.confirm-rows {
  padding: var(--s6) var(--s8);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.confirm-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s5);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--border);
}

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

.confirm-row-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.confirm-row-icon.blue   { background: var(--accent-light);  color: var(--accent); }
.confirm-row-icon.green  { background: var(--success-bg);    color: var(--success); }
.confirm-row-icon.purple { background: #F5F3FF; color: #7C3AED; }
.confirm-row-icon.orange { background: var(--warning-bg);    color: var(--warning); }

.confirm-row-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.confirm-row-value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-h);
  line-height: 1.4;
}

.confirm-row-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 1px;
}

/* Terms notice */
.terms-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--s4) var(--s5);
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  margin-bottom: var(--s6);
}

.terms-notice i { color: var(--accent); margin-top: 1px; flex-shrink: 0; }

/* Confirm button */
.btn-confirm {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 0 var(--s10);
  height: 56px;
  border-radius: var(--r-full);
  background: var(--success);
  color: white;
  font-size: var(--text-lg);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(5,150,105,.35);
  transition: all var(--t);
  width: 100%;
  justify-content: center;
}

.btn-confirm:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(5,150,105,.45);
}

.btn-confirm:active { transform: translateY(0); }

.btn-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-confirm .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}


/* ================================================================
   12. SUCCESS SCREEN
   ================================================================ */
.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s10) var(--s4);
}

.success-icon-wrap {
  position: relative;
  margin-bottom: var(--s8);
}

.success-icon {
  width: 96px;
  height: 96px;
  border-radius: var(--r-full);
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--success);
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes successPop {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

/* Confetti dots */
.success-confetti {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.confetti-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: confettiFly 1s ease forwards;
  opacity: 0;
}

@keyframes confettiFly {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-60px) rotate(360deg); opacity: 0; }
}

.success-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-h);
  margin-bottom: var(--s3);
  letter-spacing: -0.5px;
}

.success-msg {
  font-size: var(--text-md);
  color: var(--text-muted);
  margin-bottom: var(--s8);
  max-width: 400px;
}

/* Booking reference card */
.success-ref-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  width: 100%;
  max-width: 500px;
  text-align: left;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--s8);
}

.ref-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}

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

.ref-row i {
  width: 20px;
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}

.ref-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}

.ref-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-h);
  flex: 1;
}

/* New booking button */
.btn-new-booking {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 0 var(--s8);
  height: 50px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: white;
  font-size: var(--text-md);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb),.3);
  transition: all var(--t);
}

.btn-new-booking:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.success-note {
  margin-top: var(--s5);
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 400px;
}


/* ================================================================
   13. SHARED STEP COMPONENTS
   ================================================================ */

/* Selection summary pills shown at top of later steps */
.selection-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}

.selection-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}

.sel-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: var(--accent-light);
  border: 1px solid rgba(var(--accent-rgb),.2);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

.sel-chip i { font-size: 12px; }


/* ================================================================
   14. TOAST NOTIFICATIONS
   ================================================================ */
.toast-container {
  position: fixed;
  bottom: var(--s6);
  right: var(--s6);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  pointer-events: none;
  max-width: 340px;
  width: 100%;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: toastIn 0.25s ease forwards;
}

.toast.out { animation: toastOut 0.2s ease forwards; }

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

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

.toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-content { flex: 1; }
.toast-title   { font-size: var(--text-sm); font-weight: 700; color: var(--text-h); }
.toast-msg     { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--error); }
.toast-info    { border-left: 3px solid var(--accent); }
.toast-success .toast-icon { color: var(--success); }
.toast-error   .toast-icon { color: var(--error); }
.toast-info    .toast-icon { color: var(--accent); }


/* ================================================================
   15. SITE FOOTER
   ================================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s5) var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-body);
}

.footer-brand i { color: var(--accent); }

.footer-powered {
  font-size: var(--text-xs);
  color: var(--text-muted);
}


/* ================================================================
   16. UTILITY CLASSES & ANIMATIONS
   ================================================================ */
.hidden { display: none !important; }

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* Inline spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}


/* ================================================================
   17. RESPONSIVE — TABLET (≤ 900px)
   ================================================================ */
@media (max-width: 900px) {
  :root {
    --max-w: 100%;
    --content-pad: 20px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .datetime-layout {
    grid-template-columns: 1fr;
  }

  .timeslots-grid {
    max-height: 220px;
  }

  .header-contact { display: none; }

  .step-label {
    font-size: 9px;
  }

  .step-circle {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}


/* ================================================================
   18. RESPONSIVE — MOBILE (≤ 600px)
   ================================================================ */
@media (max-width: 600px) {
  :root {
    --header-h:    60px;
    --progress-h:  60px;
    --content-pad: 16px;
    --s8: 24px;
  }

  .brand-sub { display: none; }

  /* Compact progress bar — hide labels on very small screens */
  @media (max-width: 400px) {
    .step-label { display: none; }
    .step-line  { margin-bottom: 0; }
  }

  .step-title { font-size: var(--text-xl); }

  .service-grid { gap: var(--s3); }

  .service-card { padding: var(--s5); }

  .staff-grid { grid-template-columns: 1fr 1fr; }

  .staff-member-card { padding: var(--s4) var(--s3); }
  .staff-avatar { width: 52px; height: 52px; font-size: 18px; }

  .form-row { grid-template-columns: 1fr; gap: var(--s4); }

  .details-card { padding: var(--s5); }

  .confirm-card-header { padding: var(--s6); }
  .confirm-rows { padding: var(--s4) var(--s5); }

  .btn-next {
    width: 100%;
    justify-content: center;
    height: 48px;
  }

  .step-footer { justify-content: stretch; }

  .success-ref-card { padding: var(--s5); }

  .timeslots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toast-container {
    bottom: var(--s4);
    right: var(--s4);
    left: var(--s4);
    max-width: 100%;
  }

  .footer-inner { justify-content: center; flex-direction: column; text-align: center; }
}


/* ================================================================
   19. ADDITIONAL UTILITIES & FIXES
   ================================================================ */

/* Form hint text — used in service sheet config and details form */
.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: -2px;
}

/* Hidden utility */
.hidden { display: none !important; }

/* Booking-page scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Selection colour */
::selection {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--text-h);
}

/* Confirm button — add focus-visible ring */
.btn-confirm:focus-visible,
.btn-new-booking:focus-visible {
  outline: 2px solid var(--success);
  outline-offset: 2px;
}

/* Cal nav button focus */
.cal-nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Ensure step circles don't clip focus rings */
.step-item { isolation: isolate; }

/* Smooth page background */
body { background-attachment: fixed; }

/* Ensure success icon animation only plays once */
.success-icon { animation-fill-mode: both; }
