/* ============================================================
   BALTZAZAR DENTAL — Appointment Booking
   Premium, calm, minimal design system
   ============================================================ */

:root {
  /* Re-themed to match the new baltazardentalwebsite palette: charcoal
     on white instead of the old dark+gold scheme. Variable names are
     kept as-is (--gold etc. now just carry the charcoal accent) so the
     rest of this file didn't need to change. */
  --bg-base: #ffffff;
  --bg-elevated: #DCDBD7;
  --bg-card: #fdfdfd;

  --border-soft: rgba(33, 33, 33, 0.16);
  --border-strong: rgba(33, 33, 33, 0.5);

  --gold: #212121;
  --golden: #212121;
  --gold-soft: #333333;
  --gold-dim: rgba(33, 33, 33, 0.189);
  --gold-dimer: rgba(33, 33, 33, 0.884);
  --gold-dimerr: #DCDBD7;

  --text-primary: #212121;
  --text-secondary: #333333;
  --text-muted: rgba(33, 33, 33, 0.62);

  --card-shadow: 0 20px 50px -20px rgba(33, 33, 33, 0.35);

  --font-display: "Franklin Gothic Medium", "Franklin Gothic", "Arial Narrow", Arial, Helvetica, sans-serif;
  --font-body: "Franklin Gothic Medium", "Franklin Gothic", "Arial Narrow", Arial, Helvetica, sans-serif;

  --container-w: 1200px;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--text-primary); }

p { margin: 0; color: var(--text-secondary); line-height: 1.6; }

a { color: var(--gold-soft); text-decoration: none; }

button { font-family: var(--font-body); cursor: pointer; }

::selection { background: var(--gold-dim); color: var(--gold-soft); }

/* focus visibility, always kept even with custom controls */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}



/* ============================================================
   PAGE SHELL
   ============================================================ */

.booking-page {
  min-height: 100vh;
  padding: 16px;
}

.booking-shell {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   CARD PRIMITIVE
   ============================================================ */

.clinic-card,
.summary-card,
.wizard-panel {
 
  padding: 24px 20px;
}

/* ============================================================
   LEFT PANEL — CLINIC INFO
   ============================================================ */

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.clinic-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.clinic-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  top: 2px;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

.clinic-desc {
  font-size: 14px;
  margin-bottom: 22px;
}

.clinic-detail-grid {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.clinic-detail h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.clinic-detail p { font-size: 14px; color: var(--text-primary); }
.clinic-detail p.muted { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.clinic-detail a { color: var(--text-primary); border-bottom: 1px solid var(--border-strong); transition: color var(--transition), border-color var(--transition); }
.clinic-detail a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

.clinic-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.clinic-note h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}

.clinic-note p { font-size: 13px; }

/* ============================================================
   LEFT PANEL — MINI CLINIC CARD (phone only)
   ============================================================ */

.clinic-card-mini {
  display: none;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.clinic-card-mini .clinic-brand { margin-bottom: 8px; }

.mini-hours {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mini-contact {
  font-size: 13px;
  color: var(--text-secondary);
}

.mini-contact a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-strong);
}

.mini-dot { margin: 0 6px; color: var(--text-muted); }

.dark-mode-toggle {
  display: block;
  background: transparent;
  border: none;
  margin-top: 16px;
  padding: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text-muted);
}

/* ============================================================
   LEFT PANEL — APPOINTMENT SUMMARY
   ============================================================ */

.summary-card h3 { font-size: 21px; margin-bottom: 4px; }
.summary-subtitle { font-size: 13px; margin-bottom: 18px; }

.summary-list { margin: 0; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

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

.summary-row dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.summary-row dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-primary);
  text-align: right;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.summary-row dd.is-set { color: var(--gold-soft); }

/* ============================================================
   STEPPER
   ============================================================ */

.stepper {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0 0 28px 0;
  padding: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.step-circle {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.step-check { display: none; }
.step-number { display: block; }

.step-item.active .step-circle {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-soft);
}

.step-item.completed .step-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-base);
  cursor: pointer;
}

.step-item.completed .step-number { display: none; }
.step-item.completed .step-check { display: block; }

.step-label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition);
}

.step-item.active .step-label { color: var(--text-primary); }
.step-item.completed .step-label { color: var(--text-secondary); cursor: pointer; }

.step-connector {
  flex: 1;
  height: 1px;
  background: var(--border-soft);
  margin: 0 8px;
  min-width: 16px;
}

/* ============================================================
   WIZARD STEPS
   ============================================================ */

.wizard-panel { position: relative; }

.wizard-step { display: none; }
.wizard-step.active {
  display: block;
  animation: fadeStep 320ms cubic-bezier(.4, 0, .2, 1);
}

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

.step-title { font-size: 26px; margin-bottom: 8px; }
.step-desc { font-size: 14px; margin-bottom: 22px; max-width: 56ch; }

.form-alert {
  background: rgba(212, 106, 55, 0.12);
  border: 1px solid rgba(212, 106, 55, 0.35);
  color: #E9B98E;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

/* ============================================================
   SELECTABLE CARD PRIMITIVE (service / procedure)
   ============================================================ */

.service-btn,
.procedure-btn {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
}

.service-btn:hover,
.procedure-btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.service-btn.active,
.procedure-btn.active {
  font-weight: 600;
  border-width: 2.6px;
  border-color: var(--gold);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.info-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition);
}

.info-icon:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

.procedure-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: none;
}

.procedure-section.visible { display: block; }

.procedure-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.procedure-eyebrow span { color: var(--gold-soft); text-transform: none; letter-spacing: normal; }

.procedure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.procedure-btn { justify-content: flex-start; }

/* ============================================================
   STEP NAV
   ============================================================ */

.step-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.step-nav-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-nav-end { display: flex; align-items: center; gap: 14px; }

.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #FFFFFF;
  box-shadow: 0 10px 24px -12px rgba(33, 33, 33, 0.45);
}

.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(33, 33, 33, 0.55); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.btn-text {
  background: transparent;
  color: var(--text-muted);
  padding: 14px 4px;
}

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

.btn-block { width: 100%; }

.dark-mode-toggle {
  display: block;
  margin-top: 16px;
  padding: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text-muted);
}

.dark-mode-toggle:hover { color: var(--gold-soft); }

/* ============================================================
   DATE PICKER
   ============================================================ */

.date-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  max-width: 100%;
}

.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px;
  scrollbar-width: none;
  flex: 1 1 0%;
  min-width: 0;
}

.date-strip::-webkit-scrollbar { display: none; }

.date-btn {
  all: unset;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 10px 4px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.date-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.date-btn .dow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.date-btn .dom { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text-primary); }
.date-btn .mon { font-size: 11px; color: var(--text-muted); }

.date-btn.active {
  background: var(--golden);
  border-width: 3px;
  border-color: var(--gold-soft);
}

.date-btn.active .dow,
.date-btn.active .dom,
.date-btn.active .mon { color: #FFFFFF; }

.date-btn.disabled { opacity: 0.3; cursor: not-allowed; }
.date-btn.disabled:hover { transform: none; border-color: var(--border-soft); }

.date-nav {
  all: unset;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  transition: border-color var(--transition), color var(--transition);
}

.date-nav:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

/* ============================================================
   TIME PICKER
   ============================================================ */

.time-picker h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.session-prompt {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.session-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.session-btn {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.session-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.session-btn.active {
  border-width: 2.3px;
  border-color: var(--gold);
  background: var(--gold-dimerr);
  color: var(--gold-soft);
}

.time-slots {
  margin-bottom: 16px;
  padding-top: 4px;
  animation: fadeStep 220ms cubic-bezier(.4, 0, .2, 1);
}

.time-group { margin-bottom: 16px; }

.time-group-label { font-size: 12px; color: var(--gold-soft); margin-bottom: 8px; }

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.time-btn {
  all: unset;
  box-sizing: border-box;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 11px 6px;
  font-size: 13px;
  color: var(--text-primary);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.time-btn:hover:not(.disabled) { border-color: var(--border-strong); }

.time-btn.active {
  border-width: 1.4px;
  border-color: var(--gold);
  background: var(--gold-dimerr);
  color: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold);
  padding: 9px 4px;
}

.time-btn.disabled {
  opacity: 0.3;
  color: var(--text-muted);
  cursor: not-allowed;
}

.link-btn {
  all: unset;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--text-muted);
  cursor: pointer;
  margin-top: 4px;
}

.link-btn:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

.custom-time-row { margin-top: 14px; }

.custom-time-row label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.time-input {
  width: 140px;
  max-width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.time-input:focus { border-color: var(--gold); }

/* ============================================================
   STEP 3 — FIELDS
   ============================================================ */

.field-group { margin-bottom: 18px; }

.field-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field-group input,
.field-group textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.field-group input::placeholder,
.field-group textarea::placeholder { color: var(--text-muted); }

.field-group input:focus,
.field-group textarea:focus { border-color: var(--gold); }

.field-group input:invalid:not(:placeholder-shown) { border-color: rgba(212, 106, 55, 0.6); }

.field-group textarea { resize: vertical; min-height: 84px; }

.note-container { margin: 20px 0 8px; display: flex; flex-direction: column; gap: 8px; }

.note {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 14px;
  border-left: 2px solid var(--border-soft);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 28px 24px;
}

.modal-content h3 { font-size: 22px; margin-bottom: 14px; padding-right: 20px; }
.modal-content p, .modal-content ul { font-size: 14px; }
.modal-content ul { margin: 0; padding-left: 18px; }
.modal-content li { margin-bottom: 8px; }

.close-btn {
  all: unset;
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
}

.close-btn:hover { color: var(--gold-soft); }
/* ==================== FORM ALERT (error banner) ==================== */

.form-alert {
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.35);
    color: #b45309;
}

.form-alert:not([hidden]) {
    display: flex;
}

.form-alert--error {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.35);
    align-items: flex-start;
    animation: alert-in 0.25s ease-out;
}

.form-alert--error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.35);
}

.form-alert-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
}

.form-alert-body {
    flex: 1;
}

.form-alert-title {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: #7f1d1d;
}

.form-alert-list {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.875rem;
    color: #991b1b;
}

.form-alert-list li {
    margin-bottom: 0.25rem;
}
/* =========================================================
   Footer
   ========================================================= */
.footer-bar {
  max-width: var(--container-w);
  margin: 24px auto 0;
  padding: 18px 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bar p { margin: 0; font-size: inherit; color: inherit; }

.footer-links { display: flex; align-items: center; gap: 8px; }

.footer-bar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-bar a:hover {
  color: var(--gold-soft);
}

@media (min-width: 640px) {
  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 600px) {
  .footer-bar {
    padding: 14px 16px;
    font-size: 11px;
    gap: 8px;
  }

  .footer-bar a {
    white-space: nowrap;
  }
}

@keyframes alert-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==================== INLINE FIELD ERRORS (Step 3) ==================== */

.field-group.has-error input,
.field-group.has-error textarea {
    border-color: #dc2626;
}

.field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #dc2626;
}

/* Dark-theme override — flip to lighter text/darker background if your
   page background is dark rather than light. Delete this block if the
   booking page uses a light background already. */
@media (prefers-color-scheme: dark) {
    .form-alert--error {
        background: rgba(220, 38, 38, 0.12);
        border-color: rgba(220, 38, 38, 0.4);
    }
    .form-alert-title { color: #fca5a5; }
    .form-alert-list  { color: #f87171; }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (min-width: 640px) {
  .booking-page { padding: 28px 24px; }

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

  .time-grid { grid-template-columns: repeat(4, 1fr); }

  .clinic-detail-grid { grid-template-columns: 1fr 1fr; }

  .step-nav-split { flex-wrap: nowrap; }
}

/* ============================================================
   RESPONSIVE — DESKTOP
   ============================================================ */

@media (min-width: 1024px) {
  .booking-page { padding: 48px 32px; }

  .booking-shell {
    flex-direction: row;
    align-items: flex-start;
  }

  .side-panel {
    flex: 0 0 35%;
    max-width: 35%;
    position: sticky;
    top: 32px;
  }

  .wizard-panel {
    flex: 1 1 65%;
    min-width: 0;
    padding: 36px 40px;
  }

  .clinic-card { padding: 32px 28px; }
  .summary-card { padding: 26px 28px; }

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

/* ============================================================
   MOBILE — sticky bottom nav, no horizontal overflow
   ============================================================ */

@media (max-width: 639px) {
  html, body { overflow-x: hidden; }

  .clinic-card,
  .summary-card,
  .wizard-panel { padding: 20px 16px; border-radius: var(--radius-md); }

  .summary-card { display: none; }

  /* Full clinic card is a lot of scrolling on a phone — show the
     compact version instead. */
  .clinic-card { display: none; }
  .clinic-card-mini { display: block; }

  .step-label { display: none; }
  .step-item.active .step-label { display: inline; position: absolute; margin-top: 44px; }

  .wizard-panel { padding-bottom: 0; }

  .step-nav {
    position: sticky;
    bottom: 0;
    margin: 28px -16px 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, var(--bg-card) 70%, transparent);
  }

  .step-nav-split { flex-direction: row; }
  .step-nav .btn { flex: 1; }
  .step-nav-split .btn-ghost { flex: 0 0 auto; }
}