/* ══════════════════════════════════════════════════════════════
   The location form (js/lead-form.js). Loaded on every page that
   carries a <div data-location-form>, home and interior alike, on
   top of styles.css's .contact-form / .form-group rules.
   ══════════════════════════════════════════════════════════════ */
.lf-form { position: relative; }
.lf-req { color: var(--mint); }
.lf-opt { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: 0.8; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-row-3 { grid-template-columns: 1.4fr 0.8fr 1fr; }

.lf-form input.lf-bad, .lf-form select.lf-bad, .lf-form textarea.lf-bad {
  border-color: #FF8A70;
  box-shadow: 0 0 0 3px rgba(255, 138, 112, 0.12);
}
.lf-status { font-size: 13.5px; min-height: 1.3em; margin: 0; line-height: 1.6; color: var(--muted); }
.lf-status.err { color: #FF8A70; }
.lf-status a { color: inherit; text-decoration: underline; }
.lf-fine { font-size: 12.5px; color: var(--muted); margin: -8px 0 0; line-height: 1.6; }

/* autocomplete */
.lf-combo { position: relative; }
.lf-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px; list-style: none;
  background: #111831; border: 1px solid var(--border-hover); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  max-height: 280px; overflow-y: auto;
}
.lf-list[hidden] { display: none; }
.lf-sugg {
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 12px; border-radius: 6px; cursor: pointer; line-height: 1.35;
}
.lf-sugg strong { font-size: 14.5px; font-weight: 600; color: var(--white); }
.lf-sugg span { font-size: 12.5px; color: var(--muted); }
.lf-sugg:hover, .lf-sugg.is-active { background: rgba(0, 245, 160, 0.1); }

/* step 2 */
.lf-head h3 { font-size: 22px; font-weight: 700; margin: 0 0 6px; color: var(--white); }
.lf-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lf-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.lf-q legend {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; padding: 0;
}
.lf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-chip-in { position: absolute; opacity: 0; pointer-events: none; }
.lf-chip {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font-size: 14px; color: var(--white); line-height: 1.2;
  background: rgba(13, 17, 32, 0.7); border: 1px solid rgba(139, 160, 184, 0.25);
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.lf-chip:hover { border-color: var(--border-hover); }
.lf-chip-in:checked + .lf-chip { background: var(--mint); border-color: var(--mint); color: var(--navy); font-weight: 600; }
.lf-chip-in:focus-visible + .lf-chip { box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.35); }
.lf-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* done */
.lf-done { align-items: center; text-align: center; }
.lf-done h3 { font-size: 22px; margin: 0; color: var(--white); }
.lf-done p { margin: 0; color: var(--muted); max-width: 440px; }
.lf-tick {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; font-weight: 700; color: var(--navy); background: var(--mint);
}

@media (max-width: 768px) {
  .lf-row-3 { grid-template-columns: 1fr 1fr; }
  .lf-row-3 > .form-group:first-child { grid-column: 1 / -1; }
}

/* the fixed navbar is ~72px tall; keep step 2's heading clear of it */
[data-location-form] { scroll-margin-top: 96px; }
.lf-attrib { padding: 6px 12px 4px; font-size: 11px; color: var(--muted); text-align: right; cursor: default; }

/* Turnstile sits invisibly here; it only takes space if it has to ask */
.lf-ts:empty { display: none; }
.lf-ts { margin: -6px 0 0; }
