/* -------- Little Rock Asbestos — Lead-Capture Popup (v1) --------
 * Bright, click + exit-intent triggered. SEO-safe (no auto-load interstitial).
 * Namespaced with .lr-popup-* to avoid collisions.
 */

.lr-popup-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;
}
.lr-popup-backdrop.lr-popup-open { opacity: 1; pointer-events: auto; }

.lr-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;
}
.lr-popup.lr-popup-open {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.lr-popup-header {
  background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
  color: #fff;
  padding: 22px 26px 20px;
  border-radius: 14px 14px 0 0;
  position: relative;
}
.lr-popup-header h2 {
  margin: 0; padding: 0; border: none;
  font-size: 1.35rem; font-weight: 700; line-height: 1.25;
  color: #fff !important;
}
.lr-popup-header p {
  margin: 6px 0 0; font-size: 0.95rem; opacity: 0.95;
  color: #fff !important;
}
.lr-popup-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;
}
.lr-popup-close:hover { background: rgba(255,255,255,0.32); }
.lr-popup-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.lr-popup-body { padding: 22px 26px 26px; }

.lr-popup-call {
  display: block; text-align: center;
  background: #DC2626; 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(220, 38, 38, 0.35);
  text-shadow: 0 0 12px rgba(255,255,255,0.15);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.lr-popup-call:hover, .lr-popup-call:focus-visible {
  background: #B91C1C;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
  outline: none;
}
.lr-popup-call .lr-popup-callicon {
  display: inline-block; vertical-align: middle;
  width: 22px; height: 22px; margin-right: 8px; margin-top: -2px;
  fill: #fff;
}
.lr-popup-call small {
  display: block; font-size: 0.72rem; font-weight: 500;
  opacity: 0.9; margin-top: 3px; letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lr-popup-or {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: #6b6b70; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.14em;
}
.lr-popup-or::before, .lr-popup-or::after {
  content: ''; flex: 1; height: 1px; background: #e5e5e5;
}

.lr-popup-form label {
  display: block;
  font-size: 0.82rem; font-weight: 600;
  color: #333; margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.lr-popup-form input[type="text"],
.lr-popup-form input[type="tel"],
.lr-popup-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;
}
.lr-popup-form input:focus {
  outline: none;
  border-color: #DC2626;
  background: #fff;
}
.lr-popup-form input.lr-popup-honeypot {
  position: absolute; left: -10000px; opacity: 0; height: 0; width: 0;
}
.lr-popup-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;
}
.lr-popup-submit:hover, .lr-popup-submit:focus-visible {
  background: #DC2626;
  transform: translateY(-1px);
  outline: none;
}
.lr-popup-submit:disabled {
  background: #999; cursor: not-allowed; transform: none;
}

.lr-popup-consent {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.78rem; color: #444;
  margin: 6px 0 10px; line-height: 1.45;
}
.lr-popup-consent input { margin-top: 3px; flex-shrink: 0; }
.lr-popup-consent a { color: #DC2626; text-decoration: underline; }
.lr-popup-consent-legal {
  font-size: 0.72rem; color: #6b6b70;
  margin: 4px 0 14px; line-height: 1.4;
}
.lr-popup-consent-legal a { color: #DC2626; text-decoration: underline; }

.lr-popup-thanks {
  text-align: center; padding: 18px 4px;
}
.lr-popup-thanks .lr-popup-check {
  display: inline-block; width: 56px; height: 56px;
  border-radius: 50%; background: #16a34a; color: #fff;
  font-size: 2rem; line-height: 56px; margin-bottom: 12px;
}
.lr-popup-thanks h3 {
  margin: 0 0 6px; font-size: 1.2rem; color: #1a1a1a; border: none; padding: 0;
}
.lr-popup-thanks p {
  margin: 0; color: #555; font-size: 0.95rem;
}

@media (max-width: 480px) {
  .lr-popup-header h2 { font-size: 1.18rem; }
  .lr-popup-call { font-size: 1.2rem; padding: 14px 16px; }
  .lr-popup-body { padding: 18px 20px 22px; }
  .lr-popup-header { padding: 18px 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .lr-popup, .lr-popup-backdrop, .lr-popup-call, .lr-popup-submit { transition: none; }
}
