:root {
  --blue-900: #0b3d91;
  --blue-800: #0f4fa8;
  --blue-700: #1d67c1;
  --blue-100: #eaf3ff;
  --blue-050: #f5f9ff;
  --green-700: #16a34a;
  --green-100: #dcfce7;
  --ink:    #1e2a3a;
  --muted:  #5a6a7e;
  --line:   #d0daea;
  --panel:  #f0f4fb;
  --paper:  #ffffff;
  --soft:   #f7f9fd;
  --amber:  #fef3cd;
  --shadow: 0 2px 12px rgba(11, 61, 145, 0.07);
}

* { box-sizing: border-box; }

.agenda-page-wrap {
  padding: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #e8eef7;
  overflow-x: hidden;
}

.agenda-page-wrap button,
.agenda-page-wrap input,
.agenda-page-wrap select,
.agenda-page-wrap textarea { font: inherit; }
.agenda-page-wrap button { border: 0; appearance: none; outline: 0; box-shadow: none; }

.agenda-page-wrap svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Shell ─────────────────────────────────────────── */

.booking-shell {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  width: 100%;
  max-width: 1180px;
  min-height: calc(100vh - 140px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

/* ── Sidebar ───────────────────────────────────────── */

.booking-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 44px;
  overflow: hidden;
  padding: 42px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.agenda-page-wrap .brand,
.agenda-page-wrap .mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.agenda-page-wrap .brand-icon {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-800);
  line-height: 1;
}

.sidebar-watermark svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.7;
}

/* ── Steps ─────────────────────────────────────────── */

.step-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 27px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: start;
  gap: 14px;
  color: #8fa0b5;
}

.step-item:not(:last-child)::after {
  position: absolute;
  top: 40px;
  left: 19px;
  width: 1px;
  height: 30px;
  content: "";
  background: #c0cfe0;
}

.step-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #8fa0b5;
  background: #ffffff;
  border: 1px solid #c0cfe0;
  border-radius: 10px;
}

.step-icon svg { width: 22px; height: 22px; }

.step-item strong {
  display: block;
  margin-top: -1px;
  color: inherit;
  font-size: 15px;
  line-height: 1.3;
}

.step-item small {
  display: block;
  margin-top: 6px;
  color: inherit;
  font-size: 12px;
  line-height: 1.35;
}

.step-item.is-done {
  color: var(--blue-800);
}

.step-item.is-done .step-icon {
  color: var(--green-700);
  background: #ffffff;
  border-color: var(--green-700);
}

.step-item.is-done:not(:last-child)::after {
  background: var(--line);
}

.step-item.is-active {
  color: var(--blue-800);
}

.step-item.is-active .step-icon {
  color: #ffffff;
  background: var(--blue-800);
  border-color: var(--blue-800);
}

.sidebar-watermark {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.sidebar-watermark img {
  width: 220px;
  height: auto;
  opacity: 0.18;
}

/* ── Main ──────────────────────────────────────────── */

.booking-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 42px clamp(28px, 6vw, 80px);
}

.agenda-page-wrap .mobile-brand,
.agenda-page-wrap .progress-mobile {
  display: none;
}

.booking-card {
  width: 100%;
  max-width: 660px;
}

.booking-card.is-wide {
  max-width: 820px;
}

/* ── Step header ───────────────────────────────────── */

.step-header {
  margin-bottom: 28px;
  text-align: center;
}

.step-header p {
  margin: 0 0 10px;
  color: var(--blue-700);
  font-size: 15px;
  font-weight: 800;
}

.step-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.step-header span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

/* ── Alert ─────────────────────────────────────────── */

.alert {
  display: none;
  width: min(100%, 560px);
  margin: 0 auto 18px;
  padding: 12px 14px;
  color: #7a4a05;
  background: var(--amber);
  border: 1px solid #f0d070;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
}

.alert.is-visible { display: block; }

.step-content { min-height: 242px; }

/* Restaurar bordes de tarjetas interactivas — mayor especificidad que el reset de button */
.agenda-page-wrap .selection-card,
.agenda-page-wrap .therapist-row,
.agenda-page-wrap .time-chip,
.agenda-page-wrap .focus-chip,
.agenda-page-wrap .pay-method { border: 1px solid var(--line); }

/* ── Choice grid ───────────────────────────────────── */

.choice-grid,
.therapist-grid,
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-grid {
  max-width: 560px;
  margin: 0 auto;
}

.selection-card,
.therapist-card,
.date-card,
.time-chip,
.focus-chip {
  width: 100%;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.selection-card,
.therapist-card {
  position: relative;
  min-height: 180px;
  padding: 22px 22px 18px;
  cursor: pointer;
  text-align: left;
}

.selection-card:hover,
.therapist-card:hover,
.date-card:hover,
.time-chip:hover,
.focus-chip:hover {
  border-color: var(--blue-700);
}

.selection-card.is-selected,
.therapist-card.is-selected,
.date-card.is-selected,
.time-chip.is-selected,
.focus-chip.is-selected {
  background: var(--blue-050);
  border-color: var(--blue-700);
}

.card-radio {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #c0cfe0;
  border-radius: 50%;
}

.is-selected .card-radio::after {
  position: absolute;
  inset: 4px;
  content: "";
  background: var(--blue-700);
  border-radius: inherit;
}

.card-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  place-items: center;
  color: var(--blue-800);
}

.card-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: none;
}

.selection-card h2,
.therapist-card h2 {
  margin: 0 28px 10px 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.selection-card p,
.therapist-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.price {
  display: block;
  margin-top: 16px;
  color: var(--blue-800);
  font-weight: 800;
  font-size: 13px;
}

.therapist-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
  color: var(--blue-900);
  background: linear-gradient(135deg, var(--blue-100), #ffffff);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 800;
}

/* ── Therapist filters ─────────────────────────────── */

.therapist-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.therapist-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.therapist-search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.therapist-search-input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  outline: 0;
  transition: border-color 0.18s ease;
}

.therapist-search-input::placeholder { color: var(--muted); }

.therapist-search-input:focus {
  background: #ffffff;
  border-color: var(--blue-700);
}

.sort-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.sort-filter select {
  height: 34px;
  padding: 0 28px 0 10px;
  background: #ffffff url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%235a6a7e' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center / 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  outline: 0;
  transition: border-color 0.15s ease;
}

.sort-filter select:focus {
  border-color: var(--blue-700);
}

.empty-filter {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

/* ── Therapist list ────────────────────────────────── */

.therapist-list {
  display: grid;
  gap: 12px;
  width: min(100%, 670px);
  max-height: 400px;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding-right: 2px;
}

.therapist-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 22px;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.therapist-row:hover,
.therapist-row.is-selected {
  border-color: var(--blue-700);
  background: var(--blue-050);
}

.therapist-row .card-radio {
  position: relative;
  align-self: center;
  justify-self: end;
  top: auto;
  right: auto;
}

.portrait {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
  align-self: center;
}

.portrait-a {
  background:
    radial-gradient(circle at 50% 34%, #f0c7b4 0 16%, transparent 17%),
    radial-gradient(circle at 42% 24%, #39403f 0 15%, transparent 16%),
    linear-gradient(135deg, #a3b8d8, #e0ecff 52%, #4a6a9e);
}

.portrait-b {
  background:
    radial-gradient(circle at 48% 31%, #bd8b6b 0 17%, transparent 18%),
    radial-gradient(circle at 40% 22%, #4d332f 0 16%, transparent 17%),
    linear-gradient(135deg, #d4e4f5, #6a9fd8 54%, #e5d7c7);
}

.portrait-c {
  background:
    radial-gradient(circle at 50% 32%, #e0bda4 0 17%, transparent 18%),
    radial-gradient(circle at 48% 23%, #797064 0 16%, transparent 17%),
    linear-gradient(135deg, #ccd9f0, #7c99c8 55%, #ece7df);
}

.portrait-d {
  background:
    radial-gradient(circle at 50% 33%, #f5c5a3 0 16%, transparent 17%),
    radial-gradient(circle at 46% 23%, #5a3a28 0 15%, transparent 16%),
    linear-gradient(135deg, #b8cce8, #deeaff 52%, #6685b0);
}

.therapist-copy {
  display: grid;
  gap: 4px;
  align-content: center;
}

.therapist-copy strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.therapist-row.is-selected .therapist-copy strong {
  color: var(--blue-800);
}

.therapist-copy small {
  color: var(--muted);
  font-size: 13px;
}

.therapist-copy span {
  color: #4a5d70;
  font-size: 14px;
  line-height: 1.45;
}

/* ── Schedule ──────────────────────────────────────── */

.schedule-board {
  display: grid;
  grid-template-columns: minmax(390px, 438px) minmax(300px, 348px);
  gap: 20px;
  align-items: start;
  justify-content: center;
}

.schedule-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.panel-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

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

.date-card {
  display: grid;
  min-height: 78px;
  padding: 12px 8px;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  border-radius: 12px;
}

.date-card strong { font-size: 22px; line-height: 1; }

.date-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── Calendar ──────────────────────────────────────── */

.calendar-card {
  padding: 20px 32px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.calendar-top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.calendar-top h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  text-align: center;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

.calendar-nav.is-muted { color: #c0cfe0; }

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-weekdays {
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.calendar-grid {
  gap: 12px 10px;
  margin-top: 16px;
}

.calendar-day {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  justify-self: center;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
}

.calendar-day:hover,
.calendar-day.is-selected {
  color: #ffffff;
  background: var(--blue-800);
}

/* ── Time ──────────────────────────────────────────── */

.time-panel h2 {
  margin: 4px 0 18px;
  color: var(--blue-800);
  font-size: 17px;
  font-weight: 800;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  gap: 10px;
}

.time-chip {
  min-height: 42px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.time-chip.is-selected {
  color: #ffffff;
  background: var(--blue-800);
  border-color: var(--blue-800);
}

.focus-chip {
  min-height: 42px;
  padding: 10px 13px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  border-radius: 10px;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.details-form,
.focus-form {
  display: grid;
  gap: 20px;
  width: min(100%, 560px);
  margin: 0 auto;
}

.field { display: grid; gap: 8px; }

.field.is-wide { grid-column: 1 / -1; }

.field label {
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea,
.phone-field {
  min-height: 48px;
  border-radius: 10px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  outline: 0;
  font-size: 16px;
  transition: border-color 0.18s ease;
}

.field textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-700);
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

/* ── Phone ─────────────────────────────────────────── */

.phone-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.phone-field input {
  flex: 1;
  min-width: 0;
  width: auto;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
}

.phone-field input:focus { box-shadow: none; }

.flag-co {
  display: inline-block;
  width: 26px;
  height: 18px;
  flex: 0 0 26px;
  border: 1px solid #d0daea;
  background: linear-gradient(#f6d54a 0 50%, #2759a8 50% 75%, #c93a36 75%);
}

.focus-description {
  margin: 0;
  padding: 14px 16px;
  background: var(--blue-050);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.char-count {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

/* ── Review / Confirm ──────────────────────────────── */

.review-card,
.success-card {
  width: min(100%, 620px);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.review-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.review-item {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.review-item:nth-child(odd) { border-right: 1px solid var(--line); }

.review-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.review-item span {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.confirm-card {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 20px 24px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.confirm-card h2 {
  margin: 0 0 16px;
  color: var(--blue-800);
  font-size: 20px;
  font-weight: 600;
}

.confirm-line {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: center;
  margin: 13px 0;
  color: var(--ink);
}

.confirm-line span { color: var(--blue-800); }

.confirm-line svg { width: 24px; height: 24px; }

.confirm-line strong {
  font-size: 14px;
  line-height: 1.35;
}

/* ── Review step (new layout) ──────────────────────── */

.review-wrap {
  display: grid;
  gap: 18px;
  width: min(100%, 540px);
  margin: 0 auto;
}

.review-section-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.review-block {
  display: grid;
  gap: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.review-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.review-row:last-child { border-bottom: 0; }

.review-row div { display: grid; gap: 2px; }

.review-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.review-row small {
  color: var(--muted);
  font-size: 12px;
}

.review-row-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--blue-100);
  border-radius: 8px;
  color: var(--blue-800);
}

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

.review-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--blue-050);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
}

.review-price-row strong {
  color: var(--blue-800);
  font-size: 20px;
  font-weight: 700;
}

.review-price-row small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.review-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.review-trust-item {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 14px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.review-trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--blue-700);
}

@media (max-width: 480px) {
  .review-trust { grid-template-columns: 1fr; }
}

/* ── Success ───────────────────────────────────────── */

.success-card {
  padding: 32px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  place-items: center;
  color: #ffffff;
  background: var(--blue-800);
  border-radius: 50%;
}

.success-icon svg { width: 30px; height: 30px; }

.success-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 24px;
}

.success-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Actions ───────────────────────────────────────── */

.actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 660px;
  margin: 32px auto 0;
}

.booking-card.is-wide .actions { max-width: 760px; }

.booking-card[data-current-step="1"] .actions { justify-content: flex-end; }

/* ── Buttons ───────────────────────────────────────── */

.agenda-page-wrap .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 136px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.agenda-page-wrap .btn svg { width: 18px; height: 18px; }

.agenda-page-wrap .btn-primary {
  color: #ffffff;
  background: var(--blue-800);
}

.agenda-page-wrap .btn-primary:hover { background: var(--blue-900); }

.agenda-page-wrap .btn-secondary {
  color: var(--blue-800);
  background: #ffffff;
  border: 1.5px solid rgba(11, 61, 145, 0.22);
}

.agenda-page-wrap .btn-secondary:hover {
  background: var(--blue-050);
  border-color: var(--blue-700);
}

.agenda-page-wrap .btn[disabled] { display: none; }

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 1060px) {
  .schedule-board {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .time-panel h2 { text-align: center; }
}

@media (max-width: 920px) {
  .agenda-page-wrap {
    padding: 0;
  }

  .booking-shell {
    display: block;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .booking-sidebar { display: none; }

  .booking-main {
    display: block;
    padding: 24px 18px 40px;
  }

  .therapist-list {
    max-height: none;
    overflow: visible;
  }

  .agenda-page-wrap .mobile-brand {
    display: inline-flex;
    margin-bottom: 20px;
  }

  .agenda-page-wrap .progress-mobile {
    display: grid;
    gap: 9px;
    margin-bottom: 26px;
    color: var(--blue-800);
    font-size: 13px;
    font-weight: 800;
  }

  .agenda-page-wrap .progress-mobile div {
    height: 6px;
    overflow: hidden;
    background: var(--blue-100);
    border-radius: 999px;
  }

  .agenda-page-wrap .progress-mobile span span,
  #mobileBar { display: block; }

  #mobileBar {
    width: 16.66%;
    height: 100%;
    background: var(--blue-800);
    border-radius: inherit;
    transition: width 0.18s ease;
  }

  .booking-card,
  .booking-card.is-wide {
    width: 100%;
    max-width: 100%;
  }

  .actions,
  .booking-card.is-wide .actions {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .step-header {
    margin-bottom: 20px;
    text-align: left;
  }

  .step-header span {
    font-size: 15px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .therapist-tools {
    flex-direction: column;
    align-items: flex-start;
  }

  .choice-grid,
  .therapist-grid,
  .schedule-layout,
  .form-grid,
  .review-card {
    grid-template-columns: 1fr;
  }

  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-item:nth-child(odd) { border-right: 0; }

  .therapist-list { max-height: none; }

  .therapist-row {
    grid-template-columns: 44px 1fr 20px;
    padding: 14px 16px;
  }

  .schedule-board,
  .calendar-card,
  .time-panel,
  .details-form,
  .focus-form,
  .confirm-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .schedule-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-card {
    width: calc(100vw - 36px);
    overflow: hidden;
    padding: 16px 8px;
  }

  .calendar-weekdays { gap: 0; font-size: 10px; }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px 0;
  }

  .calendar-day { width: 28px; height: 28px; font-size: 14px; }

  .time-panel h2 { font-size: 15px; overflow-wrap: anywhere; }

  .time-grid { grid-template-columns: 1fr; grid-template-rows: auto; grid-auto-flow: row; }

  .actions {
    margin-top: 28px;
  }
}

/* ── Payment step ──────────────────────────────────── */

.pay-wrap {
  display: grid;
  gap: 20px;
  width: min(100%, 520px);
  margin: 0 auto;
}

.pay-summary {
  padding: 16px 20px;
  background: var(--blue-050);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pay-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
}

.pay-summary-total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
}

.pay-summary-total strong {
  color: var(--blue-800);
  font-size: 20px;
}

.pay-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pay-methods {
  display: grid;
  gap: 10px;
}

.pay-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pay-method:hover { border-color: var(--blue-700); }

.pay-method.is-selected {
  background: var(--blue-050);
  border-color: var(--blue-700);
}

.pay-method.is-selected .card-radio::after {
  position: absolute;
  inset: 4px;
  content: "";
  background: var(--blue-700);
  border-radius: inherit;
}

.pay-method .card-radio {
  position: relative;
  top: auto;
  right: auto;
  margin-left: auto;
}

.pay-method-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--blue-100);
  border-radius: 8px;
  color: var(--blue-800);
  flex-shrink: 0;
}

.pay-method-icon svg { width: 18px; height: 18px; }

.pay-card-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pay-card-form .field.is-wide { grid-column: 1 / -1; }

.pay-redirect-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.pay-redirect-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue-700);
}

@media (max-width: 430px) {
  .date-grid,
  .time-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .actions { flex-direction: column-reverse; }

  .agenda-page-wrap .btn { width: 100%; min-width: 0; }
}
