/* ===== Booking hero ===== */
.book-hero { padding-block: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 32px); }
.book-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.book-hero__copy h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.2vw, 48px); color: var(--ink-900); line-height: 1.1; }
.book-hero__copy h1 em { font-style: italic; font-weight: 600; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.book-hero__copy p { margin-top: 12px; font-size: 15px; color: var(--ink-500); line-height: 1.6; max-width: 440px; }
.book-hero__art { flex: none; width: 150px; height: 150px; position: relative; }
@media (max-width: 900px) {
  .book-hero__art { width: 96px; height: 96px; }
  .book-hero__copy h1 { font-size: clamp(26px, 7vw, 34px); }
}
@media (max-width: 560px) {
  .book-hero__art { display: none; }
}

/* ===== Stepper ===== */
.book-stepper {
  display: flex; align-items: flex-start; justify-content: space-between;
  max-width: 760px; margin: clamp(24px, 4vw, 40px) auto 0; padding-inline: 8px;
}
.book-stepper__item { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; flex: 1; }
.book-stepper__num {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--ink-300);
  background: #fff; border: 1.5px solid var(--surface-line);
  transition: background var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
  z-index: 1;
}
.book-stepper__label { font-size: 12px; font-weight: 600; color: var(--ink-300); text-align: center; transition: color var(--dur-med) var(--ease-out); }
.book-stepper__item::before {
  content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 1.5px;
  background: var(--surface-line); z-index: 0;
}
.book-stepper__item:first-child::before { display: none; }
.book-stepper__item.is-active .book-stepper__num,
.book-stepper__item.is-done .book-stepper__num {
  background: var(--gradient-brand); border-color: transparent; color: #fff;
}
.book-stepper__item.is-active .book-stepper__label,
.book-stepper__item.is-done .book-stepper__label { color: var(--ink-900); }
.book-stepper__item.is-done::before { background: var(--violet-400); }
@media (max-width: 640px) {
  .book-stepper__label { display: none; }
  .book-stepper { max-width: 340px; }
}

/* ===== Main panel ===== */
.book-flow { padding-block: clamp(28px, 4vw, 48px); }
.book-panel {
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: clamp(18px, 2.6vw, 32px);
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 2.6vw, 32px);
  align-items: start;
}
.book-sidebar, .book-main { min-width: 0; }
@media (max-width: 900px) {
  .book-panel { grid-template-columns: 1fr; }
}

/* ---------- Sidebar: service list ---------- */
.book-sidebar__title { font-size: 15px; font-weight: 700; color: var(--ink-900); margin-bottom: 14px; }
.book-services { display: flex; flex-direction: column; gap: 10px; }
.book-service-card {
  position: relative; text-align: left; display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--surface-line); border-radius: var(--radius-lg);
  padding: 12px 14px; background: #fff; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.book-service-card:hover { border-color: var(--violet-300); }
.book-service-card.is-selected { border-color: var(--violet-500); background: var(--violet-50); }
.book-service-card__icon {
  flex: none; width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--violet-50); color: var(--violet-600);
  display: flex; align-items: center; justify-content: center;
}
.book-service-card.is-selected .book-service-card__icon { background: #fff; }
.book-service-card__icon img { width: 22px; height: 22px; object-fit: contain; }
.book-service-card__body h4 { font-size: 13px; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.book-service-card__body p { margin-top: 3px; font-size: 12px; color: var(--violet-700); font-weight: 700; }
.book-service-card__check {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff; display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.book-service-card__check svg { width: 11px; height: 11px; }
.book-service-card.is-selected .book-service-card__check { display: flex; }

.book-services__more {
  display: none; align-self: center; margin-top: 4px; background: none; border: none;
  color: var(--violet-700); font-size: 12.5px; font-weight: 700; cursor: pointer;
  align-items: center; gap: 4px;
}
.book-services__more svg { width: 13px; height: 13px; transition: transform var(--dur-fast) var(--ease-out); }
.book-services__more.is-open svg { transform: rotate(180deg); }

.book-helper {
  margin-top: 20px; background: var(--violet-50); border-radius: var(--radius-lg);
  padding: 18px; text-align: left;
}
.book-helper__icon {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--violet-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.book-helper__icon svg { width: 17px; height: 17px; }
.book-helper h5 { font-size: 13.5px; font-weight: 700; color: var(--ink-900); }
.book-helper p { margin-top: 4px; font-size: 12px; color: var(--ink-500); line-height: 1.5; }
.book-helper button {
  margin-top: 12px; width: 100%; background: #fff; border: 1.5px solid var(--violet-200);
  color: var(--violet-700); font-size: 12.5px; font-weight: 700; border-radius: var(--radius-md);
  padding: 10px; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.book-helper button:hover { border-color: var(--violet-400); background: var(--violet-50); }

/* ---------- Main column ---------- */
.book-main > section { margin-bottom: clamp(24px, 3vw, 34px); }
.book-main > section[hidden] { display: none; }
.book-main__label { font-size: 14.5px; font-weight: 700; color: var(--ink-900); margin-bottom: 14px; }

.book-service-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--surface-line); }
.book-service-header h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2.2vw, 23px); color: var(--ink-900); }
.book-service-header p { margin-top: 5px; font-size: 13px; color: var(--ink-500); }
.book-service-header__price { flex: none; font-size: 17px; font-weight: 700; color: var(--violet-700); white-space: nowrap; }

/* Doctors */
.book-doctors { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.book-doctors::-webkit-scrollbar { display: none; }
.book-doctor-card {
  position: relative; flex: 0 0 auto; width: 118px; text-align: center;
  border: 1.5px solid var(--surface-line); border-radius: var(--radius-lg);
  padding: 14px 10px; background: #fff; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.book-doctor-card:hover { border-color: var(--violet-300); }
.book-doctor-card.is-selected { border-color: var(--violet-500); background: var(--violet-50); }
.book-doctor-card__photo {
  display: flex; align-items: center; justify-content: center;
  position: relative; width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; overflow: visible;
  background: linear-gradient(135deg, var(--violet-100), var(--violet-50));
}
.book-doctor-card__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center top; border: 1px solid var(--surface-line); }
.book-doctor-card__photo svg { width: 26px; height: 26px; color: var(--violet-300); border-radius: 50%; border: 1px solid var(--surface-line); padding: 15px; box-sizing: border-box; }
.book-doctor-card__check {
  position: absolute; bottom: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff; display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); border: 2px solid #fff;
}
.book-doctor-card__check svg { width: 10px; height: 10px; }
.book-doctor-card.is-selected .book-doctor-card__check { display: flex; }
.book-doctor-card__name { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.book-doctor-card__role { display: block; margin-top: 3px; font-size: 10.5px; color: var(--ink-500); line-height: 1.35; }

.book-doctor-fixed { display: flex; align-items: center; gap: 14px; background: var(--surface-50); border-radius: var(--radius-lg); padding: 14px 18px; }
.book-doctor-fixed__photo {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; flex: none; overflow: hidden;
  background: linear-gradient(135deg, var(--violet-100), var(--violet-50)); border: 1px solid var(--surface-line);
  color: var(--violet-300);
}
.book-doctor-fixed__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.book-doctor-fixed__photo svg { width: 22px; height: 22px; }
.book-doctor-fixed b { font-size: 14px; color: var(--ink-900); }
.book-doctor-fixed div span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-500); }

/* Date + time */
.book-datetime__grid { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 720px) {
  .book-datetime__grid { grid-template-columns: 1fr; }
}
.book-calendar { border: 1px solid var(--surface-line); border-radius: var(--radius-lg); padding: 16px; }
.book-calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.book-calendar__head b { font-size: 13.5px; color: var(--ink-900); text-transform: capitalize; }
.book-calendar__nav { display: flex; gap: 6px; }
.book-calendar__nav button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--surface-line); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--violet-700); cursor: pointer; }
.book-calendar__nav button:disabled { opacity: .3; cursor: not-allowed; }
.book-calendar__nav svg { width: 13px; height: 13px; }
.book-calendar__weekdays, .book-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.book-calendar__weekdays span { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--ink-300); text-transform: uppercase; padding-bottom: 6px; }
.book-calendar__day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12.5px; cursor: pointer; color: var(--ink-900); border: none; background: none; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.book-calendar__day.is-empty { visibility: hidden; }
.book-calendar__day.is-disabled { opacity: .3; cursor: not-allowed; }
.book-calendar__day:not(.is-disabled):not(.is-selected):hover { background: var(--violet-50); }
.book-calendar__day.is-selected { background: var(--gradient-brand); color: #fff; font-weight: 700; }

.book-slots__date { font-size: 13.5px; font-weight: 700; color: var(--ink-900); margin-bottom: 14px; text-transform: capitalize; }
.book-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.book-slots__empty { grid-column: 1 / -1; font-size: 13px; color: var(--ink-500); }
.book-slot { padding: 11px 10px; border-radius: var(--radius-md); border: 1.5px solid var(--surface-line); font-size: 13px; font-weight: 700; cursor: pointer; background: #fff; color: var(--ink-900); text-align: center; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.book-slot:hover { border-color: var(--violet-400); }
.book-slot.is-selected { background: var(--gradient-brand); border-color: transparent; color: #fff; }
.book-slots__more { grid-column: 1 / -1; display: none; background: none; border: none; color: var(--violet-700); font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: left; padding-top: 2px; }
@media (max-width: 720px) {
  .book-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 148px; overflow: hidden; }
  .book-slots.is-expanded { max-height: none; }
}

/* Patient form */
.book-form__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.book-form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .book-form__row, .book-form__row--2 { grid-template-columns: 1fr; }
}
.book-form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.book-form__field label { font-size: 12px; font-weight: 600; color: var(--ink-500); }
.book-form__field input {
  width: 100%; border: 1px solid var(--surface-line); border-radius: var(--radius-md);
  background: var(--surface-50); padding: 12px 14px; font-family: inherit; font-size: 14px; color: var(--ink-900);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.book-form__field input:focus { outline: none; border-color: var(--violet-400); background: #fff; }
.book-form__consent { display: flex; align-items: flex-start; gap: 9px; margin: 6px 0 18px; font-size: 12.5px; color: var(--ink-500); line-height: 1.5; }
.book-form__consent input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--violet-600); }
.book-form__consent a { color: var(--violet-700); text-decoration: underline; }
.book-form__error { font-size: 12.5px; color: #d64545; min-height: 16px; margin-bottom: 8px; }
.book-form__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.book-form__back {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: none;
  color: var(--ink-500); font-size: 13.5px; font-weight: 700; cursor: pointer; padding: 12px 6px;
}
.book-form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Feature strip ---------- */
.book-features { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 44px); }
.book-features__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.book-feature { display: flex; align-items: flex-start; gap: 12px; }
.book-feature__icon { flex: none; width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--violet-50); color: var(--violet-600); display: flex; align-items: center; justify-content: center; }
.book-feature__icon svg { width: 20px; height: 20px; }
.book-feature h5 { font-size: 13.5px; font-weight: 700; color: var(--ink-900); }
.book-feature p { margin-top: 3px; font-size: 12px; color: var(--ink-500); line-height: 1.45; }
@media (max-width: 900px) {
  .book-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Confirmation modal ---------- */
.book-modal {
  position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(10, 6, 22, .55);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-med) var(--ease-out);
}
.book-modal.is-open { opacity: 1; pointer-events: auto; }
.book-modal__card { background: #fff; border-radius: var(--radius-xl); padding: 40px 32px; max-width: 400px; width: 100%; text-align: center; transform: translateY(14px); transition: transform var(--dur-med) var(--ease-out); }
.book-modal.is-open .book-modal__card { transform: translateY(0); }
.book-modal__check { width: 64px; height: 64px; border-radius: 50%; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: #fff; }
.book-modal__check svg { width: 30px; height: 30px; }
.book-modal__card h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink-900); }
.book-modal__card p { margin-top: 10px; font-size: 13.5px; color: var(--ink-500); line-height: 1.6; }
.book-modal__actions { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
