/* === Base === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f5f7fa;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3, p {
  margin: 0;
  padding: 0;
}

/* === Hero Section === */
.urgency-banner {
  background:#c00;
  color:#fff;
  padding:10px;
  text-align:center;
  font-weight:bold;
}

.hero {
  background-color: #154577;
  color: #fff;
  text-align: center;
  padding: 1rem 1rem 2rem; /* tighter spacing */
}

.hero h1 {
  font-size: 1.8rem;
  margin: 0.25rem 0 0.5rem;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 45%;
  min-width: 280px;
}

.hero-form {
  flex: 1 1 45%;
  min-width: 280px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-form h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: #154577;
}

/* === Form === */
.lead-form input,
.lead-form select,
.lead-form button {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.lead-form button {
  background-color: #f06428;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

.lead-form button:hover {
  background-color: #d9531e;
}

.trust-badge {
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  margin-top: -2px;
}

.message.success {
  background: #4CAF50;
  color: white;
  font-weight: bold;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.message.error {
  background: #f44336;
  color: white;
  font-weight: bold;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* === CTA Buttons === */
.cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

.cta-button.call {
  background-color: #e65100;
  color: #fff;
}

.cta-button.text {
  background-color: #2e7d32;
  color: #fff;
}

.cta-buttons .cta-button {
  flex: 1 1 auto;
  min-width: 160px;
  max-width: 220px;
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 0;
  text-align: center;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.cta-button.call:hover { background-color: #d84315; }
.cta-button.text:hover { background-color: #1b5e20; }

.cta-phone {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin: 1rem 0;
}
.cta-phone a {
  color: #f06428;
  text-decoration: none;
}
.cta-phone a:hover { text-decoration: underline; }

/* === Results Section === */
.results {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: white;
}
.results h2 { font-size: 1.5rem; }

/* === Features Section === */
.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f5f5f5;
  gap: 2rem;
  counter-reset: step;
}
.feature {
  max-width: 300px;
  position: relative;
  padding-top: 3rem;
}
.feature::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f06428;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* === Testimonials === */
.form-testimonials {
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  gap: 2rem;
  background: white;
}
.testimonials { flex: 1; gap: 2rem; }
.testimonial { font-style: italic; max-width: 400px; color: #333; }

/* Testimonial stars */
.stars {
  color: #f06428;  /* match CTA button orange */
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: block;
  text-shadow: none; /* remove glow/shadow */
}

/* === Hero Alert (stat bar) === */
.hero-alert {
  background: #fff3cd;
  color: #856404;
  padding: 1rem;
  margin: 1.5rem auto;
  border-left: 5px solid #ffeeba;
  text-align: center;
  font-weight: bold;
  font-size: 1.05rem;
  max-width: 960px;
}
.hero-alert a {
  color: #856404;
  text-decoration: underline;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #154577;
  color: white;
  font-weight: bold;
}
.footer p {
  font-weight: normal;
  margin: 0.5rem 0 0;
}

/* === Responsive === */
@media(min-width: 768px) {
  .features { flex-direction: row; justify-content: space-around; }
  .form-testimonials { flex-direction: row; justify-content: space-around; align-items: center; }
  .desktop-only { display: block; }
  .mobile-only { display: none; }
}

@media(max-width: 767px) {
  .feature::before { width: 36px; height: 36px; font-size: 1rem; }
  .desktop-only { display: none; }
  .mobile-only { display: block; }
  .cta-buttons .cta-button { flex: 0 1 48%; } /* force side-by-side buttons */
}

/* Force wider mobile CTA buttons */
@media (max-width: 767px) {
  .cta-buttons .cta-button {
    flex: none;          /* disable flex shrinking */
    width: 48%;          /* each takes ~half row */
    min-width: 180px;    /* guarantees wider buttons */
    max-width: 220px;    /* keeps them from stretching huge */
    text-align: center;
    font-size: 1rem;
    padding: 12px 0;
    white-space: nowrap; /* prevent text wrapping */
  }
}

/* Tighten spacing above form headline */
.hero-form h3 {
  margin-top: 0.25rem;   /* reduce top margin */
  margin-bottom: 0.75rem; /* keep spacing below */
}

/* Force hero Call/Text buttons full width on mobile */
@media (max-width: 767px) {
  .hero .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .hero .cta-buttons .cta-button {
    flex: none !important;      /* disable flex shrink/grow */
    width: 45% !important;      /* take nearly half the row */
    min-width: 180px !important;/* guarantee button width */
    max-width: 220px !important;
    text-align: center;
    font-size: 1rem;
    padding: 14px 0;
    white-space: nowrap;
  }
}

/* Safety: stack buttons on ultra-narrow screens */
@media (max-width: 360px) {
  .hero .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero .cta-buttons .cta-button {
    width: 90% !important;
    max-width: none;
  }
}

/* Tighten spacing between CTA buttons and form */
.hero .cta-buttons {
  margin-bottom: 0.25rem !important; /* was ~0.75–1rem */
}

.results-highlight {
  background: #f5f5f5;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
}
.results-highlight p {
  margin: 0.25rem 0;
}

/* Bottom CTA section */
.bottom-cta {
  margin-top: 0.75rem;     /* slightly less spacing than 1rem */
  text-align: center;
}

.bottom-cta .cta-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Fix mobile CTA button width (top + bottom) */
@media (max-width: 767px) {
  .cta-buttons .cta-button {
    flex: 0 1 48%;       /* each button ~half the row */
    min-width: 160px;    /* guarantees they’re wide enough */
    max-width: 200px;    /* keeps them from stretching too far */
    text-align: center;
    font-size: 1rem;
    padding: 14px 0;     /* good height */
    white-space: nowrap; /* prevents text wrapping */
    box-sizing: border-box;
  }
}

/* Ensure bottom call/text buttons render wide enough on mobile */
@media (max-width: 767px) {
  .bottom-cta .cta-buttons .cta-button {
    flex: 0 1 48%;       /* split evenly across row */
    min-width: 180px;    /* force enough width */
    max-width: 220px;    /* don’t let them blow up */
    text-align: center;
    font-size: 1rem;
    padding: 14px 0;
    white-space: nowrap;
    box-sizing: border-box;
  }

  /* Center align the bottom CTA label */
  .bottom-cta .cta-label {
    font-weight: bold;
    text-align: center;
    margin: 0.75rem 0 0.5rem;
  }
}

/* Force wider bottom CTA buttons only */
@media (max-width: 767px) {
  .bottom-cta-buttons .cta-button {
    flex: 1 1 auto;       /* allow equal sizing */
    min-width: 160px;     /* ensures they aren’t skinny */
    max-width: 200px;     /* keeps them from going too wide */
    text-align: center;
    font-size: 1rem;
    padding: 12px 0;
    white-space: nowrap;  /* prevents wrapping */
  }

  .bottom-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 10px; /* space between buttons */
  }
}

/* Force bottom call/text buttons side by side on mobile */
@media (max-width: 767px) {
  .bottom-cta-buttons {
    display: flex !important;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
  }

  .bottom-cta-buttons .cta-button {
    flex: 1 1 auto;
    min-width: 45%;   /* each button takes ~half */
    max-width: 200px;
    text-align: center;
    font-size: 1rem;
    padding: 12px 0;
    white-space: nowrap;
  }
}

