/* Guest suggestion page — turn 4b: the landing's light system, one scrolling
   column. Shares the app's PALETTE but not its layout (styles.css's fixed
   two-pane shell would fight a scrolling form), and shares the landing's LOOK
   but not its file (no build step to import from).

   ── KEEP IN SYNC ─────────────────────────────────────────────────────────
   The :root tokens and the .masthead/.mh-* rules below are copies of
   landing.css. If the flag palette or the masthead art changes there, change
   it here in the same commit. Radii are 3px throughout — civic, not soft.
   Yellow is rationed to exactly three sanctioned things on this page: the sun
   disc in the masthead, the one CTA (Send it in), and the "pinned" rail. */
:root {
  --ink: #0E1A2B;          /* headings */
  --body: #2C3A4C;         /* running prose */
  --muted: #46566A;        /* secondary copy */
  --quiet: #56677A;        /* footer */
  --navy: #0F1C6B;         /* flag navy — structure, step numbers */
  --sun: #F0A93B;          /* horizon yellow — the one button, the one rail */
  --line: #DCE3EC;
  --line-strong: #C6D1DE;  /* input borders */
  --panel-2: #F4F6FA;      /* cards */
  --pin-bg: #FDF3E1;       /* "Pinned:" confirmation */
  --pin-ink: #6B4A12;      /* 5.9:1 on --pin-bg */
  --placeholder: #5E6E80;
  --ok-bg: #E4F3EC;        /* success tint */
  --ok-ink: #17603F;
  --danger: #C0392B;
  --danger-bg: #FBEAE7;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #FFFFFF; color: var(--ink);
  line-height: 1.55;
}

#wrap { max-width: 680px; margin: 0 auto; padding: 24px 18px 60px; }

/* ---------- masthead (the wordmark and the way home) ---------- */
.mast-link { display: block; text-decoration: none; margin-bottom: 26px; }
.mast-link:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.mast-caption {
  display: block; margin-top: 9px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--quiet);
}
.mast-link:hover .mast-caption { color: var(--navy); }

/* KEEP IN SYNC with landing.css — the same clip-path composition */
.masthead { position: relative; aspect-ratio: 2.99 / 1; overflow: hidden; background: #FFFFFF; }
.mh-art { position: absolute; inset: 0; }
.mh-shape { position: absolute; inset: 0; background: var(--navy); }
.mh-bluff   { clip-path: polygon(0 62.5%, 26% 62.5%, 50% 125%, 0 125%); }
.mh-cut-1   { clip-path: polygon(30.2% 71.25%, 34.8% 71.25%, 55.4% 125%, 50.8% 125%); }
.mh-cut-2   { clip-path: polygon(38.9% 80%, 43.1% 80%, 60.4% 125%, 56.2% 125%); }
.mh-cut-3   { clip-path: polygon(46.8% 87.5%, 50.4% 87.5%, 64.8% 125%, 61.2% 125%); }
.mh-tower { position: absolute; bottom: 37.5%; background: var(--navy); }
.mh-tower::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(255,255,255,.34) 6px 8px),
    repeating-linear-gradient(90deg,  transparent 0 5px, rgba(255,255,255,.34) 5px 7px);
}
.mh-tower-1 { left: 1.8%; width: 3.2%; top: 48.75%; }
.mh-tower-2 { left: 5.5%; width: 3.8%; top: 51.9%; }
.mh-tower-2::after {
  background:
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(255,255,255,.34) 6px 8px),
    repeating-linear-gradient(90deg,  transparent 0 6px, rgba(255,255,255,.34) 6px 8px);
}
.mh-tower-3 { left: 9.8%; width: 3%; top: 50%; }
.mh-house { position: absolute; bottom: 37.5%; background: var(--navy); }
.mh-house-1 { left: 13.6%; width: 3.2%; top: 55.6%; clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%); }
.mh-house-2 { left: 17.2%; width: 3.4%; top: 55%;   clip-path: polygon(50% 0, 100% 38%, 100% 100%, 0 100%, 0 38%); }
.mh-saw {
  left: 21.2%; width: 4.4%; top: 56.25%;
  clip-path: polygon(0 100%, 0 46%, 16.6% 4%, 33.3% 48%, 50% 0, 66.6% 46%, 83.3% 6%, 100% 44%, 100% 100%);
}
.mh-sun { position: absolute; right: 8%; top: 20%; width: 6.5%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.mh-water {
  position: absolute; left: 40.8%; right: 0; top: 80%; bottom: 0; overflow: hidden;
  clip-path: polygon(3.9% 0, 100% 0, 100% 100%, 24.3% 100%, 16.2% 37.5%, 8.8% 37.5%);
}
.mh-water svg { display: block; width: 100%; aspect-ratio: 393 / 100; }
.mh-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 6.25%; background: var(--navy); }

/* ---------- intro ---------- */
#intro h1 { font-size: 30px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; font-weight: 700; }
#intro h1 span { color: var(--navy); }
.lede { color: var(--body); margin: 0 0 26px; font-size: 16px; }
.lede strong { color: var(--ink); }

/* ---------- honeypot (visually gone, still in the DOM for bots) ---------- */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- steps ---------- */
#steps { list-style: none; margin: 0; padding: 0; }
.step {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 3px;
  padding: 18px 18px 20px; margin-bottom: 16px;
}
.step h2 { font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.num {
  flex: 0 0 22px; height: 22px; border-radius: 3px; background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}

label {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin: 14px 0 6px; font-weight: 600;
}
label:first-of-type { margin-top: 0; }
.opt { text-transform: none; letter-spacing: 0; font-style: italic; opacity: .8; font-weight: 400; }

input[type="search"], input[type="email"], input[type="text"], input:not([type]), textarea, select {
  width: 100%; background: #FFFFFF; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 11px 12px; font: inherit; font-size: 16px;  /* 16px stops iOS zooming on focus */
}
::placeholder { color: var(--placeholder); opacity: 1; }
textarea { resize: vertical; min-height: 92px; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--navy); outline-offset: 2px;
}
[aria-invalid="true"] { border-color: var(--danger); }

.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.hint.small { font-size: 12px; line-height: 1.5; }

/* ---------- place search ---------- */
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; }
#place-results {
  list-style: none; margin: 8px 0 0; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 3px; background: #FFFFFF; overflow: hidden;
}
#place-results li {
  padding: 10px 12px; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--line);
  color: var(--body);
}
#place-results li:last-child { border-bottom: 0; }
#place-results li:hover, #place-results li:focus-visible,
#place-results li[aria-selected="true"] { background: #E8ECF9; color: var(--ink); }

/* ---------- map ---------- */
#map {
  height: 320px; margin-top: 12px; border-radius: 3px; overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--panel-2);
}
.leaflet-container { background: #F7F9FB; }

/* the "Pinned:" confirmation — the page's one highlight bar */
.picked {
  margin: 10px 0 0; font-size: 13px; color: var(--pin-ink);
  background: var(--pin-bg); border-left: 3px solid var(--sun);
  padding: 9px 11px;
}
.picked[hidden] { display: none; }

/* ---------- "not sure where" area fallback ---------- */
.hood-fallback { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.hood-fallback select { color: var(--ink); }

/* ---------- film chips ---------- */
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; flex: 0 0 100%; }
.chip-btn {
  font: inherit; font-size: 13px; padding: 7px 12px; min-height: 32px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: #FFFFFF; color: var(--body);
  cursor: pointer;
}
.chip-btn:hover { border-color: var(--navy); color: var(--navy); }
.chip-btn[aria-pressed="true"] {
  background: #E8ECF9; border-color: var(--navy); color: var(--navy); font-weight: 600;
}

/* ---------- consent ---------- */
.check {
  display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0;
  text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink);
  cursor: pointer; font-weight: 400;
}
/* 20px + the label's tap area keeps this comfortably past the 44px guideline on
   touch, which matters for the one control that records consent. */
.check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }

/* ---------- actions ---------- */
#actions { margin-top: 22px; }
.btn {
  font: inherit; font-size: 15px; border-radius: 3px; padding: 13px 18px;
  border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--ink);
  cursor: pointer; min-height: 44px;
}
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
/* the one yellow thing you can press */
.btn.primary {
  width: 100%; background: var(--sun); border-color: var(--sun); color: var(--ink);
  font-weight: 700; font-size: 16px;
}
.btn.primary:hover { background: #E39C2E; border-color: #E39C2E; }
.btn:disabled { opacity: .55; cursor: default; }

.reassure { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.err {
  margin: 12px 0 0; color: var(--danger); font-size: 14px;
  background: var(--danger-bg); border: 1px solid var(--danger);
  border-radius: 3px; padding: 10px 12px;
}

/* ---------- thanks ---------- */
#thanks {
  background: var(--ok-bg); border: 1px solid var(--ok-ink);
  border-radius: 3px; padding: 26px 20px; text-align: center; outline: none;
}
#thanks h2 { margin: 0 0 10px; font-size: 22px; color: var(--ok-ink); }
#thanks p { color: var(--body); margin: 0 0 20px; }

#foot {
  margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--quiet); font-size: 11.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
#foot a { color: var(--quiet); }
#foot a:hover { color: var(--navy); }

/* One mobile line for the whole public side — same 760px as the landing, so the
   521–760 band no longer gets a half-and-half layout. */
@media (max-width: 760px) {
  #wrap { padding: 16px 14px 48px; }
  /* full-bleed, same re-crop as the landing (4f: re-crop, don't shrink) */
  .masthead { aspect-ratio: 1.72 / 1; margin-inline: -14px; width: calc(100% + 28px); }
  .mh-sun { top: 30%; }
  #intro h1 { font-size: 25px; }
  #map { height: 260px; }
  #foot { flex-direction: column; align-items: flex-start; }
}
