* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #0f172a;
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.12), transparent 32%),
    radial-gradient(circle at 100% 10%, rgba(14, 165, 233, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfefc 0%, #eef8f4 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hidden {
  display: none !important;
}

.lead-page {
  min-height: 100vh;
}

.referral-banner {
  border-bottom: 1px solid #d1fae5;
  background: rgba(236, 253, 245, 0.92);
  color: #0f172a;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.45;
}

.lead-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 18px 18px 42px;
}

.lead-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.vendor-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #082f49, #0f172a);
  color: #fbbf24;
  font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.vendor-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.lead-header strong {
  display: block;
  overflow: hidden;
  color: #020617;
  font-size: 1.04rem;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-header span {
  display: block;
  margin-top: 3px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 750;
}

.lang-toggle {
  min-height: 40px;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.hero-copy {
  margin-bottom: 22px;
}

.hero-pill {
  display: inline-flex;
  border: 1px solid #d1fae5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #065f46;
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
}

.hero-copy h1 {
  margin: 18px 0 0;
  max-width: 660px;
  color: #020617;
  font-size: clamp(2.35rem, 10vw, 4rem);
  font-weight: 950;
  line-height: 1.06;
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 620px;
  color: #475569;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.7;
}

.lead-card,
.estimate-card {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.form-head p,
.estimate-kicker {
  margin: 0 0 5px;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.form-head h2,
.estimate-card h2 {
  margin: 0;
  color: #020617;
  font-size: 1.35rem;
  line-height: 1.2;
}

.form-head > span {
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 950;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.field span,
.group-label {
  color: #1e293b;
  font-size: 0.94rem;
  font-weight: 900;
}

.group-label {
  margin: 16px 0 -4px;
}

.field input,
.field select {
  width: 100%;
  min-height: 58px;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  background: #f8fafc;
  color: #020617;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 850;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.phone-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  background: #f8fafc;
}

.phone-row:focus-within {
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.phone-row strong {
  display: grid;
  place-items: center;
  border-right: 1px solid #dbe4ee;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
}

.phone-row input {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-hint {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.exact-bill-field {
  margin-top: 12px;
  border: 1px solid #d1fae5;
  border-radius: 18px;
  background: #f0fdf4;
  padding: 12px;
}

.exact-bill-field input {
  background: #ffffff;
}

.exact-bill-hint {
  color: #047857;
}

.trust-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border-radius: 18px;
  background: #f8fafc;
  padding: 14px 16px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.45;
}

.trust-box span::before {
  content: "✓ ";
  color: #047857;
  font-weight: 950;
}

.form-error {
  min-height: 22px;
  margin: 12px 0 0;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 850;
}

.submit-btn {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: #047857;
  color: #ffffff;
  padding: 14px 18px;
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(4, 120, 87, 0.2);
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.submit-btn.secondary {
  margin-top: 18px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  box-shadow: none;
}

.estimate-card {
  overflow: hidden;
  border-color: rgba(16, 185, 129, 0.18);
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.72), #ffffff 42%),
    #ffffff;
  padding: 18px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 2px auto 14px;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.18);
  background: #dcfce7;
  color: #047857;
  font-size: 1.9rem;
  font-weight: 950;
}

.estimate-sub {
  margin: 10px auto 0;
  color: #64748b;
  font-weight: 800;
  line-height: 1.45;
}

.estimate-contact {
  margin-top: 16px;
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  padding: 12px 14px;
}

.estimate-firm-line {
  display: inline-flex;
  justify-content: center;
  margin: 10px auto 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #475569;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.4;
}

.estimate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.estimate-grid article {
  min-height: 116px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  padding: 16px 10px;
  text-align: center;
}

.estimate-grid span {
  display: block;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.estimate-grid strong {
  display: block;
  margin-top: 10px;
  color: #020617;
  font-size: 1.62rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.estimate-note {
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #10b981;
  border-radius: 18px;
  background: #ffffff;
  color: #1e293b;
  padding: 14px 14px 14px 16px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.58;
}

.summary-block {
  margin-top: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: #fbfdff;
  padding: 14px;
  text-align: left;
}

.summary-block h3 {
  margin: 0 0 10px;
  color: #020617;
  font-size: 0.98rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #f1f5f9;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 750;
}

.summary-row:first-child {
  border-top: 0;
}

.summary-row strong {
  color: #0f172a;
  text-align: right;
}

@media (max-width: 640px) {
  .lead-shell {
    padding: 18px 16px 34px;
  }

  .lead-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .lang-toggle {
    justify-self: end;
    margin-top: 0;
    padding-inline: 10px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .lead-card,
  .estimate-card {
    padding: 18px;
  }

  .estimate-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .lead-header strong {
    font-size: 0.94rem;
  }

  .lead-header span {
    font-size: 0.78rem;
  }

  .vendor-mark {
    width: 44px;
    height: 44px;
  }

  .lang-toggle {
    min-height: 36px;
    font-size: 0.78rem;
  }

  .estimate-grid strong {
    font-size: 1.34rem;
  }
}
