/*
Theme Name: Columbia Mosquito Control
Author: Antigravity
Description: Custom theme for Columbia Mosquito Control.
Version: 1.1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors - Premium Palette */
  --color-primary: #1B2A41;
  /* Deep Navy - Professional & Trusted */
  --color-primary-light: #324A6D;
  --color-secondary: #FFFFFF;
  --color-accent: #87CEEB;
  /* Light Blue - Fresh & Clean */
  --color-accent-hover: #5DADCD;
  /* Darker Blue for hover */
  --color-text: #2C3E50;
  --color-text-light: #64748B;
  --color-bg-light: #F8FAFC;
  --color-white: #FFFFFF;
  --color-success: #10B981;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 5rem;
  /* Increased for breathing room */

  /* Typography */
  --font-main: 'Outfit', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.7;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons - Pill Shaped & Modern */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 12px;
  /* Soft rounded corners (matches logo) */
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  /* Contrast against gold */
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.3rem;
}

/* Sections */
section {
  position: relative;
  overflow: hidden;
  /* For dividers */
}

.rounded-bottom-section {
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

@media (min-width: 768px) {
  .rounded-bottom-section {
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
  }
}

/* Organic Dividers */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-divider .shape-fill {
  fill: var(--color-white);
}

/* Cards */
.card {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* Header Tweaks */
.site-header {
  box-shadow: var(--shadow-sm);
  background-color: var(--color-primary);
  /* Dark Background */
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 8px solid #87CEEB;
  /* Thicker Light Blue Border */
}

/* Google Places Autocomplete dropdown */
.pac-container {
  z-index: 100001 !important;
  font-family: 'Outfit', sans-serif;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(27, 42, 65, 0.15);
  margin-top: 6px;
  overflow: hidden;
  background: #fff;
}

.pac-container .pac-item {
  padding: 10px 16px;
  font-size: 0.95rem;
  color: var(--color-text);
  border-top: 1px solid #f0f4f8;
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1.5;
}

.pac-container .pac-item:first-child {
  border-top: none;
}

.pac-container .pac-item:hover,
.pac-container .pac-item.pac-item-selected {
  background: rgba(135, 206, 235, 0.15);
}

.pac-container .pac-item .pac-icon {
  margin-right: 10px;
}

.pac-container .pac-item .pac-item-query {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.pac-container .pac-item .pac-matched {
  color: var(--color-accent-hover);
  font-weight: 700;
}

/* Hide the "Powered by Google" logo for cleaner look */
.pac-container::after {
  display: none !important;
}

/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    /* More space for text */
  }
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem;
    /* Reduced gap to ensure 4 columns fit on standard desktops */
  }
}

/* Why Us Grid Layout */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .why-us-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

/* Hero Coupon Component */
.hero-coupon {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.hero-coupon:hover {
  transform: scale(1.02);
}

.coupon-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.coupon-price {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin: 0.5rem 0;
}

.coupon-term {
  font-size: 1.25rem;
  color: white;
  opacity: 0.9;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  /* Align to bottom */
  padding: 0.5rem 0 1rem;
  /* Reduced top padding for a more compact header */
}

.site-branding {
  position: relative;
  z-index: 1001;
}

.site-branding .custom-logo-link img {
  max-width: 260px;
  /* Larger Logo */
  height: auto;
  position: relative;
  top: 35px;
  /* Push down further for larger size */
  margin-bottom: -60px;
  /* Prevent header expansion */
}

/* Nav Menu Colors & Layout */
.main-navigation ul,
.main-navigation .menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none !important;
  /* Force remove bullets */
}

.main-navigation ul li a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  /* Match "Mosquito Control" weight */
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.main-navigation ul li a:hover {
  color: var(--color-accent);
}

/* Header Text (if no logo) */
.site-title a {
  color: var(--color-white);
}

/* Header Button Override */
.site-header .btn-primary {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.site-header .btn-primary:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
}

.hamburger-bar {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop only utilities */
.desktop-only {
  display: block;
}

.mobile-nav-cta {
  display: none;
}

/* Mobile Header Styles */
@media (max-width: 991px) {
  .header-inner {
    padding: 0.25rem 0;
    align-items: center;
  }

  .site-branding .custom-logo-link img {
    max-width: 200px;
    top: 20px;
    margin-bottom: -40px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .desktop-only {
    display: none !important;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 4px solid var(--color-accent);
  }

  .main-navigation.mobile-open {
    max-height: 400px;
  }

  .main-navigation ul,
  .main-navigation .menu ul {
    flex-direction: column;
    gap: 0;
    padding: 3rem 1rem 1rem;
  }

  .main-navigation ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-navigation ul li:last-child {
    border-bottom: none;
  }

  .main-navigation ul li a {
    display: block;
    padding: 1rem 0;
    font-size: 1.3rem;
  }

  .mobile-nav-cta {
    display: block;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-cta .btn {
    width: 100%;
    text-align: center;
  }

  .mobile-nav-cta .btn {
    width: 100%;
    text-align: center;
  }
}

/* Hero Mobile Optimizations */
@media (max-width: 768px) {
  /* Keep badge + buttons on one line */
  .hero-cta-row {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.6rem !important;
    width: 100%;
  }

  /* Shrink the badge so buttons fit */
  .hero-badge-circle {
    width: 85px !important;
    height: 85px !important;
    flex-shrink: 0;
    margin-right: 0 !important;
  }

  .hero-badge-circle svg {
    width: 85px !important;
    height: 85px !important;
  }

  .hero-badge-circle > div {
    width: 50px !important;
    height: 50px !important;
  }

  .hero-badge-circle span {
    font-size: 1.3rem !important;
  }

  .hero-buttons {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.4rem !important;
    flex: 1;
  }

  .hero-buttons .btn {
    font-size: 0.8rem !important;
    padding: 0.6rem 0.75rem !important;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
  }

  .trust-signals {
    gap: 0.5rem !important;
    justify-content: space-between;
    margin-top: 2rem !important;
  }

  /* Coupon mobile fix */
  .hero-coupon {
    margin: 0 1rem;
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .coupon-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .trust-item {
    font-size: 0.9rem !important;
    /* Increased from 0.75rem */
    gap: 0.4rem !important;
  }

  .trust-item svg {
    width: 20px;
    /* Slightly larger icons */
    height: 20px;
  }

  /* Center all section headings on mobile home page */
  .services-section h2,
  .services-section h5,
  .why-us-section h2,
  .why-us-section h5,
  .subscription-section h2,
  .subscription-section h4,
  .subscription-section h5,
  .reviews-section h2,
  .reviews-section h5,
  .site-main > section h2,
  .site-main > section h5 {
    text-align: center;
  }

  /* Keep hero and service card headings left-aligned */
  .hero-section h1,
  .hero-section h2,
  .hero-section h5,
  .service-card h3,
  .service-card h4 {
    text-align: left;
  }

  /* Center subscription content and buttons */
  .subscription-content {
    text-align: center;
  }

  .subscription-content > div[style*="display: flex"] {
    justify-content: center;
  }
}

/* Hero Section Base Styles */
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.trust-signals {
  margin-top: 3rem;
  display: flex;
  gap: 3rem;
  opacity: 1;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Reviews Marquee Section */
.reviews-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.reviews-marquee::before,
.reviews-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Hero Trust Signals */
.trust-signals {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .trust-signals {
        justify-content: space-evenly;
        width: 100%;
        gap: 0;
    }
    
    .trust-item {
        font-size: 2.2rem;
    }
    
    .trust-item svg {
        width: 1em;
        height: 1em;
    }
}

.reviews-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-light), transparent);
}

.reviews-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-light), transparent);
}

.reviews-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll 40s linear infinite;
  padding: 0 1rem;
}

/* Pause on hover over the track */
.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 1rem));
    /* -50% because we duplicated the content once (total 2 sets) */
  }
}

.review-card {
  flex: 0 0 350px;
  background: var(--color-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reviewer-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--color-bg-light);
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.reviewer-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.2;
}

.review-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.google-icon-wrapper {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.star-rating {
  color: #FFB400;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 42, 65, 0.85);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content.compact-modal {
  background: rgba(255, 255, 255, 0.95);
  /* Slight transparency */
  border: 2px solid #87CEEB;
  /* Light Blue Border */
  width: 100%;
  max-width: 480px;
  /* Slightly wider for the 3 options */
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  margin: auto;
}

.modal-sticker {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  z-index: 100;
  pointer-events: none;
}
.modal-sticker img, .modal-sticker a {
  display: block;
  width: 100%;
  height: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  z-index: 10;
}

/* Service Selection Grid */
.service-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.service-option {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-option:hover {
  border-color: #87CEEB;
  transform: translateY(-2px);
}

.service-option.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
}

.option-icon {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.service-option.active .option-icon {
  color: white;
  /* Icon turns white when active */
}

.service-option span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Wizard Steps & Navigation */
.form-step {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.step-dot {
  width: 8px;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.step-dot.active {
  background-color: var(--color-primary);
  width: 24px;
  border-radius: 12px;
}

/* Pricing & Coupon Steps */
.price-display-container {
  text-align: center;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

.price-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 140px;
  height: 140px;
  background: #f8fafc;
  border-radius: 50%;
  margin: 0 auto;
  border: 4px solid #e2e8f0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.discount-applied .price-circle {
  border-color: #48bb78;
  /* Green */
  background: #f0fff4;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(72, 187, 120, 0.4);
}

.price-circle .currency {
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 2px;
  align-self: flex-start;
  margin-top: 2.5rem;
}

.price-circle .amount {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.discount-applied .amount {
  color: #2f855a;
}

.price-circle .per-visit {
  position: absolute;
  bottom: 0.8rem;
  /* Moved down to prevent overlap */
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.price-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* Coupon Section */
.coupon-section {
  margin-bottom: 2rem;
  padding: 0 1rem;
  text-align: center;
}

.coupon-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 0.5rem;
  flex-wrap: nowrap;
  /* Force single line */
}

/* Increased specificity to override generic modal input styles */
.modal-content input.coupon-char {
  width: 50px !important;
  /* Force width */
  height: 60px;
  padding: 0 !important;
  /* Override generic padding */
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  font-size: 1.8rem !important;
  /* Large text */
  font-weight: 800 !important;
  /* Extra bold */
  text-transform: uppercase;
  color: var(--color-primary);
  background: #f8fafc;
  transition: all 0.2s ease;
  display: block;
  flex: 0 0 auto;
  /* Don't grow or shrink */
}

.modal-content input.coupon-char:focus {
  border-color: #87CEEB;
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.3);
  background: white;
  outline: none;
  transform: translateY(-2px);
  z-index: 2;
}

.coupon-message {
  font-size: 0.85rem;
  margin-top: 0.8rem;
  height: 1.2rem;
  font-weight: 500;
}

/* Shake Animation for invalid coupon */
.shake {
  animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* Modal Header */
.modal-header {
  text-align: center;
}

.modal-header h3 {
  font-size: 1.6rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* Step Indicator */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e2e8f0;
  transition: all 0.3s ease;
}

.step-dot.active {
  background-color: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Modal Form Styles */
.modal-content .form-group {
  margin-bottom: 1.5rem;
  /* Compact spacing */
}

.modal-content .form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--color-primary);
  font-size: 1rem;
}

/* Force Address Input Full Width & Styling */
.modal-content .form-group input#inputAddress {
  width: 100% !important;
  display: block;
  padding: 0.8rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--color-text-dark);
  background-color: #f8fafc;
  box-sizing: border-box;
}

.modal-content .form-group input#inputAddress:focus {
  border-color: #87CEEB;
  background-color: white;
}

/* General Inputs */
.modal-content .form-group input,
.modal-content .form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--color-text-dark);
  background-color: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-content .form-group input:focus,
.modal-content .form-group select:focus {
  outline: none;
  border-color: #87CEEB;
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2);
  background: white;
}

/* Button & Actions */
.btn-block {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}


/* Date & Time Selection Styles */
.date-selection-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem; /* room for scrollbar */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
}

.date-selection-container::-webkit-scrollbar {
  height: 4px;
}

.date-selection-container::-webkit-scrollbar-track {
  background: transparent;
}

.date-selection-container::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  border-radius: 4px;
}

.date-card {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
  width: 55px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.date-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.date-card.active {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 6px rgba(27, 42, 65, 0.2);
}

.date-card .day {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.date-card.active .day {
  color: rgba(255, 255, 255, 0.9);
}

.date-card .date {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.time-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.time-pill {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  color: var(--color-text-dark);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.time-pill strong {
  font-size: 0.85rem;
  font-weight: 700;
}

.time-pill span {
  font-size: 0.7rem;
  opacity: 0.7;
}

.time-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.time-pill.active {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: white;
}

.time-pill.active span {
  opacity: 0.9;
}

/* Modal Form Actions Base */
.form-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.3rem;
  margin-top: 0.8rem;
}

/* Compact form spacing on final step */
#step4 .form-group {
  margin-bottom: 0.8rem;
}

/* ================================
   Mosquito Season Timeline V2 - Image Cards
   ================================ */
.season-timeline-v2 {
  padding: 1rem 0;
}

.timeline-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.timeline-cards.three-cards {
  grid-template-columns: repeat(3, 1fr);
}

.timeline-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-8px);
}

.timeline-card.active {
  box-shadow: 0 0 0 3px var(--color-accent), 0 12px 30px rgba(27, 42, 65, 0.2);
}

.card-image {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 16px;
  overflow: hidden;
}

.card-step {
  position: absolute;
  top: 12px;
  left: 12px;
  background: white;
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.card-overlay {
  background: linear-gradient(to top, rgba(27, 42, 65, 0.9) 0%, rgba(27, 42, 65, 0.4) 50%, transparent 100%);
  padding: 2rem 1rem 1rem;
  color: white;
}

.card-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  display: block;
  margin-bottom: 0.3rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.card-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0.3rem 0 0 0;
  line-height: 1.3;
}

/* Active Card Glow */
.timeline-card.active .card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--color-accent);
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
}

/* Phase Details Cards - Updated */
.phase-details {
  margin-top: 2rem;
  position: relative;
  min-height: 180px;
}

.phase-card {
  display: none;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.4s ease;
}

.phase-card.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phase-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.phase-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.phase-card p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.phase-tip {
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.9rem;
  border-left: 3px solid var(--color-accent);
}

.phase-tip strong {
  color: var(--color-primary);
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .timeline-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 500px) {
  .timeline-cards {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .card-step {
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
    top: 8px;
    left: 8px;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .card-overlay {
    padding: 1.5rem 0.8rem 0.8rem;
  }

  .phase-card {
    padding: 1.5rem;
  }
}

/* ================================
   Year Slider Component
   ================================ */
.year-slider-container {
  max-width: 900px;
  margin: 0 auto;
}

.slider-content-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  min-height: 200px;
}

/* Mosquitometer Gauge */
.mosquitometer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gauge-container {
  position: relative;
  width: 320px;
}

.gauge-svg {
  width: 100%;
  height: auto;
}

.gauge-needle {
  transition: transform 0.4s ease;
}

.gauge-needle.vibrating {
  animation: needleVibrate 0.1s ease-in-out infinite;
}

@keyframes needleVibrate {

  0%,
  100% {
    transform: rotate(var(--needle-rotation));
  }

  25% {
    transform: rotate(calc(var(--needle-rotation) + 2deg));
  }

  75% {
    transform: rotate(calc(var(--needle-rotation) - 2deg));
  }
}

/* Success Checkmark Animation */
.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px var(--color-accent);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--color-accent);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px var(--color-accent);
  }
}

.gauge-value {
  text-align: center;
  margin-top: -10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Text Content */
.slider-text-content {
  color: white;
}

.current-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.phase-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.phase-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.phase-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  border-left: 3px solid var(--color-accent);
}

.callout-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.callout-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

/* Month Slider */
.month-slider-wrap {
  position: relative;
  padding: 0 10px;
}

.month-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.month-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.month-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.month-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: grab;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.month-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  padding: 0 2px;
}

.month-labels span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.month-labels span:hover {
  color: rgba(255, 255, 255, 0.9);
}

.month-labels span.active {
  color: var(--color-accent);
  transform: scale(1.15);
}

/* You Are Here Indicator */
.you-are-here {
  position: absolute;
  bottom: -40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.you-are-here-bubble {
  position: relative;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: var(--color-accent);
  padding: 5px 10px;
  border-radius: 5px;
}

.you-are-here-bubble::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
  .slider-content-area {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
  }

  .slider-visual {
    aspect-ratio: 16/9;
  }

  .visual-icon {
    font-size: 3.5rem;
  }

  .phase-title {
    font-size: 1.4rem;
  }

  .month-labels span {
    font-size: 0.6rem;
  }

  .you-are-here {
    display: none;
  }
}

/* Benefits Section */
.benefits-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .benefits-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.25rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.benefit-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.benefit-text {
  font-size: 1.15rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* Subscription Layout */
.subscription-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .subscription-layout {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

/* How It Works Section */
.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
}

@media (min-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-icon-wrapper {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
}

.step-number {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  border: 2px solid white;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.step-description {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* Connecting line for desktop */
@media (min-width: 768px) {
  .how-it-works-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
    z-index: 0;
  }
}

/* Services Vertical List - Services Page Template */
.services-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-list-icon {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.service-list-content h3 {
  font-weight: 700;
  margin-top: 0;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .services-list-wrapper {
    gap: 3.5rem;
  }
}

/* FAQ Accordion Styles */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.faq-item summary {
  padding: 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  position: relative;
  list-style: none; /* Hide default arrow */
  touch-action: manipulation;
}

.faq-item summary::-webkit-details-marker {
  display: none; /* Hide arrow in WebKit */
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Homepage Hero & Services Spacing */
.hero-section {
    padding: 6rem 0 10rem;
}

.services-section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 4rem; /* Drastically reduced bottom padding on mobile */
    }
    .services-section {
        padding: 2rem 0 3rem; /* Drastically reduced top padding on mobile */
    }
}

/* ===== Blog Content Styles ===== */
.blog-content h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin: 2.5rem 0 1rem;
}

.blog-content h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin: 2rem 0 0.75rem;
}

.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.blog-content ul,
.blog-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-bg-light);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--color-text-light);
}

.blog-content a {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-content a:hover {
  color: var(--color-primary);
}

/* Blog Archive Card Hover */
.blog-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important;
}

.blog-grid article:hover img {
  transform: scale(1.05);
}