/* Booking form, "your booking" page and demo page. Uses the colours in styles.css. */

.flow-page { padding-bottom: 0; }
.flow { max-width: 620px; padding: 18px 0 140px; }
.flow__title {
  margin: 14px 0 0;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.flow__lead { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; }
.flow__sub { margin: 34px 0 12px; font-size: 1.05rem; font-weight: 700; }
.flow__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.flow__actions form { margin: 0; }
.muted { color: var(--muted); }
.big-date { display: block; margin: 6px 0 12px; font-size: 1.35rem; color: var(--white); }

/* progress */
.progress { height: 4px; border-radius: 4px; background: var(--panel-2); overflow: hidden; margin-bottom: 22px; }
.progress span { display: block; height: 100%; width: 0; background: var(--bright); transition: width .3s; }

/* choice cards (radio / checkbox) */
.choices { display: grid; gap: 12px; margin-top: 24px; }
.choices--grid { grid-template-columns: 1fr 1fr; margin-top: 0; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  padding: 18px 52px 18px 18px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color .15s, background .15s;
}
.choice__body::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 18px;
  width: 22px;
  height: 22px;
  border: 2px solid #3a3e48;
  border-radius: 50%;
}
.choice input[type="checkbox"] + .choice__body::after { border-radius: 7px; }
.choice input:checked + .choice__body { border-color: var(--bright); background: linear-gradient(180deg, rgba(16,33,184,.22), rgba(16,33,184,.06)), var(--panel); }
.choice input:checked + .choice__body::after {
  border-color: var(--bright);
  background: var(--bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.choice input:focus-visible + .choice__body { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.choice__top strong { color: var(--white); font-size: 1.02rem; }
.choice__price { color: var(--ink); font-weight: 700; }
.choice__text { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.choice__time { margin-top: 2px; color: #c3c7d0; font-size: .85rem; font-weight: 600; }
.choice__tag {
  align-self: flex-start;
  margin-bottom: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--royal);
  color: var(--white);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.choices--grid .choice__body { padding: 16px 40px 16px 16px; }
.choices--grid .choice__body::after { top: 16px; right: 14px; }

/* text fields */
.field { display: block; margin-top: 18px; }
.field > span { display: block; margin-bottom: 8px; font-weight: 600; color: var(--white); font-size: .95rem; }
.field > span small { color: var(--muted); font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--white);
  font: 500 1rem/1.4 var(--font);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6c717c; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bright); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(16, 33, 184, .16);
  border: 1px solid rgba(53, 87, 255, .4);
  color: var(--text);
  font-size: .95rem;
}

/* calendar */
.cal { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head strong { color: var(--white); font-size: 1.05rem; }
.cal__nav {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__wd { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0 6px; }
.cal__day {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--white);
  font: 600 .98rem/1 var(--font);
  cursor: pointer;
}
.cal__day:hover:not(:disabled) { background: #1c1f27; }
.cal__day:disabled { background: transparent; color: #4b505a; cursor: default; text-decoration: line-through; text-decoration-color: #3a3e48; }
.cal__day--blank { visibility: hidden; }
.cal__day[aria-pressed="true"] { background: var(--royal); box-shadow: inset 0 0 0 2px var(--bright); }
.cal__day[aria-pressed="true"]::after {
  content: attr(data-n);
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: .62rem;
  font-weight: 800;
  color: #c9d3ff;
}
.cal__key { display: flex; gap: 16px; margin-top: 12px; font-size: .78rem; color: var(--muted); }

/* picked days */
.picked { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.picked__item { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.picked__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.picked__top strong { color: var(--white); }
.picked__remove {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span {
  display: block;
  padding: 10px 4px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: .86rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.seg input:checked + span { border-color: var(--bright); background: rgba(16, 33, 184, .25); color: var(--white); }
.seg input:disabled + span { opacity: .35; text-decoration: line-through; cursor: default; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.count { margin-top: 14px; font-weight: 700; color: var(--ink); }

/* summary */
.summary { margin: 28px 0 0; padding: 6px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.summary__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "k edit" "v v";
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.summary__row:last-child { border-bottom: 0; }
.summary dt { grid-area: k; color: var(--muted); font-size: .85rem; font-weight: 600; }
.summary dd { grid-area: v; margin: 0; color: var(--white); overflow-wrap: anywhere; }
.summary__edit { grid-area: edit; background: none; border: 0; padding: 0; color: var(--ink); font: 700 .9rem var(--font); cursor: pointer; }
.fine { margin-top: 18px; color: var(--muted); font-size: .92rem; }

.error {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(220, 60, 60, .12);
  border: 1px solid rgba(240, 90, 90, .45);
  color: #ffd5d5;
  font-weight: 600;
}

/* bottom bar with Back / Next */
.stepbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.stepbar__inner { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; }
.stepbar .btn { min-height: 54px; }
.stepbar #next { flex: 1; }
.stepbar .btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn[hidden] { display: none; }

.step[hidden] { display: none; }

/* demo page */
.dev { display: grid; gap: 28px; padding: 18px 0 80px; }
.dev__intro { max-width: 760px; }
.dev__col h2 { margin: 0 0 14px; font-size: 1.2rem; }
.tg { display: grid; gap: 14px; }
.tg__msg { max-width: 460px; padding: 14px; border-radius: 16px; background: #17212b; border: 1px solid #22303d; }
.tg__text { white-space: pre-wrap; font-size: .92rem; line-height: 1.5; color: #f2f5f8; }
.tg__text b { color: #fff; }
.tg__row { display: flex; gap: 6px; margin-top: 6px; }
.tg__row form { flex: 1; margin: 0; display: flex; }
.tg__btn {
  flex: 1;
  display: block;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: #2b5278;
  color: #fff;
  font: 600 .86rem var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.tg__btn:hover { background: #33618f; }
.tg__toast { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: #0e1621; color: #9fd0ff; font-size: .85rem; }
.tg__time { margin: 8px 0 0; color: #6d7f8f; font-size: .75rem; text-align: right; }
.mail { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mail a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; }
.mail strong { display: block; color: var(--white); }
.mail span { color: var(--muted); font-size: .85rem; }

@media (min-width: 960px) {
  .dev { grid-template-columns: 1fr 1fr; }
  .dev__intro { grid-column: 1 / -1; }
}

/* what's included in the chosen clean */
.included { margin-top: 6px; }
.included__intro { margin: -4px 0 10px; color: var(--muted); font-size: .92rem; }
.included ul { display: grid; gap: 8px; margin: 0; padding: 16px 18px; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.included li { display: flex; gap: 10px; font-size: .95rem; line-height: 1.45; }
.included li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .5em; border-radius: 50%; background: var(--bright); }

/* /dev/emails preview */
.mails { display: grid; gap: 34px; }
.mails__item { min-width: 0; }
.mails__when { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--white); font-weight: 700; }
.mails__when span {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--royal);
  font-size: .85rem;
}
.mails__subject { margin: 6px 0 12px 38px; color: var(--muted); font-size: .9rem; }
.mails__subject strong { color: var(--text); }
.mailframe { display: block; width: 100%; max-width: 420px; height: 900px; border: 0; border-radius: 18px; background: #eef0f3; }
@media (min-width: 960px) {
  .mails { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1 / -1; }
}

/* ---- privacy page */
.legal h2 { margin: 34px 0 0; font-size: 1.15rem; }
.legal p, .legal ul { margin: 10px 0 0; color: var(--text); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a:not(.btn) { color: var(--ink); }
.legal .flow__actions { margin-top: 34px; }

/* ---- small footer on the booking, privacy, terms and booking-status pages */
.foot--slim { margin-top: 48px; }
.foot--slim a { color: inherit; }
.legal__form { margin-top: 12px; padding: 14px 18px; border: 1px dashed #3a3e48; border-radius: 14px; background: var(--panel); }
.legal__form p { margin: 6px 0 0; }

/* ==========================================================
   Booking page (book.html): a picture, the steps, the form
   ========================================================== */
.bk__main { max-width: 620px; margin: 0 auto; padding: 6px 0 140px; }

/* Phones: the picture is a banner on the first step only */
.bk__side { display: none; }
.book-page[data-step="service"] .bk__side { display: block; }
.bk__media { position: relative; height: 200px; margin-top: 8px; border-radius: 20px; overflow: hidden; background: var(--panel); }
.bk__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.bk__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.55) 52%, rgba(0,0,0,.05) 85%);
}
.bk__intro { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; }
.bk__intro .eyebrow { font-size: .66rem; }
.bk__headline { margin: 8px 0 0; max-width: 12em; color: var(--white); font-size: 1.4rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.bk__perks { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.bk__perks li {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-size: .74rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sofar { display: none; } /* phones show the price in the bottom bar instead */

/* Progress: six bars, and "Step 2 of 6 - Your car" */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; }
.steps__item { height: 4px; border-radius: 4px; background: var(--panel-2); transition: background .25s; }
.steps__item.is-done { background: var(--royal); }
.steps__item.is-on { background: var(--bright); }
.steps__label { display: none; }
.steps__caption { margin: 14px 0 0; color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.book-page[data-step="done"] .steps,
.book-page[data-step="done"] .steps__caption { display: none; }
.book-page .flow__title { margin-top: 10px; outline: none; }

/* Clean cards: grouped (full valet / outside or inside only), and the price is the big thing */
.choices__group { margin: 14px 0 -2px; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.choices__group:first-child { margin-top: 0; }
.choice input:checked + .choice__body { box-shadow: 0 14px 34px -18px rgba(53, 87, 255, .9); }
.choice--service .choice__body { gap: 6px; padding: 20px 56px 20px 20px; }
.choice__name { color: var(--white); font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.choice__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.choice__amount { color: var(--white); font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.choice--service .choice__time { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 600; }
.choice--service .choice__text { margin-top: 2px; font-size: .95rem; }
.choice--service .choice__body::after { top: 22px; right: 20px; }

/* Size cards with a little car */
.choice--size .choice__body { gap: 4px; min-height: 128px; padding: 16px 40px 16px 16px; }
.choice__car { width: 60px; height: 27px; margin-bottom: 6px; color: #6c717c; transition: color .15s; }
.choice--size input:checked + .choice__body .choice__car { color: var(--ink); }
.choice--size .choice__name { font-size: 1rem; }

/* The booking terms tickbox */
.agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  cursor: pointer;
}
.agree:has(input:checked) { border-color: var(--bright); }
.agree input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--bright); cursor: pointer; }
.agree span { color: var(--text); font-size: .92rem; line-height: 1.5; }
.agree a { color: var(--ink); font-weight: 700; }

/* Bottom bar: Back, the clean and price so far, Next */
.book-page .stepbar__inner { align-items: center; }
.book-page #back { padding: 0 18px; }
.book-page .stepbar #next { flex: 0 0 auto; min-width: 46%; }
.stepbar__price { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.stepbar__price span { overflow: hidden; color: var(--muted); font-size: .74rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.stepbar__price strong { color: var(--white); font-size: 1.15rem; font-weight: 800; }

/* Sent */
.step--done { padding-top: 22px; }
.done__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--royal);
  box-shadow: 0 14px 40px -14px rgba(53, 87, 255, .95);
  color: #fff;
}
.done__icon svg { width: 30px; height: 30px; }
.next { counter-reset: n; display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.next li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.next li::before {
  content: counter(n);
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 800;
}
.next strong { color: var(--white); }
.next span { color: var(--muted); font-size: .92rem; }

.bk__foot { margin-top: 0; padding-bottom: 104px; }

/* Big screens: the picture and the booking so far on the left, the form on the right */
@media (min-width: 960px) {
  .book-page .bk { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 22px; }
  .bk__side,
  .book-page[data-step] .bk__side { display: block; position: sticky; top: 22px; }
  .bk__media { height: min(540px, calc(100vh - 230px)); min-height: 360px; margin: 0; border-radius: 24px; }
  .bk__media img { object-position: 50% 42%; }
  .bk__media::after { background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.88) 100%); }
  .bk__intro { left: 26px; right: 26px; bottom: 24px; }
  .bk__headline { font-size: 1.75rem; }
  .sofar { display: block; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
  .sofar[hidden] { display: none; }
  .sofar__title { margin: 0 0 4px; color: var(--white); font-weight: 700; }
  .sofar__list { display: grid; margin: 0; }
  .sofar__list div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .sofar__list dt { color: var(--muted); }
  .sofar__list dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
  .sofar__total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 0; }
  .sofar__total span { color: var(--muted); font-weight: 600; }
  .sofar__total strong { color: var(--white); font-size: 1.5rem; font-weight: 800; }

  .bk__main { max-width: 640px; margin: 0; padding: 0 0 40px; }
  .steps { gap: 10px; margin-top: 2px; }
  .steps__item,
  .steps__item.is-done,
  .steps__item.is-on { height: auto; padding-top: 10px; border-radius: 0; background: none; border-top: 3px solid var(--panel-2); }
  .steps__item.is-done { border-top-color: var(--royal); }
  .steps__item.is-on { border-top-color: var(--bright); }
  .steps__label { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; }
  .steps__item.is-on .steps__label { color: var(--white); }
  .steps__caption { display: none; }
  .book-page .flow__title { margin-top: 26px; }

  /* Back and Next sit under the form and stay in view; the price is in the panel on the left */
  .book-page .stepbar {
    position: sticky;
    bottom: 0;
    margin-top: 24px;
    padding: 18px 0 22px;
    border-top: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0), #000 35%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .book-page .stepbar__inner { max-width: none; }
  .book-page .stepbar__price { visibility: hidden; }
  .book-page .stepbar #next { min-width: 220px; }
  .bk__foot { padding-bottom: 28px; }
}
