/* Booking wizard + account page styling.
   Hand-written (not Tailwind utilities) because site.css is a purged Tailwind build
   that only contains classes already used elsewhere on the site — these components
   use the same design tokens (var(--primary), var(--border), etc.) defined there. */

.bw-steps { display: flex; align-items: center; gap: 0; margin-bottom: 2rem; list-style: none; padding: 0; }
.bw-step { display: flex; align-items: center; flex: 1; min-width: 0; }
.bw-step-dot { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--secondary); color: var(--muted-foreground); font-size: 0.8rem; font-weight: 600; flex-shrink: 0; border: 1px solid var(--border); transition: all 0.2s ease; }
.bw-step-label { margin-left: 0.6rem; font-size: 0.8rem; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; }
.bw-step-line { flex: 1; height: 1px; background: var(--border); margin: 0 0.75rem; }
.bw-step.is-active .bw-step-dot { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.bw-step.is-active .bw-step-label { color: var(--foreground); }
.bw-step.is-done .bw-step-dot { background: var(--brand); color: var(--brand-foreground); border-color: var(--brand); }
.bw-step.is-done .bw-step-dot::after { content: "\2713"; }
.bw-step.is-done .bw-step-dot { font-size: 0; }
.bw-step.is-done .bw-step-dot::after { font-size: 0.9rem; }

.bw-panel { display: none; }
.bw-panel.is-active { display: block; animation: bw-fade 0.25s ease; }
@keyframes bw-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.bw-search-wrap { position: relative; margin-bottom: 0.9rem; }
.bw-search-wrap .bw-icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; color: var(--muted-foreground); pointer-events: none; }
.bw-search-input { width: 100%; height: 2.9rem; border-radius: 999px; border: 1px solid var(--input); background: var(--card); padding: 0 1rem 0 2.6rem; font-size: 0.9rem; color: var(--foreground); }
.bw-search-input:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in oklch, var(--ring) 45%, transparent); }

.bw-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.bw-filterbar-scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.2rem; scrollbar-width: thin; }
.bw-filterbar-scroll .bw-chip { flex-shrink: 0; }
.bw-chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 0.8rem; font-weight: 600; color: var(--foreground); cursor: pointer; transition: all 0.15s ease; }
.bw-chip.is-active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.bw-chip.bw-chip-ghost { margin-left: auto; background: var(--foreground); color: var(--background); }

.bw-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .bw-grid { grid-template-columns: 1fr 1fr; } }

.bw-card { border-radius: 1.5rem; border: 1px solid var(--border); background: var(--card); padding: 1.1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.bw-card:hover { border-color: color-mix(in oklch, var(--primary) 35%, var(--border)); }
.bw-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 25%, transparent); }

.bw-therapist { display: flex; gap: 0.85rem; }
.bw-avatar { width: 4.2rem; height: 4.2rem; border-radius: 1rem; object-fit: cover; background: var(--secondary); border: 1px solid var(--border); flex-shrink: 0; }
.bw-therapist-name { font-family: var(--font-display, serif); font-size: 1.05rem; line-height: 1.2; color: var(--foreground); }
.bw-therapist-role { font-size: 0.8rem; color: var(--muted-foreground); margin-top: 0.15rem; }
.bw-meta-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.bw-tag { display: inline-flex; align-items: center; gap: 0.3rem; border-radius: 0.6rem; border: 1px solid var(--border); background: var(--secondary); padding: 0.2rem 0.55rem; font-size: 0.7rem; font-weight: 600; color: var(--secondary-foreground); }
.bw-tag .bw-icon { width: 0.85rem; height: 0.85rem; flex-shrink: 0; }
.bw-price { font-weight: 700; color: var(--moss); font-size: 0.95rem; }

.bw-icon { width: 1rem; height: 1rem; }

.bw-about { margin-top: 0.65rem; font-size: 0.82rem; line-height: 1.45; color: var(--foreground); opacity: 0.8; }
.bw-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.bw-lang-row, .bw-services-row { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.75rem; }
.bw-lang-row .bw-icon, .bw-services-row .bw-icon { flex-shrink: 0; margin-top: 0.2rem; color: var(--muted-foreground); }
.bw-view-all-btn { display: inline-flex; align-items: center; border: none; background: none; padding: 0.2rem 0; font-size: 0.72rem; font-weight: 700; color: var(--moss); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.bw-tag-hidden-group { display: contents; }
.bw-tag-hidden-group[hidden] { display: none; }
.bw-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }

.bw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border-radius: 999px; padding: 0.6rem 1.2rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: opacity 0.15s ease; }
.bw-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.bw-btn-primary { background: var(--primary); color: var(--primary-foreground); }
.bw-btn-primary:hover:not(:disabled) { opacity: 0.9; }
.bw-btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.bw-btn-outline:hover:not(:disabled) { background: var(--secondary); }
.bw-btn-block { width: 100%; }

.bw-summary { border-radius: 1.25rem; border: 1px dashed var(--border); background: var(--secondary); padding: 1rem; margin-bottom: 1.25rem; font-size: 0.85rem; }
.bw-summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }
.bw-summary-row + .bw-summary-row { border-top: 1px solid var(--border); }
.bw-summary-label { color: var(--muted-foreground); }
.bw-summary-value { font-weight: 600; color: var(--foreground); text-align: right; }

.bw-mode-toggle { display: inline-flex; border-radius: 999px; border: 1px solid var(--border); padding: 0.2rem; gap: 0.2rem; }
.bw-mode-toggle button { border: none; background: transparent; padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--muted-foreground); cursor: pointer; }
.bw-mode-toggle button.is-active { background: var(--primary); color: var(--primary-foreground); }

.bw-dates { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.4rem; margin: 1rem 0; }
.bw-date-btn { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 0.6rem 0.9rem; font-size: 0.75rem; font-weight: 600; color: var(--foreground); cursor: pointer; }
.bw-date-btn.is-active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.bw-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.5rem; }
.bw-slot-btn { border-radius: 0.85rem; border: 1px solid var(--border); background: var(--card); padding: 0.55rem 0.5rem; font-size: 0.78rem; font-weight: 600; color: var(--foreground); cursor: pointer; text-align: center; }
.bw-slot-btn.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-foreground); }
.bw-slot-btn:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.bw-form { display: grid; gap: 0.9rem; }
.bw-form-row { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .bw-form-row-2 { grid-template-columns: 1fr 1fr; } .bw-form-row-3 { grid-template-columns: 1fr 1fr 1fr; } }
.bw-label { display: block; margin-bottom: 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--foreground); }
.bw-input, .bw-select { width: 100%; border-radius: 0.85rem; border: 1px solid var(--input); background: var(--background); padding: 0.65rem 0.85rem; font-size: 0.9rem; color: var(--foreground); }
.bw-input:focus, .bw-select:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in oklch, var(--ring) 45%, transparent); }

.bw-otp-input { letter-spacing: 0.5em; text-align: center; font-size: 1.15rem; font-weight: 700; max-width: 12rem; }

.bw-alert { border-radius: 1rem; padding: 0.75rem 1rem; font-size: 0.85rem; margin-bottom: 1rem; }
.bw-alert-error { background: color-mix(in oklch, var(--destructive) 12%, var(--background)); color: var(--destructive); border: 1px solid color-mix(in oklch, var(--destructive) 30%, transparent); }
.bw-alert-ok { background: color-mix(in oklch, var(--brand) 15%, var(--background)); color: var(--moss); border: 1px solid color-mix(in oklch, var(--brand) 35%, transparent); }

.bw-nav { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.5rem; }

.bw-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.bw-badge-confirmed { background: color-mix(in oklch, var(--brand) 25%, var(--background)); color: var(--moss); }
.bw-badge-upcoming { background: var(--secondary); color: var(--secondary-foreground); }
.bw-badge-cancelled { background: color-mix(in oklch, var(--destructive) 15%, var(--background)); color: var(--destructive); }
.bw-badge-other { background: var(--muted); color: var(--muted-foreground); }

.bw-tabs { display: inline-flex; border-radius: 999px; border: 1px solid var(--border); padding: 0.2rem; gap: 0.2rem; margin-bottom: 1.5rem; }
.bw-tabs button { border: none; background: transparent; padding: 0.5rem 1.15rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--muted-foreground); cursor: pointer; }
.bw-tabs button.is-active { background: var(--primary); color: var(--primary-foreground); }

.bw-history-row { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: center; border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card); padding: 0.9rem 1.1rem; }
.bw-history-row + .bw-history-row { margin-top: 0.6rem; }
.bw-empty { border-radius: 1.25rem; border: 1px dashed var(--border); padding: 2rem 1.5rem; text-align: center; color: var(--muted-foreground); font-size: 0.9rem; }

/* Website account dashboard */
.ac-shell { max-width: 72rem; margin: 0 auto; }
.ac-alert-wrap { max-width: 42rem; margin: 0 auto 1rem; }
.ac-eyebrow, .ac-kicker { margin: 0; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700; color: var(--moss); }
.ac-login-grid { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 860px) { .ac-login-grid { grid-template-columns: 1.05fr 0.95fr; } }
.ac-login-copy { border-radius: 2rem; border: 1px solid color-mix(in oklch, var(--primary) 18%, var(--border)); background: linear-gradient(135deg, color-mix(in oklch, var(--brand) 16%, var(--background)), var(--card)); padding: clamp(1.4rem, 4vw, 2.3rem); box-shadow: var(--shadow-soft); }
.ac-login-copy h2 { margin-top: 0.7rem; max-width: 34rem; font-family: var(--font-display, serif); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.02; color: var(--foreground); }
.ac-login-copy p:not(.ac-eyebrow) { margin-top: 1rem; max-width: 34rem; color: var(--muted-foreground); line-height: 1.7; }
.ac-trust-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.6rem; }
.ac-trust-row span, .ac-muted-pill { display: inline-flex; align-items: center; min-height: 2rem; border-radius: 999px; border: 1px solid color-mix(in oklch, var(--primary) 22%, var(--border)); background: var(--card); padding: 0.35rem 0.8rem; font-size: 0.76rem; font-weight: 700; color: var(--foreground); }
.ac-login-card, .ac-form-card, .ac-main-panel, .ac-profile-panel { border-radius: 1.8rem; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-soft); }
.ac-login-card { padding: clamp(1.2rem, 3vw, 1.75rem); align-self: center; }
.ac-card-head, .ac-section-title, .ac-topbar, .ac-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ac-card-head { margin-bottom: 1.1rem; }
.ac-card-head h3, .ac-section-title h3, .ac-next-card h3, .ac-history-body h4 { margin: 0.2rem 0 0; font-weight: 700; color: var(--foreground); }
.ac-lock-dot { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; background: color-mix(in oklch, var(--brand) 24%, var(--background)); color: var(--moss); font-weight: 900; }
.ac-main-action { margin-top: 0.9rem; min-height: 2.9rem; }
.ac-otp-box { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.ac-dashboard { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 960px) { .ac-dashboard { grid-template-columns: 19rem 1fr; } }
.ac-profile-panel { padding: 1.25rem; position: sticky; top: 6rem; }
.ac-avatar { display: flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; border-radius: 1.4rem; background: var(--primary); color: var(--primary-foreground); font-size: 1.45rem; font-weight: 800; letter-spacing: 0.03em; box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--primary-foreground) 18%, transparent); }
.ac-profile-panel h2 { margin-top: 1rem; font-family: var(--font-display, serif); font-size: 1.45rem; line-height: 1.1; }
.ac-profile-panel > p { margin-top: 0.35rem; color: var(--muted-foreground); font-size: 0.9rem; overflow-wrap: anywhere; }
.ac-progress { margin-top: 1.25rem; border-radius: 1.15rem; background: var(--secondary); padding: 0.9rem; }
.ac-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.78rem; color: var(--muted-foreground); }
.ac-progress-top strong { color: var(--foreground); }
.ac-progress-track { height: 0.5rem; margin-top: 0.7rem; overflow: hidden; border-radius: 999px; background: color-mix(in oklch, var(--muted-foreground) 16%, transparent); }
.ac-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.ac-side-actions { display: grid; gap: 0.65rem; margin-top: 1.25rem; }
.ac-main-panel { padding: clamp(1rem, 3vw, 1.5rem); min-width: 0; }
.ac-topbar { align-items: flex-start; margin-bottom: 1rem; }
.ac-topbar h2 { margin-top: 0.2rem; font-family: var(--font-display, serif); font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.05; }
.ac-tabs { margin-bottom: 0; flex-shrink: 0; }
.ac-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin: 1rem 0; }
.ac-stat-card { border-radius: 1.2rem; border: 1px solid var(--border); background: var(--secondary); padding: 0.95rem; }
.ac-stat-card span { display: block; font-size: 0.76rem; color: var(--muted-foreground); }
.ac-stat-card strong { display: block; margin-top: 0.35rem; font-family: var(--font-display, serif); font-size: 2rem; line-height: 1; color: var(--moss); }
.ac-next-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 1.35rem; border: 1px solid color-mix(in oklch, var(--brand) 30%, var(--border)); background: color-mix(in oklch, var(--brand) 12%, var(--background)); padding: 1rem; margin-bottom: 1rem; }
.ac-next-card p:not(.ac-kicker) { margin-top: 0.25rem; color: var(--muted-foreground); font-size: 0.88rem; }
.ac-form-card { display: grid; gap: 1rem; padding: 1rem; }
.ac-section-title { margin-bottom: 0.15rem; }
.ac-form-footer { align-items: center; border-top: 1px solid var(--border); padding-top: 1rem; }
.ac-form-footer p { margin: 0; color: var(--muted-foreground); font-size: 0.84rem; line-height: 1.5; }
.ac-history-head { margin: 1rem 0; }
.ac-history-list { display: grid; gap: 0.75rem; }
.ac-history-row { display: grid; grid-template-columns: 8rem 1fr auto; gap: 1rem; align-items: center; border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card); padding: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.ac-history-row:hover { border-color: color-mix(in oklch, var(--primary) 32%, var(--border)); box-shadow: var(--shadow-soft); }
.ac-history-date { border-radius: 0.95rem; background: var(--secondary); padding: 0.75rem; }
.ac-history-date strong, .ac-history-date span { display: block; }
.ac-history-date strong { font-size: 0.9rem; color: var(--foreground); }
.ac-history-date span, .ac-history-body p, .ac-history-meta > span:last-child { margin-top: 0.2rem; color: var(--muted-foreground); font-size: 0.78rem; }
.ac-history-body { min-width: 0; }
.ac-history-body h4 { font-size: 1rem; }
.ac-history-body p { overflow-wrap: anywhere; }
.ac-history-meta { display: grid; justify-items: end; gap: 0.35rem; text-align: right; }
.ac-empty { display: grid; justify-items: center; gap: 0.65rem; }
.ac-empty strong { color: var(--foreground); font-size: 1rem; }
.ac-empty span { max-width: 31rem; line-height: 1.6; }

.bw-spinner { display: inline-block; width: 1rem; height: 1rem; border-radius: 999px; border: 2px solid color-mix(in oklch, var(--primary-foreground) 40%, transparent); border-top-color: var(--primary-foreground); animation: bw-spin 0.7s linear infinite; }
@keyframes bw-spin { to { transform: rotate(360deg); } }

@media (max-width: 639px) {
  .bw-step-label { display: none; }
  .bw-steps { margin-bottom: 1.25rem; }
  .bw-card { padding: 0.9rem; }
  .bw-avatar { width: 3.6rem; height: 3.6rem; }
  .bw-therapist-name { font-size: 0.98rem; }
  .bw-card-footer { flex-wrap: wrap; gap: 0.6rem; }
  .bw-btn { min-height: 2.75rem; }
  .bw-chip { min-height: 2.75rem; }
  .ac-topbar, .ac-section-title, .ac-form-footer, .ac-next-card { align-items: stretch; flex-direction: column; }
  .ac-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .ac-tabs button { padding-inline: 0.4rem; }
  .ac-stat-grid { grid-template-columns: 1fr; }
  .ac-profile-panel { position: static; }
  .ac-history-row { grid-template-columns: 1fr; }
  .ac-history-meta { justify-items: start; text-align: left; }
}
