/**
 * CTA Popup styling (v4)
 *
 */

/* ---- Fixed button (bottom-right pill) ---- */
.btn.is-page-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.btn.is-page-fixed a:link,
.btn.is-page-fixed a:visited {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #009eff;
  box-shadow: 0px 10px 20px 0px rgba(0, 40, 85, 0.24);
  border-radius: 1000px;
  padding: 5px 30px;
  flex-shrink: 0;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  text-transform: none;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
}

.btn.is-page-fixed a:hover {
  color: #009eff;
  background: #fff;
}

.btn.is-page-fixed a:hover .icon {
  color: #009eff;
}

.is-formpopup svg.icon {
  color: #fff;
}

.mfp-iframe-holder .mfp-content {
    line-height: 0;
    max-width: 400px;
}

/* ---- Form popup modal contents ---- */
.mfp-iframe-holder .mfp-form-popup {
  display: flex;
  overflow: scroll;
  border-radius: 20px;
}

.mfp-iframe-holder .mfp-form-popup button.mfp-close {
  font-size: 40px;
  top: 0;
  right: 10px;
  color: var(--Navy);
  /* max-width: 400px;
  width: 100%;
  left: 0;
  right: 0;
  margin-right: auto;
  margin-left: auto;
  position: absolute; */
}

.mfp-iframe-holder .mfp-form-popup iframe {
  background: #fff;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  height: 80vh;
}

/* ---- Loading spinner (scoped to the popup to avoid colliding with v4) ---- */
.mfp-form-popup .loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.mfp-form-popup .loading:after {
  animation: loading 500ms infinite linear;
  border: 2px solid #fff;
  border-radius: 50%;
  border-right-color: transparent;
  border-top-color: transparent;
  content: '';
  display: block;
  height: 1rem;
  width: 1rem;
  left: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  position: absolute;
  top: 50%;
  z-index: 100;
}

.mfp-form-popup .loading.form {
  position: absolute;
  top: 30%;
  left: 50%;
  height: 3rem;
  width: 3rem;
  opacity: 0.5;
  margin-left: -3rem;
  margin-top: -3rem;
}

.mfp-form-popup .loading.form:after {
  border-color: #6a6b6b;
  border-right-color: transparent;
  border-top-color: transparent;
  height: 3rem;
  width: 3rem;
}

@keyframes loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
