:root {
  /* Colors */
  --primary-color: #004084;
  --primary-hover: #022e5c;
  --secondary-color: #004084;
  --secondary-bg: #cfeff8;
  --text-main: #222;
  --text-muted: #555;
  --text-light: #666;
  --white: #ffffff;
  --bg-gradient: linear-gradient(135deg, #e6f7fb, #ffffff);
  --error-bg: #f4d6d8;
  --error-text: #7d2e39;
  --success-bg: #a9f9a8;
  --success-text: #013c07;
  --info-bg: #a5c9fe;
  --info-text: #013157;
  --warning-bg: #f2c200;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 60px 0;
  --transition: 0.3s ease;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 18px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
}

body {
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Common Classes */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: 40px 0;
}

.heading-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.heading-container h2 {
  font-size: 22px;
  font-weight: 800;
}

.badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
}

/* Header */
/* Header */
.header {
  width: 100%;
  background: var(--white);
  border-bottom: 2px solid var(--secondary-color);
  position: fixed;
  /* Fixed as requested */
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 80px;
}

.header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Styles */
.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
}

.logo h1 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--primary-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.logo .tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary-color);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Main Navigation */
.main-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 5px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary-color);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Location Selector */
.location-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f7fb;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid #e1e1e1;
}

.location-selector i {
  color: var(--secondary-color);
  font-size: 14px;
}

.location-selector select {
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-color);
  cursor: pointer;
  outline: none;
}

/* Auth Buttons */
.auth {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  font-size: 14px;
}

.auth a {
  color: var(--primary-color);
  transition: var(--transition);
}

.auth a:last-child {
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}

.auth a:hover {
  color: var(--secondary-color);
}

.auth a:last-child:hover {
  background: var(--secondary-color);
  /* Hover for signup button */
  color: var(--white);
}

/* Add padding to body or main to prevent content being hidden behind fixed header */
main {
  padding-top: 80px;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 70vh;
  /* 80% of viewport height */
  min-height: 500px;
  display: flex;
  background: #1a1a2e;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center content in middle */
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Hero Background Image */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Even dark overlay */
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: var(--white);
  padding: 40px;
  margin: 0 auto;
  /* Center in middle */
  text-align: center;
  /* Center text */
}

.hero-rate {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-content h1 {
  font-size: 35px;
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.15;
  color: var(--white);
}

.hero-content h1 .highlight {
  color: var(--secondary-color);
}

.service-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 10px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.quote-btn {
  background: var(--secondary-color);
  color: var(--white);
  padding: 10px 10px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.quote-btn:hover {
  background: #c94830;
  transform: translateY(-2px);
}

.call-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
}

.call-btn:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  /* Center badges */
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.trust-badges i {
  color: var(--secondary-color);
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  pointer-events: none;
}

.slider-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: auto;
  backdrop-filter: blur(5px);
}

.slider-btn:hover {
  background: var(--secondary-color);
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-indicators button.active {
  background: var(--secondary-color);
  width: 30px;
  border-radius: 6px;
}

/* Hero Form Container */
.hero-form-container {
  position: absolute;
  top: 50%;
  right: 3%;
  transform: translateY(-50%);
  width: 280px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.15);
  padding: 15px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 20;
}

.hero-form h3 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 20px;
  text-align: center;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-subtitle {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 15px;
}

.form-subtitle i {
  color: var(--secondary-color);
  margin-right: 5px;
}

.form-group {
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-group .required {
  color: #ff6b6b;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: var(--transition);
  color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus {
  background: #fff;
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 64, 132, 0.15);
}

.form-hint {
  display: none;
  /* Hide to save space */
}

.submit-btn {
  width: 100%;
  background: var(--secondary-color);
  color: var(--white);
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover {
  background: #022e5c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Form Note */
.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 15px;
}

.form-note i {
  color: #28a745;
  margin-right: 5px;
}

.form-footer {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.form-footer small {
  font-size: 11px;
  color: var(--text-muted);
}

.form-footer i {
  color: var(--secondary-color);
  margin-right: 3px;
}

.hero-rate {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  margin-bottom: 25px;
  font-size: 18px;
  box-shadow: var(--shadow-md);
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.quote-btn {
  background: var(--secondary-color);
  color: var(--white);
  padding: 15px 35px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 18px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.quote-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 64, 132, 0.3);
}

.call-btn {
  background: var(--white);
  color: var(--primary-color);
  padding: 15px 35px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.call-btn:hover {
  background: #f1f1f1;
  transform: translateY(-3px);
}

.call-btn i {
  color: var(--secondary-color);
  font-size: 20px;
}

/* Update search container */
.hero-search-wrapper {
  margin-top: 40px;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search-wrapper .search-container {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
}

.hero-badge {
  position: absolute;
  bottom: 40px;
  left: -30px;
  background: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 220px;
}

/* Category Scroller */
.category-scroller {
  overflow: hidden;
  padding: 40px 0;
  background: var(--white);
}

.scroller-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.scroller-track:hover {
  animation-play-state: paused;
}

.scroller-item {
  flex: 0 0 280px;
  transition: var(--transition);
}

.scroller-item:hover {
  transform: scale(1.02);
}

.scroller-item img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Service Sliders */
.slider-container {
  position: relative;
  padding: 0 40px;
}

.slider-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  /* space for shadow */
  margin-bottom: -20px;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.slider-viewport::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.service-card {
  flex: 0 0 220px;
  text-align: center;
  scroll-snap-align: start;
}

.card-img-wrapper {
  aspect-ratio: 1/1;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 15px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card p {
  font-weight: 800;
  font-size: 15px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.nav-btn {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition);
}

.nav-btn:hover {
  transform: scale(1.1);
}

/* Video Section */
.video-section {
  text-align: center;
}

.video-container {
  max-width: 800px;
  margin: 20px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-container video {
  width: 100%;
}

.cta-btn {
  padding: 12px 30px;
  background: var(--error-text);
  color: var(--error-bg);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
}

/* Deal Section */
.deal-section .container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.timer {
  display: flex;
  gap: 10px;
}

.timer-box {
  background: var(--warning-bg);
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 60px;
}

.timer-box b {
  display: block;
  font-size: 20px;
}

.timer-box span {
  font-size: 12px;
}

/* Quick Links */
.footer-links {
  background: #f9f9f9;
  padding: 60px 0;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.links-col h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.links-col ul li {
  margin-bottom: 10px;
}

.links-col a:hover {
  text-decoration: underline;
}

/* Footer */
.footer-main {
  background: var(--secondary-bg);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.app-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.app-btns img {
  width: 140px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: 600;
}

/* Responsive Scaling */
@media (max-width: 992px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-stats {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header .container {
    height: 60px;
    padding: 0 10px;
  }

  .logo {
    font-size: 14px;
    gap: 5px;
  }

  .logo img {
    height: 35px;
  }

  .header-controls {
    gap: 10px;
  }

  .auth {
    font-size: 13px;
    gap: 4px;
  }

  /* Header Responsive */
  .main-nav {
    display: none;
    /* Hide menu on mobile for now */
  }

  .header .container {
    padding: 0 15px;
    height: 60px;
  }

  .logo h1 {
    font-size: 16px;
  }

  .logo .tagline {
    display: none;
    /* Hide tagline on small screens to save space */
  }

  .header-controls {
    gap: 10px;
  }

  .location-selector {
    padding: 5px 8px;
  }

  .location-selector select {
    font-size: 12px;
    width: 80px;
  }


  /* Responsive Hero Form */
  .hero {
    height: auto;
    min-height: 600px;
    display: flex;
    flex-direction: column;
  }

  .hero-slider {
    position: relative;
    height: 400px;
    width: 100%;
  }

  .hero-content {
    text-align: center;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 100%;
    left: 0;
    transform: none;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-form-container {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 85%;
    /* Slightly narrower */
    max-width: 350px;
    /* Limit width */
    margin: 5px auto 20px;
    /* Less overlap */
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    /* Reduced padding */
    border-radius: var(--radius-md);
  }

  .hero-form h3 {
    font-size: 18px;
    /* Smaller title */
    color: var(--primary-color);
    /* Dark text on mobile for readability */
    margin-bottom: 12px;
  }

  .form-group label {
    color: var(--text-muted);
    /* Dark text on mobile */
  }

  .form-group input {
    padding: 8px 12px;
    /* Smaller inputs */
    font-size: 13px;
  }

  .submit-btn {
    padding: 10px;
    font-size: 14px;
  }


  .search-container {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
  }

  .search-location {
    width: 100%;
    margin-bottom: 10px;
  }

  .divider {
    display: none;
  }

  .search-container input {
    width: calc(100% - 60px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about,
  .social-links,
  .app-btns {
    align-items: center;
    justify-content: center;
  }

  .header-city span {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .stat-item h3 {
    font-size: 20px;
  }

  .service-card {
    flex: 0 0 160px;
  }

  .slider-container {
    padding: 0 10px;
  }

  .nav-btn {
    display: none;
  }
}