/* Public booking form — extends app.css */
.bf { min-height: 100vh; }
.bf.is-embed { background: transparent; min-height: 0; }
.bf-wrap { width: min(900px, 100%); margin: 0 auto; padding: 28px 16px 48px; }
.is-embed .bf-wrap { padding: 4px; }
.bf-card { padding: clamp(18px, 3.5vw, 32px); }
.is-embed .bf-card { box-shadow: none; }

.bf-logo { display: flex; justify-content: center; padding: 4px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.bf-logo img { height: auto; width: min(300px, 70vw); }
.logo-d { display: none; }
[data-scheme="dark"] .logo-l { display: none; }
[data-scheme="dark"] .logo-d { display: block; }

.bf-sec { margin-bottom: 26px; }
.bf-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bf-sec-head h2 { font-size: 17px; font-weight: 720; }
.bf-sec-head .muted { font-size: 13px; }
#picked.has { color: var(--c1); font-weight: 650; }

/* Car picker */
.car-tools { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
.car-tools .chip { cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.car-tools input { width: 200px; height: 36px; font-size: 13.5px; }
.cars { list-style: none; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 372px; overflow-y: auto; border-radius: var(--r); background: color-mix(in srgb, var(--text) 3%, transparent); }
.car { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ic info act" "ic rate act"; align-items: center; gap: 0 12px; padding: 11px 12px; border-radius: var(--r-sm); background: var(--surface-solid); border: 1.5px solid transparent; transition: border-color .15s, box-shadow .15s; }
.car.on { border-color: var(--c1); box-shadow: 0 6px 18px -12px var(--c1); }
.car[hidden] { display: none !important; }
.car-ic { grid-area: ic; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c1) 10%, transparent); color: var(--c1); }
.car.on .car-ic { background: var(--grad); color: #fff; }
.car-info { grid-area: info; min-width: 0; }
.car-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-info small, .car-rate small { color: var(--muted); font-size: 12px; }
.car-rate { grid-area: rate; font-variant-numeric: tabular-nums; }
.car-rate b { font-size: 13.5px; margin-right: 4px; }
.car-act { grid-area: act; }
.car .stepper { display: none; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.car.on .stepper { display: inline-flex; }
.car.on .add { display: none; }
.stepper button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; color: var(--text); cursor: pointer; }
.stepper button:hover { background: color-mix(in srgb, var(--c1) 12%, transparent); }
.stepper input { width: 34px; height: 32px; padding: 0; border: 0; text-align: center; font-weight: 700; background: none; box-shadow: none !important; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Trip */
.seg-opt { flex-direction: row; gap: 0; font-size: 13px; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg-opt input:checked + span { background: var(--grad); color: #fff; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--c1); outline-offset: 2px; }
.trip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.trip-col { display: grid; gap: 12px; align-content: start; padding: 0 22px; }
.trip-col:first-child { padding-left: 0; border-right: 1px solid var(--line-strong); }
.trip-col:last-child { padding-right: 0; }
.radios { display: flex; gap: 18px; flex-wrap: wrap; }
.radio { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; color: var(--text-2); cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--c1); margin: 0; }
.loc-fixed { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: var(--r); background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text-2); font-size: 14px; }
.loc-fixed .ic { color: var(--c1); }
.loc input { height: 46px; }
.dt { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; border-radius: var(--r); background: color-mix(in srgb, var(--text) 5%, transparent); }
.dt label { padding: 8px 14px 6px; gap: 2px; font-size: 12px; color: var(--muted); }
.dt label + label { border-left: 1px solid var(--line-strong); }
.dt label span { display: flex; align-items: center; gap: 6px; }
.dt label span .ic { color: var(--c1); }
.dt input { height: 30px; padding: 0; border: 0; background: none; box-shadow: none !important; font-weight: 600; font-size: 14.5px; }

.consent { margin: 14px 0 0; font-size: 13.5px; color: var(--text-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.invalid { border-color: var(--err) !important; box-shadow: 0 0 0 3px var(--err-bg) !important; }
.dt.invalid, .cars.invalid { box-shadow: 0 0 0 2px var(--err) !important; }

/* Summary */
.summary { position: sticky; bottom: 8px; z-index: 5; padding: 14px 16px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface-solid) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line-strong); box-shadow: 0 14px 30px -18px rgba(15, 26, 46, .45); }
.sum-lines { display: grid; gap: 3px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sum-lines:not(:empty) { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-strong); }
.sum-lines div { display: flex; justify-content: space-between; gap: 12px; }
.sum-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sum-days { font-weight: 700; font-size: 15px; }
.sum-days b { color: var(--err); font-weight: 760; }
.sum-days.ok b { color: var(--c1); }
.sum-price { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.sum-price b { font-size: 22px; font-weight: 780; font-stretch: 110%; font-variation-settings: "wdth" 110; font-variant-numeric: tabular-nums; }
.sum-price small { font-size: 12px; color: var(--muted); }
#submit { min-width: 170px; }
#submit.loading span::after { content: "…"; }

.bf-success { text-align: center; padding: 16px 8px 8px; }
.bf-success h2 { font-size: 26px; margin: 16px 0 10px; }
.bf-success p { max-width: 46ch; margin: 0 auto 12px; }
.bf-tick { width: 68px; height: 68px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px var(--c1); }

@media (max-width: 720px) {
  .cars { grid-template-columns: minmax(0, 1fr); max-height: 330px; }
  .trip-grid { grid-template-columns: 1fr; gap: 20px; }
  .trip-col, .trip-col:first-child, .trip-col:last-child { padding: 0; border: 0; }
  .car-tools input { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; }
  .chip { flex: none; }
  .sum-row { gap: 10px; }
  #submit { width: 100%; }
}
[data-scheme="dark"] .car-ic, [data-scheme="dark"] .loc-fixed .ic, [data-scheme="dark"] .dt label span .ic { color: #7cc0ea; }
[data-scheme="dark"] .car-ic { background: rgba(124, 192, 234, .12); }
[data-scheme="dark"] .sum-days.ok b, [data-scheme="dark"] #picked.has { color: #7cc0ea; }
@media (max-width: 720px) { .summary { position: static; } }

/* ---------- v3: simplified full form ---------- */
.bf-sec-head h2 { display: flex; align-items: center; gap: 10px; }
.bf-sec-head .n { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 750; }
.dates2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.more { margin-top: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 0 14px; }
.more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; height: 46px; font-weight: 650; font-size: 14px; color: var(--text-2); }
.more summary::-webkit-details-marker { display: none; }
.more summary .ic { color: var(--c1); transition: transform .2s var(--ease); }
.more[open] summary .ic { transform: rotate(45deg); }
.more-body { padding: 4px 0 16px; }
.promo { display: flex; gap: 6px; }
.promo input { flex: 1; text-transform: uppercase; }
.promo .btn { height: 44px; }
#promo-msg.good { color: var(--ok); font-weight: 650; }
#promo-msg.bad { color: var(--err); font-weight: 600; }
.sum-lines .disc { color: var(--ok); font-weight: 650; }
.file input[type="file"] { height: auto; padding: 9px; font-size: 13px; }
.file input[type="file"]::file-selector-button { border: 0; border-radius: 8px; padding: 7px 12px; margin-right: 10px; background: color-mix(in srgb, var(--c1) 12%, transparent); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; }
.selfq { font-size: 13.5px; }
.summary .fine { margin: 10px 0 0; justify-content: center; }

/* ---------- v3: short hero form ---------- */
.is-hero { min-height: 0; background: transparent; }
.is-hero .mesh { display: none; }
.hero-wrap { padding: 6px; }
.hero-form { padding: 18px 20px 14px; border-radius: 22px; --g-bg: color-mix(in srgb, var(--surface-solid) 82%, transparent); }
.hero-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hero-head h1 { font-size: 20px; font-weight: 760; font-stretch: 112%; font-variation-settings: "wdth" 112; }
.hero-head .muted { font-size: 13px; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.1fr auto; gap: 8px; align-items: end; }
.hf { gap: 4px; font-size: 12px; color: var(--muted); }
.hf > span { display: flex; align-items: center; gap: 6px; padding-left: 2px; }
.hf > span .ic { color: var(--c1); }
.hf input, .hf select { height: 48px; border-radius: 12px; font-weight: 550; }
.hero-btn { height: 48px; border-radius: 12px; min-width: 140px; }
.hero-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; flex-wrap: wrap; }
.hero-foot #hero-sum b { color: var(--err); }
.hero-foot .ok b, #hero-sum.ok b { color: var(--c1); }
.hero-foot a { text-decoration: none; font-weight: 600; }
.hero-foot a:hover { color: var(--text); }
.hero-form .alert { margin: 10px 0 0; }
.hero-done { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-done div { flex: 1; display: flex; flex-direction: column; }
.bf-tick.sm { width: 44px; height: 44px; }
[data-scheme="dark"] .hf > span .ic { color: #7cc0ea; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr 1fr; } .car-f { grid-column: 1 / -1; } .hero-btn { grid-column: 1 / -1; width: 100%; } }
@media (max-width: 720px) { .dates2 { grid-template-columns: 1fr; } }

/* Bright light look for the website forms */
[data-scheme="light"] .bf .mesh { background: radial-gradient(60vmax 50vmax at 10% -10%, rgba(72, 166, 220, .22), transparent 60%), radial-gradient(50vmax 40vmax at 100% 10%, rgba(31, 122, 179, .14), transparent 60%), #f6f9fd; }
[data-scheme="light"] .bf-card, [data-scheme="light"] .hero-form { background: #ffffff; border-color: #e4ebf3; box-shadow: 0 20px 50px -28px rgba(15, 70, 110, .35); }
[data-scheme="light"] .cars { background: #f2f6fb; }
[data-scheme="light"] .car { border-color: #e6edf5; }
[data-scheme="light"] .dt, [data-scheme="light"] .loc-fixed { background: #f2f6fb; }
[data-scheme="light"] .bf input, [data-scheme="light"] .bf select, [data-scheme="light"] .bf textarea { background: #ffffff; }
[data-scheme="light"] .summary { background: #ffffff; }
[data-scheme="light"] .bf .dt input, [data-scheme="light"] .bf .stepper input { background: none; }
