/* Storiestrong lead popup — chrome only. The form inside is GHL's iframe, so this
   styles everything around it and lets the frame carry its own look.
   Tokens mirror the per-page :root block (blue #005EB8, navy #002E5D, Poppins body). */

.ss-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.ss-lead-modal.is-open { display: flex; }

.ss-lead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 46, 93, .72);
  backdrop-filter: blur(3px);
}

.ss-lead-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  /* Small phones in landscape have almost no height — let the card shrink
     rather than push the form off screen. */
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .34);
  overflow: hidden;
  animation: ss-lead-in .18s ease-out;
}

@keyframes ss-lead-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-lead-card { animation: none; }
}

.ss-lead-head {
  padding: 28px 28px 16px;
  background: #002E5D;
  color: #fff;
}
.ss-lead-head h2 {
  margin: 0 0 6px;
  font-family: 'Kollektif', sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.ss-lead-head p {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: .92rem;
  line-height: 1.5;
  opacity: .82;
}

.ss-lead-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.ss-lead-body iframe {
  display: block;
  width: 100%;
  height: 560px;
  max-height: 100%;
  border: 0;
}

.ss-lead-foot {
  flex: 0 0 auto;
  padding: 14px 28px 20px;
  border-top: 1px solid #ECECEA;
  background: #F5F5F3;
  text-align: center;
}
.ss-lead-foot a {
  font-family: 'Montserrat', sans-serif;
  font-size: .86rem;
  font-weight: 600;
  color: #005EB8;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 94, 184, .32);
  padding-bottom: 1px;
}
.ss-lead-foot a:hover,
.ss-lead-foot a:focus-visible { border-bottom-color: #005EB8; }

.ss-lead-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.ss-lead-x:hover { background: rgba(255, 255, 255, .26); }
.ss-lead-x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 520px) {
  .ss-lead-modal { padding: 0; }
  .ss-lead-card { max-width: none; max-height: 100dvh; border-radius: 0; }
  .ss-lead-head { padding: 24px 20px 14px; }
  .ss-lead-foot { padding: 12px 20px 16px; }
}
