/* Lead-Capture Popup (generic, fleet version 2 — 2026-09-18)
 * Namespaced .lp-* so it never collides with a site's own CSS. Colours come from the four custom properties
 * at the top; a site sets them in the :root block that Stage E writes above this file, nothing else changes.
 */
:root {
  --lp-accent: #e8712b;
  --lp-accent-dark: #c95f1f;
  --lp-header-a: #0b1f2b;
  --lp-header-b: #1a3a4d;
}
.lp-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 15, 20, 0.72);
  backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease-out;
}
.lp-backdrop.lp-open { opacity: 1; pointer-events: auto; }
.lp-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
}
.lp-popup.lp-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.lp-header {
  background: linear-gradient(135deg, var(--lp-header-a) 0%, var(--lp-header-b) 100%);
  color: #fff;
  padding: 22px 26px 20px;
  border-radius: 14px 14px 0 0;
  position: relative;
}
.lp-header h2 { margin: 0; padding: 0; border: none; font-size: 1.35rem; font-weight: 700; line-height: 1.25; color: #fff !important; }
.lp-header p { margin: 6px 0 0; font-size: 0.95rem; opacity: 0.95; color: #fff !important; }
.lp-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.18);
  border: none; color: #fff;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s;
}
.lp-close:hover { background: rgba(255,255,255,0.32); }
.lp-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lp-body { padding: 22px 26px 26px; }
.lp-call {
  display: block; text-align: center;
  background: var(--lp-accent); color: #fff !important;
  padding: 16px 20px; border-radius: 10px;
  font-size: 1.35rem; font-weight: 800; letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.lp-call:hover, .lp-call:focus-visible { background: var(--lp-accent-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); outline: none; }
.lp-call .lp-callicon { display: inline-block; vertical-align: middle; width: 22px; height: 22px; margin-right: 8px; margin-top: -2px; fill: #fff; }
.lp-call small { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.9; margin-top: 3px; letter-spacing: 0.08em; text-transform: uppercase; }
.lp-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #6b6b70; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; }
.lp-or::before, .lp-or::after { content: ''; flex: 1; height: 1px; background: #e5e5e5; }
.lp-form label { display: block; font-size: 0.82rem; font-weight: 600; color: #333; margin-bottom: 4px; letter-spacing: 0.02em; }
.lp-form input[type="text"], .lp-form input[type="tel"], .lp-form input[type="email"] {
  width: 100%; box-sizing: border-box; padding: 11px 13px;
  border: 1.5px solid #d5d5d5; border-radius: 8px; font-size: 1rem; background: #fafafa;
  transition: border-color 0.12s, background 0.12s; margin-bottom: 12px;
}
.lp-form input:focus { outline: none; border-color: var(--lp-accent); background: #fff; }
.lp-form input.lp-honeypot { position: absolute; left: -10000px; opacity: 0; height: 0; width: 0; }
.lp-submit {
  width: 100%; background: #1a1a1a; color: #fff; border: none; padding: 13px 20px; border-radius: 10px;
  font-size: 1.02rem; font-weight: 700; letter-spacing: 0.03em; cursor: pointer; transition: background 0.12s, transform 0.12s;
}
.lp-submit:hover, .lp-submit:focus-visible { background: var(--lp-accent); transform: translateY(-1px); outline: none; }
.lp-submit:disabled { background: #999; cursor: not-allowed; transform: none; }
.lp-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 0.78rem; color: #444; margin: 6px 0 10px; line-height: 1.45; }
.lp-consent input { margin-top: 3px; flex-shrink: 0; }
.lp-consent a, .lp-consent-legal a { color: var(--lp-accent); text-decoration: underline; }
.lp-consent-legal { font-size: 0.72rem; color: #6b6b70; margin: 4px 0 14px; line-height: 1.4; }
.lp-thanks { text-align: center; padding: 18px 4px; }
.lp-thanks .lp-check { display: inline-block; width: 56px; height: 56px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 2rem; line-height: 56px; margin-bottom: 12px; }
.lp-thanks h3 { margin: 0 0 6px; font-size: 1.2rem; color: #1a1a1a; border: none; padding: 0; }
.lp-thanks p { margin: 0; color: #555; font-size: 0.95rem; }
@media (max-width: 480px) {
  .lp-header h2 { font-size: 1.18rem; }
  .lp-call { font-size: 1.2rem; padding: 14px 16px; }
  .lp-body { padding: 18px 20px 22px; }
  .lp-header { padding: 18px 22px 16px; }
}
@media (prefers-reduced-motion: reduce) { .lp-popup, .lp-backdrop, .lp-call, .lp-submit { transition: none; } }
