/* jotform-capture.css — Lead-Capture v2 pop-up styling (2026-07-31)
   Warm-editorial, quiet, dismissable. Additive; link only on pages using jotform-capture.js. */

.jf-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 20, 42, 0.55); /* navy scrim, no glassmorphism blur */
  animation: jf-fade 0.18s ease-out;
}

.jf-popup {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow: auto;
  background: var(--cream, #faf6ef);
  border-radius: 12px;
  border-top: 5px solid var(--clay, #cc5500);
  box-shadow: 0 18px 50px rgba(0, 20, 42, 0.28);
  padding: 1.4rem 1.5rem 1.25rem;
  animation: jf-rise 0.22s ease-out;
}

.jf-popup__h {
  font-family: "Newsreader", Georgia, serif;
  color: var(--navy, #002e5e);
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0.1rem 2rem 0.6rem 0;
}

.jf-popup__close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: #8a929c;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.jf-popup__close:hover { color: var(--navy, #002e5e); background: rgba(0, 46, 94, 0.06); }
.jf-popup__close:focus-visible { outline: 2px solid var(--clay, #cc5500); outline-offset: 2px; }

.jf-popup iframe { display: block; }

@keyframes jf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jf-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .jf-popup-overlay, .jf-popup { animation: none; }
}

@media (max-width: 600px) {
  .jf-popup { max-width: 100%; padding: 1.1rem 1.1rem 1rem; }
  .jf-popup__h { font-size: 1.15rem; }
}
