/* =============================================================================
   LASH LOFT — CLIENT BOOKING EXPERIENCE
   css/booking.css

   Owns:  the booking modal (.ll-book*) and the "Reserve" affordance that
          js/booking.js attaches to every .service-card on the public site.

   Everything is namespaced `ll-` so it can never collide with styles.css.

   TOKENS
   ------
   The site's own :root palette is the source of truth. Every colour below is
   an alias of a styles.css token, with the brand value as a hard fallback so
   the modal still looks right if this file is ever loaded on its own.
============================================================================= */

:root {
  --ll-peach:       var(--peach, #D9C6B4);
  --ll-peach-soft:  var(--peach-soft, #E9DBCC);
  --ll-peach-deep:  var(--peach-deep, #967D66);
  /* TEXT accent only, and only at >=24px — see the contrast note below. */
  --ll-ink-accent:  var(--nude-ink, #8B7259);
  --ll-cream:       var(--cream, #D5C9B9);
  --ll-cream-light: var(--cream-light, #EFE8DE);
  --ll-beige:       var(--beige, #BFB2A0);
  --ll-bronze:      var(--bronze, #6F5A49);
  --ll-charcoal:    var(--charcoal, #2B2420);
  --ll-warm-gray:   var(--warm-gray, #6B5D54);
  --ll-white:       var(--white, #FFFFFF);

  --ll-shadow-soft: var(--shadow-soft, 0 10px 40px rgba(111, 90, 73, 0.08));
  --ll-shadow-med:  var(--shadow-med, 0 20px 60px rgba(111, 90, 73, 0.15));
  --ll-ease:        var(--transition, cubic-bezier(0.77, 0, 0.175, 1));

  /* Hairlines and washes derived from the bronze so they sit warm, never grey. */
  --ll-line:        rgba(111, 90, 73, 0.16);
  --ll-line-strong: rgba(111, 90, 73, 0.30);
  --ll-wash:        rgba(111, 90, 73, 0.05);

  /* A terracotta that belongs to this palette — never a system red. */
  --ll-alert:       #A6543F;
  --ll-alert-wash:  rgba(166, 84, 63, 0.09);

  /* The site moved from Fraunces to Jost. Jost carries the headings, the
     numerals and the italic accents; Inter carries small caps labels, buttons
     and UI chrome. Jost reads heavy at display sizes, so anything above ~24px
     is set at weight 300 (see .ll-pane-title / .ll-done-title / .ll-chosen-name). */
  --ll-display: 'Jost', system-ui, -apple-system, sans-serif;
  --ll-ui:      'Inter', system-ui, -apple-system, sans-serif;

  --ll-radius:    22px;
  --ll-radius-sm: 14px;
}

/* -----------------------------------------------------------------------------
   CONTRAST BUDGET — measured, not guessed. Do not regress these.

     --ll-ink-accent  #8B7259  on cream-light  3.71:1   large text only (>=24px)
     --ll-ink-accent  #8B7259  on white        4.52:1   passes AA at any size
     --ll-bronze      #6F5A49  on cream-light  5.34:1   passes AA at any size
     --ll-bronze      #6F5A49  on white        6.49:1   passes AA at any size
     --ll-bronze      #6F5A49  on cream        3.98:1   large text only
     --ll-warm-gray   #6B5D54  on cream-light  5.20:1   passes AA at any size
     --ll-charcoal    #2B2420  on cream        9.36:1   passes everywhere

   So: small type (<24px) sitting on --ll-cream or --ll-cream-light is charcoal,
   bronze or warm-gray — never --ll-ink-accent and never --ll-peach-deep.
   --ll-ink-accent is reserved for prices and display headings at 24px and up.
----------------------------------------------------------------------------- */

/* =============================================================================
   1. SERVICE-CARD AFFORDANCE  (lives on the page, not in the modal)
============================================================================= */

.service-card.ll-bookable {
  cursor: pointer;
  outline: none;
}

.service-card.ll-bookable:focus-visible {
  border-color: var(--ll-peach-deep);
  box-shadow: 0 0 0 3px rgba(139, 90, 60, 0.18), var(--ll-shadow-med);
  transform: translateY(-8px);
}

.service-card.ll-bookable:focus-visible::before { height: 100%; }

/* The card already lifts on hover in styles.css — this only adds the cue. */
.ll-card-reserve {
  position: absolute;
  right: 28px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  background: var(--ll-charcoal);
  color: var(--ll-cream-light);
  font-family: var(--ll-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ll-ease), transform 0.4s var(--ll-ease);
}

.ll-card-reserve .ll-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ll-ease);
}

.service-card.ll-bookable:hover .ll-card-reserve,
.service-card.ll-bookable:focus-visible .ll-card-reserve {
  opacity: 1;
  transform: translateY(0);
}

.service-card.ll-bookable:hover .ll-card-reserve .ll-arrow { transform: translateX(4px); }

/* A reserved gutter at the foot of every card, so the pill lands in empty
   space instead of across the last line of the description. */
.service-card.ll-bookable { padding-bottom: 58px; }

/* Touch devices have no hover — keep the cue permanently visible but quiet. */
@media (hover: none) {
  .ll-card-reserve {
    opacity: 1;
    transform: none;
    background: transparent;
    color: var(--ll-ink-accent);
    padding: 0;
  }
}

/* =============================================================================
   2. SHELL — scrim + sheet
============================================================================= */

.ll-book {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  font-family: var(--ll-ui);
  -webkit-font-smoothing: antialiased;
}

.ll-book[hidden] { display: none; }

/* The public stylesheet gives every <section> 120px of vertical padding. The
   panes are <section> elements inside a UI surface, not page sections, so they
   opt out — otherwise every step starts 120px down the sheet.
   Deliberately the ONLY element-level override in this file: `.ll-book el`
   out-specifies my own single-class rules and would quietly win over them. */
.ll-book section { padding: 0; }

.ll-book-scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 23, 20, 0.62);
  -webkit-backdrop-filter: blur(7px) saturate(115%);
  backdrop-filter: blur(7px) saturate(115%);
  opacity: 0;
  transition: opacity 0.5s var(--ll-ease);
}

.ll-book.is-open .ll-book-scrim { opacity: 1; }

.ll-book-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 1000px);
  max-height: min(92vh, 880px);
  background: var(--ll-cream-light);
  border-radius: var(--ll-radius);
  box-shadow: 0 48px 130px rgba(28, 23, 20, 0.42);
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.5s var(--ll-ease), transform 0.6s var(--ll-ease);
}

.ll-book.is-open .ll-book-sheet {
  opacity: 1;
  transform: none;
}

/* A single hairline of peach along the very top — the studio's signature. */
.ll-book-sheet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ll-peach-deep), var(--ll-peach), var(--ll-gold));
  z-index: 3;
}

/* =============================================================================
   3. HEADER
============================================================================= */

.ll-book-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 32px 18px;
  border-bottom: 1px solid var(--ll-line);
  background: var(--ll-cream-light);
}

.ll-eyebrow {
  display: block;
  font-family: var(--ll-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ll-ink-accent);
}

.ll-book-brandname {
  display: block;
  margin-top: 7px;
  font-family: var(--ll-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ll-charcoal);
}

.ll-book-brandname .ll-reg {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--ll-ink-accent);
}

.ll-book-close {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ll-line-strong);
  background: transparent;
  color: var(--ll-charcoal);
  cursor: pointer;
  transition: all 0.4s var(--ll-ease);
}

.ll-book-close:hover {
  background: var(--ll-charcoal);
  color: var(--ll-cream-light);
  border-color: var(--ll-charcoal);
  transform: rotate(90deg);
}

.ll-book-close:focus-visible {
  outline: 2px solid var(--ll-peach-deep);
  outline-offset: 3px;
}

/* =============================================================================
   4. PROGRESS
============================================================================= */

.ll-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--ll-line);
  background: linear-gradient(180deg, rgba(213, 201, 185, 0.24), transparent);
}

/* [hidden] must beat the display above, so it is stated explicitly. */
.ll-steps[hidden] { display: none; }

.ll-step {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.ll-step-num {
  width: 27px;
  height: 27px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ll-line-strong);
  font-family: var(--ll-display);
  font-size: 0.82rem;
  color: var(--ll-warm-gray);
  background: transparent;
  transition: all 0.45s var(--ll-ease);
}

.ll-step-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ll-warm-gray);
  white-space: nowrap;
  transition: color 0.45s var(--ll-ease);
}

.ll-step-line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 14px;
  background: var(--ll-line-strong);
  position: relative;
  overflow: hidden;
}

.ll-step-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ll-peach-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ll-ease);
}

.ll-step.is-done + .ll-step-line::after { transform: scaleX(1); }

.ll-step.is-active .ll-step-num {
  background: var(--ll-charcoal);
  border-color: var(--ll-charcoal);
  color: var(--ll-cream-light);
}

.ll-step.is-active .ll-step-label { color: var(--ll-charcoal); }

.ll-step.is-done .ll-step-num {
  background: var(--ll-peach-soft);
  border-color: var(--ll-peach-deep);
  color: var(--ll-bronze);
}

.ll-step.is-done .ll-step-label { color: var(--ll-ink-accent); }

/* =============================================================================
   5. BODY
============================================================================= */

.ll-book-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 30px 32px 34px;
}

.ll-pane { display: none; animation: ll-pane-in 0.55s var(--ll-ease) both; }
.ll-pane.is-active { display: block; }

/* Panes take focus on every step change so the new heading is announced —
   that is a programmatic focus, so it must not draw a ring. */
.ll-pane:focus { outline: none; }

@keyframes ll-pane-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.ll-pane-title {
  font-family: var(--ll-display);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ll-charcoal);
  margin: 8px 0 6px;
}

.ll-pane-title em {
  font-style: italic;
  color: var(--ll-ink-accent);
}

.ll-pane-sub {
  font-family: var(--ll-display);
  font-size: 1rem;
  color: var(--ll-warm-gray);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 56ch;
}

/* =============================================================================
   6. STEP 1 — SERVICE
============================================================================= */

.ll-chosen {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 30px 32px;
  border-radius: var(--ll-radius-sm);
  background: var(--ll-white);
  border: 1px solid var(--ll-line);
  box-shadow: var(--ll-shadow-soft);
  overflow: hidden;
}

.ll-chosen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ll-peach-deep);
}

.ll-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--ll-peach-soft);
  color: var(--ll-bronze);
  font-family: var(--ll-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ll-chosen-name {
  font-family: var(--ll-display);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ll-charcoal);
  margin: 14px 0 8px;
}

.ll-chosen-desc {
  font-family: var(--ll-display);
  font-size: 1rem;
  color: var(--ll-warm-gray);
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 14px;
}

.ll-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--ll-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ll-warm-gray);
}

.ll-meta .ll-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ll-peach-deep);
}

.ll-chosen-price {
  font-family: var(--ll-display);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ll-ink-accent);
  white-space: nowrap;
  text-align: right;
}

.ll-chosen-price small {
  display: block;
  font-family: var(--ll-ui);
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ll-warm-gray);
  margin-top: 9px;
}

.ll-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.ll-switch-note {
  font-family: var(--ll-display);
  font-size: 0.95rem;
  color: var(--ll-warm-gray);
}

/* ---- grouped picker ---- */

.ll-picker { margin-top: 22px; }
.ll-picker[hidden] { display: none; }

.ll-group + .ll-group { margin-top: 26px; }

.ll-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.ll-group-head span {
  font-family: var(--ll-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ll-ink-accent);
  white-space: nowrap;
}

.ll-group-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ll-line);
}

.ll-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ll-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  border-radius: var(--ll-radius-sm);
  border: 1px solid var(--ll-line);
  background: var(--ll-white);
  cursor: pointer;
  font-family: var(--ll-ui);
  transition: all 0.35s var(--ll-ease);
}

.ll-option:hover {
  border-color: var(--ll-peach-deep);
  transform: translateY(-2px);
  box-shadow: var(--ll-shadow-soft);
}

.ll-option:focus-visible {
  outline: 2px solid var(--ll-peach-deep);
  outline-offset: 2px;
}

.ll-option.is-selected {
  background: var(--ll-charcoal);
  border-color: var(--ll-charcoal);
}

.ll-option-name {
  display: block;
  font-family: var(--ll-display);
  font-size: 1.05rem;
  color: var(--ll-charcoal);
  line-height: 1.3;
}

.ll-option-dur {
  display: block;
  margin-top: 5px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ll-warm-gray);
}

.ll-option-price {
  font-family: var(--ll-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ll-ink-accent);
  white-space: nowrap;
}

.ll-option.is-selected .ll-option-name  { color: var(--ll-cream-light); }
.ll-option.is-selected .ll-option-dur   { color: rgba(239, 232, 222, 0.62); }
.ll-option.is-selected .ll-option-price { color: var(--ll-peach); }

/* =============================================================================
   7. STEP 2 — CALENDAR + SLOTS
============================================================================= */

.ll-when {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

/* ---- calendar ---- */

.ll-cal {
  background: var(--ll-white);
  border: 1px solid var(--ll-line);
  border-radius: var(--ll-radius-sm);
  box-shadow: var(--ll-shadow-soft);
  padding: 22px 22px 18px;
}

.ll-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ll-cal-month {
  font-family: var(--ll-display);
  font-size: 1.3rem;
  color: var(--ll-charcoal);
  line-height: 1.2;
  text-align: center;
}

.ll-cal-month em {
  font-style: italic;
  color: var(--ll-ink-accent);
}

.ll-cal-nav {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ll-line-strong);
  background: transparent;
  color: var(--ll-charcoal);
  cursor: pointer;
  transition: all 0.35s var(--ll-ease);
}

.ll-cal-nav:hover:not(:disabled) {
  background: var(--ll-charcoal);
  border-color: var(--ll-charcoal);
  color: var(--ll-cream-light);
}

.ll-cal-nav:focus-visible {
  outline: 2px solid var(--ll-peach-deep);
  outline-offset: 2px;
}

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

.ll-cal-dows,
.ll-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.ll-cal-dows { margin-bottom: 8px; }

.ll-cal-dows span {
  text-align: center;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ll-warm-gray);
  padding-bottom: 4px;
}

.ll-day {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--ll-wash);
  font-family: var(--ll-display);
  font-size: 0.98rem;
  color: var(--ll-charcoal);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.32s var(--ll-ease), background 0.32s var(--ll-ease),
              color 0.32s var(--ll-ease), border-color 0.32s var(--ll-ease),
              box-shadow 0.32s var(--ll-ease);
}

.ll-day.is-blank {
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.ll-day:hover:not(:disabled) {
  background: var(--ll-peach-soft);
  border-color: var(--ll-peach-deep);
  transform: translateY(-2px);
  box-shadow: var(--ll-shadow-soft);
}

.ll-day:focus-visible {
  outline: 2px solid var(--ll-peach-deep);
  outline-offset: 2px;
}

.ll-day:disabled {
  cursor: not-allowed;
  color: rgba(107, 93, 84, 0.42);
  background: transparent;
}

/* Closed / blocked days get a whisper of hatching so "shut" reads instantly. */
.ll-day.is-closed:disabled {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(139, 90, 60, 0.09) 0 1px,
    transparent 1px 6px
  );
}

.ll-day.is-full:disabled { text-decoration: line-through; }

.ll-day.is-today::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ll-peach-deep);
}

.ll-day.is-selected,
.ll-day.is-selected:hover {
  background: var(--ll-charcoal);
  border-color: var(--ll-charcoal);
  color: var(--ll-cream-light);
  transform: translateY(-2px);
  box-shadow: var(--ll-shadow-med);
}

.ll-day.is-selected::after { background: var(--ll-peach); }

.ll-day-free {
  font-family: var(--ll-ui);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ll-ink-accent);
  line-height: 1;
}

.ll-day.is-scarce .ll-day-free { color: var(--ll-bronze); }
.ll-day.is-selected .ll-day-free { color: var(--ll-peach); }
.ll-day.is-today::after { z-index: 1; }
.ll-day:has(.ll-day-free)::after { display: none; }

.ll-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ll-line);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ll-warm-gray);
}

.ll-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ll-legend-key {
  width: 13px;
  height: 13px;
  border-radius: 5px;
  background: var(--ll-wash);
  border: 1px solid var(--ll-line);
}

.ll-legend-key.is-selected { background: var(--ll-charcoal); border-color: var(--ll-charcoal); }
.ll-legend-key.is-closed {
  background-image: repeating-linear-gradient(-45deg, rgba(139, 90, 60, 0.28) 0 1px, transparent 1px 5px);
}

/* ---- slots ---- */

.ll-slots-panel {
  background: var(--ll-white);
  border: 1px solid var(--ll-line);
  border-radius: var(--ll-radius-sm);
  box-shadow: var(--ll-shadow-soft);
  padding: 22px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.ll-slots-head { margin-bottom: 16px; }

.ll-slots-date {
  font-family: var(--ll-display);
  font-size: 1.22rem;
  color: var(--ll-charcoal);
  line-height: 1.3;
}

.ll-slots-date em { font-style: italic; color: var(--ll-ink-accent); }

.ll-slots-hint {
  display: block;
  font-family: var(--ll-ui);
  margin-top: 6px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ll-warm-gray);
}

.ll-slot-group + .ll-slot-group { margin-top: 18px; }

.ll-slot-group-label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ll-ink-accent);
}

.ll-slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.ll-slot {
  position: relative;
  padding: 11px 6px;
  border-radius: 50px;
  border: 1px solid var(--ll-line);
  background: var(--ll-cream-light);
  font-family: var(--ll-display);
  font-size: 0.95rem;
  color: var(--ll-charcoal);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s var(--ll-ease);
}

.ll-slot .ll-mer {
  font-family: var(--ll-ui);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-left: 3px;
  color: var(--ll-warm-gray);
}

.ll-slot:hover:not(:disabled) {
  border-color: var(--ll-peach-deep);
  background: var(--ll-peach-soft);
  transform: translateY(-2px);
  box-shadow: var(--ll-shadow-soft);
}

.ll-slot:focus-visible {
  outline: 2px solid var(--ll-peach-deep);
  outline-offset: 2px;
}

.ll-slot.is-selected,
.ll-slot.is-selected:hover {
  background: var(--ll-charcoal);
  border-color: var(--ll-charcoal);
  color: var(--ll-cream-light);
}

.ll-slot.is-selected .ll-mer { color: var(--ll-peach); }

.ll-slot:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background: transparent;
  border-style: dashed;
  text-decoration: line-through;
  text-decoration-color: var(--ll-line-strong);
}

.ll-slot:disabled .ll-mer { text-decoration: none; }

.ll-slot-taken {
  display: block;
  margin-top: 2px;
  font-family: var(--ll-ui);
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ll-warm-gray);
  text-decoration: none;
}

/* ---- states ---- */

.ll-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 30px 12px;
}

.ll-state-mark {
  font-family: var(--ll-display);
  font-size: 1.7rem;
  color: var(--ll-peach-deep);
  line-height: 1;
}

.ll-state-title {
  font-family: var(--ll-display);
  font-size: 1.12rem;
  color: var(--ll-charcoal);
}

.ll-state-text {
  font-family: var(--ll-display);
  font-size: 0.95rem;
  color: var(--ll-warm-gray);
  max-width: 34ch;
  line-height: 1.6;
}

.ll-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.ll-skeleton i {
  display: block;
  height: 42px;
  border-radius: 50px;
  background: linear-gradient(
    90deg,
    var(--ll-wash) 0%,
    rgba(139, 90, 60, 0.11) 50%,
    var(--ll-wash) 100%
  );
  background-size: 220% 100%;
  animation: ll-shimmer 1.5s ease-in-out infinite;
}

@keyframes ll-shimmer {
  from { background-position: 140% 0; }
  to   { background-position: -40% 0; }
}

/* =============================================================================
   8. STEP 3 — DETAILS
============================================================================= */

.ll-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.ll-field { display: flex; flex-direction: column; }
.ll-field.is-wide { grid-column: 1 / -1; }

.ll-label {
  font-family: var(--ll-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ll-charcoal);
  margin-bottom: 9px;
}

.ll-label .ll-opt {
  color: var(--ll-warm-gray);
  letter-spacing: 0.14em;
}

/* 16px prevents the iOS zoom-on-focus jump. */
.ll-input,
.ll-textarea {
  width: 100%;
  font-family: var(--ll-ui);
  font-size: 16px;
  font-weight: 300;
  color: var(--ll-charcoal);
  background: var(--ll-white);
  border: 1px solid var(--ll-line);
  border-radius: var(--ll-radius-sm);
  padding: 15px 18px;
  outline: none;
  transition: border-color 0.3s var(--ll-ease), box-shadow 0.3s var(--ll-ease);
}

.ll-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.ll-input::placeholder,
.ll-textarea::placeholder { color: rgba(107, 93, 84, 0.5); }

.ll-input:focus,
.ll-textarea:focus {
  border-color: var(--ll-peach-deep);
  box-shadow: 0 0 0 3px rgba(139, 90, 60, 0.12);
}

.ll-field.has-error .ll-input,
.ll-field.has-error .ll-textarea {
  border-color: var(--ll-alert);
  background: var(--ll-alert-wash);
}

.ll-error {
  display: none;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--ll-alert);
  letter-spacing: 0.02em;
}

.ll-field.has-error .ll-error { display: block; }

.ll-hint {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--ll-warm-gray);
}

.ll-summary {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 20px 24px;
  border-radius: var(--ll-radius-sm);
  background: var(--ll-cream);
  border: 1px solid var(--ll-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.ll-summary-line {
  font-family: var(--ll-display);
  font-size: 1.05rem;
  color: var(--ll-charcoal);
  line-height: 1.5;
}

.ll-summary-line em { font-style: italic; color: var(--ll-bronze); }

.ll-summary-price {
  font-family: var(--ll-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ll-bronze);
  white-space: nowrap;
}

.ll-deposit-note {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--ll-display);
  font-size: 0.92rem;
  color: var(--ll-warm-gray);
  line-height: 1.6;
}

.ll-deposit-note::before {
  content: '✦';
  color: var(--ll-peach-deep);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =============================================================================
   9. RECOVERY — "that slot just went"
============================================================================= */

.ll-recover {
  grid-column: 1 / -1;
  padding: 22px 24px;
  border-radius: var(--ll-radius-sm);
  background: var(--ll-alert-wash);
  border: 1px solid rgba(166, 84, 63, 0.28);
  animation: ll-pane-in 0.45s var(--ll-ease) both;
}

.ll-recover[hidden] { display: none; }

.ll-recover-title {
  font-family: var(--ll-display);
  font-size: 1.15rem;
  color: var(--ll-charcoal);
  margin-bottom: 6px;
}

.ll-recover-title em { font-style: italic; color: var(--ll-alert); }

.ll-recover-text {
  font-family: var(--ll-display);
  font-size: 0.95rem;
  color: var(--ll-warm-gray);
  line-height: 1.6;
  margin-bottom: 14px;
}

.ll-recover-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ll-recover-list .ll-slot { background: var(--ll-white); }

.ll-recover-day {
  padding: 11px 18px;
  border-radius: 50px;
  border: 1px solid var(--ll-line-strong);
  background: var(--ll-white);
  font-family: var(--ll-display);
  font-size: 0.95rem;
  color: var(--ll-charcoal);
  cursor: pointer;
  transition: all 0.3s var(--ll-ease);
}

.ll-recover-day:hover {
  background: var(--ll-charcoal);
  border-color: var(--ll-charcoal);
  color: var(--ll-cream-light);
  transform: translateY(-2px);
}

/* =============================================================================
   10. CONFIRMATION
============================================================================= */

.ll-done { text-align: center; padding: 6px 0 4px; }

.ll-done-mark {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ll-peach-soft);
  color: var(--ll-bronze);
  border: 1px solid var(--ll-peach-deep);
  animation: ll-pop 0.7s var(--ll-ease) both;
}

@keyframes ll-pop {
  from { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  to   { transform: scale(1); opacity: 1; }
}

.ll-done-title {
  font-family: var(--ll-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--ll-charcoal);
  line-height: 1.18;
  margin-bottom: 12px;
}

.ll-done-title em { font-style: italic; color: var(--ll-ink-accent); }

.ll-done-text {
  font-family: var(--ll-display);
  font-size: 1.05rem;
  color: var(--ll-warm-gray);
  line-height: 1.7;
  max-width: 48ch;
  margin: 0 auto 26px;
}

.ll-ticket {
  text-align: left;
  max-width: 520px;
  margin: 0 auto 26px;
  background: var(--ll-white);
  border: 1px solid var(--ll-line);
  border-radius: var(--ll-radius-sm);
  box-shadow: var(--ll-shadow-soft);
  overflow: hidden;
}

.ll-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--ll-charcoal);
  color: var(--ll-cream-light);
}

.ll-ticket-head .ll-eyebrow { color: var(--ll-peach); }

.ll-ticket-ref {
  font-family: var(--ll-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--ll-cream-light);
}

.ll-ticket-body { padding: 6px 24px 18px; }

.ll-ticket-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ll-line);
}

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

.ll-ticket-k {
  font-family: var(--ll-ui);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ll-warm-gray);
  white-space: nowrap;
}

.ll-ticket-v {
  font-family: var(--ll-display);
  font-size: 1.02rem;
  color: var(--ll-charcoal);
  text-align: right;
}

.ll-ticket-v em { font-style: italic; color: var(--ll-ink-accent); }

.ll-pending {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(201, 169, 97, 0.16);
  border: 1px solid rgba(201, 169, 97, 0.5);
  font-family: var(--ll-ui);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ll-bronze);
  margin-bottom: 18px;
}

.ll-pending::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ll-gold);
  animation: ll-pulse 2s ease-in-out infinite;
}

@keyframes ll-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}

.ll-done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ll-done-foot {
  margin-top: 24px;
  font-family: var(--ll-display);
  font-size: 0.9rem;
  color: var(--ll-warm-gray);
  line-height: 1.7;
}

.ll-done-foot a {
  color: var(--ll-bronze);
  border-bottom: 1px solid var(--ll-peach-deep);
  padding-bottom: 1px;
}

/* =============================================================================
   11. FOOTER + BUTTONS
============================================================================= */

.ll-book-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  border-top: 1px solid var(--ll-line);
  background: var(--ll-cream);
}

.ll-book-foot[hidden] { display: none; }

.ll-foot-recap {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--ll-display);
  font-size: 0.95rem;
  color: var(--ll-charcoal);
  line-height: 1.4;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ll-foot-recap em { font-style: italic; color: var(--ll-bronze); }

/* Used in the footer recap and the step-3 summary alike. */
.ll-sep { color: var(--ll-peach-deep); margin: 0 9px; }

.ll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px 30px;
  border-radius: 50px;
  border: 1px solid transparent;
  font-family: var(--ll-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.4s var(--ll-ease);
}

.ll-btn:focus-visible {
  outline: 2px solid var(--ll-peach-deep);
  outline-offset: 3px;
}

.ll-btn-solid {
  background: var(--ll-charcoal);
  color: var(--ll-cream-light);
}

.ll-btn-solid:hover:not(:disabled) {
  background: var(--ll-peach-deep);
  transform: translateY(-3px);
  box-shadow: var(--ll-shadow-med);
}

.ll-btn-ghost {
  background: transparent;
  color: var(--ll-charcoal);
  border-color: var(--ll-line-strong);
}

.ll-btn-ghost:hover:not(:disabled) {
  background: var(--ll-charcoal);
  border-color: var(--ll-charcoal);
  color: var(--ll-cream-light);
  transform: translateY(-3px);
}

.ll-btn-wa {
  background: var(--ll-bronze);
  color: var(--ll-cream-light);
}

.ll-btn-wa:hover { transform: translateY(-3px); box-shadow: var(--ll-shadow-med); }

.ll-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.ll-btn[hidden] { display: none; }

.ll-btn .ll-arrow { transition: transform 0.4s var(--ll-ease); }
.ll-btn:hover:not(:disabled) .ll-arrow { transform: translateX(4px); }
.ll-btn-ghost:hover:not(:disabled) .ll-arrow-back { transform: translateX(-4px); }

.ll-btn.is-busy { pointer-events: none; opacity: 0.75; }

.ll-spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: ll-spin 0.8s linear infinite;
}

@keyframes ll-spin { to { transform: rotate(360deg); } }

/* Screen-reader-only live region text. */
.ll-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================================
   12. RESPONSIVE
============================================================================= */

@media (max-width: 940px) {
  .ll-when { grid-template-columns: 1fr; gap: 22px; }
  .ll-options { grid-template-columns: 1fr; }
  .ll-slots-panel { min-height: 0; }
}

@media (max-width: 760px) {
  /* Full-height sheet anchored to the bottom of the viewport. */
  .ll-book {
    padding: 0;
    align-items: flex-end;
  }

  .ll-book-sheet {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    transform: translateY(100%);
  }

  .ll-book.is-open .ll-book-sheet { transform: none; }

  .ll-book-head { padding: 18px 20px 14px; }
  .ll-book-brandname { font-size: 1.25rem; }
  .ll-steps { padding: 12px 20px; gap: 7px; }
  .ll-step-label { display: none; }
  .ll-step.is-active .ll-step-label {
    display: block;
    font-size: 0.58rem;
  }
  .ll-book-body { padding: 22px 20px 28px; }

  .ll-chosen {
    grid-template-columns: 1fr;
    padding: 24px 22px;
    gap: 14px;
  }
  .ll-chosen-price { text-align: left; font-size: 1.9rem; }
  .ll-chosen-price small { margin-top: 6px; }
  .ll-chosen-name { font-size: 1.5rem; }

  .ll-form { grid-template-columns: 1fr; }

  .ll-cal { padding: 16px 14px 14px; }
  .ll-cal-dows, .ll-cal-grid { gap: 4px; }
  .ll-day { border-radius: 11px; font-size: 0.9rem; min-height: 38px; }
  .ll-day-free { display: none; }
  .ll-slots-panel { padding: 18px 16px; }
  .ll-slot-list { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }

  .ll-book-foot {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  .ll-foot-recap { display: none; }
  .ll-btn { padding: 15px 20px; font-size: 0.62rem; letter-spacing: 0.18em; flex: 1 1 auto; }
  .ll-done-actions .ll-btn { flex: 1 1 100%; }
  .ll-summary { padding: 16px 18px; }
  .ll-ticket-head { padding: 15px 18px; }
  .ll-ticket-body { padding: 4px 18px 14px; }

  .ll-card-reserve { right: 20px; bottom: 14px; }
  .service-card.ll-bookable { padding-bottom: 48px; }
}

@media (max-width: 420px) {
  .ll-cal-month { font-size: 1.12rem; }
  .ll-cal-nav { width: 34px; height: 34px; }
  .ll-ticket-row { flex-direction: column; gap: 4px; }
  .ll-ticket-v { text-align: left; }
}

/* =============================================================================
   13. REDUCED MOTION
============================================================================= */

@media (prefers-reduced-motion: reduce) {
  .ll-book-scrim,
  .ll-book-sheet,
  .ll-pane,
  .ll-day,
  .ll-slot,
  .ll-option,
  .ll-btn,
  .ll-book-close,
  .ll-cal-nav,
  .ll-card-reserve,
  .ll-done-mark,
  .ll-recover {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .ll-book-sheet { transform: none !important; }
  .ll-skeleton i, .ll-pending::before, .ll-spin { animation: none !important; }
  .ll-btn:hover, .ll-day:hover, .ll-slot:hover, .ll-option:hover,
  .service-card.ll-bookable:focus-visible { transform: none !important; }
  .ll-book-close:hover { transform: none !important; }
}
