@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;700&family=Mulish:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-font: 'Mulish', sans-serif;
  --secondary-font: 'Cabin', sans-serif;
  --text-dark: #3c3d41;
  --text-muted: #656b6f;
  --text-light: #9ca1a9;
  --primary-blue: #00c3ff;
  --secondary-blue: #29c0ef;
  --cta-orange: #ef8429;
  --cta-shadow: #7b3b05;
  --bg-light: #f6f8fa;
  --bg-dark: #3b3d40;
  --bg-gradient: radial-gradient(circle at 80% 30%, #eef5fc 0%, #ffffff 65%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--primary-font);
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Common Layout Containers */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon-svg {
  height: 42px;
  width: auto;
}

.logo-text {
  font-family: var(--primary-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.rates-banner {
  font-family: var(--primary-font);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

.rates-value {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.rates-value:hover {
  color: #0099cc;
}

/* Hero Section */
.hero-section {
  background: var(--bg-gradient);
  padding: 60px 0;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-left {
  max-width: 480px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 24px;
}

/* Form Styles */
.quote-form-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.zip-form {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #717171;
  border-radius: 4px;
  height: 54px;
  padding: 0 12px;
  width: 195px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: rgba(113, 113, 113, 0.6);
  box-shadow: 0 0 0 4px rgba(113, 113, 113, 0.15);
}

.location-icon {
  width: 18px;
  height: 24px;
  margin-right: 8px;
  fill: #d9d9d9;
}

.zip-input {
  border: none;
  outline: none;
  font-size: 18px;
  font-family: var(--primary-font);
  width: 100%;
  color: var(--text-dark);
}

.zip-input::placeholder {
  color: #a6a4a4;
}

.button-disclaimer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-btn {
  background-color: var(--cta-orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  height: 54px;
  width: 220px;
  font-family: var(--primary-font);
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  filter: drop-shadow(1px 2px 0 var(--cta-shadow));
  transition: transform 0.1s ease, filter 0.1s ease, background-color 0.2s ease;
}

.compare-btn:hover {
  background-color: #f3953e;
}

.compare-btn:active {
  transform: translateY(1px);
  filter: drop-shadow(0.5px 1px 0 var(--cta-shadow));
}

.btn-arrow {
  width: 10px;
  height: 17px;
  fill: #fff;
}

.disclaimer-text {
  font-size: 10px;
  color: #a6a4a4;
  text-align: left;
}

.disclaimer-text a {
  color: #337ab7;
  text-decoration: none;
}

.disclaimer-text a:hover {
  text-decoration: underline;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-image-el {
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

/* Featured In Section */
.featured-section {
  padding: 40px 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.featured-label {
  font-size: 11px;
  font-weight: 700;
  color: #9b9b9b;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.featured-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.featured-logo-svg {
  height: 32px;
  fill: #9ca1a9;
  transition: fill 0.3s ease, transform 0.3s ease;
}

.featured-logo-svg:hover {
  fill: var(--text-dark);
  transform: scale(1.05);
}

.featured-logo-svg.cnn-money:hover {
  fill: #cc0000;
}

.featured-logo-svg.usa-today:hover {
  fill: #0099ff;
}

.featured-logo-svg.insurance-journal:hover {
  fill: #990000;
}

/* Reviews Section */
.reviews-section {
  padding: 60px 0;
  background: #ffffff;
  text-align: center;
}

.reviews-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 48px;
}

.underline {
  position: relative;
  display: inline-block;
}

.underline::after {
  content: "";
  display: block;
  width: 100%;
  height: 5px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='107.389' height='3.237' viewBox='0 0 107.389 3.237'%3E%3Cpath fill='%2329c0ef' d='m0 2.665 1.348.019q22.394.228 25.124.266l17.765.235q3.119.032 6.12.043l3.032.007q4 .024 17.19-.111-.58.018 36.8-.465V.52L93.448.327Q82.459.171 70.432.063 62.605-.005 56.64.001l-2.721.011q-2.044.053-37.34.363-2.388.007-5.756.095L8.361.608a26 26 0 0 0-3.3.43 8.4 8.4 0 0 0-1.752.537l-1.793.926-.628.121Z' data-name='Path 113'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.customer-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.customer-card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.customer-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.star-rating {
  display: flex;
  gap: 4px;
}

.star-icon {
  width: 20px;
  height: 20px;
  fill: #ffb703;
}

.star-icon.empty {
  fill: #dee2e6;
}

.star-icon.half {
  fill: url(#half-grad);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.card-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Advantages Section */
.advantages-section {
  padding: 60px 0;
  background: #f8fafc;
}

.advantages-label {
  font-size: 11px;
  font-weight: 700;
  color: #3b3d40;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.advantages-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  line-height: 1.3;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.advantage-img-wrapper {
  height: 140px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-icon {
  height: 130px;
  width: auto;
}

.advantage-heading {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.advantage-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Providers List */
.providers-container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 48px;
}

.providers-icon {
  height: 100px;
  width: auto;
  margin-bottom: 20px;
}

.providers-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.providers-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Bottom Form (Footer-Form) */
.footer-form-section {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.footer-form-wrapper {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-form-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
}

.footer-form-subtitle {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.footer-form-wrapper .zip-form {
  justify-content: center;
}

/* Footer Section */
footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}

.footer-logo-svg {
  height: 38px;
  fill: #fff;
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 13px;
  color: #8c9096;
  line-height: 1.5;
}

.footer-disclaimer a {
  color: #cbd5e1;
  text-decoration: underline;
}

.footer-disclaimer a:hover {
  color: #fff;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  text-align: right;
  font-size: 12px;
  color: #8c9096;
}

.footer-copyright {
  font-weight: 600;
  color: #cbd5e1;
}

.footer-address {
  line-height: 1.6;
}

/* Mobile-only Footer Elements */
.footer-container-mobile {
  display: none;
}

/* Interactive Modal for ZIP Comparison Flow */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 580px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: 700;
  color: #9ba3af;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  color: var(--text-dark);
}

/* Loader Screen inside Modal */
.modal-loader-view {
  padding: 48px 32px;
  text-align: center;
}

.loader-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.loader-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.progress-bar-container {
  background-color: #e2e8f0;
  border-radius: 10px;
  height: 8px;
  width: 100%;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #00c3ff, #0077ff);
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 320px;
  margin: 0 auto;
}

.progress-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #9ba3af;
  font-weight: 500;
}

.progress-step-item.active {
  color: var(--text-dark);
}

.progress-step-item.done {
  color: #10b981;
}

.progress-step-icon {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.progress-step-item.active .progress-step-icon {
  border-color: var(--primary-blue);
  background: var(--primary-blue);
  color: #fff;
  animation: pulse-ring 1.2s infinite;
}

.progress-step-item.done .progress-step-icon {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

/* Results Screen inside Modal */
.modal-results-view {
  display: none;
  padding: 40px 32px;
}

.results-header {
  text-align: center;
  margin-bottom: 30px;
}

.results-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.results-subtitle {
  font-size: 15px;
  color: #10b981;
  font-weight: 600;
}

.provider-results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.provider-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.provider-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.provider-logo-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.provider-logo-brand.geico { color: #003366; }
.provider-logo-brand.statefarm { color: #cc0000; }
.provider-logo-brand.libertymutual { color: #002244; }
.provider-logo-brand.progressive { color: #0a2f5c; }

.provider-badge {
  font-size: 10px;
  font-weight: 700;
  background-color: #ecfdf5;
  color: #10b981;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.provider-price-section {
  text-align: right;
}

.provider-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
}

.provider-price-period {
  font-size: 11px;
  color: var(--text-muted);
}

.provider-action-btn {
  background-color: var(--cta-orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.provider-action-btn:hover {
  background-color: #f3953e;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 195, 255, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 195, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 195, 255, 0); }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-left {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .zip-form {
    justify-content: center;
  }
  .hero-right {
    justify-content: center;
  }
  .customer-group {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  nav {
    height: auto;
    padding: 12px 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
  .logo-icon-svg {
    height: 32px;
  }
  .logo-text {
    display: none;
  }
  .rates-banner {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
  }
  .hero-title {
    font-size: 32px;
  }
  .zip-form {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
  }
  .input-wrapper {
    width: 100%;
  }
  .button-disclaimer-wrapper {
    width: 100%;
  }
  .compare-btn {
    width: 100%;
  }
  .customer-group {
    grid-template-columns: 1fr;
  }
  .customer-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  .footer-left {
    align-items: center;
  }
  .footer-right {
    align-items: center;
    text-align: center;
  }
}
