/* Pre-arrival check-in form. Shared by both properties; each page sets the
   colour tokens on :root (same palettes as its WiFi portal page). */
:root {
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --white: #FFFFFF;
  --radius: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100vh; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .wrap { grid-template-columns: 5fr 7fr; }
}
.hero {
  background: var(--ink) center/cover no-repeat; /* page sets background-image */
  min-height: 200px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--hero-shade);
}
.hero-title {
  position: absolute;
  bottom: 20px; left: 16px; right: 16px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.1;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
@media (min-width: 960px) {
  .hero { position: sticky; top: 0; height: 100vh; }
  .hero-title { bottom: 48px; left: 48px; right: 48px; font-size: 2.6rem; }
}
.panel { padding: 28px 16px 48px; max-width: 640px; width: 100%; }
@media (min-width: 600px) { .panel { padding: 40px 32px 56px; margin: 0 auto; } }
@media (min-width: 960px) { .panel { padding: 56px 64px; margin: 0; } }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 8px;
}
.lede { color: var(--muted); font-size: 1rem; margin-bottom: 24px; max-width: 46ch; }

form { display: flex; flex-direction: column; gap: 28px; }
fieldset { border: none; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
legend {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 4px;
  padding: 0;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label, .label { font-size: 0.875rem; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
.hint { font-size: 0.8rem; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="number"], select, textarea {
  font-family: var(--sans);
  font-size: 1rem; /* 16px stops iOS zooming on focus */
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  width: 100%;
  min-width: 0;
  min-height: 48px;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
[aria-invalid="true"] { border-color: #C0392B !important; }

.phone { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chip span {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.95rem; font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--white); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus); }

.note {
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--note-bg);
  color: var(--ink);
}
.counter { font-size: 0.75rem; color: var(--muted); text-align: right; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; font-weight: 400; cursor: pointer; }
.consent input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--accent); }

button[type="submit"], .btn {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  min-height: 52px;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
  width: 100%;
}
button[type="submit"]:hover:not(:disabled), .btn:hover { background: var(--accent-dark); }
button:disabled { opacity: 0.6; cursor: wait; }
.btn-wa { background: #1FA855; }
.btn-wa:hover { background: #178A45; }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--white); }

.error {
  background: #FDECEA;
  color: #8B1A10;
  border: 1px solid #F5C4BE;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.error a { color: inherit; font-weight: 600; }
[hidden] { display: none !important; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.privacy {
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.privacy a { color: var(--accent); }

.done { display: flex; flex-direction: column; gap: 16px; }
.done-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: grid; place-items: center;
  font-size: 1.6rem;
}
.done p { color: var(--muted); max-width: 46ch; }
.done strong { color: var(--ink); }
