/* Complexe Canin — Booking flow styles */

/* ════════════════════════════════
   PAGE LAYOUT
════════════════════════════════ */

.booking-page {
  min-height: calc(100vh - 69px);
  background: var(--paper);
}


/* ════════════════════════════════
   PAGE HEADER
════════════════════════════════ */

.booking-page-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 36px;
}

.booking-page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 22px;
}


/* ════════════════════════════════
   REQUEST NOTICE BANNER
════════════════════════════════ */

.booking-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--moss-tint);
  border-left: 3px solid var(--moss);
  border-radius: var(--rad-sm);
  padding: 12px 16px;
  max-width: 600px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.booking-notice svg {
  flex-shrink: 0;
  color: var(--moss);
  margin-top: 2px;
}

.booking-notice strong {
  color: var(--ink);
}


/* ════════════════════════════════
   STEP PROGRESS INDICATOR
════════════════════════════════ */

.booking-stepper {
  position: sticky;
  top: 69px;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.stepper-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.stepper-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  position: relative;
}

/* Connector line from this item's center to the next item's center */
.stepper-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--linen);
  z-index: 0;
}

.stepper-item--completed:not(:last-child)::after {
  background: var(--moss);
}

.stepper-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: var(--linen);
  color: var(--ink-faint);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.stepper-label {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  text-align: center;
  transition: color 0.2s, font-weight 0.2s;
}

/* Active step */
.stepper-item--active .stepper-num {
  background: var(--moss);
  color: #fff;
}

.stepper-item--active .stepper-label {
  color: var(--ink);
  font-weight: 600;
}

/* Completed step */
.stepper-item--completed .stepper-num {
  background: var(--moss);
  color: #fff;
}

.stepper-item--completed .stepper-label {
  color: var(--ink-soft);
}


/* ════════════════════════════════
   STEP BODY
════════════════════════════════ */

.booking-body {
  padding: 40px 0 80px;
}

.booking-step--hidden {
  display: none;
}

.booking-placeholder {
  text-align: center;
  color: var(--ink-faint);
  font-size: 15px;
  padding: 72px 0;
  font-style: italic;
}


/* ════════════════════════════════
   CATEGORY BLOCKS
════════════════════════════════ */

.bk-cat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.bk-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.bk-cat-header:hover {
  background: var(--cream-2);
}

.bk-cat-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: var(--moss);
  flex-shrink: 0;
  line-height: 1;
}

.bk-cat-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}

.bk-cat-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--moss);
  flex-shrink: 0;
}

.bk-cat-chevron {
  flex-shrink: 0;
  color: var(--ink-faint);
  transition: transform 0.2s;
}

.bk-cat--collapsed .bk-cat-chevron {
  transform: rotate(-90deg);
}

.bk-cat-rows {
  border-top: 1px solid var(--linen);
}

.bk-cat--collapsed .bk-cat-rows {
  display: none;
}


/* ════════════════════════════════
   SERVICE ROWS
════════════════════════════════ */

.bk-svc-row {
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}

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

.bk-svc-row:has(.bk-svc-radio:checked) {
  background: var(--moss-tint);
  border-left: 3px solid var(--moss);
}

.bk-svc-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px;
  cursor: pointer;
  min-height: 52px;
  width: 100%;
}

/* Compensate for the 3px border-left when selected */
.bk-svc-row:has(.bk-svc-radio:checked) .bk-svc-label {
  padding-left: 21px;
}

.bk-svc-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.bk-svc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bk-svc-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.bk-svc-sub {
  font-size: 12px;
  color: var(--ink-faint);
}

.bk-svc-price {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}

.bk-svc-price--variable {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 13px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
}

.bk-svc-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  visibility: hidden;
}

.bk-svc-radio:checked ~ .bk-svc-check {
  visibility: visible;
}


/* ════════════════════════════════
   TRAVEL FEE NOTE
════════════════════════════════ */

.bk-travel-note {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 12px;
  padding: 0 4px;
}


/* ════════════════════════════════
   STEP FOOTER
════════════════════════════════ */

.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.step-next:disabled,
.step-next[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}


/* ════════════════════════════════
   MOBILE
════════════════════════════════ */

@media (max-width: 640px) {
  .booking-page-header {
    padding: 32px 0 24px;
  }

  .stepper-label {
    display: none;
  }

  .stepper-item {
    padding: 12px 4px;
  }

  .bk-cat-header {
    padding: 14px 18px;
  }

  .bk-svc-label {
    padding: 11px 18px;
    min-height: 48px;
  }

  .bk-svc-row:has(.bk-svc-radio:checked) .bk-svc-label {
    padding-left: 15px;
  }

  .step-footer {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .step-next {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stepper-num {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .stepper-item:not(:last-child)::after {
    top: 23px;
  }
}


/* ════════════════════════════════
   STEP 2 — SCHEDULING
════════════════════════════════ */

.sched-wrap {
  max-width: 700px;
}

.sched-head {
  margin-bottom: 32px;
}

.sched-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 10px;
}

.sched-sub {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.55;
}

/* Two-column layout: calendar | slots */
.sched-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Calendar ── */

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-month-label {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}

.cal-nav {
  width: 32px;
  height: 32px;
  border-radius: var(--rad-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.12s;
  flex-shrink: 0;
}

.cal-nav:hover { background: var(--linen); }

.cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px 2px;
}

.cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 0 10px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: var(--rad-sm);
}

.cal-day--past {
  color: var(--ink-faint);
  opacity: 0.45;
}

.cal-day--available {
  cursor: pointer;
  color: var(--ink);
  transition: background 0.1s;
}

.cal-day--available:hover {
  background: var(--linen);
}

.cal-day--today {
  font-weight: 700;
  color: var(--moss);
}

.cal-day--selected {
  background: var(--moss);
  color: #fff;
  font-weight: 600;
}

.cal-day--selected:hover {
  background: var(--moss-deep);
}

.cal-day--today.cal-day--selected {
  color: #fff;
}

/* ── Time slots ── */

.slots-header {
  margin-bottom: 14px;
}

.slots-date {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  text-transform: capitalize;
}

.slots-note {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 3px;
}

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

.slot-btn {
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  background: var(--paper);
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  text-align: center;
}

.slot-btn:hover {
  background: var(--linen);
  border-color: var(--line-strong);
}

.slot-btn--selected {
  background: var(--moss);
  color: #fff;
  border-color: var(--moss);
}

.slot-btn--selected:hover {
  background: var(--moss-deep);
  border-color: var(--moss-deep);
}

.slots-empty {
  color: var(--ink-faint);
  font-size: 14px;
  font-style: italic;
  padding: 16px 0;
}

/* ── Contact scheduling variant ── */

.sched-contact-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 480px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field-optional {
  font-weight: 400;
  color: var(--ink-faint);
}

.field-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  background: var(--paper);
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s;
}

.field-textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(74, 100, 56, 0.1);
}

.field-textarea::placeholder {
  color: var(--ink-faint);
}

.pref-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Mobile ── */

@media (max-width: 640px) {
  .sched-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sched-head {
    margin-bottom: 24px;
  }

  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .slot-btn {
    padding: 11px 4px;
    font-size: 13px;
  }
}


/* ════════════════════════════════
   STEP 2 — TRAINER AVAILABILITY
════════════════════════════════ */

/* Calendar day when trainer doesn't work that day */
.cal-day--unavailable {
  color: var(--ink-faint);
  opacity: 0.3;
  cursor: not-allowed;
}

/* Loading state while fetching schedule */
.sched-loading {
  padding: 48px 0;
  color: var(--ink-faint);
  font-size: 14px;
  font-style: italic;
}

/* ── Trainer picker cards ── */

.trainer-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 480px;
}

.trainer-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s, border-color 0.15s;
}

.trainer-card:hover {
  background: var(--moss-tint);
  border-color: var(--moss);
}

.trainer-card-name {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
}

.trainer-card-arrow {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--moss);
  transition: transform 0.15s;
}

.trainer-card:hover .trainer-card-arrow {
  transform: translateX(4px);
}

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


/* ════════════════════════════════
   STEP 3 — CHIEN & PROPRIÉTAIRE
════════════════════════════════ */

.info-wrap {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-section h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 4px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  background: var(--paper);
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s;
}

.field-input:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(74, 100, 56, 0.1);
}

.field-input::placeholder {
  color: var(--ink-faint);
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-wrap {
    gap: 36px;
  }
}


/* ════════════════════════════════
   STEP 4 — CONFIRMATION
════════════════════════════════ */

.confirm-wrap {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Recap list */
.recap-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  overflow: hidden;
}

.recap-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

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

.recap-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  padding-top: 2px;
}

.recap-value {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recap-main {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.recap-detail {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Submit area */
.confirm-submit-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirm-submit-note {
  font-size: 12px;
  color: var(--ink-faint);
}

/* Success state */
.confirm-success {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  padding: 48px 0 24px;
}

.confirm-success h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 0;
}

.confirm-success p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.confirm-success-sub {
  font-size: 14px !important;
  color: var(--ink-faint) !important;
}

@media (max-width: 640px) {
  .recap-row {
    grid-template-columns: 90px 1fr;
    padding: 14px 16px;
    gap: 12px;
  }

  .recap-label {
    font-size: 11px;
  }
}
