/* The website's forms (/submit-preference/ via request-form.js; every data/forms/*.json form via
   mea-form.js). Design tokens only, so light and dark come from the same rules. Field names and
   data keys live in the scripts and data files; this file only changes how fields look. */
.rf-wrap { --rf-bg: var(--c-surface); --rf-tx: var(--c-ink); --rf-mu: var(--c-muted); --rf-ln: var(--c-field); --rf-soft: var(--c-surface-2); --rf-g: var(--c-brand); --rf-g2: var(--c-brand-deep); --rf-gs: var(--c-success-bg); --rf-bad: var(--c-error); --rf-bads: var(--c-error-bg);
  max-width: calc(var(--w-text) + 2 * var(--gutter)); margin: 0 auto var(--s-7); padding: 0 var(--gutter); color: var(--c-ink); font-family: var(--f-sans); box-sizing: border-box; }
.rf-head { margin: var(--s-6) 0 var(--s-5); }
.rf-head h1 { font: 700 var(--t-h1)/1.08 var(--f-sans); margin: 0 0 var(--s-3); color: var(--c-ink); text-wrap: balance; }
.rf-head p { color: var(--c-muted); margin: 0 0 var(--s-3); font-size: var(--t-body); line-height: 1.55; }
.rf-head .rf-pill-note { display: inline-flex; gap: var(--s-2); align-items: center; padding: var(--s-1) var(--s-2); border-radius: var(--r-1); background: var(--c-success-bg); color: var(--c-success); font-weight: 600; font-size: var(--t-small); }

.rf { background: var(--c-surface); border-top: var(--line-heavy); padding: var(--s-5) 0 var(--s-5); }
.rf-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: s; }
.rf-progress li { display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--t-caption); font-weight: 600; color: var(--c-muted); }
.rf-progress li span { display: block; height: 4px; border-radius: 0; background: var(--c-line); font-size: 0; }
.rf-progress li.is-done span, .rf-progress li.is-on span { background: var(--rf-g); }
.rf-progress li.is-on { color: var(--rf-tx); }
@media (max-width: 520px) { .rf-progress li { font-size: 0; } .rf-progress li.is-on { font-size: .8rem; grid-column: 1 / -1; order: -1; } }
.rf-step-title { font: 700 var(--t-h3)/1.25 var(--f-sans); margin: var(--s-1) 0 var(--s-4); color: var(--c-ink); outline: none; }
.rf-field { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.rf-label { display: block; font-weight: 600; font-size: var(--t-ui); margin-bottom: var(--s-1); color: var(--c-ink); padding: 0; }
.rf-req { color: var(--rf-bad); }
.rf-opt { font-weight: 400; color: var(--rf-mu); font-size: .88rem; }
.rf-hint { color: var(--rf-mu); font-size: .9rem; margin: 0 0 8px; line-height: 1.45; }
.rf-suggest:empty { display: none; }
.rf input[type=text], .rf input[type=tel], .rf input[type=email], .rf input[type=number], .rf input[type=search], .rf select, .rf textarea {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: var(--s-3); border: 1px solid var(--c-field); border-radius: var(--r-1); background: var(--c-surface); color: var(--c-ink);
  font: inherit; font-size: 16px; /* 16px stops iPhone zooming in */ }
.rf textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.rf input:focus-visible, .rf select:focus-visible, .rf textarea:focus-visible { outline: var(--focus-ring); outline-offset: 0; border-color: var(--c-brand); }
.rf-field.is-bad input:not([type=radio]):not([type=checkbox]), .rf-field.is-bad select, .rf-field.is-bad textarea { border: 2px solid var(--c-error); }
.rf-err { color: var(--c-error); font-size: var(--t-small); font-weight: 600; margin: var(--s-1) 0 0; }
.rf-err:empty { display: none; }

.rf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-pill { position: relative; }
.rf-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rf-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--c-field); border-radius: var(--r-1); background: var(--c-surface); color: var(--c-ink); font-weight: 600; font-size: var(--t-small); cursor: pointer; user-select: none; }
.rf-pill input:checked + span { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.rf-pill input:focus-visible + span { outline: var(--focus-ring); outline-offset: 2px; }
.rf-pill input:disabled + span { opacity: .4; cursor: not-allowed; }
.rf-big .rf-pill { flex: 1 1 0; }
.rf-big .rf-pill span { justify-content: center; min-height: 56px; font-size: 1.05rem; width: 100%; box-sizing: border-box; }
.rf-areas { max-height: 260px; overflow-y: auto; padding: 4px 2px; border-top: 1px solid var(--rf-ln); margin-top: 8px; }
.rf-search { margin-bottom: 8px; }
.rf-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.rf-chip { border: 0; border-radius: var(--r-1); background: var(--c-mint); color: #064E3B; font: inherit; font-weight: 600; font-size: var(--t-small); padding: var(--s-1) var(--s-3); min-height: 36px; cursor: pointer; }
.rf-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 520px) { .rf-rooms { grid-template-columns: 1fr; } }
.rf-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.rf-count { font-size: .85rem; color: var(--rf-mu); }
.rf-count.is-over { color: var(--rf-bad); font-weight: 700; }
.rf-link { border: 0; background: none; padding: var(--s-1) 0; color: var(--c-link); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; }
.rf-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--c-field); border-radius: var(--r-1); overflow: hidden; }
.rf-stepper button { width: 52px; border: 0; background: var(--rf-soft); color: var(--rf-tx); font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.rf-stepper input { width: 80px !important; border: 0 !important; border-radius: 0 !important; text-align: center; }
.rf-check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; margin: 10px 0; font-size: .98rem; line-height: 1.45; cursor: pointer; }   /* 44 px: easy to tap, above the 24 px minimum */
.rf-check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--rf-g); flex: 0 0 auto; }
.rf-check a { color: var(--c-link); font-weight: 600; }
.rf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rf-review dl { display: grid; gap: var(--s-2); margin: 0 0 var(--s-4); padding: var(--s-3) 0; border-top: var(--line-hair); border-bottom: var(--line-hair); }
.rf-review dl div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.rf-review dt { color: var(--rf-mu); font-size: .88rem; font-weight: 700; }
.rf-review dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .rf-review dl div { grid-template-columns: 1fr; gap: 0; } }
.rf-errsum { border-left: 4px solid var(--c-error); background: var(--c-error-bg); color: var(--c-ink); border-radius: 0 var(--r-1) var(--r-1) 0; padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); }
.rf-errsum ul { margin: 6px 0 0; padding-left: 18px; }
.rf-errsum a { color: var(--c-error); font-weight: 600; }
.rf-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; position: sticky; bottom: 0; padding: 12px 0 calc(4px + env(safe-area-inset-bottom)); background: var(--rf-bg); }
.rf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--s-5); border-radius: var(--r-1); border: 2px solid var(--c-ink); background: transparent; color: var(--c-ink); font: inherit; font-weight: 600; font-size: var(--t-ui); cursor: pointer; text-decoration: none; }
.rf-next, .rf-send { margin-left: auto; background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); min-width: 46%; }
.rf-next:hover, .rf-send:hover { background: var(--c-brand-deep); border-color: var(--c-brand-deep); }
.rf-btn:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.rf-btn:disabled { opacity: .6; cursor: progress; }
.rf-saved { color: var(--rf-mu); font-size: .82rem; margin: 6px 0 0; text-align: center; min-height: 1.2em; }
.rf-done { padding: var(--s-6) 0; background: var(--c-surface); border-top: var(--line-heavy); outline: none; }
.rf-done-icon { width: 56px; height: 56px; margin: 0 0 var(--s-3); border-radius: var(--r-round); display: grid; place-items: center; background: var(--c-mint); color: #064E3B; font-size: 1.75rem; font-weight: 700; }
.rf-done h2 { margin: 0 0 10px; }
.rf-ref { font-family: var(--f-mono); font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; color: var(--c-ink); margin: var(--s-1) 0; user-select: all; }
.rf-done-btns { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.rf-wa { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.rf-ghost { background: transparent; }
.rf-fallback iframe { border: 0; border-radius: var(--r-1); background: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .rf * { transition: none !important; } }
/* Phones with the bottom navigation dock: keep Back / Next above it */
@media (max-width: 900px) { body.mea-redesign .rf-nav { bottom: calc(68px + env(safe-area-inset-bottom)); } }
/* "Can't find your area?" (owner, 4 Nov 2026): name + LCDA, checked by staff before it is listed */
.rf-newarea { margin-top: var(--s-3); }
.rf-newarea-box { display: grid; gap: var(--s-2); margin-top: var(--s-2); padding: var(--s-3); border: 1px dashed var(--c-field-border, #cbd5e1); border-radius: var(--r-2, 10px); }
.rf-newarea-box .rf-btn { justify-self: start; }
.rf-chip--new { background: var(--c-cream, #FEFCE8); outline: 1px dashed #047857; }
.rf .ok-combo-list { color: var(--c-ink); }
