.lifelink-handoff {
  /* Full-screen takeover (2026-06-24, operator request): when the carrier
     application opens we break it out of the (often narrow, off-center) form
     column and let it span the whole screen. position:fixed sidesteps the
     form's container entirely, so it behaves identically from the homepage
     hero, the sidebar, or /quote/. The handoff JS locks body scroll while it's
     open and wires the close button. */
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 4vw, 48px) clamp(16px, 4vw, 56px) 48px;
  box-sizing: border-box;
}

.lifelink-handoff > *:not(.lifelink-handoff__close) {
  width: 100%;
  max-width: 960px;
  flex-shrink: 0;
}

.lifelink-handoff__close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.lifelink-handoff__close:hover {
  background: #f8fafc;
  color: #0f172a;
}

.lifelink-handoff__bridge {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 20px;
  text-align: center;
}

.lifelink-handoff__dots {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 12px;
}

.lifelink-handoff__dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #0f172a;
  animation: lifelinkBounce 1.2s infinite ease-in-out both;
}

.lifelink-handoff__dots span:nth-child(2) {
  animation-delay: 0.15s;
  background: #d4a017;
}

.lifelink-handoff__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.lifelink-handoff__eyebrow {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lifelink-handoff__title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.lifelink-handoff__body {
  max-width: 520px;
  margin: 0 auto;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.lifelink-handoff__iframe {
  width: 100%;
  min-height: 78vh;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.lifelink-handoff__fallback {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.lifelink-handoff__fallback a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: underline;
}

.lifelink-handoff[data-lifelink-ready="true"] .lifelink-handoff__bridge {
  display: none;
}

@keyframes lifelinkBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .lifelink-handoff {
    padding: 14px 12px 32px;
    gap: 12px;
  }

  .lifelink-handoff__bridge {
    padding: 18px 14px;
  }

  .lifelink-handoff__iframe {
    min-height: 72vh;
  }

  .lifelink-handoff__close {
    top: 10px;
    right: 10px;
    padding: 7px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lifelink-handoff__dots span {
    animation: none;
    opacity: 1;
  }
}
