/* =============================================================
   Booking Page Styles
   Clean minimal palette: white bg, black text, black outlines
   ============================================================= */

/* Force white background on the entire booking page */
body.booking-page,
body:has(.booking-wrap) {
  background: #FFFFFF !important;
}
.booking-wrap,
.book-hero,
.book-hero-inner {
  background: #FFFFFF;
}

/* Hero */
.book-hero {
  padding: var(--space-16) 0 var(--space-8);
  text-align: center;
}
.book-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}
.book-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #000000;
  margin: var(--space-3) 0 var(--space-4);
}
.book-subtitle {
  font-size: var(--text-lg);
  color: #000000;
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 auto;
}
.book-subtitle strong {
  color: #000000;
  font-weight: 700;
}

/* Also target the section eyebrow (REQUEST A VISIT) so it's readable */
.book-hero .eyebrow,
.book-hero .section-eyebrow,
.book-hero [class*="eyebrow"] {
  color: #000000 !important;
  letter-spacing: 0.14em;
}

/* Stepper */
.book-stepper {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-10);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.book-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  position: relative;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.book-step.is-active,
.book-step.is-complete {
  opacity: 1;
}
.book-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 1px;
  background: var(--color-border, #E4E4E7);
}
.book-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #000000;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px solid #000000;
  transition: all 0.3s ease;
}
.book-step.is-active .book-step-num {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
}
.book-step.is-complete .book-step-num {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
}
.book-step-label {
  font-size: 0.9rem;
  color: #000000;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.book-step.is-active .book-step-label,
.book-step.is-complete .book-step-label {
  color: #000000;
}
.book-step:not(:last-child)::after {
  background: #000000 !important;
  opacity: 0.5;
}
@media (max-width: 720px) {
  .book-step-label { display: none; }
  .book-step { padding: 0 var(--space-3); }
}

/* Booking card wrapper */
.booking-wrap {
  padding-bottom: var(--space-24);
  background: #FFFFFF;
}
.booking-card {
  background: #FFFFFF;
  border: 2px solid #000000;
  border-radius: 20px;
  padding: var(--space-10) var(--space-8);
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 20px 60px rgba(0, 0, 0, 0.06);
}
@media (max-width: 720px) {
  .booking-card { padding: var(--space-6) var(--space-4); border-radius: 14px; }
}

/* Step panels */
.step-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}
.step-panel.is-active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #000000;
  margin: 0 0 var(--space-2);
}
.step-help {
  font-size: 1.05rem;
  color: #000000;
  margin: 0 0 var(--space-8);
  line-height: 1.55;
  font-weight: 500;
}

/* Step actions */
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1.5px solid #000000;
}
.step-actions .btn-primary { margin-left: auto; }

/* Buttons — practical: Continue = solid black (primary), Back = white with black outline */
.booking-wrap .btn-outline,
.step-actions .btn-outline {
  background: #FFFFFF !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.booking-wrap .btn-outline:hover:not(:disabled) {
  background: #F3F4F6 !important;
}
.booking-wrap .btn-primary,
.step-actions .btn-primary,
.booking-wrap button[type="submit"] {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 2px solid #000000 !important;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.1s ease;
}
.booking-wrap .btn-primary:hover:not(:disabled),
.booking-wrap button[type="submit"]:hover:not(:disabled) {
  background: #1F2937 !important;
}
.booking-wrap .btn-primary:active:not(:disabled) { transform: translateY(1px); }
.booking-wrap .btn:disabled,
.booking-wrap button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Service tiles */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
}
.service-tile {
  cursor: pointer;
  display: block;
}
.service-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tile-inner {
  padding: var(--space-5);
  border: 2px solid #000000;
  border-radius: 12px;
  background: #FFFFFF;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-tile:hover .tile-inner {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.service-tile input:checked + .tile-inner {
  background: #F3F4F6;
  border-color: #000000;
  border-width: 3px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}
.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #FFFFFF;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #000000;
}
.service-tile input:checked + .tile-inner .tile-icon {
  background: #000000;
  color: #FFFFFF;
}
.tile-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.005em;
}
.tile-desc {
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.5;
  font-weight: 500;
}

/* ============= CUSTOM CALENDAR ============= */
.calendar {
  border: 2px solid #000000;
  border-radius: 16px;
  padding: var(--space-6);
  background: #FFFFFF;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.cal-month {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.005em;
}
.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #000000 !important;
  background: #FFFFFF !important;
  color: #000000 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cal-nav:hover:not(:disabled) {
  background: #000000 !important;
  color: #FFFFFF !important;
  border-color: #000000 !important;
}
.cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: var(--space-2);
}
.cal-weekdays span {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-2) 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  border: 1.5px solid transparent;
  background: #FFFFFF;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cal-day:hover:not(:disabled):not(.is-selected) {
  background: #FFFFFF;
  color: #000000;
  border-color: #000000;
}
.cal-day:disabled,
.cal-day.is-disabled {
  color: #9AA0A6;
  cursor: not-allowed;
  opacity: 1;
  background: #FFFFFF;
}
.cal-day.is-empty {
  visibility: hidden;
}
.cal-day.is-today {
  font-weight: 700;
}
.cal-day.is-today::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #000000;
}
.cal-day.is-selected {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.cal-day.is-selected.is-today::after {
  background: #FFFFFF;
}
.cal-day:hover:not(:disabled):not(.is-selected) {
  background: #F3F4F6;
  border-color: #000000;
}
@media (max-width: 480px) {
  .cal-day { font-size: 0.85rem; }
  .calendar { padding: var(--space-4); }
}

/* ============= TIME SLOTS ============= */
.time-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.time-group-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000000;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.005em;
}
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--space-2);
}
.time-slot {
  padding: var(--space-3) var(--space-2);
  border: 2px solid #000000;
  border-radius: 8px;
  background: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #000000;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}
.time-slot:hover:not(.is-selected) {
  background: #F3F4F6;
  transform: translateY(-1px);
}
.time-slot.is-selected {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ============= PATIENT INFO FORM ============= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-5);
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field-full {
  grid-column: 1 / -1;
}
.field label {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  padding: var(--space-3) var(--space-4);
  border: 2px solid #000000;
  border-radius: 10px;
  background: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #000000;
  font-weight: 500;
  transition: all 0.15s ease;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

/* Normalize native date input to match text inputs exactly */
.field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  min-height: 54px;
  line-height: 1.4;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #000000;
  box-sizing: border-box;
}
.field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 1.4em;
}
.field input[type="date"]::-webkit-inner-spin-button,
.field input[type="date"]::-webkit-clear-button {
  display: none;
}
.field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}
.field textarea {
  resize: vertical;
  min-height: 88px;
  font-family: var(--font-body);
}

/* ============= PRICING NOTICE ============= */
.pricing-notice {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  border-radius: 14px;
  background: #FFFFFF;
  border: 2px solid #000000;
}
.pricing-notice-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: var(--space-3);
  letter-spacing: -0.005em;
}
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.pricing-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-2) 0;
  border-bottom: 1px dashed rgba(94, 106, 108, 0.15);
  font-size: 0.92rem;
}
.pricing-list li:last-child { border-bottom: none; }
.pricing-list li span {
  color: var(--color-text);
}
.pricing-list li strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #000000;
}
.pricing-list li span { color: #000000; font-weight: 500; }
.pricing-list li {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.25) !important;
}
.pricing-note {
  font-size: 0.9rem;
  color: #000000;
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}
.pricing-note a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

/* ============= REVIEW ============= */
.review-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: var(--space-6);
  border: 2px solid #000000;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.25);
}
.review-row:last-child { border-bottom: none; }
.review-row .label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 140px;
}
.review-row .value {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  text-align: right;
  flex: 1;
}
.consent-line {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  background: #FFFFFF;
  border-radius: 10px;
  border: 2px solid #000000;
  margin-top: var(--space-5);
  font-size: 0.98rem;
  font-weight: 500;
  color: #000000;
  line-height: 1.55;
  cursor: pointer;
}
.consent-line input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #000000;
  width: 18px;
  height: 18px;
}

/* ============= CONFIRMATION ============= */
.confirm-panel {
  text-align: center;
  padding: var(--space-6) 0;
}
.confirm-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #000000;
  border: 2.5px solid #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.confirm-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: #000000;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.015em;
}
.confirm-lead {
  font-size: var(--text-lg);
  color: #000000;
  max-width: 52ch;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
  font-weight: 500;
}
.confirm-lead strong {
  color: #000000;
  font-weight: 700;
}
.confirm-next {
  text-align: left;
  background: #FFFFFF;
  padding: var(--space-5) var(--space-6);
  border-radius: 12px;
  max-width: 520px;
  margin: 0 auto var(--space-6);
  border: 2px solid #000000;
}
.confirm-next h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000;
  margin: 0 0 var(--space-3);
}
.confirm-next ol {
  padding-left: var(--space-5);
  margin: 0;
  color: #000000;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}
.confirm-next li { margin-bottom: var(--space-2); }
.confirm-cta {
  font-size: 1rem;
  color: #000000;
  font-weight: 500;
  margin-bottom: var(--space-6);
}
.confirm-cta a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

/* ============= BTN OUTLINE (booking scope handled via .booking-wrap above) ============= */
.btn-outline {
  background: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
}
.btn-outline:hover {
  background: #000000;
  color: #FFFFFF;
}

/* Submit loading state */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}
.btn.is-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: var(--space-2);
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================== COSMETIC / RX-ONLY TILE ============================== */
.service-tile-rx .tile-inner {
  border-style: dashed;
  position: relative;
}
.service-tile-rx input:checked + .tile-inner {
  border-style: solid;
}
.tile-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #000000;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid #000000;
}
.service-tile-rx input:checked + .tile-inner .tile-badge {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

/* Rx pricing panel (hidden until Cosmetic selected) */
.rx-pricing-note {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}
.rx-pricing-note[data-rx-visible="true"] {
  max-height: 400px;
  opacity: 1;
  margin-top: 1.5rem;
}
.rx-pricing-inner {
  background: #FFFFFF;
  border: 2px solid #000000;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}
.rx-pricing-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: #000000;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.rx-pricing-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.rx-pricing-tiers span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0.6rem 0.75rem;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1.5px solid #000000;
  font-size: 0.95rem;
  color: #000000;
  font-weight: 700;
}
.rx-pricing-tiers strong {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  font-weight: 700;
}
.rx-pricing-fine {
  margin: 0;
  font-size: 0.9rem;
  color: #000000;
  line-height: 1.55;
  font-weight: 500;
}
@media (max-width: 600px) {
  .rx-pricing-tiers { grid-template-columns: repeat(2, 1fr); }
}
