/* Lead popup — same as what-we-do service pages */
.lead-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(26, 26, 46, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.lead-popup-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lead-popup-modal {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: min(92vh, 820px);
  max-height: min(92dvh, 820px);
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-popup-overlay.open .lead-popup-modal {
  transform: translateY(0) scale(1);
}

.lead-popup-modal .hero-banner-form {
  max-width: none;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
}

.lead-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--lavender, #ebebf7);
  color: var(--midnight, #454da1);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
}

.lead-popup-close:hover {
  background: var(--lavender-mid, #dfe0f2);
}

.lead-popup-modal .hero-banner-form__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 400;
  color: var(--black, #10132b);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.lead-popup-modal .hero-banner-form__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--midnight, #454da1);
}

.lead-popup-modal .hero-banner-form__title-small {
  font-size: 0.65em;
}

.lead-popup-modal .hero-banner-form__field {
  width: 100%;
  background: var(--lav, #f5f4fc);
  border: 1.5008px solid var(--bd, #e2e2ee);
  border-radius: 8px;
  min-height: 44px;
  padding: 12px 15px;
  margin-bottom: 10px;
  font-size: 14.5008px;
  line-height: 1.35;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  color: var(--ink, #10132b);
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.lead-popup-modal .hero-banner-form__field::placeholder {
  color: #b0b0c4;
}

.lead-popup-modal .hero-banner-form__field:focus {
  border-color: var(--midnight, #454da1);
  background: var(--white, #fff);
  box-shadow: 0 0 0 3px rgba(69, 77, 161, 0.07);
}

.lead-popup-modal .hero-banner-form select.hero-banner-form__field {
  appearance: none;
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237878a0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  color: var(--ink, #10132b);
}

.lead-popup-modal .hero-banner-form select.hero-banner-form__field:invalid {
  color: #b0b0c4;
}

.lead-popup-modal .hero-banner-form select.hero-banner-form__field:focus,
.lead-popup-modal .hero-banner-form select.hero-banner-form__field option {
  color: var(--ink, #10132b);
}

.lead-popup-modal .hero-banner-form select.hero-banner-form__field option[disabled] {
  color: #b0b0c4;
}

.lead-popup-modal .hero-banner-form__submit {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 0;
}

.lead-popup-modal .hero-banner-form__foot {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 12px;
  color: var(--muted, #6b7280);
  text-align: center;
}

.lead-popup-modal .hero-banner-form__foot::before {
  content: none;
}

.lead-popup-modal .hero-banner-form.is-sent .hero-banner-form__fields,
.lead-popup-modal .hero-banner-form.is-sent .hero-banner-form__badge,
.lead-popup-modal .hero-banner-form.is-sent .hero-banner-form__title,
.lead-popup-modal .hero-banner-form.is-sent .hero-banner-form__sub {
  display: none;
}

.lead-popup-modal .hero-banner-form__success {
  display: none;
  text-align: center;
  padding: 12px 0;
}

.lead-popup-modal .hero-banner-form.is-sent .hero-banner-form__success {
  display: block;
}

@media (max-width: 480px) {
  .lead-popup-modal .quiz-card {
    padding: 22px 18px 20px;
  }

  .lead-popup-modal .hero-banner-form__title {
    font-size: 24px;
  }
}
