/* Keep the original DealerMe landing-page visual system. */
.lead-capture {
  width: min(980px, calc(100% - 40px));
  margin: 34px auto 12px;
  padding: 0;
  scroll-margin-top: 82px;
}

.lead-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lead-card-head {
  max-width: 700px;
  margin: 0 auto 24px;
  text-align: center;
}

.lead-card-head h1 {
  margin: 9px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.lead-card-head p {
  margin: 0;
  color: var(--muted);
}

.lead-frame {
  width: 100%;
  height: auto !important;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent !important;
}

.lead-frame iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
  background: transparent;
}

.lead-frame .wf-parent {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
}

.lead-frame .wf-wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  padding: 30px 28px 32px !important;
  border: 1px solid rgba(246,185,31,.28) !important;
  border-radius: 22px !important;
  background: #0d0f0e !important;
  box-shadow: 0 22px 55px rgba(0,0,0,.3) !important;
  overflow: hidden !important;
}

.lead-frame .wf-form-component {
  width: 100% !important;
  color: #f5f6f4 !important;
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}

.lead-frame .wf-header { display: block !important; padding: 0 0 24px !important; color: #fff !important; font-size: clamp(1.9rem,4vw,2.5rem) !important; font-weight: 950 !important; letter-spacing: -.04em !important; line-height: 1 !important; background: transparent !important; }
.lead-frame .wf-form-wrapper {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
  padding: 0 !important;
}

.lead-frame .wf-row {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lead-frame .wf-row:first-child { grid-column: auto; }
.lead-frame .wf-label {
  width: 100% !important;
  margin: 0 0 10px !important;
  color: #d9dfdc !important;
  font-size: 1.05rem !important;
  font-weight: 750 !important;
}
.lead-frame .wf-row:has(.wf-field-mandatory) .wf-label::before { content: '* '; color: #ff3f67 !important; }

.lead-frame .wf-field { width: 100% !important; }
.lead-frame .wf-field-mandatory .wf-field-inner::before { display: none !important; }
.lead-frame .date-input-container[hidden] { display: none !important; }
.lead-frame .wf-field-item {
  width: 100% !important;
  min-height: 64px !important;
  padding: 15px 17px !important;
  border: 1px solid rgba(246,185,31,.5) !important;
  border-radius: 15px !important;
  outline: 0 !important;
  background: #1d1a12 !important;
  color: #dce3df !important;
  font: inherit !important;
  font-size: 1.05rem !important;
  box-shadow: none !important;
}
.lead-frame .wf-field-item::placeholder { color: #b9c3be !important; opacity: 1 !important; }

.lead-frame .wf-field-item:focus {
  border-color: #F6B91F !important;
  box-shadow: 0 0 0 3px rgba(246,185,31,.15) !important;
}

.lead-frame .wf-field-help-text {
  margin-top: 6px !important;
  color: #9fa9a4 !important;
  font-size: .8rem !important;
}

.lead-frame .wform-btn-wrap {
  margin: 24px 0 0 !important;
  padding: 0 !important;
}

.lead-frame .wf-btn {
  width: 100% !important;
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #F6B91F !important;
  color: #17140e !important;
  font: 900 1rem/1 Inter,ui-sans-serif,system-ui,sans-serif !important;
  cursor: pointer !important;
}

.lead-frame [id^="poweredBy"],
.lead-frame .dummy-div { display: none !important; }

@media (max-width: 680px) {
  .lead-frame .wf-wrapper { padding: 27px 18px 24px !important; border-radius: 19px !important; }
  .lead-frame .wf-form-wrapper { grid-template-columns: 1fr !important; gap: 22px !important; }
  .lead-frame .wf-row:first-child { grid-column: auto; }
  .lead-frame .wf-field-item { min-height: 60px !important; }
  .lead-frame .wform-btn-wrap { margin-top: 22px !important; }
}

/* The video belongs to the post-inquiry page, not the lead-capture page. */
html:not(.payment-domain) .intro-video {
  display: none !important;
}

/* Pricing is kept on the dedicated pay subdomain, not the lead funnel. */
html:not(.payment-domain) .plan .price,
html:not(.payment-domain) .banners,
html:not(.payment-domain) section:has(.banners),
html:not(.payment-domain) .payment-section,
html:not(.payment-domain) #contact,
html:not(.payment-domain) .floating-pay {
  display: none !important;
}

html:not(.payment-domain) #plans .section-head > p {
  display: none;
}

.lead-testimonials .gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:24px; }
.lead-testimonials .gallery a { display:block; overflow:hidden; border:1px solid rgba(246,185,31,.3); border-radius:15px; background:#211d14; }
.lead-testimonials .gallery img { display:block; width:100%; height:300px; object-fit:cover; object-position:top; }
.lead-testimonials .credit { max-width:850px; color:var(--muted); font-size:.82rem; }

@media (max-width: 780px) {
  .lead-capture { width: min(100% - 28px, 980px); margin-top: 22px; }
  .lead-card { padding: 0; }
  .lead-card-head { margin-bottom: 18px; }
  .lead-frame iframe { height: 1040px; }
  .lead-testimonials .gallery { grid-template-columns:1fr 1fr; gap:10px; }
  .lead-testimonials .gallery img { height:240px; }
}
