/* Email funnel components — shared across all national content sites.
   Loaded by injected <link rel="stylesheet" href="/_shared/funnel/funnel.css">.
   National-content-only. NEVER deployed to locksmith network or hivedynamics.ai. */

/* ---------- exit-intent popup ---------- */
.hf-popup-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 10, 14, 0.78);
  z-index: 99998;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hf-popup-backdrop.hf-show { display: flex; animation: hf-fade .25s ease-out; }
@keyframes hf-fade { from { opacity: 0 } to { opacity: 1 } }
.hf-popup {
  position: relative;
  z-index: 99999;
  background: #fff; color: #111;
  border-radius: 14px; padding: 28px 28px 24px;
  max-width: 480px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
.hf-popup h3 {
  margin: 0 0 8px; font-size: 22px; line-height: 1.25; font-weight: 700;
  letter-spacing: -.01em;
}
.hf-popup p { margin: 0 0 18px; font-size: 15px; color: #444; }
.hf-popup form { display: flex; gap: 8px; flex-wrap: wrap; }
.hf-popup input[type=email] {
  flex: 1 1 200px; min-width: 0;
  padding: 12px 14px; border: 1.5px solid #d4d8de; border-radius: 8px;
  font-size: 15px; font-family: inherit; outline: none;
}
.hf-popup input[type=email]:focus { border-color: #2563eb; }
.hf-popup button {
  padding: 12px 18px; border: 0; border-radius: 8px;
  background: #111; color: #fff; font-weight: 600; font-size: 14px;
  cursor: pointer; font-family: inherit;
}
.hf-popup button:hover { background: #2563eb; }
.hf-popup .hf-close {
  position: absolute; top: 8px; right: 12px;
  background: transparent; color: #888; padding: 4px 8px; font-size: 22px;
  line-height: 1;
}
.hf-popup .hf-close:hover { background: transparent; color: #111; }
.hf-popup .hf-fineprint {
  margin-top: 12px; font-size: 12px; color: #777;
}
.hf-popup .hf-success {
  padding: 18px 0; text-align: center; font-size: 16px; color: #15803d;
}

/* ---------- inline opt-in ---------- */
.hf-inline {
  margin: 28px 0; padding: 22px;
  border: 1.5px solid #e2e6eb; border-left: 4px solid #2563eb;
  background: #f8fafc; border-radius: 10px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
.hf-inline strong { display: block; font-size: 17px; margin-bottom: 6px; color: #111; }
.hf-inline p { margin: 0 0 14px; color: #444; font-size: 14px; line-height: 1.5; }
.hf-inline form { display: flex; gap: 8px; flex-wrap: wrap; }
.hf-inline input[type=email] {
  flex: 1 1 220px; min-width: 0;
  padding: 11px 13px; border: 1.5px solid #d4d8de; border-radius: 7px;
  font-size: 14px; font-family: inherit;
}
.hf-inline button {
  padding: 11px 16px; border: 0; border-radius: 7px;
  background: #2563eb; color: #fff; font-weight: 600; font-size: 14px;
  cursor: pointer; font-family: inherit;
}
.hf-inline button:hover { background: #1d4ed8; }
.hf-inline .hf-success { color: #15803d; font-weight: 600; }

/* ---------- sticky bottom bar ---------- */
.hf-sticky {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 9990;
  background: #0f172a; color: #fff;
  padding: 12px 16px;
  display: none; align-items: center; justify-content: center; gap: 12px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 14px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.hf-sticky.hf-show { display: flex; animation: hf-slideup .3s ease-out; }
@keyframes hf-slideup { from { transform: translateY(100%) } to { transform: translateY(0) } }
.hf-sticky strong { font-weight: 600; }
.hf-sticky form { display: flex; gap: 6px; flex: 1 1 auto; max-width: 420px; }
.hf-sticky input[type=email] {
  flex: 1; padding: 8px 10px; border: 0; border-radius: 5px;
  font-size: 13px; font-family: inherit;
}
.hf-sticky button {
  padding: 8px 12px; border: 0; border-radius: 5px;
  background: #f59e0b; color: #111; font-weight: 600; font-size: 13px; cursor: pointer;
  font-family: inherit;
}
.hf-sticky button:hover { background: #fbbf24; }
.hf-sticky .hf-close {
  background: transparent; color: #cbd5e1; padding: 4px 10px; font-size: 18px;
  cursor: pointer; border: 0; line-height: 1;
}
.hf-sticky .hf-success { color: #34d399; font-weight: 600; }

@media (max-width: 600px) {
  .hf-popup h3 { font-size: 18px; }
  .hf-sticky { font-size: 13px; padding: 10px 12px; }
}
