/*
 * Natural Hair Lounge — site-specific component styles.
 * theme.css carries the full Infinivate design system (tokens, reset,
 * header/nav, hero, buttons, footer); everything below builds on those same
 * tokens for the components specific to this site (cards, tables, calendar,
 * forms, badges, gallery, invoice) — none of which exist on Infinivate's
 * site, so there was nothing to adopt for them directly.
 */

/* ── Cards ───────────────────────────────────────────────── */

.card-grid {
  display: grid;
  /* auto-fit (not auto-fill): collapses empty tracks so a sparse row (e.g.
     the 2-card account dashboard) stretches to fill the available width
     instead of leaving the real cards squeezed to their minimum next to
     dead space. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.card:hover {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 6px;
}

.card-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.card-stylist h3 { color: var(--brand-dark); }

.card-review .card-meta:first-child { color: var(--warn); letter-spacing: 0; }

/* ── Stylist photos ──────────────────────────────────────── */

.stylist-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  background: var(--soft-2);
}

.stylist-photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  background: var(--soft-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stylist-photo-placeholder img { width: 38%; opacity: 0.45; }

/* Homepage team preview: just photo + name, no title/bio */
.card-stylist-compact {
  text-align: center;
}

.card-stylist-compact .stylist-photo,
.card-stylist-compact .stylist-photo-placeholder {
  margin-bottom: 10px;
}

.stylist-photo-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--soft-2);
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 4px;
  line-height: 1;
}

.link-card {
  display: block;
  color: inherit;
}

.link-card h3 { color: var(--brand-dark); }
.link-card:hover { color: inherit; }
.link-card:hover h3 { color: var(--brand); }

/* ── Dashboard metrics strip + grouped sections ─────────────
   Replaces a flat wall of uniform stat/link cards with a compact metrics
   row and labeled, icon-chipped sections — see admin/index.php. */

.metrics-strip {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0 32px;
  padding: 4px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.metric {
  flex: 1 1 150px;
  padding: 14px 20px;
  border-right: 1px solid var(--line);
}

.metric:last-child { border-right: none; }

.metric-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}

.metric-label {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
}

.dashboard-section {
  margin-bottom: 30px;
}

.dashboard-section-title {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: var(--r-sm);
  background: var(--brand-light);
  color: var(--brand);
}

.card-icon svg { width: 16px; height: 16px; }

/* ── Homepage composition ───────────────────────────────── */

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0;
}

.home-kpi-strip {
  padding-top: clamp(22px, 3.8vw, 32px);
  padding-bottom: clamp(18px, 3.2vw, 28px);
  background: var(--soft);
}

.home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-kpi-grid .card {
  border-radius: var(--r-md);
}

.section-heading {
  max-width: 840px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 6px auto 0;
}

/* Icon-led trust/feature rows — used on Home, About, Services, Team, Gallery
   wherever we want visual interest without needing real photography. */
.icon-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.icon-feature {
  text-align: center;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.icon-feature:hover {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.icon-feature .card-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
}

.icon-feature .card-icon svg { width: 20px; height: 20px; }

.icon-feature h3 { margin-bottom: 6px; font-size: 0.95rem; }

.icon-feature p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

/* Page-level stat row — a wider variant of .home-kpi-grid for reuse on
   About/Services so numbers feel consistent site-wide without being a
   copy-pasted homepage widget. */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin: 28px auto 0;
  padding: 24px;
  max-width: var(--max);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--soft);
}

.stat-band-item { text-align: center; }

.stat-band-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-band-label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Oversized brand-colored blockquote for anchor copy lines. */
.pull-quote {
  margin: 20px 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--brand);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--brand-dark);
  line-height: 1.6;
}

/* Editorial pull-quote treatment for review cards. */
.card-review .review-quote {
  position: relative;
  padding-left: 16px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink);
}

.card-review .review-quote::before {
  content: "\201C";
  position: absolute;
  left: -6px;
  top: -10px;
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--brand-soft);
}

.service-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.service-insights span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.service-filter-toolbar {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  max-width: 620px;
}

.service-filter-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.service-filter-toolbar input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 8px 11px;
  font: inherit;
  font-size: 0.84rem;
  color: var(--ink);
  background: var(--soft);
}

.service-filter-toolbar input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(63, 98, 83, 0.1);
}

.service-filter-reset {
  justify-self: start;
}

.service-filter-reset:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.service-filter-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.service-filter-quick .btn.is-active {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
}

.service-filter-count {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.service-filter-empty {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--soft);
}

.service-filter-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.section-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.featured-service-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.featured-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.service-category-nav {
  margin: 8px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}

.service-category-nav-title {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.service-category-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-category-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 130ms ease, border-color 130ms ease, color 130ms ease;
}

.service-category-nav-list a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

.service-category-nav-list a.is-current {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
  font-weight: 600;
}

.services-scroll-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--soft-2);
  overflow: hidden;
  margin: 0 0 14px;
}

.services-scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
  transition: width 120ms linear;
}

.services-main {
  min-width: 0;
}

.services-rail {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.services-rail h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ink);
}

.services-rail h3 .card-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.services-rail h3 .card-icon svg { width: 14px; height: 14px; }

.services-rail p {
  font-size: 0.84rem;
  color: var(--muted);
}

.services-rail-list {
  margin: 10px 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.services-rail-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--muted);
}

.services-rail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.services-rail-actions {
  display: grid;
  gap: 8px;
}

/* ── Service list (services.php) ────────────────────────── */

.service-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.service-row:hover {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-row-main { flex: 1 1 320px; }
.service-row-main h3 { display: flex; align-items: center; gap: 8px; }

.service-row-main p { color: var(--muted); font-size: 0.875rem; margin-bottom: 0; }

.service-row-meta {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  text-align: right;
  min-width: 120px;
}

.service-duration { font-size: 0.75rem; color: var(--muted-light); margin: 0; }

.service-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.badge-addon {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.addon-note {
  font-size: 0.75rem;
  margin: 0;
}

/* ── Forms ───────────────────────────────────────────────── */

.stacked-form {
  display: grid;
  gap: 12px;
  max-width: 540px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.form-intro {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.booking-stepper {
  margin: 6px 0 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--soft);
}

.booking-stepper-title {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.booking-progress-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--soft-2);
  overflow: hidden;
  margin-bottom: 6px;
}

.booking-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
  transition: width 180ms ease;
}

.booking-progress-label {
  margin: 0 0 7px;
  font-size: 0.72rem;
  color: var(--muted);
}

.booking-stepper-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.booking-stepper-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.booking-stepper-list li span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  color: var(--muted-light);
  background: var(--paper);
}

.booking-stepper-list li.is-current {
  background: var(--paper);
  color: var(--ink);
}

.booking-stepper-list li.is-current span {
  border-color: var(--brand);
  color: var(--brand);
}

.booking-stepper-list li.is-complete {
  color: var(--accent);
}

.booking-stepper-list li.is-complete span {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.booking-selection-summary {
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--soft);
}

.booking-selection-title {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.booking-selection-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.booking-selection-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.booking-selection-chips [data-booking-summary="addons"] {
  border-style: dashed;
}

.booking-selection-chips [data-booking-summary="duration"] {
  border-color: var(--line);
  background: var(--soft);
  color: var(--muted);
}

.stacked-form label {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.stacked-form label:has(+ input[required]):not(:has(input[type="checkbox"]))::after,
.stacked-form label:has(+ select[required])::after,
.stacked-form label:has(+ textarea[required])::after {
  content: "*";
  margin-left: 4px;
  color: var(--danger);
  font-weight: 700;
}

.stacked-form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.stacked-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.stacked-form input,
.stacked-form select,
.stacked-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--soft);
  transition: border-color 130ms ease, box-shadow 130ms ease, background 130ms ease;
}

.stacked-form input:focus,
.stacked-form select:focus,
.stacked-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(63, 98, 83, 0.1);
  background: var(--paper);
}

.stacked-form input.is-invalid,
.stacked-form select.is-invalid,
.stacked-form textarea.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(198, 81, 2, 0.12);
  background: var(--danger-soft);
}

.stacked-form input.is-invalid::placeholder,
.stacked-form textarea.is-invalid::placeholder {
  color: color-mix(in srgb, var(--danger) 65%, #ffffff 35%);
}

.stacked-form input.is-valid,
.stacked-form select.is-valid,
.stacked-form textarea.is-valid {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(63, 98, 83, 0.09);
  background: var(--paper);
}

.stacked-form .btn-primary { margin-top: 16px; justify-self: start; }

.stacked-form fieldset {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}

.stacked-form legend {
  padding: 0 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field-help {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
}

.booking-submit-block {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.booking-trust-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.booking-trust-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

.booking-trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.booking-faq {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}

.booking-faq-title {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.booking-faq details + details {
  margin-top: 6px;
}

.booking-faq summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.booking-faq p {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.booking-submit-state {
  margin: 8px 0 0;
  font-size: 0.77rem;
  color: var(--muted);
}

.booking-next-steps {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}

.booking-next-steps-title {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.booking-next-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.booking-next-steps-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.77rem;
  color: var(--muted);
}

.booking-next-steps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.booking-next-steps-list li.is-done {
  color: var(--accent);
}

.booking-next-steps-list li.is-done::before {
  background: var(--accent);
}

.booking-phone-hint {
  margin: 1px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.booking-phone-hint.is-warn {
  color: var(--warn);
}

.booking-phone-hint.is-ok {
  color: var(--accent);
}

.stacked-form select.is-step-focus,
.stacked-form input.is-step-focus,
.calendar.is-step-focus,
.slot-picker.is-step-focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(63, 98, 83, 0.12);
  background: var(--paper);
}

.inline-form { display: inline-flex; }

.appointment-inline-action {
  margin-top: 8px;
}

.review-inline-form {
  display: grid;
  gap: 6px;
  min-width: 280px;
}

.review-inline-form label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

.review-inline-form select,
.review-inline-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  font-size: 0.78rem;
  background: var(--soft);
}

.review-inline-form .btn {
  justify-self: start;
}

.row-highlight {
  background: var(--brand-soft);
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 0.84rem;
  margin-bottom: 18px;
}

.form-message-success {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.booking-success-panel {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--accent-border);
  border-radius: var(--r-md);
  background: var(--paper);
}

.booking-success-title {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
}

.booking-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.form-message-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

/* Two-column contact layout (contact.php's .section-inner.contact-grid) */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.1fr);
  gap: 40px;
  align-items: start;
}

/* "Visit Us" column reads as a distinct trust card vs. the plain form column */
.contact-visit-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
}

.contact-response-promise {
  margin: 0 0 12px;
  font-size: 0.76rem;
  color: var(--muted);
}

.contact-highlights {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.contact-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-highlights .card-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-highlights .card-icon svg { width: 14px; height: 14px; }

.contact-message-counter {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  justify-self: end;
}

.contact-message-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.contact-message-templates .btn {
  min-height: 30px;
}

.contact-message-templates .btn.is-active {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
}

.contact-template-status {
  margin: 3px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.contact-progress-track {
  height: 5px;
  border-radius: 999px;
  background: var(--soft-2);
  overflow: hidden;
}

.contact-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
  transition: width 150ms ease;
}

.contact-progress-label {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.contact-feedback {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
}

.contact-feedback-title {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.contact-feedback-success {
  border-color: var(--accent-border);
}

.contact-feedback-success .contact-feedback-title {
  color: var(--accent);
}

.contact-feedback-error {
  border-color: var(--danger-border);
}

.contact-feedback-error .contact-feedback-title {
  color: var(--danger);
}

.contact-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.contact-message-counter.is-near-limit {
  color: var(--warn);
  font-weight: 700;
}

#contact-submit.is-loading {
  opacity: 0.86;
  cursor: wait;
}

@media (max-width: 720px) {
  .services-layout {
    grid-template-columns: 1fr;
  }

  .service-category-nav {
    padding: 10px;
  }

  .services-scroll-progress {
    margin-bottom: 10px;
  }

  .service-insights {
    margin-top: 8px;
  }

  .service-filter-toolbar {
    gap: 5px;
  }

  .service-filter-quick {
    gap: 6px;
  }

  .service-filter-toolbar input {
    padding: 8px 10px;
    font-size: 0.83rem;
  }

  .service-filter-reset {
    width: 100%;
    justify-content: center;
  }

  .service-category-nav-list {
    gap: 6px;
  }

  .service-category-nav-list a {
    min-height: 28px;
    font-size: 0.75rem;
  }

  .services-rail {
    position: static;
    order: -1;
    margin-bottom: 4px;
  }

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

  .featured-service-actions {
    flex-direction: column;
  }

  .featured-service-actions .btn {
    width: 100%;
  }

  .stacked-form {
    max-width: 100%;
    padding: 16px;
    gap: 7px;
  }

  .booking-stepper {
    padding: 9px;
    margin-bottom: 8px;
  }

  .booking-progress-label {
    margin-bottom: 6px;
    font-size: 0.7rem;
  }

  .booking-selection-summary {
    padding: 9px;
  }

  .booking-selection-chips span {
    min-height: 26px;
    font-size: 0.72rem;
  }

  .stacked-form label {
    margin-top: 8px;
    font-size: 0.74rem;
    letter-spacing: 0;
  }

  .stacked-form input,
  .stacked-form select,
  .stacked-form textarea {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .booking-trust-list li {
    font-size: 0.75rem;
  }

  .booking-faq {
    padding: 9px;
  }

  .booking-faq summary {
    font-size: 0.77rem;
  }

  .booking-submit-state {
    font-size: 0.74rem;
  }

  .booking-next-steps {
    padding: 9px;
  }

  .booking-next-steps-list li {
    font-size: 0.74rem;
  }

  .service-filter-empty-actions {
    flex-direction: column;
  }

  .service-filter-empty-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .booking-success-actions {
    flex-direction: column;
  }

  .booking-success-actions .btn {
    width: 100%;
  }

  .slot-button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.79rem;
  }

  .contact-message-templates {
    flex-direction: column;
  }

  .contact-message-templates .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-feedback-actions {
    flex-direction: column;
  }

  .contact-feedback-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-quick-actions {
    flex-direction: column;
  }

  .contact-quick-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .home-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Tables (admin / account / stylist) ─────────────────── */

.table-wrapper {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}

.data-table thead th {
  background: var(--soft);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr { border-bottom: 1px solid var(--line); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--soft); }

.data-table tfoot td {
  border-top: 1px solid var(--line-strong);
  font-weight: 600;
}

/* ── Status badges ───────────────────────────────────────── */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-md);
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-awaiting_payment { background: var(--soft-2); color: var(--muted); }
.status-payment_failed   { background: var(--danger-soft); color: var(--danger); }
.status-pending          { background: var(--warn-soft); color: var(--warn); }
.status-confirmed        { background: var(--brand-light); color: var(--brand); }
.status-completed        { background: var(--accent-soft); color: var(--accent); }
.status-cancelled        { background: var(--soft-2); color: var(--muted-light); text-decoration: line-through; }

/* ── Booking calendar ────────────────────────────────────── */

.calendar {
  margin: 8px 0 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--soft);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.calendar-month-label { font-size: 0.875rem; font-weight: 700; color: var(--ink); }

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekdays {
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted-light);
  text-align: center;
  text-transform: none;
}

.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--paper);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.calendar-day:disabled { cursor: not-allowed; }

.calendar-day.is-pending { background: var(--soft-2); color: var(--muted-light); }
.calendar-day.is-available { background: var(--accent-soft); color: var(--accent); }
.calendar-day.is-available:hover { border-color: var(--accent-border); }
.calendar-day.has-bookings { background: var(--brand-soft); color: var(--brand); }
.calendar-day.has-bookings:hover { border-color: rgba(63, 98, 83, 0.28); }
.calendar-day.is-full { background: var(--warn-soft); color: var(--warn); }
.calendar-day.is-closed { background: var(--soft-2); color: var(--muted-light); opacity: 0.55; }
.calendar-day.is-holiday { background: var(--danger-rose-soft); color: var(--danger-rose); opacity: 0.9; }

.calendar.is-loading .calendar-day.is-pending {
  background: var(--soft-2);
  opacity: 0.8;
}

.calendar-day small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.1;
}

.calendar-day.is-selected {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(63, 98, 83, 0.22);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
  font-size: 0.73rem;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.legend-available { background: var(--accent); }
.legend-full { background: var(--warn); }
.legend-closed { background: var(--muted-light); }
.legend-holiday { background: var(--danger-rose); }

.slot-picker { margin: 14px 0; }



.slot-picker.is-loading .slot-list {
  opacity: 0.5;
}

.slot-skeleton-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.slot-skeleton {
  width: 82px;
  height: 34px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--soft-2);
}

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.slot-button {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 8px 13px;
  background: var(--paper);
  font: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.slot-button:hover { border-color: var(--line-strong); color: var(--ink); background: var(--soft); }

.slot-button.is-selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ── Gallery ─────────────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

/* Same span modifiers apply to placeholder AND real-photo tiles, so the
   masonry rhythm carries over unchanged the moment real photos replace
   placeholders — no separate CSS path per state. */
.gallery-tile--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-tile--tall { grid-row: span 2; aspect-ratio: 1 / 2; }

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  background: var(--soft-2);
  border: 1px dashed var(--line-strong);
  color: var(--muted-light);
}

.gallery-placeholder svg { width: 26px; height: 26px; opacity: 0.55; }

.gallery-placeholder span {
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  padding: 0 10px;
}

.gallery-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--soft-2);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Admin media management ──────────────────────────────── */

.media-thumb {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--soft-2);
}

/* ── Invoice ─────────────────────────────────────────────── */

.invoice-sheet {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--brand-dark);
}

.invoice-meta { text-align: right; font-size: 0.85rem; color: var(--muted); }
.invoice-meta p { margin-bottom: 4px; }

.invoice-brand-title {
  color: var(--brand-dark);
}

.invoice-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.invoice-table { margin-bottom: 18px; }

@media print {
  .no-print { display: none !important; }
  .site-sidebar, .nav-toggle, .site-footer { display: none !important; }
  main#primary { margin-left: 0 !important; }
  .invoice-sheet { box-shadow: none; border: none; }
}

@media (max-width: 520px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .section-cta-row {
    flex-direction: column;
  }

  .section-cta-row .btn {
    width: 100%;
  }

  .invoice-header { flex-direction: column; }
  .invoice-meta { text-align: left; }
  .invoice-parties { grid-template-columns: 1fr; }
}
