.call-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: color-mix(in srgb, var(--navy, #071b33) 78%, transparent);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.call-popup-overlay.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.call-popup-card {
  position: relative;
  width: min(100%, 32rem);
  max-height: calc(100dvh - 3rem);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--border, #dfe4ec);
  border-radius: 1.5rem;
  background: var(--card, #fff);
  color: var(--foreground, #182235);
  box-shadow: 0 28px 90px rgba(7, 27, 51, 0.34);
  cursor: pointer;
  transform: translateY(18px) scale(0.97);
  transition: transform 240ms ease;
  -webkit-tap-highlight-color: transparent;
}

.call-popup-overlay.is-visible .call-popup-card {
  transform: translateY(0) scale(1);
}

.call-popup-accent {
  height: 0.5rem;
  background: linear-gradient(
    110deg,
    var(--navy, #071b33),
    var(--primary, #356fe0),
    var(--cyan, #35bddd)
  );
}

.call-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border, #dfe4ec);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card, #fff) 94%, transparent);
  color: var(--foreground, #182235);
  box-shadow: 0 8px 25px rgba(7, 27, 51, 0.12);
  cursor: pointer;
}

.call-popup-close:hover,
.call-popup-close:focus-visible {
  background: var(--accent, #edf7fc);
}

.call-popup-close:focus-visible,
.call-popup-card:focus-visible,
.call-popup-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary, #356fe0) 45%, transparent);
  outline-offset: 3px;
}

.call-popup-content {
  padding: 2rem 2.25rem 2.25rem;
  text-align: center;
}

.call-popup-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  place-items: center;
  border-radius: 1.25rem;
  background: var(--accent, #edf7fc);
  color: var(--primary, #356fe0);
  box-shadow: 0 10px 28px rgba(7, 27, 51, 0.12);
}

.call-popup-icon svg {
  width: 2rem;
  height: 2rem;
}

.call-popup-eyebrow {
  margin: 1.25rem 0 0;
  color: var(--primary, #356fe0);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.call-popup-title {
  margin: 0.45rem auto 0;
  padding: 0 1.5rem;
  color: var(--foreground, #182235);
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.call-popup-copy {
  max-width: 27rem;
  margin: 0.85rem auto 0;
  color: var(--muted-foreground, #687386);
  font-size: 0.96rem;
  line-height: 1.7;
}

.call-popup-button {
  display: inline-flex;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(
    110deg,
    var(--primary, #356fe0),
    color-mix(in srgb, var(--primary, #356fe0) 72%, var(--cyan, #35bddd))
  );
  color: var(--primary-foreground, #fff);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 13px 32px color-mix(in srgb, var(--primary, #356fe0) 28%, transparent);
}

.call-popup-button:hover {
  filter: brightness(1.07);
}

.call-popup-button svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.call-popup-note {
  margin: 0.85rem auto 0;
  color: var(--muted-foreground, #687386);
  font-size: 0.72rem;
  line-height: 1.55;
}

.call-popup-open {
  overflow: hidden !important;
}

@media (max-width: 480px) {
  .call-popup-overlay {
    padding: max(0.75rem, env(safe-area-inset-top))
      max(0.75rem, env(safe-area-inset-right))
      max(0.75rem, env(safe-area-inset-bottom))
      max(0.75rem, env(safe-area-inset-left));
  }

  .call-popup-card {
    max-height: calc(100dvh - 1.5rem);
    border-radius: 1.25rem;
  }

  .call-popup-content {
    padding: 1.5rem 1.1rem 1.4rem;
  }

  .call-popup-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .call-popup-title {
    padding: 0 2rem;
  }

  .call-popup-copy {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .call-popup-button {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-popup-overlay,
  .call-popup-card {
    transition: none;
  }
}
