/* The suggest form at /spots/suggest/. The dark sheet's tokens; only the
   form's own shapes live here. */
.suggest-hero { padding: 44px 0 8px; }
.suggest-hero .lede { margin-top: 14px; max-width: 56ch; }
.correction { margin-top: 14px; display: inline-block; padding: 8px 14px; border-radius: var(--r-input); background: rgba(235, 168, 53, 0.14); color: var(--gold-soft); font-weight: 600; font-size: 14.5px; }
.suggest-body { padding: 24px 0 72px; }
.suggest-form { max-width: 760px; }

.fs { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 20px; background: var(--night-2); min-width: 0; }
.fs legend { font-family: var(--serif); font-weight: 620; font-size: var(--t-sub); padding: 0 8px; }
.fs.has-error { border-color: rgba(255, 108, 101, 0.6); }
.field { margin-top: 16px; }
.field:first-of-type { margin-top: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label, .label { display: block; font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.suggest-form input[type="text"], .suggest-form input[type="search"], .suggest-form input[type="email"], .suggest-form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-input); border: 1px solid var(--line-2);
  background: var(--night); color: var(--text); font: inherit; font-size: 16px;
}
.suggest-form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.suggest-form input:focus, .suggest-form textarea:focus { outline: none; border-color: rgba(255, 252, 247, 0.4); box-shadow: 0 0 0 4px rgba(235, 168, 53, 0.14); }
.suggest-form input::placeholder, .suggest-form textarea::placeholder { color: var(--text-3); }
.suggest-form input[aria-invalid="true"], .suggest-form textarea[aria-invalid="true"] { border-color: var(--coral); }
.hint { margin-top: 6px; font-size: 13.5px; color: var(--text-3); }
.counter { margin-top: 6px; font-size: 13.5px; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.field-error { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--coral); }

/* the place search and its hits */
.place-search { position: relative; margin-top: 12px; }
.place-hits { list-style: none; margin: 6px 0 0; padding: 6px; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--night-3); position: absolute; left: 0; right: 0; z-index: 5; box-shadow: var(--shadow); }
.place-hits li button { width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); font: inherit; padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.place-hits li button:hover, .place-hits li button:focus-visible { background: rgba(255, 252, 247, 0.07); }
.place-hits .where { color: var(--text-3); font-size: 14px; white-space: nowrap; }

/* the map and the pin's provenance */
.map--form { height: 360px; margin-top: 16px; }
.pin-line { margin-top: 12px; font-size: 14.5px; color: var(--text-2); }
.pin-line.is-set { color: var(--gold-soft); font-weight: 600; }
.pin-tools { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.coords { margin-top: 14px; }

/* the best-light pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { position: relative; margin: 0; }
.pill-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill-opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); font-weight: 600; font-size: 14.5px; color: var(--text-2); cursor: pointer;
}
.pill-opt input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pill-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

/* the honeypot: off the page for eyes and for the tab order, still in the form */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* what happens next, and the send row */
.next { margin: 28px 0 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.next ol { margin: 10px 0 0; padding-left: 22px; color: var(--text-2); display: grid; gap: 6px; }
.send { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.send-status { font-size: 14.5px; color: var(--text-2); min-height: 1.4em; }
.send-status.err { color: var(--coral); font-weight: 600; }

/* the thank-you state */
.thanks { max-width: 640px; }
.thanks h2 { margin-top: 8px; }
.thanks p { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.thanks-acts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 640px) {
  .fs { padding: 18px; }
  .two { grid-template-columns: 1fr; }
  .map--form { height: 300px; }
}
