/* Triton lead form on /quote/ and /contact/. Hidden or shown by data-lead-form. */
html[data-lead-form="triton"] .quiz-legacy,
html[data-lead-form="triton"] #quiz-fallback,
html[data-lead-form="quiz"] .triton-lead { display: none !important; }

.lead-form-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 0 0 8px;
}
.lead-form-top > div { flex: 1 1 12rem; min-width: 0; }
.lead-form-top h1,
.lead-form-top h2 { margin: 0; }
html[data-lead-form="triton"] .quiz-page .lead-form-top h1 {
  font-size: clamp(28px, 6.4vw, 38px);
}
.lead-form-call {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  margin: 0;
}
.lead-form-call .button { white-space: nowrap; }
.lead-form-frame {
  width: 100%;
  max-width: 100%;
  margin: 8px 0 0;
  background: #fff;
  border: 1px solid #d5dfda;
  border-radius: 5px;
  overflow: hidden;
}
.lead-form-frame iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 640px;
  height: 680px;
  border: 0;
  background: #fff;
}
.lead-form-fallback {
  margin: 14px 0 0;
  font-size: 14px;
}
.lead-form-fallback a,
.lead-form-call-inline a {
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lead-form-fallback.is-error {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #d5dfda;
  border-radius: 5px;
  font-size: 16px;
}
.quote-panel .lead-form-frame {
  border: 0;
  border-radius: 0;
  margin-top: 16px;
}
.quote-panel .lead-form-frame iframe { min-height: 640px; }
.quote-panel .lead-form-call { margin: 12px 0 0; }
@media (max-width: 760px) {
  .lead-form-top { align-items: stretch; }
  .lead-form-call .button { width: 100%; text-align: center; }
}
html[data-lead-form="quiz"] .quiz-legacy { display: block !important; }
