/* Swasthe U.S. Expansion lead popup */
:root {
  --swasthe-navy: #0a1d37;
  --swasthe-gold: #b9860b;
  --swasthe-gold-hover: #a07509;
  --swasthe-cream: #fdfaf5;
  --swasthe-cream-dark: #f5efe4;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;
  --shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  --lead-popup-iframe-h: 100px;
}

.lead-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 29, 55, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow: hidden;
  overscroll-behavior: none;
}

.lead-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lead-popup {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: min(620px, calc(100vh - 2.5rem));
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.lead-popup-overlay.is-open .lead-popup {
  transform: translateY(0) scale(1);
}

.lead-popup__close {
  position: absolute;
  top: 1.125rem;
  right: 1.125rem;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lead-popup__close:hover {
  color: var(--swasthe-navy);
  background: #f3f4f6;
}

.lead-popup__close svg {
  width: 18px;
  height: 18px;
}

.lead-popup__inner {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: stretch;
  min-height: 0;
  max-height: min(620px, calc(100vh - 2.5rem));
  overflow: hidden;
}

.lead-popup__form-col {
  padding: 2.25rem 2rem 2rem;
  min-width: 0;
  overflow: hidden;
}

.lead-popup__title {
  margin: 0 2rem 0.625rem 0;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--swasthe-navy);
}

.lead-popup__subtitle {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 26rem;
}

.lead-popup__embed-form {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.lead-popup__embed-form iframe {
  border: 0;
  width: 100%;
  max-width: 100%;
  display: block;
  overflow: hidden;
  background: transparent;
  height: var(--lead-popup-iframe-h);
  min-height: 0;
  max-height: 360px;
}

.lead-popup__steps-col {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.75rem 1.75rem;
  border-left: 1px solid #f0f0f2;
  background: #fcfcfd;
  min-width: 0;
  overflow: hidden;
}

.lead-popup__steps-title {
  margin: 0 2rem 1.125rem 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--swasthe-navy);
  line-height: 1.3;
}

.lead-popup__timeline {
  position: relative;
  margin: 0 0 0.875rem;
  padding-left: 0.125rem;
  flex: 1 1 auto;
  min-height: 0;
}

.lead-popup__timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 22px;
  bottom: 22px;
  border-left: 2px dashed #d4d4d8;
}

.lead-popup__step {
  position: relative;
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.875rem;
}

.lead-popup__step:last-child {
  padding-bottom: 0;
}

.lead-popup__step-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--swasthe-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--swasthe-gold);
}

.lead-popup__step-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.lead-popup__step-content h3 {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--swasthe-navy);
  line-height: 1.35;
}

.lead-popup__step-content p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.lead-popup__callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.875rem;
  border-radius: 8px;
  background: var(--swasthe-cream);
  margin-top: auto;
  flex-shrink: 0;
}

.lead-popup__callout-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--swasthe-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--swasthe-gold);
}

.lead-popup__callout-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.lead-popup__callout-text {
  min-width: 0;
}

.lead-popup__callout-text strong {
  display: block;
  margin-bottom: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--swasthe-navy);
  line-height: 1.35;
}

.lead-popup__callout-text span {
  display: block;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}

body.lead-popup-open,
html.lead-popup-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .lead-popup-overlay {
    padding: 0.75rem;
  }

  .lead-popup,
  .lead-popup__inner {
    max-height: calc(100vh - 1.5rem);
  }

  .lead-popup {
    border-radius: 14px;
  }

  .lead-popup__inner {
    grid-template-columns: 1fr;
  }

  .lead-popup__steps-col {
    border-left: none;
    border-top: 1px solid #f0f0f2;
  }

  .lead-popup__form-col,
  .lead-popup__steps-col {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .lead-popup__title,
  .lead-popup__steps-title {
    margin-right: 2rem;
  }

  :root {
    --lead-popup-iframe-h: 280px;
  }
}

@media (max-width: 480px) {
  .lead-popup__form-col,
  .lead-popup__steps-col {
    padding: 1.25rem 1rem 1rem;
  }

  .lead-popup__title {
    font-size: 1.3125rem;
  }

  .lead-popup__step {
    padding-bottom: 0.75rem;
  }

  .lead-popup__step-icon {
    width: 32px;
    height: 32px;
  }

  .lead-popup__step-icon svg {
    width: 14px;
    height: 14px;
  }

  .lead-popup__timeline::before {
    left: 15px;
  }
}
