/* Lead popup — centered modal overlay */
.lead-popup {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.25rem !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lead-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lead-popup[hidden] {
  display: none !important;
}

.lead-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.lead-popup__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 24rem;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #fff;
  color: #0f172a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 32px 80px rgba(0, 0, 0, 0.45);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-popup.is-open .lead-popup__panel {
  transform: scale(1) translateY(0);
}

body.lead-popup-open {
  overflow: hidden !important;
  touch-action: none;
}

.lead-popup__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.lead-popup__close:hover {
  background: #D4AF37;
  color: #0f172a;
  transform: scale(1.05);
}

.lead-popup__head {
  padding: 1.5rem 1.5rem 1.15rem;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: #fff;
  text-align: center;
}

.lead-popup__eyebrow {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #D4AF37;
  margin: 0 0 0.4rem;
}

.lead-popup__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.lead-popup__form {
  padding: 1.15rem 1.35rem 1.35rem;
  display: grid;
  gap: 0.85rem;
  background: #fff;
}

.lead-popup__field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.lead-popup__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.lead-popup__field input {
  width: 100%;
  height: 2.875rem;
  padding: 0 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.9375rem;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.lead-popup__field input::placeholder {
  color: #94a3b8;
}

.lead-popup__field input:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
  background: #fff;
}

.lead-popup__submit {
  margin-top: 0.15rem;
  height: 3rem;
  border: none;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.lead-popup__submit:hover {
  background: #D4AF37;
  color: #0f172a;
}

.lead-popup__submit:active {
  transform: scale(0.98);
}

.lead-popup__note {
  margin: 0;
  font-size: 0.5625rem;
  text-align: center;
  color: #94a3b8;
  line-height: 1.45;
}

@media (max-width: 639px) {
  body.lead-popup-open .announcement-float-inner,
  body.lead-popup-open .pdv2-mobile-dock {
    visibility: hidden;
    pointer-events: none;
  }

  .lead-popup {
    padding: 1rem !important;
    align-items: center !important;
  }

  .lead-popup__panel {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-popup,
  .lead-popup__panel {
    transition: none;
  }
}
