/* Base Styles and Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #2a5caa;
  --secondary-color: #4ec5c1;
  --accent-color: #ff7e33;
  --text-color: #333333;
  --light-text: #ffffff;
  --light-bg: #f8f9fa;
  --dark-bg: #263238;
  --gray-bg: #f0f2f5;
  --border-radius: 8px;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --section-padding: 60px 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.alt-bg {
  background-color: var(--gray-bg);
}

.gradient-bg {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8em;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 3px;
  background-color: var(--accent-color);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
}

/* Layout & Sections */
section {
  padding: var(--section-padding);
}

.content-box {
  padding: 25px;
  border-radius: var(--border-radius);
  background-color: #fff;
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
}

.content-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  margin-right: 20px;
}

.nav-menu li {
  margin-left: 20px;
}

.nav-menu a {
  color: var(--text-color);
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.language-selector {
  position: relative;
  margin-left: 20px;
  cursor: pointer;
}

.current-language {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  display: none;
  z-index: 100;
  min-width: 150px;
}

.language-dropdown.show {
  display: block;
}

.language-dropdown li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: var(--text-color);
}

.language-dropdown li a:hover {
  background-color: var(--gray-bg);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    transition: var(--transition);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  
  .desktop-only {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.8rem;
  color: var(--light-text);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-10deg);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: perspective(1000px) rotateY(0);
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-image {
    order: -1;
    margin-bottom: 30px;
  }
  
  .hero-image img {
    transform: none;
  }
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: var(--light-text);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.cta-button:hover {
  background-color: #e56a1f;
  color: var(--light-text);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 126, 51, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 126, 51, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 126, 51, 0);
  }
}

/* ZIP Search Form */
.zip-search-form {
  margin-top: 20px;
}

.form-group {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.form-group input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form-helper {
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
  opacity: 0.8;
}

.zip-search-container {
  max-width: 600px;
  margin: 40px auto;
}

/* Neumorphism Card */
.neumorphism {
  background: var(--light-bg);
  border-radius: 15px;
  box-shadow: 
    10px 10px 20px rgba(0, 0, 0, 0.03),
    -10px -10px 20px rgba(255, 255, 255, 0.7);
  padding: 30px;
  transition: var(--transition);
}

.neumorphism:hover {
  box-shadow: 
    15px 15px 30px rgba(0, 0, 0, 0.05),
    -15px -15px 30px rgba(255, 255, 255, 0.8);
  transform: translateY(-5px);
}

/* Feature Lists */
.feature-list {
  margin: 20px 0;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.feature-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Plan Cards */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.plan-card {
  height: 100%;
}

.plan-card h3 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.pros h4, .cons h4 {
  margin-bottom: 10px;
}

.pros h4 {
  color: #28a745;
}

.cons h4 {
  color: #dc3545;
}

/* Provider Cards */
.providers-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.provider-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.provider-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.provider-logo {
  margin-bottom: 15px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.provider-card h3 {
  margin-bottom: 10px;
}

.provider-card p {
  margin-bottom: 20px;
}

/* CTA Sections */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--light-text);
}

.cta-content h2:after {
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--light-text);
}

.cta-content p {
  margin-bottom: 30px;
}

/* Images */
.rounded-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.rounded-image:hover {
  transform: scale(1.02);
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin: 20px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

.comparison-table th {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.comparison-table tr:nth-child(even) {
  background-color: var(--gray-bg);
}

.comparison-table tr:hover {
  background-color: #e9ecef;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: #fff;
}

.faq-item summary {
  padding: 15px 20px;
  font-weight: 600;
  cursor: pointer;
  background-color: #fff;
  position: relative;
  outline: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.faq-item[open] summary:after {
  content: '-';
}

.faq-content {
  padding: 0 20px 20px;
}

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-info {
  flex: 1 1 300px;
}

.footer-links {
  flex: 0 1 auto;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #fff;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}

.disclaimer {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 15px;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 10px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transition: bottom 0.3s ease;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-consent p {
  margin: 0;
  font-size: 0.9rem;
}

#accept-cookies {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  text-align: center;
}

.search-animation h3 {
  margin-bottom: 30px;
}

.searching-companies {
  margin: 30px 0;
}

.company-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.company-logos img {
  margin: 5px;
  max-width: 80px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin: 20px 0;
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
  width: 0%;
  transition: width 0.1s linear;
}

#search-status {
  font-size: 1rem;
  color: var(--primary-color);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    hyphens: auto;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .pros-cons {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links ul {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .form-group input {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }
  
  .form-group button {
    border-radius: var(--border-radius);
  }
  
  .cta-button {
    width: 100%;
  }
  
  .modal-content {
    padding: 20px;
  }
}