/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Honey's own "BOOK NOW" button is black, matching their black nav bar —
     --rose (kept as the variable name for drop-in compatibility with the
     rest of this stylesheet) is black here rather than gold, so it still
     reads correctly as a solid button/selected-state background under
     white text. Gold (from the HONEY wordmark) is reserved for a separate
     --gold accent used sparingly (today marker, focus ring) where it sits
     next to dark text instead of needing to carry white text itself. */
  --rose:        #151414;
  --rose-dark:   #2f2f2f;
  --rose-light:  #F8EFD3;
  --gold:        #C9A227;
  --taupe:       #6b6558;
  --text:        #151414;
  --muted:       #6b6558;
  --white:       #ffffff;
  --error:       #b3261e;
  --border:      #E3DCC9;
  --bg:          #F7F4EC;
  --shadow:      0 4px 24px rgba(21, 20, 20, 0.10);
  --shadow-sm:   0 2px 8px  rgba(21, 20, 20, 0.07);
  --radius:      14px;
  --radius-btn:  8px;
  --transition:  0.22s ease;
}

body {
  font-family: 'Lato', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: 'Lato', system-ui, sans-serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

a { color: var(--rose-dark); }
a:hover { opacity: 0.8; }

/* ===== Container ===== */
.form-container {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

/* ===== Progress bar ===== */
.progress-bar {
  height: 3px;
  background: var(--border);
  flex-shrink: 0;
}
.progress-fill {
  height: 100%;
  background: var(--rose);
  transition: width 0.4s ease;
}

/* Shown while a service/provider pick is fetching cart availability from
   Boulevard — the merged (guide-me) flow in particular can take a few
   seconds since it switches through every qualified provider in turn. */
.booking-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(1px);
  /* Visual only — .step.active's transform creates its own stacking context,
     which would trap any z-index given to Back so it could never render
     above this overlay anyway. Every click handler this overlay covers for
     is already guarded against races (cartSeq/providerSeq), so it's safe to
     let clicks (including Back) pass straight through underneath it. */
  pointer-events: none;
}
.booking-loading-overlay.visible { display: flex; }
.booking-loading-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--rose);
  animation: booking-loading-spin 0.7s linear infinite;
}
.booking-loading-text {
  font-size: 0.85rem;
  color: var(--muted);
}
@keyframes booking-loading-spin {
  to { transform: rotate(360deg); }
}

/* ===== Step wrapper ===== */
.steps-wrapper {
  position: relative;
  flex: 1;
  min-height: 0; /* allow shrinking below content size so .form-container's max-height can actually cap it */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.step {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.step.active {
  position: relative;
  flex: 1;        /* fills .steps-wrapper on mobile's fixed-height layout; resolves to content size on desktop's auto-height layout */
  min-height: 0;   /* lets .step-content's overflow-y:auto actually engage once .form-container's max-height caps the total */
  display: flex;
  opacity: 1;
  transform: translateX(0);
}
.step.slide-out-left  { transform: translateX(-100%); }
.step.slide-out-right { transform: translateX(100%); }
.step.slide-in-left   { transform: translateX(-100%); }
.step.slide-in-right  { transform: translateX(100%); }

/* ===== Step content ===== */
.step-content {
  padding: 48px 32px 32px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== Logo strip ===== */
.logo {
  /* Black background matches the logo asset's own black backdrop (and
     Honey's real site nav bar), so the wordmark bleeds edge-to-edge instead
     of sitting in a white box. */
  background: var(--rose);
  margin: -48px -32px 8px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-img {
  max-height: 52px;
  width: auto;
  display: block;
  border-radius: 8px;
}

/* ===== Headings ===== */
.step-header { display: flex; flex-direction: column; gap: 6px; }
.step-header h2 { font-size: 1.4rem; }
.step-header p  { font-size: 0.875rem; color: var(--muted); line-height: 1.5; font-family: 'Lato', system-ui, sans-serif; }

h1 { font-size: 1.5rem; }

/* ===== Path cards (3-up grid) ===== */
.path-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.path-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  width: 100%;
}
.path-card:hover, .path-card.selected {
  border-color: var(--rose);
  background: var(--rose-light);
  box-shadow: var(--shadow-sm);
}
.path-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rose);
}
.path-card.selected .path-card-icon { background: var(--rose); color: var(--white); }
.path-card-text { display: flex; flex-direction: column; gap: 2px; }
.path-card-title { font-family: 'Lato', system-ui, sans-serif; font-weight: 400; font-size: 0.95rem; color: var(--text); }
.path-card-desc  { font-size: 0.8rem; color: var(--muted); }

/* ===== Location / category cards ===== */
.location-cards, .category-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.location-card, .category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
.location-card:hover, .location-card.selected,
.category-card:hover,  .category-card.selected {
  border-color: var(--rose);
  background: var(--rose-light);
}
.location-card-name, .category-card-name {
  font-family: 'Lato', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text);
}
.location-card-sub { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ===== Guide list ===== */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: 'Lato', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
.guide-item:hover, .guide-item.selected {
  border-color: var(--rose);
  background: var(--rose-light);
}

/* ===== Service list ===== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
.service-card:hover, .service-card.selected {
  border-color: var(--rose);
  background: var(--rose-light);
}
.service-card-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.service-card-name {
  font-family: 'Lato', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--text);
}
.service-card-meta { font-size: 0.78rem; color: var(--muted); }

/* ===== Calendar ===== */
.datetime-picker { display: flex; flex-direction: column; gap: 16px; }

.calendar {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--rose);
  color: var(--white);
}
.calendar-header h3 { font-family: 'Lato', system-ui, sans-serif; font-size: 0.9rem; font-weight: 400; }
.cal-nav {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 1rem;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.cal-nav:hover { opacity: 1; }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--rose-light);
  border-bottom: 1px solid var(--border);
}
.calendar-weekdays span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 6px;
  gap: 2px;
}
.cal-day {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.cal-day:hover:not(.disabled):not(.selected) { background: var(--rose-light); color: var(--rose-dark); }
.cal-day.today { font-weight: 700; color: var(--rose-dark); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.cal-day.selected { background: var(--rose); color: var(--white); font-weight: 600; }
.cal-day.disabled { color: var(--border); cursor: default; }
.cal-day.empty { pointer-events: none; }

.time-slots { display: none; margin-top: 12px; }
.time-slots.visible { display: block; }
.time-slots h3 {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 8px;
}
.time-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.time-slot {
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.time-slot:hover { border-color: var(--rose); color: var(--rose-dark); }
.time-slot.selected { background: var(--rose); border-color: var(--rose); color: var(--white); }
.time-slot-placeholder { font-size: 0.8rem; color: var(--muted); padding: 8px 0; }

/* ===== Forms ===== */
.input-group { display: flex; flex-direction: column; gap: 14px; }

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Lato', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.field input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
.field input::placeholder { color: #b8ada6; }

.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 4px;
}
.field-error.visible { display: block; }

.field-row {
  display: flex;
  gap: 10px;
}
.field-row .field { flex: 1; min-width: 0; }

/* ===== Payment section (confirm step, only shown when Boulevard requires a card) ===== */
.payment-section {
  width: 100%;
  margin: 18px 0 4px;
  padding: 16px 16px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: left;
}
.payment-heading {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}
.payment-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 14px;
}
.payment-disclosure {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: -8px;
  margin-bottom: 14px;
}
.fee-disclosure {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 10px 0 4px;
  text-align: left;
}
.payment-section .input-group { gap: 10px; }
.payment-section .field-label {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* ===== Buttons ===== */
.btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-btn);
  border: none;
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition), transform var(--transition);
  letter-spacing: 0.03em;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--rose);
  color: var(--white);
}
.btn-primary:hover:not(:disabled) { background: var(--rose-dark); }

.btn-secondary {
  background: var(--rose-light);
  color: var(--rose-dark);
}

.btn-cherry {
  background: #00C37D;
  color: var(--white);
}
.btn-cherry:hover:not(:disabled) { background: #00a869; }

.btn-external {
  background: var(--taupe);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn-external:hover { opacity: 0.85; }

/* ===== Back button ===== */
.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 4px;
  transition: color var(--transition);
}
.back-btn:hover { color: var(--text); }

/* ===== Summary / confirm ===== */
.summary {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  /* .step-content is a column flex container; an overflow:hidden flex item
     defaults to an automatic minimum size of 0, so without flex-shrink:0 the
     flexbox layout can squeeze this element below its content height and
     clip rows off the bottom when the step's total content exceeds the
     available height. */
  flex-shrink: 0;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.summary-item:last-child { border-bottom: none; }
.summary-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.summary-value { font-size: 0.88rem; color: var(--text); text-align: right; }
.edit-link { font-size: 0.75rem; color: var(--rose-dark); cursor: pointer; text-decoration: underline; flex-shrink: 0; margin-left: 8px; }

/* ===== Checkmark / confirmation ===== */
.checkmark-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  margin: 0 auto 4px;
  flex-shrink: 0;
}
.confirmation-step { text-align: center; align-items: center; }
.confirm-message { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* ===== Contact info (talk-first done screen) ===== */
.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  flex-shrink: 0;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}
.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose-light);
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-info-label {
  font-family: 'Lato', system-ui, sans-serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-info-value {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
}
a.contact-info-value:hover { color: var(--rose-dark); }

/* ===== Cherry prompt ===== */
.cherry-prompt {
  width: 100%;
  border: 1.5px solid #d4f5e9;
  border-radius: var(--radius);
  padding: 20px;
  background: #f0fdf8;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.cherry-logo-img { height: 22px; width: auto; }
.cherry-title { font-family: 'Lato', system-ui, sans-serif; font-weight: 400; font-size: 1rem; color: var(--text); }
.cherry-desc { font-size: 0.85rem; color: var(--muted); }
.btn-cherry-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.cherry-apply-icon { flex-shrink: 0; }

/* ===== Consent / legal copy ===== */
.consent-text {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.5;
}
.consent-text a { color: var(--muted); }

.privacy-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}
.privacy-link a { color: var(--muted); }

.cherry-info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  width: 100%;
  margin: 16px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f9fafb;
}
.cherry-info-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.cherry-info-text {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

/* ===== Microcopy ===== */
.microcopy-bottom {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

/* ===== Loading state ===== */
.loading-text {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  padding: 20px 0;
}

/* ===== Cherry iframe step ===== */
.cherry-step {
  padding: 0;
}
#cherryIframe {
  width: 100%;
  flex: 1;
  border: none;
  min-height: 560px;
}

/* ===== Returning location screen ===== */
.return-location-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Visit-status cards ===== */
.visit-status-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-step="visit-status"] .step-header,
[data-step="path-select"] .step-header {
  text-align: center;
  align-items: center;
}

/* ===== Mobile ===== */
@media (max-width: 520px) {
  body { padding: 0; align-items: flex-start; }
  .form-container {
    border-radius: 0;
    box-shadow: none;
    min-height: 100dvh;
    max-height: 100dvh;
  }
  .step-content { padding: 40px 20px 28px; }
  .logo { margin: -40px -20px 8px; padding: 16px 20px; }
  .time-grid { grid-template-columns: repeat(2, 1fr); }
}
