/* =============================================================================
   CSS VARIABLES (DESIGN TOKENS)
   ============================================================================= */

:root {
  --primary-navy: #1a2f42;
  --secondary-navy: #2c4a3d;
  --accent-orange: #ff6b35;
  --accent-yellow: #ffb81c;
  --warm-cream: #f7f3e9;
  --light-gray: #f5f5f5;
  --medium-gray: #6c757d;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #1a2f42 0%, #2c4a3d 100%);
  --gradient-sunset: linear-gradient(135deg, #ff6b35 0%, #ffb81c 100%);
  --shadow-vintage: 0 8px 32px rgba(26, 47, 66, 0.2);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =============================================================================
   BASE STYLES
   ============================================================================= */

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: #f4f4f4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Critical loading states - Fixed for mobile scrolling */
body:not(.loaded) {
  overflow-y: auto; /* Allow vertical scrolling */
  overflow-x: hidden; /* Still prevent horizontal overflow */
}

/* Ensure mobile touch scrolling works */
body {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Fix for iOS Safari and mobile browsers */
@media screen and (max-width: 768px) {
  body {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    transform: none; /* Avoid iOS scroll bugs when body has transforms */
    backface-visibility: visible;
  }

  .hero {
    min-height: 100vh;
    min-height: -webkit-fill-available; /* iOS Safari fix */
  }
}

/* Loading screen disabled - page loads immediately */
.loading {
  display: none !important;
}

body.loaded .loading {
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--warm-cream);
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 0px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* =============================================================================
   LOADING SCREEN
   ============================================================================= */

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease-out;
}

.loading-truck {
  font-size: 6rem;
  color: var(--accent-orange);
  animation: loadingFloat 1.2s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 107, 53, 0.8);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes loadingFloat {
  0% {
    transform: translateY(0) rotate(-3deg) scale(1);
  }
  25% {
    transform: translateY(-20px) rotate(0deg) scale(1.1);
  }
  50% {
    transform: translateY(-35px) rotate(3deg) scale(1.2);
  }
  75% {
    transform: translateY(-20px) rotate(0deg) scale(1.1);
  }
  100% {
    transform: translateY(0) rotate(-3deg) scale(1);
  }
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */

.navbar {
  background: #2c3e50;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-bottom: 3px solid var(--accent-orange);
}

.navbar-brand {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white) !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.navbar-brand:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar-brand i {
  font-size: 1.8rem;
  color: var(--accent-orange);
  transition: transform 0.3s ease;
}

.navbar-brand:hover i {
  transform: scale(1.1);
}

.brand-text {
  color: var(--white);
  font-weight: 800;
}

.navbar-nav {
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: var(--white) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0.15rem;
  padding: 0.6rem 0.7rem !important;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  position: relative;
  border: 1px solid transparent;
  white-space: nowrap;
}

.navbar-nav .nav-link i {
  font-size: 0.85rem;
  color: var(--accent-orange);
  margin-right: 0.1rem;
}

.navbar-nav .nav-link:hover {
  background: var(--accent-orange);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(255, 107, 53, 0.3);
  border-color: var(--accent-yellow);
}

.navbar-nav .nav-link:hover i {
  color: var(--white);
}

.navbar.scrolled {
  background: #2c3e50;
  padding: 0.8rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Medium Screen Navigation Adjustments */
@media (min-width: 992px) and (max-width: 1280px) {
  .navbar-nav .nav-link {
    padding: 0.5rem 0.5rem !important;
    font-size: 0.8rem;
    margin: 0 0.1rem;
  }

  .navbar-nav .nav-link i {
    font-size: 0.8rem;
    margin-right: 0;
  }

  .navbar-brand .brand-text {
    font-size: 1.2rem;
  }
}

/* Mobile Navigation Adjustments */
@media (max-width: 991px) {
  .navbar-nav {
    padding-top: 1rem;
    background: rgba(44, 62, 80, 0.95);
    border-radius: 8px;
    margin-top: 0.5rem;
  }

  .navbar-nav .nav-link {
    margin: 0.2rem 0;
    padding: 0.8rem 1rem !important;
    border-left: 3px solid transparent;
  }

  .navbar-nav .nav-link:hover {
    border-left: 3px solid var(--accent-orange);
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(5px);
  }
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero {
  min-height: 100vh;
  background: var(--gradient-primary);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

.truck-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  overflow: hidden;
}

.highway {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background:
    linear-gradient(90deg, #333 0%, #444 50%, #333 100%),
    repeating-linear-gradient(90deg, transparent 0px, transparent 40px, #fff 40px, #fff 60px);
  background-size:
    100% 100%,
    120px 4px;
  background-position:
    0 0,
    0 28px;
}

.truck-silhouette {
  position: absolute;
  bottom: 60px;
  left: -10%;
  font-size: 8rem;
  color: rgba(0, 0, 0, 0.7);
  animation: truckDrive 15s linear infinite;
  transform-origin: center bottom;
}

@keyframes truckDrive {
  0% {
    left: -10%;
  }
  100% {
    left: 110%;
  }
}

.mountains {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  height: 120px;
  background: polygon(
    0% 100%,
    15% 40%,
    25% 60%,
    40% 20%,
    55% 50%,
    70% 30%,
    85% 70%,
    100% 45%,
    100% 100%
  );
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  top: -3px;
  z-index: 2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  min-width: 320px;
  padding: 0 1rem;
  color: #ffffff;
  margin-top: 1rem;
}

.hero h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--accent-orange);
  display: inline-block;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  transform: translateZ(0);
  backface-visibility: hidden;
  width: auto;
  max-width: 100%;
  will-change: transform;
}

.hero .tagline,
.hero .lead {
  color: #ffffff !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================================================
   SERVICES SECTION
   ============================================================================= */

.services {
  padding: 6rem 0;
  background: var(--warm-cream);
}

.section-title {
  font-family: "Oswald", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 0.5rem;
  position: relative;
  display: block;
  width: 100%;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 3px;
  background: var(--accent-orange);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--medium-gray);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 100%;
  border: 2px solid var(--accent-orange);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-yellow);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-sunset);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(108, 117, 125, 0.2);
}

.service-card p {
  color: var(--medium-gray);
  line-height: 1.8;
  margin-bottom: 0;
}

/* =============================================================================
   COVERAGE MAP SECTION
   ============================================================================= */

.coverage-map {
  background: linear-gradient(135deg, var(--white) 0%, var(--warm-cream) 100%);
  padding: 6rem 0;
  position: relative;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--white);
  position: relative;
}

.map-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  pointer-events: none;
}

/* =============================================================================
   ABOUT SECTION
   ============================================================================= */

.about {
  padding: 6rem 0;
  background: var(--white);
}

.about-text h2 {
  font-family: "Oswald", sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  color: var(--primary-navy);
  text-transform: uppercase;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--accent-orange);
  display: inline-block;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  padding-left: 1rem;
  border-left: 3px solid var(--light-gray);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--warm-cream);
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-orange);
}

.stat-number {
  font-family: "Oswald", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-orange);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--medium-gray);
  font-weight: 500;
}

/* =============================================================================
   QUOTE FORM SECTION
   ============================================================================= */

.quote-section {
  padding: 6rem 0;
  background: var(--gradient-primary);
  position: relative;
}

.quote-form {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
  border-top: 5px solid var(--accent-orange);
  border-bottom: 1px solid var(--light-gray);
  border-left: 1px solid var(--light-gray);
  border-right: 1px solid var(--light-gray);
}

.quote-form h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-navy);
  text-transform: uppercase;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(108, 117, 125, 0.2);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
  margin-bottom: 0.5rem;
}

.form-control:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  display: block;
  font-size: 1rem;
}

.btn-submit {
  width: 100%;
  background: var(--gradient-sunset);
  border: none;
  color: var(--white);
  padding: 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =============================================================================
   FOOTER
   ============================================================================= */

footer {
  background: var(--primary-navy);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--accent-orange);
  text-transform: uppercase;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 107, 53, 0.3);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn-custom {
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

.btn-primary-custom {
  background: var(--gradient-sunset);
  color: var(--white);
  border: 2px solid var(--accent-orange);
  box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  border-color: var(--accent-yellow);
}

.btn-outline-custom {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid var(--accent-orange);
  backdrop-filter: blur(10px);
}

.btn-outline-custom:hover {
  background: var(--accent-orange);
  color: var(--white);
  transform: translateY(-3px);
  border-color: var(--accent-yellow);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 2rem;
}

/* =============================================================================
   PARTICLES BACKGROUND
   ============================================================================= */

.particles-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none; /* Don't block touch/scroll */
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 992px) {
  .hero {
    padding-top: 5.8rem;
  }

  .hero-content {
    margin-top: 1.5rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
    min-height: 250px;
    margin-bottom: 1rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 6rem;
  }

  .hero-content {
    padding: 0 0.5rem;
    margin-top: 2rem;
  }

  .hero h1 {
    letter-spacing: 0.01em;
    border-bottom-width: 2px;
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.2;
    text-align: center;
    display: block;
    width: 100%;
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 6.5rem;
  }

  .hero-content {
    margin-top: 2.5rem;
    padding: 0 0.25rem;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
    letter-spacing: 0;
    padding-bottom: 0.6rem;
  }
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

/* AOS Animation Overrides */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.3s !important;
  transition-timing-function: ease-out !important;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos^="fade"] {
  transition-duration: 0.25s !important;
}

[data-aos^="slide"] {
  transition-duration: 0.35s !important;
}

[data-aos] {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================================
   MODAL STYLES (moved from inline for better caching)
   ============================================================================= */

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none; /* do not participate in layout when hidden (fixes iOS Safari oddities) */
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  pointer-events: none; /* hidden state shouldn't capture events */
}

.custom-modal-overlay.show {
  display: flex; /* only render when shown */
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* only capture when visible */
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
}

.custom-modal {
  background: var(--white);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 500px;
  width: 90%;
  transform: translateY(-50px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  position: relative;
}

.custom-modal-overlay.show .custom-modal {
  transform: translateY(0);
  opacity: 1;
}

.custom-modal h4 {
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
}

.custom-modal p {
  font-size: 1.1rem;
  color: var(--medium-gray);
  margin-bottom: 2rem;
}

.custom-modal .btn-close-modal {
  background: var(--accent-orange);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.custom-modal .btn-close-modal:hover {
  background: var(--accent-yellow);
}

.custom-modal .modal-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.custom-modal .modal-icon.success {
  color: #28a745;
}

.custom-modal .modal-icon.error {
  color: #dc3545;
}

/* Payment note styling */
.payment-note {
  font-size: 0.85rem;
  color: var(--medium-gray);
  text-align: center;
  margin: 1rem 0 0;
  font-style: italic;
}

/* Update notification styles */
.update-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  display: none; /* ensure completely hidden until .show */
}

.update-notification.show {
  display: block;
  transform: translateX(0);
}

.update-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-update,
.btn-dismiss {
  background: var(--accent-orange);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-dismiss {
  background: transparent;
  padding: 0.2rem 0.5rem;
}

/* Map fallback styles */
.map-fallback {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--warm-cream), #e9ecef);
  border-radius: 10px;
  text-align: center;
}

.fallback-content {
  max-width: 400px;
  padding: 2rem;
}

.fallback-content i {
  font-size: 3rem;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.state-list {
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.state-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-navy);
  font-weight: 500;
}

.state-item i {
  color: var(--accent-orange);
  font-size: 1rem;
}

/* Custom popup styles for map */
.state-popup {
  text-align: center;
}

.state-popup h4 {
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.popup-features {
  margin: 1rem 0;
}

.popup-features .feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.popup-features i {
  color: var(--accent-orange);
}

/* Performance monitoring overlay */
.perf-overlay {
  position: fixed;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem;
  font-family: monospace;
  font-size: 0.8rem;
  border-radius: 5px;
  z-index: 9999;
  display: none;
}

body.debug .perf-overlay {
  display: block;
}
