/* Availability request form, served as new_booking/vt-enquiry.css on booking.valtline.com.
   Same tokens as tracking/legacy-refresh/refresh.css (bormio.it). The three --accent values
   are set per site by the page (vt-enquiry/config.php).
   Mobile first: one column, 16px+ inputs (no zoom on iOS), 48px touch targets. */
:root {
  --ink: #1f2a33;
  --ink-soft: #55616d;       /* 6.4:1 on white */
  --line: #c9cfd4;
  --line-strong: #7b8791;    /* 3.7:1 on white: field borders */
  --paper: #ffffff;
  --wash: #f4f2ee;
  --bar: #1c1c1c;
  --orange: #f37521;
  --accent: #f37521;         /* same button as the booking card: ink on orange, 6.0:1 */
  --accent-hover: #e0640f;   /* 4.9:1 */
  --on-accent: #1c1c1c;
  --blue: #00589a;
  --error: #b3261e;          /* 6.5:1 on white */
  --ui: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --read: "Iowan Old Style", "Palatino Linotype", Palatino, Cambria, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font: 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- top bar ---------- */
.top { background: var(--bar); border-bottom: 4px solid var(--accent); }
.top-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1040px; margin: 0 auto; padding: 12px 16px;
}
.brand { display: block; color: #fff; text-decoration: none; font: 600 24px/1.2 var(--read); letter-spacing: 0.01em; }
.brand .dot { color: var(--orange); }
.brand:focus-visible { outline-color: #fff; }
.back { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 0; white-space: nowrap; }
.back:hover { text-decoration: underline; }
.back:focus-visible { outline-color: #fff; }

/* ---------- layout ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 20px 16px 48px; }
.intro h1, .done h1 {
  margin: 0 0 8px;
  font: 600 26px/1.2 var(--read);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.lede { margin: 0 0 20px; color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; }

form, .next, .done {
  background: var(--paper);
  border: 1px solid #e3e0da;
  border-radius: 10px;
  padding: 20px 16px;
}
fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
legend {
  padding: 0; margin: 0 0 14px; width: 100%;
  font: 700 13px/1.3 var(--ui);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.row { display: grid; gap: 14px; }
.row.two { grid-template-columns: 1fr 1fr; }
.field { margin: 0 0 14px; min-width: 0; }
.row .field { margin-bottom: 0; }
.row { margin-bottom: 14px; }

label, .label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  display: block; width: 100%; min-width: 0;
  min-height: 48px; padding: 10px 12px;
  border: 1.5px solid var(--line-strong); border-radius: 6px;
  background: #fff; color: var(--ink);
  font: 16px/1.3 var(--ui);
  -webkit-appearance: none; appearance: none;
}
input[type="date"] { min-width: 100%; }           /* iOS shrinks empty date inputs otherwise */
select {
  padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f2a33' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
}
textarea { min-height: 72px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
[aria-invalid="true"] { border-color: var(--error) !important; border-width: 2px; }
.hint { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
.err { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--error); }
.err::before { content: "! "; font-weight: 800; }
.typo { margin: 6px 0 0; font-size: 14px; }
.summary {
  margin: 0 0 16px; padding: 12px 14px;
  border-left: 4px solid var(--error); background: #fdf1f0; color: var(--error);
  font-weight: 600; border-radius: 4px;
}
.nights { margin: -6px 0 16px; font-size: 14px; color: var(--ink-soft); min-height: 21px; }

/* ---------- rooms ---------- */
.room { margin: 0 0 12px; padding: 14px; background: var(--wash); border-radius: 8px; }
.room-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; }
.room-title { font-weight: 700; }
.steppers { margin-bottom: 0; }
.s-label { margin-bottom: 8px; }
.s-ctl { display: flex; align-items: center; gap: 4px; }
.s-btn {
  width: 48px; height: 48px; flex: none;
  border: 1.5px solid var(--line-strong); border-radius: 50%;
  background: #fff; color: var(--ink);
  font: 400 24px/1 var(--ui); cursor: pointer;
  touch-action: manipulation;
}
.s-btn:hover:not(:disabled) { border-color: var(--ink); background: #fff7f1; }
.s-btn:active:not(:disabled) { transform: scale(0.96); }
.s-btn:disabled { color: #a9b1b8; border-color: var(--line); cursor: default; }
.s-val { min-width: 36px; text-align: center; font: 700 20px/1 var(--ui); font-variant-numeric: tabular-nums; }
.ages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 14px; }
.ages .field { margin: 0; }
.twin { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-weight: 400; min-height: 32px; }

.link {
  display: inline-block; padding: 10px 0; margin: 0 0 14px;
  border: 0; background: none; color: var(--blue);
  font: 600 15px/1.3 var(--ui); text-decoration: underline; text-underline-offset: 0.18em;
  cursor: pointer; text-align: left;
}
.room-head .link, .typo .link { margin: 0; padding: 6px 0; }

/* ---------- board ---------- */
.board { margin-top: 6px; margin-bottom: 0; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { position: relative; margin: 0; font-weight: 400; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 8px 10px;
  border: 1.5px solid var(--line-strong); border-radius: 6px;
  background: #fff; font-size: 15px; line-height: 1.25;
}
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { border-color: var(--bar); background: var(--bar); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- consent and send ---------- */
.checks { margin: 0 0 20px; }
.check { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; margin: 0 0 14px; }
.check label { margin: 0; font-weight: 400; font-size: 15px; }
.check .err { grid-column: 2; }
input[type="checkbox"] { width: 24px; height: 24px; margin: 0; accent-color: var(--bar); flex: none; }
.primary {
  display: block; width: 100%; min-height: 54px; padding: 12px 24px;
  border: 0; border-radius: 8px;
  background: var(--accent); color: var(--on-accent);
  font: 700 18px/1.2 var(--ui); letter-spacing: 0.01em;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: background-color 0.15s ease-out;
  touch-action: manipulation;
}
.primary:hover { background: var(--accent-hover); }
.primary:active { transform: translateY(1px); }
.primary:disabled { background: var(--ink-soft); color: #fff; cursor: progress; }
.primary.as-link { display: inline-block; width: auto; padding-top: 16px; }
.after { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); text-align: center; text-wrap: balance; }

/* ---------- what happens next ---------- */
.next { margin-top: 16px; background: transparent; border-style: dashed; border-color: #cfc9be; }
.next h2 { margin: 0 0 10px; font: 700 13px/1.3 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.next ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.next li { position: relative; padding: 4px 0 10px 40px; counter-increment: s; }
.next li:last-child { padding-bottom: 0; }
.next li::before {
  content: counter(s); position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bar); color: #fff;
  font: 700 14px/28px var(--ui); text-align: center;
}
.done { padding: 28px 20px; }
.done:focus { outline: none; }

/* the field people never see (the handler ignores anyone who fills it in) */
.trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.done .hint { margin: 0 0 18px; }
.board + .board { margin-top: 16px; }

@media (max-width: 359px) {
  .row.two:not(.steppers), .chips { grid-template-columns: 1fr; }
}
@media (min-width: 600px) {
  .wrap { padding-top: 32px; }
  .intro h1, .done h1 { font-size: 32px; }
  form, .done { padding: 28px; }
  .chips { grid-template-columns: repeat(4, 1fr); }
  .ages { grid-template-columns: repeat(4, 1fr); }
  .primary { width: auto; min-width: 280px; }
  .after { text-align: left; }
}
@media (min-width: 920px) {
  .wrap { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .intro, .done { grid-column: 1 / -1; }
  .next { margin-top: 0; position: sticky; top: 24px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
