/* Public request forms (SiteLeadForm, SiteReservationForm). Site tokens only; same measure as the info pages' reading column. */
.lead-form { display: grid; gap: var(--s-4); width: min(100%, 36rem); margin-inline: auto; text-align: left; accent-color: var(--navy); caret-color: var(--navy); }
.lead-form h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: var(--step-2); }
.lead-form .lead-lede { color: var(--ink-3); font-size: var(--step--1); }
.lead-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
.lead-grid .wide { grid-column: 1 / -1; }
.lead-field { display: grid; gap: var(--s-1, 0.25rem); align-content: start; min-width: 0; font-size: var(--step--1); color: var(--ink-2); }
/* 1rem, not the label's size: iOS zooms the page into any field set under 16 px. */
/* A form with request fields (buy-back) holds twice the fields: a wider measure keeps two readable columns. */
.lead-form.lead-form-wide { width: min(100%, 48rem); }
.lead-opt { color: var(--ink-3); }
/* A choice field is SiteSelect (base.css) in the frame of the text fields. */
.lead-field .select-trigger { min-height: 3rem; padding: 0.75rem 0.9rem 0.75rem 1rem; border: 1px solid var(--line-strong); border-radius: 0.75rem; background: var(--paper); }
.lead-field .select-trigger:hover { border-color: var(--ink); }
.lead-field .select-trigger:focus-visible { outline: 2px solid var(--navy-ink); outline-offset: 1px; }
.lead-field input.lead-upper { text-transform: uppercase; }
/* File picker: the native input covers the whole box (keyboard and screen readers use the real control), drawn as a dashed drop box. */
.lead-drop { position: relative; display: flex; align-items: center; gap: var(--s-2); min-height: 3rem; padding: 0.75rem 1rem; border: 1px dashed var(--line-strong); border-radius: 0.75rem; background: var(--paper); color: var(--ink-2); font-size: 1rem; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.lead-drop:hover { border-color: var(--ink); }
.lead-drop:focus-within { outline: 2px solid var(--navy-ink); outline-offset: 1px; }
.lead-drop.has { border-style: solid; background: var(--navy-soft); color: var(--navy-ink); }
.lead-drop.bad { border-color: var(--bad); }
.lead-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.lead-drop svg { flex: none; width: 20px; height: 20px; }
.lead-drop-files { display: grid; gap: 0.15rem; min-width: 0; font-size: var(--step--1); }
.lead-drop-files > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-drop-size { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lead-field input, .lead-field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 0.75rem; padding: 0.75rem 1rem; width: 100%; min-width: 0; min-height: 3rem; transition: border-color var(--t-fast); }
.lead-field input:hover, .lead-field textarea:hover { border-color: var(--ink); }
.lead-field textarea { min-height: 6rem; resize: vertical; }
.lead-field input:focus-visible, .lead-field textarea:focus-visible { outline: 2px solid var(--navy-ink); outline-offset: 1px; }
.lead-field input[aria-invalid="true"] { border-color: var(--bad); }
.lead-field input[type="date"] { -webkit-appearance: none; appearance: none; font-variant-numeric: tabular-nums; }
.lead-err { color: var(--bad); }
.lead-consent { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--step--1); color: var(--ink-2); }
.lead-consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; accent-color: var(--navy); }
.lead-consent a { color: var(--navy-ink); text-decoration: underline; text-underline-offset: 3px; }
.lead-consent a:hover { text-decoration-thickness: 2px; }
/* Bots fill every field: this one is moved off screen, not hidden with display, so they still see it. */
.lead-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* The anti-spam check arrives after the page: its place is kept, so the button under it does not jump. */
.lead-gate { min-height: 65px; }
.lead-msg { padding: 0.85rem 1rem; border-radius: 0.75rem; font-size: var(--step--1); }
.lead-msg.ok { background: var(--navy-soft); color: var(--navy-ink); }
.lead-msg.err { background: var(--bad-soft); color: var(--bad); }
.lead-hint { font-size: var(--step--1); color: var(--ink-3); text-wrap: pretty; }
.lead-form .btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Reservation request: the period or the quantity first, then the contact fields. */
.res-fields { display: grid; gap: var(--s-4); min-width: 0; margin: 0; padding: 0; border: 0; }
.res-fields:disabled { opacity: 0.6; }
.res-period { display: grid; gap: var(--s-3); }
/* The chosen period written out, with its calendar days. */
.res-readout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-4); padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--paper-2); font-size: var(--step--1); color: var(--ink-3); font-variant-numeric: tabular-nums; transition: background var(--t-slow) var(--ease-out), color var(--t-slow) var(--ease-out); }
.res-readout.on { background: var(--navy-soft); color: var(--navy-ink); }
.res-readout b { font-weight: 700; }
.res-qty { justify-items: start; }
.res-stepper { display: inline-grid; grid-template-columns: 3rem 4.5rem 3rem; border: 1px solid var(--line-strong); border-radius: 0.75rem; overflow: hidden; background: var(--paper); }
.res-stepper:has(input[aria-invalid="true"]) { border-color: var(--bad); }
.res-stepper button { display: grid; place-items: center; min-height: 3rem; padding: 0; border: 0; background: none; color: var(--ink); transition: background var(--t-fast); }
.res-stepper button:not(:disabled):hover { background: var(--paper-2); }
.res-stepper button:not(:disabled):active { background: var(--navy-soft); }
.res-stepper button:disabled { color: var(--ink-3); opacity: 0.5; cursor: not-allowed; }
.res-stepper button:focus-visible, .res-stepper input:focus-visible { outline-offset: -3px; }
.res-stepper svg { width: 20px; height: 20px; }
.res-stepper input { border: 0; border-inline: 1px solid var(--line); border-radius: 0; padding-inline: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.res-stepper input::-webkit-inner-spin-button, .res-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.res-send { justify-self: start; min-height: 3rem; }
.res-spin { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: res-turn 800ms linear infinite; }
@keyframes res-turn { to { transform: rotate(1turn); } }
.res-done { display: grid; gap: var(--s-2); justify-items: start; padding: var(--s-5); border-radius: var(--radius-lg); background: var(--navy-soft); color: var(--navy-ink); }
/* Focus is moved here by script so a screen reader announces the result; it is not a control, so it draws no ring. */
.res-done:focus { outline: none; }
.res-done-mark { width: 44px; height: 44px; margin-bottom: var(--s-1); }
.res-done-title { font-size: var(--step-1); font-weight: 700; }
.res-recap { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-variant-numeric: tabular-nums; }
.res-note { font-size: var(--step--1); }

@media (max-width: 34rem) {
  .lead-grid { grid-template-columns: 1fr; }
  .res-send { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .res-spin { animation: none; }
  .res-readout { transition: none; }
}
