*, *::before, *::after {
  box-sizing: border-box;
}

body, html {
  margin: 0; padding: 0;
  font-family: Arial, sans-serif;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto;
}
header {
  background: #edf6ef;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
header .logo {
  font-weight: bold;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  text-decoration: none;
}
nav {
  display: flex;
  gap: 20px;
  font-weight: 600;
}
nav a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1rem;
}
nav a:hover {
  text-decoration: underline;
}
.right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.lookup-btn {
  background-color: #004225;
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.lookup-btn:hover {
  background-color: #006f42;
}
.phone-number {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  color: #1a1a1a;
}
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}
.main-content {
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  background: white;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  max-width: 100%; /* Or remove max-width altogether */
  padding: 2rem 4rem;
}
.form-container {
  width: 320px;
  background: #ffffff;
  border: 1px solid #ccc;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}
.form-container h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #004225;
}
label {
  display: block;
  margin: 15px 0 5px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}
input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #aaa;
  font-size: 1rem;
  box-sizing: border-box;
}
#result {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #007700;
  min-height: 20px;
}
button#next-btn {
  margin-top: 20px;
  width: 100%;
  background-color: #004225;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
button#next-btn:hover {
  background-color: #006633;
}

.form-intro {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #444;
}

.distance-display {
  margin-top: 0.5rem;
  font-weight: bold;
  color: #2c7;
}

.quote-layout {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.why-choose-us {
  flex: 1;
  background-color: #f8f8f8;
  padding: 2.5rem 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  color: #1e3d29;
  font-size: 1.15rem;
  line-height: 1.75;
}

.why-choose-us h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.why-choose-us ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.why-choose-us li {
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.25rem;
}


.form-container {
  flex: 1;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Default: desktop */
.hamburger {
  display: none;
}

#nav-menu {
  display: flex;
  gap: 12px; /* Controls spacing between nav links */
  align-items: center;
  flex-wrap: nowrap;
}

#nav-menu a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1rem;
}

.dropbtn {
  color: #1a1a1a;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background-color: #edf6ef;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: 180px;
  width: max-content;           /* shrink to fit content */
  max-width: 100vw;            /* never exceed viewport */
  margin: 0;                   /* remove previous auto centering */
  right: auto;                 /* clear any conflicting positioning */
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.dropdown-content a {
  color: #1a1a1a;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #d4f0dc;
}

.dropdown:hover .dropdown-content {
  display: block;
}


/* Mobile styles */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
  }

  .hamburger span {
    background: #1e3d29;
    display: block;
    height: 3px;
    margin: 5px 0;
    border-radius: 2px;
  }

  .tagline {
    display: none;
  }
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
  .lookup-btn.mobile-only {
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }

  .pac-container {
    z-index: 9999 !important;
  }

  header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;  /* Stack vertically */
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  .testimonial-grid blockquote {
    padding: 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    background: #ffffff;
    border-left: 3px solid #2e8b57;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    font-style: normal;
    font-weight: 500;

  }

  .testimonial-grid cite {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    display: block;
    text-align: right;
    color: #2e8b57;
  }

  .testimonials {
    padding: 1.5rem 1rem;
    margin: 2rem 1rem;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #edf6ef;
    padding: 10px;
    border-radius: 8px;
    width: 200px;
    z-index: 1000;
  }

  #nav-menu.active {
    display: flex;
  }

  nav a {
    padding: 10px 15px;
    border-top: 1px solid #006633;
  }

  nav a:first-child {
    border-top: none;
  }

  .phone-number {
    display: none;
  }

  #nav-menu a {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  #nav-menu a:last-child {
    border-bottom: none;
  }

  .logo {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
  }

  .quote-layout {
    flex-direction: column;
    padding: 0; /* remove side padding */
    margin: 0;
    width: 100%;
    max-width: 100%; /* override 1200px from desktop */
  }
  .why-choose-us {
    padding: 1rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .form-container {
    padding: 1rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  body, html {
    padding: 0;
    margin: 0;
    width: 100%;
  }
  .dropdown-content {
    position: relative;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 6px;
  }
}

.why-choose-us,
.form-container {
  flex: 1 1 100%;
}

.why-choose-us li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
}

.why-choose-us li i {
  color: #2e8b57;
  margin-right: 0.75rem;
  font-size: 1.3rem;
  min-width: 1.3rem;
}

header {
  flex-wrap: wrap;
  padding: 10px 15px;
}

.tagline {
  font-size: 1rem;
  color: #1a1a1a;
}

.testimonials {
  background: #f0f0f0;
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 8px;
}
.testimonials h4 {
  margin-bottom: 1rem;
}

.location-seo {
  padding: 2rem 1rem;
  background: #f0f0f0;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 1000px;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}
.location-seo h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #004225;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.logo img {
  max-height: 40px;
  width: auto;
}

.testimonials {
  background: #ffffff;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
}

.testimonials h4 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #004225;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.testimonial-grid blockquote {
  background: #f9f9f9;
  border-left: 4px solid #2e8b57;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-style: italic;
  color: #333;
}

.testimonial-grid cite {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #555;
}


.comparison {
  background: #ffffff;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 900px;
}

.comparison h3 {
  text-align: center;
  font-size: 1.5rem;
  color: #004225;
  margin-bottom: 1.5rem;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
}

.comparison th,
.comparison td {
  padding: 1rem;
  text-align: center;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.comparison th {
  background-color: #e6f2ec;
  color: #004225;
  font-weight: 700;
}

.comparison td:first-child {
  text-align: left;
  font-weight: 600;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  text-align: center;
}

.layout-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Makes sure the table scrolls horizontally on small screens */
}

.comparison th,
.comparison td {
  padding: 1rem;
  text-align: center;
  border: 1px solid #ddd;
  font-size: 1rem;
  white-space: nowrap; /* Prevents text wrapping */
}

.text-success {
  color: #2e8b57; /* deep green */
  font-size: 1.25rem;
}

.text-danger {
  color: #cc0000; /* strong red */
  font-size: 1.25rem;
}



blockquote {
  margin: 1rem 0;
  font-style: italic;
  color: #333;
}


.mobile-menu {
  display: none;
  flex-direction: column;
  background: #edf6ef;
  position: absolute;
  top: 60px; /* adjust based on header height */
  right: 20px;
  width: 200px;
  border-radius: 8px;
  padding: 10px;
  z-index: 1000;
}

.mobile-menu a {
  color: white;
  padding: 10px;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu.active {
  display: flex;
}

/* Base grid styling */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Override on small screens */
@media screen and (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr !important; /* Force single column */
  }

  .testimonial-grid blockquote {
    font-style: normal !important;         /* Remove italics */
    font-size: 1rem;
    padding: 1rem;
    line-height: 1.6;
  }
}

.site-footer {
  background-color: #f8f8f8;
  color: #444;
  font-size: 0.9rem;
  padding: 2rem 1rem;
  border-top: 1px solid #ddd;
  text-align: center;
}


.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-section h4 {
  color: #2e8b57;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-section a {
  color: #2e8b57;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.25rem;
}

.fmcsa-badge {
  height: 30px;
  margin-top: 0.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #666;
}

.mobile-cta-banner {
  display: none; /* Hide on desktop */
}

.input-wrapper {
  position: relative;
}

@media screen and (max-width: 768px) {
  .mobile-cta-banner {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2e8b57;
    text-align: center;
    padding: 1rem;
    z-index: 999;
  }

  .mobile-cta-banner a {
    color: white;
    font-weight: bold;
    text-decoration: none;
  }
  .mobile-cta-banner button {
    background: #fff;
    color: #004225;
    font-weight: bold;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
  }
  .site-footer {
    padding-bottom: 85px; /* Adjust to match your mobile CTA height */
  }
}
