/* Modern business booking design */
:root {
  --color-primary: #111111;
  --color-accent: #2b2b2b;
  --color-bg: #f4f4f5;
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-muted: #71717a;
  --color-sidebar: #0a0a0a;
  --color-sidebar-text: #a1a1aa;
  --color-sidebar-title: #71717a;
  --color-sidebar-active: #ffffff;
  --color-sidebar-done: #a1a1aa;
  --color-sidebar-border: #18181b;
  --color-sidebar-num-bg: #1f1f22;
  --color-sidebar-num-fg: #d4d4d8;
  --color-sidebar-active-bg: #262626;
  --color-sidebar-num-active-bg: #ffffff;
  --color-sidebar-num-active-fg: #111111;
  --color-border: #e4e4e7;
  --color-danger: #dc2626;
  --color-success: #16a34a;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.06);
  --font-heading: "Syne", "Avenir Next", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --max: 980px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-w: 220px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(0,0,0,0.05), transparent 70%),
    var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--color-primary); }

.booking-shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) 1.25rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

.booking-header {
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.65s var(--ease) both;
}

.booking-logo {
  width: auto;
  min-width: 64px;
  height: 64px;
  max-width: 180px;
  padding: 0 0.35rem;
  border-radius: 18px;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin: 0 auto 1.1rem;
  overflow: hidden;
}
.booking-logo.has-image {
  background: transparent;
  padding: 0;
  height: auto;
  max-height: 72px;
}
.booking-logo img {
  width: auto;
  height: 64px;
  max-width: 180px;
  object-fit: contain;
}

.booking-header h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.45rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--color-primary);
}

.booking-header p {
  margin: 0;
  max-width: 28rem;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.panel {
  width: 100%;
  max-width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: visible;
  position: relative;
  animation: rise 0.75s var(--ease) 0.06s both;
  box-sizing: border-box;
  /* Width comes from parent only — not from open/collapsed children */
  contain: inline-size;
}

.panel-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 480px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
}

.steps-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  position: relative;
  z-index: 1;
}

.steps-sidebar {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  background-color: var(--color-sidebar);
  background-image: var(--sidebar-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-sidebar-text);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-right: 1px solid var(--color-sidebar-border);
  position: relative;
  isolation: isolate;
  z-index: 0;
}
.steps-sidebar.has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-sidebar);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.steps-sidebar > * {
  position: relative;
  z-index: 1;
}

.steps-sidebar-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sidebar-title);
  margin: 0 0 0.85rem 0.35rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s;
  cursor: default;
}
.step-item .step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--color-sidebar-num-bg);
  color: var(--color-sidebar-num-fg);
  flex-shrink: 0;
}
.step-item .step-label { line-height: 1.2; }
.step-item.active {
  background: var(--color-sidebar-active-bg);
  color: var(--color-sidebar-active);
}
.step-item.active .step-num {
  background: var(--color-sidebar-num-active-bg);
  color: var(--color-sidebar-num-active-fg);
}
.step-item.done { color: var(--color-sidebar-done); }
.step-item.done .step-num {
  background: var(--color-sidebar-num-bg);
  color: var(--color-sidebar-active);
}

.panel-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  background: var(--color-surface);
}

.panel-body {
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  padding-top: 3rem; /* room for language toggle */
  min-height: 360px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}
body.embed-mode .panel-body {
  padding-top: clamp(1.1rem, 2.5vw, 1.5rem);
}

.step-view { display: none; animation: fadeSlide 0.4s var(--ease); }
.step-view.active {
  display: block;
  width: 100%;
}
#serviceList, #extraList, #paymentList {
  width: 100%;
  min-width: 0;
}

.step-view h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  color: var(--color-primary);
}
.step-lead {
  margin: 0 0 1.15rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-self: stretch;
  contain: inline-size;
}

.category-block {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex: 0 0 auto;
  contain: inline-size;
}

.category-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: none;
  background: #fafafa;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
  transition: background 0.2s;
  box-sizing: border-box;
}
.category-toggle:hover { background: #f4f4f5; }
.category-toggle .cat-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}
.category-toggle .cat-name { font-size: 0.95rem; }
.category-toggle .cat-count {
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--color-muted);
}
.category-toggle .cat-chevron {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: transform 0.25s var(--ease);
  color: var(--color-text);
  flex-shrink: 0;
}
.category-block.open .category-toggle {
  background: #f4f4f5;
  border-bottom: 1px solid var(--color-border);
}
.category-block.open .category-toggle .cat-chevron {
  transform: rotate(180deg);
}

/* Collapse without letting children redefine parent width */
.category-body {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 0.65rem;
  pointer-events: none;
  background: #fff;
  box-sizing: border-box;
  transition: max-height 0.28s var(--ease), opacity 0.2s ease, padding 0.28s var(--ease);
}
.category-block.open .category-body {
  max-height: 2400px;
  opacity: 1;
  padding: 0.65rem;
  pointer-events: auto;
}

.service-list, .extra-list {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.service-card, .extra-card, .pay-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 0.9rem 0.95rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #fafafa;
  transition: border-color 0.22s var(--ease), background 0.22s, box-shadow 0.22s;
}
.service-card:hover, .extra-card:hover, .pay-card:hover {
  border-color: #d4d4d8;
  background: #fff;
}
.service-card.selected, .extra-card.selected, .pay-card.selected {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 1px var(--color-primary);
}

.service-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
}
.service-thumb img { width: 100%; height: 100%; object-fit: cover; }

.service-meta { flex: 1; min-width: 0; }
.service-meta h3, .extra-card h3, .pay-card h3 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.service-meta p, .extra-card p, .pay-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.service-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--color-primary);
}
.badge-time {
  color: var(--color-muted);
  font-weight: 550;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.5rem 1.2rem;
  border-top: 1px solid var(--color-border);
  background: #fafafa;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.78rem 1.4rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, opacity 0.2s, color 0.2s;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:not(:disabled):hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:not(:disabled):hover { background: #000; }
.btn-ghost {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover { border-color: #bbb; }

.cal-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}
@media (min-width: 720px) {
  .cal-wrap { grid-template-columns: 1fr 1fr; align-items: start; gap: 1.5rem; }
}

.calendar {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fafafa;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.cal-head h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-align: center;
  flex: 1;
}
.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  text-align: center;
}
.cal-dow {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-muted);
  padding: 0.3rem 0;
}
.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 11px;
  background: transparent;
  font-weight: 650;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.cal-day:disabled { opacity: 0.28; cursor: not-allowed; }
.cal-day:not(:disabled):hover { background: rgba(0,0,0,0.06); }
.cal-day.selected {
  background: var(--color-primary);
  color: #fff;
}
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--color-primary); }

.slots-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  color: var(--color-muted);
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.5rem;
}
.slot-btn {
  padding: 0.7rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  font-weight: 650;
  font-size: 0.9rem;
  text-align: center;
}
.slot-btn.selected {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.slots-empty {
  color: var(--color-muted);
  padding: 1.15rem 1rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
  color: var(--color-muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.summary-card {
  margin-top: 1.35rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: #fafafa;
  border: 1px solid var(--color-border);
}
.summary-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.94rem;
}
.summary-row span:first-child { color: var(--color-muted); }
.summary-row span:last-child { text-align: right; font-weight: 550; }
.summary-total {
  margin-top: 0.55rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 1.02rem;
}

.confirm-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0.25rem auto 1.15rem;
  animation: pop 0.5s var(--ease);
}
.confirm-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.confirm-center h2,
.confirm-center .step-lead { text-align: center; max-width: 28rem; }
.confirm-center .summary-card {
  text-align: left;
  width: 100%;
  margin-top: 1.5rem;
}
.confirm-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 28rem;
}
.confirm-cal {
  width: 100%;
  text-align: center;
}
.confirm-cal-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted, #71717a);
  margin-bottom: 0.55rem;
}
.confirm-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  width: 100%;
}
.confirm-actions-row .btn {
  text-decoration: none;
}
.confirm-twint {
  width: 100%;
  text-align: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border, #e4e4e7);
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-primary, #111) 4%, #fff);
}
.confirm-twint-btn {
  display: inline-flex;
  text-decoration: none;
  width: 100%;
  max-width: 20rem;
  justify-content: center;
}
.confirm-twint-hint {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--muted, #71717a);
  line-height: 1.45;
}
.confirm-new-btn {
  width: 100%;
  max-width: 20rem;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  text-align: left;
}
.alert-error { background: #fef2f2; color: var(--color-danger); border: 1px solid #fecaca; }
.alert-ok { background: #f0fdf4; color: var(--color-success); border: 1px solid #bbf7d0; }

.booking-footer {
  text-align: center;
  margin: 1.75rem auto 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.55rem;
}
.footer-dot { opacity: 0.55; }
.footer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #d4d4d8;
}
.footer-link:hover { color: var(--color-text); }

.legal-meta {
  margin: 0 0 1.35rem;
  font-size: 0.84rem;
  color: var(--color-muted);
}
.legal-doc h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 650;
}
.legal-doc p, .legal-doc li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text);
}
.legal-doc ul {
  margin: 0.35rem 0 0.85rem;
  padding-left: 1.2rem;
}
.legal-doc li { margin: 0.25rem 0; }
.legal-doc address {
  font-style: normal;
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.1rem;
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  line-height: 1.55;
}
.legal-doc a { text-underline-offset: 2px; }

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2.25rem 1rem;
  color: var(--color-muted);
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .booking-shell {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: stretch;
  }
  .panel,
  .panel-layout,
  .panel-main,
  .panel-body,
  .step-view.active,
  #serviceList,
  #extraList,
  #paymentList,
  .category-list,
  .category-block {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .panel {
    contain: inline-size;
  }
  .panel-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Steps scroll; language sits in a fixed slot — no overlap */
  .steps-rail {
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    background-color: var(--color-sidebar);
    background-image: var(--sidebar-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--color-sidebar-border);
    isolation: isolate;
  }
  .steps-rail.has-bg-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-sidebar);
    opacity: 0.62;
    z-index: 0;
    pointer-events: none;
  }
  .steps-rail > * {
    position: relative;
    z-index: 1;
  }
  .steps-sidebar {
    flex: 1 1 0;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem 0.85rem 0.85rem;
    border-right: none;
    border-bottom: none;
    scrollbar-width: none;
    width: auto;
    max-width: none;
    min-width: 0;
    height: auto;
    box-sizing: border-box;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--color-sidebar-text) !important;
  }
  .steps-sidebar.has-bg-image::before {
    display: none;
  }
  .steps-sidebar::-webkit-scrollbar { display: none; }
  .steps-sidebar-title { display: none; }
  .step-item {
    flex: 0 0 auto;
    padding: 0.55rem 0.7rem;
    white-space: nowrap;
    color: inherit;
  }
  .step-item .step-label { font-size: 0.8rem; }
  .step-item .step-num {
    background: var(--color-sidebar-num-bg);
    color: var(--color-sidebar-num-fg);
  }
  .step-item.active {
    background: var(--color-sidebar-active-bg);
    color: var(--color-sidebar-active);
  }
  .step-item.active .step-num {
    background: var(--color-sidebar-num-active-bg);
    color: var(--color-sidebar-num-active-fg);
  }
  .step-item.done {
    color: var(--color-sidebar-done);
  }
  .step-item.done .step-num {
    background: var(--color-sidebar-num-bg);
    color: var(--color-sidebar-active);
  }

  .category-toggle,
  .category-body,
  .service-list,
  .service-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .service-meta,
  .service-meta p,
  .category-toggle .cat-name {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.login-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
  animation: rise 0.55s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.login-card .booking-logo {
  margin-left: auto;
  margin-right: auto;
}
.login-card h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  text-align: center;
  color: var(--color-primary);
}
.login-card .sub {
  color: var(--color-muted);
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}
.login-card .btn-primary { width: 100%; margin-top: 0.65rem; }
.login-links {
  margin-top: 1.35rem;
  text-align: center;
  font-size: 0.9rem;
}
.login-links button {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 650;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hidden { display: none !important; }

/* Language toggle – minimal (main site only; hidden in embed) */
.lang-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 30;
}
.lang-toggle-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--color-muted);
  padding: 0.35rem 0.15rem;
  border-radius: 0;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color 0.25s var(--ease);
}
.lang-toggle-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.28s var(--ease);
  opacity: 0.45;
}
.lang-toggle-btn:hover,
.lang-toggle.hover-open .lang-toggle-btn,
.lang-toggle.open .lang-toggle-btn {
  color: var(--color-text);
}
.lang-toggle-btn:hover::after,
.lang-toggle.hover-open .lang-toggle-btn::after,
.lang-toggle.open .lang-toggle-btn::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.lang-toggle-code {
  line-height: 1;
}
.lang-toggle-chevron {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.55;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.lang-toggle.hover-open .lang-toggle-chevron,
.lang-toggle.open .lang-toggle-chevron {
  opacity: 1;
  transform: rotate(225deg) translateY(-1px);
}
.lang-toggle-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 9.5rem;
  padding: 0.55rem 0.4rem 0.4rem; /* top padding = bridge to the button */
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transform-origin: top right;
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease),
    visibility 0.22s;
}
.lang-toggle-menu::before {
  content: "";
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  position: absolute;
  inset: 0.55rem 0 0 0;
  z-index: 0;
  pointer-events: none;
}
.lang-toggle.hover-open .lang-toggle-menu,
.lang-toggle.open .lang-toggle-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.lang-toggle-menu[hidden] {
  display: block !important;
}
.lang-option {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border: none;
  background: transparent;
  color: var(--color-muted);
  text-align: left;
  padding: 0.5rem 0.55rem;
  border-radius: 7px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-option:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
}
.lang-option.active {
  color: var(--color-text);
  font-weight: 650;
  background: transparent;
}
.lang-option.active::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: auto;
  border-radius: 50%;
  background: currentColor;
  align-self: center;
}
.lang-option-code {
  min-width: 1.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}
.lang-option:hover .lang-option-code,
.lang-option.active .lang-option-code {
  opacity: 1;
  color: var(--color-text);
}
.lang-option-label {
  flex: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Embed / iframe mode */
body.embed-mode {
  min-height: 0;
  background: var(--color-bg);
}
body.embed-mode .lang-toggle { display: none !important; }
.embed-shell {
  max-width: 100%;
  padding: 1rem 0.85rem 1.25rem;
}
.embed-header {
  margin-bottom: 0.85rem;
}
.embed-header h1 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
}
@media (max-width: 820px) {
  /* Fixed slot beside the scroller — vertically centered with steps */
  .lang-toggle {
    position: static;
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem 0 0.35rem;
    z-index: 2;
  }
  .lang-toggle-btn {
    color: var(--color-sidebar-text);
  }
  .lang-toggle-btn:hover,
  .lang-toggle.open .lang-toggle-btn {
    color: var(--color-sidebar-active);
  }
  .lang-toggle.hover-open .lang-toggle-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .lang-toggle.open .lang-toggle-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .panel-body {
    padding-top: clamp(1.1rem, 2.5vw, 1.5rem);
  }
}

/* Health questionnaires */
.questionnaire-panel .panel-body {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.15rem, 3vw, 1.85rem) 2rem;
}
.q-booking-card { margin: 0 0 1.5rem; }
.q-section {
  margin: 0 0 1.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}
.q-section:last-of-type { border-bottom: 0; margin-bottom: 0.5rem; }
.q-section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.q-section .field { margin-bottom: 1.05rem; }
.q-hint {
  margin: -0.15rem 0 0.55rem;
  font-size: 0.84rem;
  color: var(--color-muted);
  line-height: 1.45;
}
.q-note {
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem;
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}
.q-req { color: var(--color-danger); font-weight: 700; }
.q-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.q-choice {
  appearance: none;
  border: 1px solid var(--color-border);
  background: #fafafa;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.q-choice:hover {
  background: #fff;
  border-color: #d4d4d8;
}
.q-choice.selected {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}
.q-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fafafa;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0.35rem 0 1rem;
}
.q-check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #111;
  flex-shrink: 0;
}
.q-submit {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
.q-done {
  text-align: center;
  padding: 1rem 0 1.5rem;
}
.q-done h2 {
  font-family: var(--font-heading);
  margin: 0 0 0.5rem;
}
.q-done .btn { margin-top: 1rem; }
.questionnaire-answers {
  display: grid;
  gap: 1.15rem;
}
.q-admin-block h3 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.q-admin-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border, #e4e4e7);
  font-size: 0.9rem;
}
.q-admin-row span:first-child { color: var(--muted); }
.q-admin-row span:last-child { font-weight: 600; white-space: pre-wrap; }
@media (max-width: 560px) {
  .q-admin-row { grid-template-columns: 1fr; gap: 0.15rem; }
}
