/* ============================================================
   SPA AJIBADE & CO. — APPOINTMENT BOOKING
   styles.css
   Dark navy theme · Cormorant Garamond + DM Sans
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  /* Background layers */
  --bg-page:        #0c1523;
  --bg-input:       #182030;
  --bg-input-focus: #1e2a3e;
  --bg-card:        #14203a;
  --bg-card-hover:  #192640;
  --bg-card-active: #1a2e50;

  /* Borders */
  --border-subtle:  #253347;
  --border-focus:   #4285f4;
  --border-card:    #253347;
  --border-highlight: #c9a84c;

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: #8a9bb5;
  --text-muted:     #546070;
  --text-label:     #e4eaf3;

  /* Accent */
  --accent:         #4285f4;
  --accent-hover:   #3570d4;
  --accent-glow:    rgba(66, 133, 244, 0.25);
  --gold:           #c9a84c;
  --gold-light:     rgba(201, 168, 76, 0.12);

  /* Input sizing — EVERY input/textarea uses these */
  --input-height:   52px;
  --input-radius:   8px;
  --input-padding:  0 16px;
  --input-font:     15px;
  --input-bg:       var(--bg-input);
  --input-border:   1px solid var(--border-subtle);

  /* Layout */
  --max-width:      680px;
  --header-height:  76px;

  /* Transitions */
  --ease:           cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast:           0.15s;
  --normal:         0.25s;
  --slow:           0.4s;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── BASE ───────────────────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  /* Subtle noise texture overlay */
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(66, 133, 244, 0.07) 0%, transparent 70%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── APP WRAPPER ────────────────────────────────────────────── */
.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 60px;
}

/* ── HEADER / LOGO ──────────────────────────────────────────── */
.site-header {
  width: 100%;
  max-width: var(--max-width);
  padding: 32px 0 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 42px;
  width: auto;
}

/* ── PROGRESS BAR ───────────────────────────────────────────── */
.progress-track {
  width: 100%;
  max-width: var(--max-width);
  margin-bottom: 36px;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--normal) var(--ease);
}

.step-dot span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--normal) var(--ease);
}

.step-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--normal) var(--ease);
}

/* Active step */
.progress-step.active .step-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.progress-step.active .step-dot span {
  color: #fff;
}
.progress-step.active .step-label {
  color: var(--text-primary);
  font-weight: 500;
}

/* Completed step */
.progress-step.completed .step-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.progress-step.completed .step-dot span {
  display: none;
}
.progress-step.completed .step-dot::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}
.progress-step.completed .step-label {
  color: var(--text-secondary);
}

/* Connector line */
.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 8px;
  margin-bottom: 18px;
  transition: background var(--normal) var(--ease);
}
.progress-line.done {
  background: var(--accent);
}

/* ── MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
  width: 100%;
  max-width: var(--max-width);
  position: relative;
}

/* ── STEP PANELS ────────────────────────────────────────────── */
.step-panel {
  display: none;
  opacity: 0;
  transform: translateX(24px);
  animation: none;
}

.step-panel.active {
  display: block;
  animation: stepIn var(--slow) var(--ease) forwards;
}

.step-panel.exit {
  animation: stepOut var(--normal) var(--ease) forwards;
}

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

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

/* ── STEP HEADINGS ──────────────────────────────────────────── */
.step-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.step-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: -16px;
  margin-bottom: 24px;
  font-weight: 300;
}

.step-header-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

/* ── FORM LAYOUT ────────────────────────────────────────────── */
#user-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row.two-col > .form-group {
  flex: 1 1 0;
  min-width: 0;
}

/* ── FORM GROUP ─────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── LABELS ─────────────────────────────────────────────────── */
label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-label);
  letter-spacing: 0.01em;
  user-select: none;
}

.optional-tag {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ── INPUT BASE — All inputs share identical styling ────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  height: var(--input-height);             /* same height */
  padding: var(--input-padding);           /* same padding */
  background: var(--input-bg);             /* same bg */
  border: var(--input-border);             /* same border */
  border-radius: var(--input-radius);      /* same radius */
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--input-font);            /* same font size */
  font-weight: 400;
  outline: none;
  transition:
    border-color var(--fast) var(--ease),
    background var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

/* Textarea override (needs auto height) */
textarea {
  height: auto;
  min-height: 130px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.6;
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

/* Focus state */
input:focus,
textarea:focus {
  border-color: var(--border-focus);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Error state */
input.error,
textarea.error {
  border-color: #e05252;
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.15);
}

/* ── INPUT WITH ICON ────────────────────────────────────────── */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
  /* vertically centered by flex on parent */
  flex-shrink: 0;
}

/* Shift input text to not overlap icon */
.input-icon-wrap input {
  padding-left: 44px;
}

/* ── FIELD ERRORS ───────────────────────────────────────────── */
.field-error {
  font-size: 12px;
  color: #e05252;
  font-weight: 400;
  min-height: 16px;
  display: block;
}

/* ── FORM ACTIONS ───────────────────────────────────────────── */
.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 28px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background var(--fast) var(--ease),
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    opacity var(--fast) var(--ease);
  -webkit-appearance: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

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

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Back button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 14px;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.btn-back:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── STAFF GRID ─────────────────────────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

/* ── STAFF CARD ─────────────────────────────────────────────── */
.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 18px 18px 16px;
  cursor: pointer;
  transition:
    border-color var(--fast) var(--ease),
    background var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    transform var(--fast) var(--ease);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.staff-card:hover {
  border-color: rgba(66, 133, 244, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.staff-card.selected {
  border-color: var(--accent);
  background: var(--bg-card-active);
  box-shadow: 0 0 0 2px var(--accent-glow), 0 6px 24px rgba(0, 0, 0, 0.3);
}

.staff-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Highlight badge (COO) */
.staff-card.highlight {
  border-color: var(--gold);
}

.staff-card.highlight .card-badge {
  display: inline-flex;
}

.card-badge {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

/* Selected tick */
.card-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--normal) var(--ease);
}

.card-check svg {
  width: 10px;
  height: 10px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
}

.staff-card.selected .card-check {
  opacity: 1;
  transform: scale(1);
}

/* Avatar initials */
.card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #253660 0%, #1a2d50 100%);
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.staff-card.selected .card-avatar {
  border-color: var(--accent);
  color: var(--accent);
}

.staff-card.highlight .card-avatar {
  border-color: var(--gold);
  color: var(--gold);
}

.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  padding-right: 24px; /* space for check icon */
}

.card-role {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* Department tags */
.card-departments {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dept-tag {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  transition: color var(--fast) var(--ease);
}

.staff-card.selected .dept-tag {
  color: var(--text-secondary);
  border-color: rgba(66,133,244,0.15);
  background: rgba(66,133,244,0.06);
}

/* ── CALENDLY EMBED ─────────────────────────────────────────── */
.calendly-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  min-height: 680px;
  position: relative;
}

.calendly-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 14px;
  background: var(--bg-card);
  z-index: 2;
  transition: opacity var(--normal) var(--ease);
}

.calendly-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Spinner */
.spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

#calendly-embed iframe {
  display: block;
  width: 100% !important;
  min-height: 680px;
  border: none;
}

/* ── BOOKING CONTEXT ────────────────────────────────────────── */
#booking-context {
  margin-bottom: 20px;
}

#booking-context strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ── SCROLLBAR STYLING ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a4f6a;
}

/* ── RESPONSIVE: TABLET ─────────────────────────────────────── */
@media (max-width: 640px) {
  .app-wrapper {
    padding: 0 16px 48px;
  }

  .site-header {
    padding: 24px 0 20px;
  }

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

  .form-row.two-col {
    flex-direction: column;
    gap: 20px;
  }
}

/* ── RESPONSIVE: MOBILE ─────────────────────────────────────── */
@media (max-width: 400px) {
  :root {
    --input-height: 48px;
    --input-font: 14px;
  }

  .logo-img {
    height: 34px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ── FOCUS VISIBLE GLOBAL ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── SELECTION COLOR ────────────────────────────────────────── */
::selection {
  background: rgba(66, 133, 244, 0.35);
  color: #fff;
}

/* ============================================================
   SPA AJIBADE & CO. — APPOINTMENT BOOKING
   styles.css
   Dark navy theme · Cormorant Garamond + DM Sans
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  /* Background layers */
  --bg-page:        #0c1523;
  --bg-input:       #182030;
  --bg-input-focus: #1e2a3e;
  --bg-card:        #14203a;
  --bg-card-hover:  #192640;
  --bg-card-active: #1a2e50;

  /* Borders */
  --border-subtle:  #253347;
  --border-focus:   #4285f4;
  --border-card:    #253347;
  --border-highlight: #c9a84c;

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: #8a9bb5;
  --text-muted:     #546070;
  --text-label:     #e4eaf3;

  /* Accent */
  --accent:         #4285f4;
  --accent-hover:   #3570d4;
  --accent-glow:    rgba(66, 133, 244, 0.25);
  --gold:           #c9a84c;
  --gold-light:     rgba(201, 168, 76, 0.12);

  /* Input sizing — EVERY input/textarea uses these */
  --input-height:   52px;
  --input-radius:   8px;
  --input-padding:  0 16px;
  --input-font:     15px;
  --input-bg:       var(--bg-input);
  --input-border:   1px solid var(--border-subtle);

  /* Layout */
  --max-width:      680px;
  --header-height:  76px;

  /* Transitions */
  --ease:           cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast:           0.15s;
  --normal:         0.25s;
  --slow:           0.4s;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── BASE ───────────────────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  /* Subtle noise texture overlay */
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(66, 133, 244, 0.07) 0%, transparent 70%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── APP WRAPPER ────────────────────────────────────────────── */
.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 60px;
}

/* ── HEADER / LOGO ──────────────────────────────────────────── */
.site-header {
  width: 100%;
  max-width: var(--max-width);
  padding: 32px 0 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.logo-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: none;
}

/* ── PROGRESS BAR ───────────────────────────────────────────── */
.progress-track {
  width: 100%;
  max-width: var(--max-width);
  margin-bottom: 36px;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--normal) var(--ease);
}

.step-dot span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--normal) var(--ease);
}

.step-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--normal) var(--ease);
}

/* Active step */
.progress-step.active .step-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.progress-step.active .step-dot span {
  color: #fff;
}
.progress-step.active .step-label {
  color: var(--text-primary);
  font-weight: 500;
}

/* Completed step */
.progress-step.completed .step-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.progress-step.completed .step-dot span {
  display: none;
}
.progress-step.completed .step-dot::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}
.progress-step.completed .step-label {
  color: var(--text-secondary);
}

/* Connector line */
.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 8px;
  margin-bottom: 18px;
  transition: background var(--normal) var(--ease);
}
.progress-line.done {
  background: var(--accent);
}

/* ── MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
  width: 100%;
  max-width: var(--max-width);
  position: relative;
}

/* ── STEP PANELS ────────────────────────────────────────────── */
.step-panel {
  display: none;
  opacity: 0;
  transform: translateX(24px);
  animation: none;
}

.step-panel.active {
  display: block;
  animation: stepIn var(--slow) var(--ease) forwards;
}

.step-panel.exit {
  animation: stepOut var(--normal) var(--ease) forwards;
}

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

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

/* ── STEP HEADINGS ──────────────────────────────────────────── */
.step-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.step-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: -16px;
  margin-bottom: 24px;
  font-weight: 300;
}

.step-header-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

/* ── FORM LAYOUT ────────────────────────────────────────────── */
#user-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row.two-col > .form-group {
  flex: 1 1 0;
  min-width: 0;
}

/* ── FORM GROUP ─────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── LABELS ─────────────────────────────────────────────────── */
label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-label);
  letter-spacing: 0.01em;
  user-select: none;
}

.optional-tag {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ── INPUT BASE — All inputs share identical styling ────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  height: var(--input-height);             /* same height */
  padding: var(--input-padding);           /* same padding */
  background: var(--input-bg);             /* same bg */
  border: var(--input-border);             /* same border */
  border-radius: var(--input-radius);      /* same radius */
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--input-font);            /* same font size */
  font-weight: 400;
  outline: none;
  transition:
    border-color var(--fast) var(--ease),
    background var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

/* Textarea override (needs auto height) */
textarea {
  height: auto;
  min-height: 130px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.6;
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

/* Focus state */
input:focus,
textarea:focus {
  border-color: var(--border-focus);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Error state */
input.error,
textarea.error {
  border-color: #e05252;
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.15);
}

/* ── INPUT WITH ICON ────────────────────────────────────────── */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
  /* vertically centered by flex on parent */
  flex-shrink: 0;
}

/* Shift input text to not overlap icon */
.input-icon-wrap input {
  padding-left: 44px;
}

/* ── FIELD ERRORS ───────────────────────────────────────────── */
.field-error {
  font-size: 12px;
  color: #e05252;
  font-weight: 400;
  min-height: 16px;
  display: block;
}

/* ── FORM ACTIONS ───────────────────────────────────────────── */
.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 28px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background var(--fast) var(--ease),
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    opacity var(--fast) var(--ease);
  -webkit-appearance: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

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

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Back button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 14px;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.btn-back:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── STAFF GRID ─────────────────────────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

/* ── STAFF CARD ─────────────────────────────────────────────── */
.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px 20px 18px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color var(--fast) var(--ease),
    background  var(--fast) var(--ease),
    box-shadow  var(--fast) var(--ease),
    transform   var(--fast) var(--ease);
  position: relative;
}

.staff-card:hover {
  border-color: rgba(66, 133, 244, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.staff-card.selected {
  border-color: var(--accent);
  background: var(--bg-card-active);
  box-shadow: 0 0 0 2px var(--accent-glow), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.staff-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── HIGHLIGHT CARD (Cross-Department) ──────────────────────── */
.staff-card.highlight {
  border-color: var(--gold);
}

.staff-card.highlight:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.15);
}

.staff-card.highlight.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow), 0 4px 20px rgba(0,0,0,0.3);
}

/* Badge */
.card-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

/* ── AVATAR ─────────────────────────────────────────────────── */
.card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(66, 133, 244, 0.12);
  border: 1.5px solid rgba(66, 133, 244, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.staff-card.highlight .card-avatar {
  background: var(--gold-light);
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--gold);
}

.staff-card.selected .card-avatar {
  background: rgba(66, 133, 244, 0.2);
  border-color: var(--accent);
}

/* ── CARD NAME ──────────────────────────────────────────────── */
.card-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
}

/* ── DEPARTMENT TAGS ────────────────────────────────────────── */
.card-departments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dept-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 3px 8px;
  white-space: nowrap;
}

.staff-card.selected .dept-tag {
  border-color: rgba(66, 133, 244, 0.2);
  background: rgba(66, 133, 244, 0.07);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 500px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
}

/* ── STEP 3 WIDER LAYOUT ────────────────────────────────────── */
#step-3 {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* ── BOOKING SHELL ──────────────────────────────────────────── */
.booking-shell {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: var(--bg-input);
  border: var(--input-border);
  border-radius: 14px;
  overflow: hidden;
  min-height: 420px;
}

/* ── DIVIDER ────────────────────────────────────────────────── */
.booking-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* ── LEFT PANEL — Staff Info ────────────────────────────────── */
.booking-info {
  flex: 0 0 220px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.booking-staff {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #253660 0%, #1a2d50 100%);
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  border-color: var(--accent);
}

.booking-staff-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.booking-staff-role {
  font-size: 11.5px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Meta list */
.booking-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}

.booking-meta li svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Selected summary */
.booking-selected-summary {
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(66, 133, 244, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.2);
  border-radius: 8px;
}

.summary-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.summary-value {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ── MIDDLE PANEL — Calendar ────────────────────────────────── */
.booking-calendar {
  flex: 1 1 auto;
  padding: 28px 28px 32px;
  min-width: 0;
}

/* Calendar header */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-month-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

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

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

/* Weekday headers */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 4px 0;
}

/* Date grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* Individual day cell */
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  border-radius: 50%;
  cursor: default;
  transition: all var(--fast) var(--ease);
  position: relative;
  user-select: none;
}

/* Empty offset cells */
.cal-day.empty {
  pointer-events: none;
}

/* Past days */
.cal-day.past {
  color: var(--text-muted);
  opacity: 0.35;
  pointer-events: none;
}

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

/* Available day */
.cal-day.available {
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 500;
  background: rgba(66, 133, 244, 0.15);
}

.cal-day.available:hover {
  background: rgba(66, 133, 244, 0.3);
  color: #fff;
}

/* Selected day */
.cal-day.selected {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
}

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

/* ── RIGHT PANEL — Time Slots ───────────────────────────────── */
.booking-slots {
  flex: 0 0 160px;
  padding: 28px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid var(--border-subtle);
  animation: stepIn var(--normal) var(--ease) forwards;
}

.slots-date-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  white-space: nowrap;
}

.slots-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 360px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

/* Time slot button */
.slot-btn {
  width: 100%;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
}

.slot-btn:hover {
  border-color: var(--accent);
  background: rgba(66, 133, 244, 0.1);
  color: var(--accent);
}

.slot-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}

.slot-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Choose a day prompt */
.slots-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  gap: 12px;
  padding: 20px 8px;
  color: var(--text-muted);
}

.slots-prompt svg {
  opacity: 0.35;
}

.slots-prompt span {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.5;
}

/* Send error */
.send-error {
  font-size: 13px;
  color: #e05252;
  font-weight: 400;
  margin-top: 8px;
  text-align: right;
}
.booking-success {
  text-align: center;
  padding: 48px 24px;
  animation: stepIn var(--slow) var(--ease) forwards;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(66, 133, 244, 0.12);
  border: 1.5px solid rgba(66, 133, 244, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}

.booking-success h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.booking-success p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── RESPONSIVE: Step 3 ─────────────────────────────────────── */
@media (max-width: 720px) {
  .booking-shell {
    flex-direction: column;
  }

  .booking-divider {
    width: 100%;
    height: 1px;
    align-self: auto;
  }

  .booking-info {
    flex: none;
    padding: 24px 20px 20px;
  }

  .booking-calendar {
    padding: 20px;
  }

  .booking-slots {
    flex: none;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding: 16px 20px 20px;
  }

  .slots-list {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    overflow-y: visible;
  }

  .slot-btn {
    width: auto;
    padding: 0 14px;
    flex-shrink: 0;
  }
}

/* ── SCROLLBAR STYLING ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a4f6a;
}

/* ── RESPONSIVE: TABLET ─────────────────────────────────────── */
@media (max-width: 640px) {
  .app-wrapper {
    padding: 0 16px 48px;
  }

  .site-header {
    padding: 24px 0 20px;
  }

  .logo-name {
    font-size: 19px;
  }

  .form-row.two-col {
    flex-direction: column;
    gap: 20px;
  }
}

/* ── RESPONSIVE: MOBILE ─────────────────────────────────────── */
@media (max-width: 400px) {
  :root {
    --input-height: 48px;
    --input-font: 14px;
  }

  .logo-name {
    font-size: 17px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ── FOCUS VISIBLE GLOBAL ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── SELECTION COLOR ────────────────────────────────────────── */
::selection {
  background: rgba(66, 133, 244, 0.35);
  color: #fff;
}


/* ============================================================
   SPA AJIBADE & CO. — APPOINTMENT BOOKING
   styles.css
   Dark navy theme · Cormorant Garamond + DM Sans
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  /* Background layers */
  --bg-page:        #0c1523;
  --bg-input:       #182030;
  --bg-input-focus: #1e2a3e;
  --bg-card:        #14203a;
  --bg-card-hover:  #192640;
  --bg-card-active: #1a2e50;

  /* Borders */
  --border-subtle:  #253347;
  --border-focus:   #4285f4;
  --border-card:    #253347;
  --border-highlight: #c9a84c;

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: #8a9bb5;
  --text-muted:     #546070;
  --text-label:     #e4eaf3;

  /* Accent */
  --accent:         #4285f4;
  --accent-hover:   #3570d4;
  --accent-glow:    rgba(66, 133, 244, 0.25);
  --gold:           #c9a84c;
  --gold-light:     rgba(201, 168, 76, 0.12);

  /* Input sizing — EVERY input/textarea uses these */
  --input-height:   52px;
  --input-radius:   8px;
  --input-padding:  0 16px;
  --input-font:     15px;
  --input-bg:       var(--bg-input);
  --input-border:   1px solid var(--border-subtle);

  /* Layout */
  --max-width:      680px;
  --header-height:  76px;

  /* Transitions */
  --ease:           cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast:           0.15s;
  --normal:         0.25s;
  --slow:           0.4s;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── BASE ───────────────────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  /* Subtle noise texture overlay */
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(66, 133, 244, 0.07) 0%, transparent 70%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── APP WRAPPER ────────────────────────────────────────────── */
.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 60px;
}

/* ── HEADER / LOGO ──────────────────────────────────────────── */
.site-header {
  width: 100%;
  max-width: var(--max-width);
  padding: 32px 0 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.logo-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: none;
}

/* ── PROGRESS BAR ───────────────────────────────────────────── */
.progress-track {
  width: 100%;
  max-width: var(--max-width);
  margin-bottom: 36px;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--normal) var(--ease);
}

.step-dot span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--normal) var(--ease);
}

.step-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--normal) var(--ease);
}

/* Active step */
.progress-step.active .step-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.progress-step.active .step-dot span {
  color: #fff;
}
.progress-step.active .step-label {
  color: var(--text-primary);
  font-weight: 500;
}

/* Completed step */
.progress-step.completed .step-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.progress-step.completed .step-dot span {
  display: none;
}
.progress-step.completed .step-dot::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}
.progress-step.completed .step-label {
  color: var(--text-secondary);
}

/* Connector line */
.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 8px;
  margin-bottom: 18px;
  transition: background var(--normal) var(--ease);
}
.progress-line.done {
  background: var(--accent);
}

/* ── MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
  width: 100%;
  max-width: var(--max-width);
  position: relative;
}

/* ── STEP PANELS ────────────────────────────────────────────── */
.step-panel {
  display: none;
  opacity: 0;
  transform: translateX(24px);
  animation: none;
}

.step-panel.active {
  display: block;
  animation: stepIn var(--slow) var(--ease) forwards;
}

.step-panel.exit {
  animation: stepOut var(--normal) var(--ease) forwards;
}

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

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

/* ── STEP HEADINGS ──────────────────────────────────────────── */
.step-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.step-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: -16px;
  margin-bottom: 24px;
  font-weight: 300;
}

.step-header-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

/* ── FORM LAYOUT ────────────────────────────────────────────── */
#user-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row.two-col > .form-group {
  flex: 1 1 0;
  min-width: 0;
}

/* ── FORM GROUP ─────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── LABELS ─────────────────────────────────────────────────── */
label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-label);
  letter-spacing: 0.01em;
  user-select: none;
}

.optional-tag {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ── INPUT BASE — All inputs share identical styling ────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  height: var(--input-height);             /* same height */
  padding: var(--input-padding);           /* same padding */
  background: var(--input-bg);             /* same bg */
  border: var(--input-border);             /* same border */
  border-radius: var(--input-radius);      /* same radius */
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--input-font);            /* same font size */
  font-weight: 400;
  outline: none;
  transition:
    border-color var(--fast) var(--ease),
    background var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

/* Textarea override (needs auto height) */
textarea {
  height: auto;
  min-height: 130px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.6;
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

/* Focus state */
input:focus,
textarea:focus {
  border-color: var(--border-focus);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Error state */
input.error,
textarea.error {
  border-color: #e05252;
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.15);
}

/* ── INPUT WITH ICON ────────────────────────────────────────── */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
  /* vertically centered by flex on parent */
  flex-shrink: 0;
}

/* Shift input text to not overlap icon */
.input-icon-wrap input {
  padding-left: 44px;
}

/* ── FIELD ERRORS ───────────────────────────────────────────── */
.field-error {
  font-size: 12px;
  color: #e05252;
  font-weight: 400;
  min-height: 16px;
  display: block;
}

/* ── FORM ACTIONS ───────────────────────────────────────────── */
.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 28px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background var(--fast) var(--ease),
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    opacity var(--fast) var(--ease);
  -webkit-appearance: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

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

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Back button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 14px;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.btn-back:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── STAFF GRID ─────────────────────────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

/* ── STAFF CARD ─────────────────────────────────────────────── */
.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px 20px 18px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color var(--fast) var(--ease),
    background  var(--fast) var(--ease),
    box-shadow  var(--fast) var(--ease),
    transform   var(--fast) var(--ease);
  position: relative;
}

.staff-card:hover {
  border-color: rgba(66, 133, 244, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.staff-card.selected {
  border-color: var(--accent);
  background: var(--bg-card-active);
  box-shadow: 0 0 0 2px var(--accent-glow), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.staff-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── HIGHLIGHT CARD (Cross-Department) ──────────────────────── */
.staff-card.highlight {
  border-color: var(--gold);
}

.staff-card.highlight:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.15);
}

.staff-card.highlight.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow), 0 4px 20px rgba(0,0,0,0.3);
}

/* Badge */
.card-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

/* ── AVATAR ─────────────────────────────────────────────────── */
.card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(66, 133, 244, 0.12);
  border: 1.5px solid rgba(66, 133, 244, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.staff-card.highlight .card-avatar {
  background: var(--gold-light);
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--gold);
}

.staff-card.selected .card-avatar {
  background: rgba(66, 133, 244, 0.2);
  border-color: var(--accent);
}

/* ── CARD NAME ──────────────────────────────────────────────── */
.card-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
}

/* ── DEPARTMENT TAGS ────────────────────────────────────────── */
.card-departments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dept-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 3px 8px;
  white-space: nowrap;
}

.staff-card.selected .dept-tag {
  border-color: rgba(66, 133, 244, 0.2);
  background: rgba(66, 133, 244, 0.07);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 500px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
}

/* ── STEP 3 WIDER LAYOUT ────────────────────────────────────── */
#step-3 {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* ── BOOKING SHELL ──────────────────────────────────────────── */
.booking-shell {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: var(--bg-input);
  border: var(--input-border);
  border-radius: 14px;
  overflow: hidden;
  min-height: 420px;
}

/* ── DIVIDER ────────────────────────────────────────────────── */
.booking-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* ── LEFT PANEL — Staff Info ────────────────────────────────── */
.booking-info {
  flex: 0 0 220px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.booking-staff {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #253660 0%, #1a2d50 100%);
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  border-color: var(--accent);
}

.booking-staff-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.booking-staff-role {
  font-size: 11.5px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Meta list */
.booking-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}

.booking-meta li svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Selected summary */
.booking-selected-summary {
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(66, 133, 244, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.2);
  border-radius: 8px;
}

.summary-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.summary-value {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ── MIDDLE PANEL — Calendar ────────────────────────────────── */
.booking-calendar {
  flex: 1 1 auto;
  padding: 28px 28px 32px;
  min-width: 0;
}

/* Calendar header */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-month-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

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

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

/* Weekday headers */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 4px 0;
}

/* Date grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* Individual day cell */
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  border-radius: 50%;
  cursor: default;
  transition: all var(--fast) var(--ease);
  position: relative;
  user-select: none;
}

/* Empty offset cells */
.cal-day.empty {
  pointer-events: none;
}

/* Past days */
.cal-day.past {
  color: var(--text-muted);
  opacity: 0.35;
  pointer-events: none;
}

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

/* Available day */
.cal-day.available {
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 500;
  background: rgba(66, 133, 244, 0.15);
}

.cal-day.available:hover {
  background: rgba(66, 133, 244, 0.3);
  color: #fff;
}

/* Selected day */
.cal-day.selected {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
}

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

/* ── RIGHT PANEL — Time Slots ───────────────────────────────── */
.booking-slots {
  flex: 0 0 160px;
  padding: 28px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid var(--border-subtle);
  animation: stepIn var(--normal) var(--ease) forwards;
}

.slots-date-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  white-space: nowrap;
}

.slots-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 360px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

/* Time slot button */
.slot-btn {
  width: 100%;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
}

.slot-btn:hover {
  border-color: var(--accent);
  background: rgba(66, 133, 244, 0.1);
  color: var(--accent);
}

.slot-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}

.slot-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Choose a day prompt */
.slots-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  gap: 12px;
  padding: 20px 8px;
  color: var(--text-muted);
}

.slots-prompt svg {
  opacity: 0.35;
}

.slots-prompt span {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.5;
}

/* Send error */
.send-error {
  font-size: 13px;
  color: #e05252;
  font-weight: 400;
  margin-top: 8px;
  text-align: right;
}
.booking-success {
  text-align: center;
  padding: 48px 24px;
  animation: stepIn var(--slow) var(--ease) forwards;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(66, 133, 244, 0.12);
  border: 1.5px solid rgba(66, 133, 244, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}

.booking-success h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.booking-success p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── RESPONSIVE: Step 3 ─────────────────────────────────────── */
@media (max-width: 720px) {
  .booking-shell {
    flex-direction: column;
  }

  .booking-divider {
    width: 100%;
    height: 1px;
    align-self: auto;
  }

  .booking-info {
    flex: none;
    padding: 24px 20px 20px;
  }

  .booking-calendar {
    padding: 24px 12px;
    width: 100%;
  }

  .cal-header {
    padding: 0 8px;
    margin-bottom: 24px;
  }

  .cal-grid {
    gap: 4px; /* Increased spacing for easier touch selection */
  }

  .cal-day {
    font-size: 15px; /* Larger text for better legibility on mobile */
    min-height: 44px; /* Ensures a standard minimum touch target height */
  }

  .booking-slots {
    flex: none;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding: 16px 20px 20px;
  }

  .slots-list {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    overflow-y: visible;
  }

  .slot-btn {
    width: auto;
    padding: 0 14px;
    flex-shrink: 0;
  }
}

/* ── SCROLLBAR STYLING ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a4f6a;
}

/* ── RESPONSIVE: TABLET ─────────────────────────────────────── */
@media (max-width: 640px) {
  .app-wrapper {
    padding: 0 16px 48px;
  }

  .site-header {
    padding: 24px 0 20px;
  }

  .logo-name {
    font-size: 19px;
  }

  .form-row.two-col {
    flex-direction: column;
    gap: 20px;
  }
}

/* ── RESPONSIVE: MOBILE ─────────────────────────────────────── */
@media (max-width: 400px) {
  :root {
    --input-height: 48px;
    --input-font: 14px;
  }

  .logo-name {
    font-size: 17px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ── FOCUS VISIBLE GLOBAL ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── SELECTION COLOR ────────────────────────────────────────── */
::selection {
  background: rgba(66, 133, 244, 0.35);
  color: #fff;
}
