/*
 * Booking flow styles. Loaded only on /book and /manage.
 * Mobile-first, like the rest of the site.
 */

.booking-page { background: var(--bg-tint); }

.booking-main { padding-block: 1.5rem 3rem; }
@media (min-width: 48rem) { .booking-main { padding-block: 2.5rem 4rem; } }

.wrap-narrow { max-width: 40rem; }

.header-note {
  font-size: .8rem;
  color: var(--ink-mute);
  font-weight: 600;
}
@media (max-width: 30rem) { .header-note { display: none; } }

/* ------------------------------------------------------------------ */
/* Progress                                                           */
/* ------------------------------------------------------------------ */

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .4rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.progress li {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: .55rem;
  border-top: 3px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}
.progress li.is-current { color: var(--brand-dark); border-top-color: var(--brand); }
.progress li.is-done { color: var(--ink-soft); border-top-color: var(--brand); }

/* ------------------------------------------------------------------ */
/* Panels                                                            */
/* ------------------------------------------------------------------ */

.step-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 40rem) { .step-panel { padding: 2rem 1.9rem; } }

.step-title {
  font-size: clamp(1.4rem, 5.5vw, 1.85rem);
  font-weight: 800;
}
.step-sub {
  margin-top: .55rem;
  color: var(--ink-soft);
  font-size: .96rem;
}

.step-nav { margin-top: 1.4rem; }
.step-nav .btn { padding: .7rem 1.2rem; min-height: 2.75rem; font-size: .94rem; }

/* ------------------------------------------------------------------ */
/* Big tappable choices                                               */
/* ------------------------------------------------------------------ */

.choice-list {
  display: grid;
  gap: .7rem;
  margin-top: 1.4rem;
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: .9rem;
  width: 100%;
  text-align: left;
  padding: 1.05rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.choice:hover { border-color: var(--brand); background: #fbfdfd; }
.choice[aria-checked='true'] {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.choice-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--brand-dark);
  display: grid; place-items: center;
  flex: none;
}
.choice[aria-checked='true'] .choice-icon { background: #fff; }
.choice-icon svg { width: 1.3rem; height: 1.3rem; }

.choice-body { display: block; min-width: 0; }
.choice-body strong { display: block; font-size: 1.02rem; font-weight: 700; }
.choice-body small {
  display: block;
  margin-top: .22rem;
  font-size: .87rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.choice-price {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-mute);
  white-space: nowrap;
  padding-top: .15rem;
}
@media (max-width: 26rem) { .choice-price { display: none; } }

/* ------------------------------------------------------------------ */
/* Date strip                                                         */
/* ------------------------------------------------------------------ */

.date-strip {
  display: flex;
  gap: .5rem;
  margin-top: 1.3rem;
  padding-bottom: .6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.date-pill {
  flex: none;
  scroll-snap-align: start;
  width: 4.1rem;
  padding: .6rem .35rem .7rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.date-pill .dow {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.date-pill .dnum {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.03em;
}
.date-pill .open {
  display: block;
  font-size: .64rem;
  font-weight: 700;
  color: var(--brand);
}
.date-pill:hover:not([disabled]) { border-color: var(--brand); }
.date-pill[aria-selected='true'] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.date-pill[aria-selected='true'] .dow,
.date-pill[aria-selected='true'] .open { color: #d7efec; }
.date-pill[disabled] {
  opacity: .4;
  cursor: not-allowed;
  background: var(--bg-tint);
}
.date-pill[disabled] .open { color: var(--ink-mute); }

/* ------------------------------------------------------------------ */
/* Slot grid                                                          */
/* ------------------------------------------------------------------ */

.slots-wrap { margin-top: 1rem; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr));
  gap: .5rem;
}

.slot {
  padding: .8rem .4rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.slot:hover { border-color: var(--brand); }
.slot[aria-checked='true'] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.slots-empty {
  font-size: .92rem;
  color: var(--ink-mute);
  padding: .6rem 0;
}

/* ------------------------------------------------------------------ */
/* Summary card                                                       */
/* ------------------------------------------------------------------ */

.summary-card {
  margin: 1.2rem 0 1.4rem;
  padding: 1rem 1.1rem;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .91rem;
}
.summary-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: .4rem .8rem;
}
.summary-card dt { color: var(--ink-mute); font-weight: 600; }
.summary-card dd { margin: 0; font-weight: 600; }
.summary-card .edit {
  margin-top: .8rem;
  font-size: .85rem;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand);
  cursor: pointer;
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Details form                                                       */
/* ------------------------------------------------------------------ */

.fineprint {
  font-size: .82rem;
  color: var(--ink-mute);
  margin: 0 0 1.1rem;
  line-height: 1.5;
}

#submit-btn[data-busy='true'] { opacity: .65; pointer-events: none; }

/* ------------------------------------------------------------------ */
/* Confirmation                                                       */
/* ------------------------------------------------------------------ */

.done-mark {
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.done-mark svg { width: 1.9rem; height: 1.9rem; }

.done-actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.3rem;
}
@media (min-width: 30rem) { .done-actions { flex-direction: row; } }
.done-actions .btn { padding: .8rem 1.2rem; min-height: 2.9rem; font-size: .95rem; }

/* ------------------------------------------------------------------ */
/* Manage page                                                        */
/* ------------------------------------------------------------------ */

.manage-status {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .22rem .6rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.manage-status.confirmed { background: var(--ok-bg); color: var(--ok); }
.manage-status.cancelled { background: var(--err-bg); color: var(--err); }

/*
 * Honeypot: genuinely invisible, never focusable, and excluded from the
 * accessibility tree by aria-hidden on the wrapper. Positioned off-screen
 * rather than display:none, because some bots skip hidden inputs.
 */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ==================================================================== */
/* Compact service-type cards (step 1)                                  */
/*                                                                      */
/* The two options have to be comparable in one glance on a phone, so   */
/* price is promoted to a headline element and vertical padding is cut. */
/* Both cards now fit above the fold on a 375px iPhone SE.              */
/* ==================================================================== */

.choice-list { gap: .55rem; margin-top: 1.1rem; }

.choice {
  grid-template-columns: auto 1fr auto;
  gap: .7rem;
  padding: .8rem .85rem;
  align-items: center;
}

.choice-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
}
.choice-icon svg { width: 1.1rem; height: 1.1rem; }

.choice-body strong { font-size: .98rem; line-height: 1.25; }
.choice-body small {
  margin-top: .1rem;
  font-size: .8rem;
  line-height: 1.35;
  /* Two lines maximum, so a long description cannot push the second
     card below the fold. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price block: the thing being compared, so it reads first. */
.choice-price {
  display: block !important;   /* was hidden under 26rem */
  text-align: right;
  padding-top: 0;
  line-height: 1.15;
}
.choice-price .amt {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--brand-dark);
}
.choice-price .per {
  font-size: .7rem;
  font-weight: 600;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* "Soonest" line sits under the body text, not in its own block. */
.choice-next {
  grid-column: 2 / -1;
  margin-top: .3rem;
  font-size: .74rem;
}

/* Tighten the panel itself so the cards start higher up the screen. */
.booking-main { padding-block: 1rem 2rem; }
.step-panel { padding: 1.1rem 1rem; }
.step-title { font-size: clamp(1.25rem, 5vw, 1.6rem); }
.step-sub { margin-top: .4rem; font-size: .89rem; }
.progress { margin-bottom: 1.1rem; }

#area-note {
  margin-top: 1rem;
  font-size: .82rem;
  padding: .7rem .85rem;
}

/* Desktop can afford a little more room again. */
@media (min-width: 40rem) {
  .choice { padding: 1rem 1.1rem; gap: .9rem; }
  .choice-icon { width: 2.4rem; height: 2.4rem; }
  .choice-icon svg { width: 1.25rem; height: 1.25rem; }
  .choice-body strong { font-size: 1.04rem; }
  .choice-body small { font-size: .86rem; }
  .choice-price .amt { font-size: 1.3rem; }
  .booking-main { padding-block: 2rem 3rem; }
  .step-panel { padding: 1.9rem 1.8rem; }
}

/*
 * Price reads as one line: "$49 / 30 minutes".
 * styles.css stacks these for the wider layout; on the compact card the
 * inline form is what makes the two options directly comparable.
 */
.choice-price { white-space: nowrap; }
.choice-price .amt,
.choice-price .per { display: inline; }
.choice-price .per { margin-left: .15rem; }

/*
 * Two-column card: icon, then everything else.
 *
 * The price used to occupy a third column, which squeezed the description
 * to 130px on a phone and clipped it. Moving the price up beside the
 * title gives the description the full card width, so no service
 * information is lost.
 */
.choice[data-mode] { grid-template-columns: auto 1fr; }

.choice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
}
.choice-head strong { flex: 1 1 auto; min-width: 0; }
.choice-head .choice-price { flex: 0 0 auto; }

/* Full width now, so two lines is genuinely enough. */
.choice[data-mode] .choice-body small { -webkit-line-clamp: 2; }

/* The "soonest" line spans the text column under the description. */
.choice[data-mode] .choice-next { grid-column: 2 / -1; }
