/* ============================================
   Speedy Wheels Logistics - Professional Website Stylesheet
   Best Practices: Modern, Responsive, Accessible
   ============================================ */

/* ===== CSS Variables (Design System) ===== */
:root {
  /* Brand Colors */
  --primary-blue: #00a1ef;
  --primary-blue-dark: #029046;
  --primary-blue-light: #00b8ff;
  --charcoal: #2c2f32;
  --charcoal-light: #4a4d52;
  --white: #ffffff;
  --off-white: #f9f9f9;
  --gray-light: #f5f7fa;
  --gray: #6b7280;
  --gray-dark: #374151;
  --border-color: #e5e7eb;
  --error-red: #dc2626;
  --success-green: #029046;
  --error: #dc2626;
  --success: #029046;
  
  /* Text Colors */
  --text-dark: #2c2f32;
  --text-light: #6b7280;
  
  /* Background Colors */
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */
  
  /* Spacing */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 0.75rem;   /* 12px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */
  --spacing-4xl: 5rem;     /* 80px */
  
  /* Layout */
  --max-width: 1200px;
  --container-padding: 1rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.body-text {
  font-size: var(--font-size-base);
  line-height: 1.7;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: var(--spacing-md);
}

h1 { 
  font-size: var(--font-size-4xl); 
  line-height: 1.1;
}

h2 { 
  font-size: var(--font-size-3xl); 
  line-height: 1.2;
}

h3 { 
  font-size: var(--font-size-2xl); 
  line-height: 1.3;
}

h4 { 
  font-size: var(--font-size-xl); 
  line-height: 1.4;
}

h5 { 
  font-size: var(--font-size-lg); 
  line-height: 1.4;
}

h6 { 
  font-size: var(--font-size-base); 
  line-height: 1.5;
}

/* Override inline styles and ensure consistency */
.main-title,
h1.main-title {
  font-size: var(--font-size-4xl) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: var(--charcoal) !important;
}

.main-subtitle,
h2.main-subtitle {
  font-size: var(--font-size-xl) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--charcoal) !important;
}

h1.main-title.text-white,
h2.main-subtitle.text-white {
  color: var(--white) !important;
}

.subheadline {
  font-size: var(--font-size-lg) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

.body-link {
  font-size: var(--font-size-base) !important;
  line-height: 1.7 !important;
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Images ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Standardize image sizes */
img.logo {
  height: 50px !important;
  width: auto !important;
  object-fit: contain;
}

img.chat-img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
}

/* Responsive images */
img[data-lazy-src],
img[data-lazy-srcset] {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Image containers */
.img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
}

/* Icon sizing */
.icon-montway {
  width: 60px !important;
  height: 60px !important;
  display: inline-block;
  vertical-align: middle;
}

.icon-montway.icon-small {
  width: 32px !important;
  height: 32px !important;
}

.icon-montway.icon-large {
  width: 80px !important;
  height: 80px !important;
}

/* SVG sizing */
svg {
  max-width: 100%;
  height: auto;
}

svg.icon-montway {
  width: 65px !important;
  height: 58px !important;
  fill: currentColor;
}

/* Background images */
.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== Layout Components ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

@media (min-width: 768px) {
  .container {
    --container-padding: 2rem;
  }
}

/* ===== Header & Navigation ===== */
.main-header-wrap {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background: var(--gray-light);
  padding: var(--spacing-sm) 0;
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--border-color);
}

.top-bar .moving-news p {
  margin: 0;
  text-align: center;
  color: var(--gray-dark);
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  gap: var(--spacing-lg);
}

.logo-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-primary {
  flex: 1;
}

.nav-primary ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  margin: 0;
  padding: 0;
}

.nav-primary a {
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
  padding: var(--spacing-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-primary a:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

.nav-primary a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width var(--transition-base);
}

.nav-primary a:hover::after {
  width: 100%;
}

.part-phone {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.header-cta {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--primary-blue-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.header-phone {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: var(--font-size-lg);
}

/* ===== Hero Section ===== */
.hero-form {
  position: relative;
  min-height: 600px;
  background-image: url('../../app/uploads/2023/Home_Page/header-image.jpg');
  background-size: cover !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
  background-color: var(--primary-blue);
  display: flex;
  align-items: center;
  padding: var(--spacing-3xl) 0;
}

.hero-form::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-form {
    background-image: url('../../app/uploads/2023/Home_Page/header-image-device.jpg');
    min-height: 500px;
  }
}

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

.hero-form .main-title {
  color: var(--white);
  font-size: var(--font-size-5xl);
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-form .main-subtitle {
  color: var(--white);
  font-size: var(--font-size-xl);
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: var(--spacing-2xl);
}

/* ===== Forms ===== */
.calculator-container,
.form-container {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-xl);
  margin-top: var(--spacing-lg);
}

.form-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--charcoal);
}

.input-wrap {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.input-wrap label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--spacing-xs);
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
  background: var(--white);
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 161, 239, 0.1);
}

.button-primary {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: var(--spacing-md) var(--spacing-2xl);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  text-decoration: none;
}

.button-primary:hover {
  background: var(--primary-blue-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button-primary:active {
  transform: translateY(0);
}

.button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

/* ===== Sections ===== */
section {
  padding: var(--spacing-3xl) 0;
}

.section-alt {
  background: var(--gray-light);
}

.bg-white {
  background-color: var(--white);
}

.bg-light {
  background-color: var(--gray-light);
}

/* ===== Footer ===== */
.content-info {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-3xl);
}

.content-info a {
  color: var(--white);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.content-info a:hover {
  opacity: 1;
  color: var(--primary-blue-light);
}

.footer .nav-footer {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .nav-footer li {
  margin-bottom: var(--spacing-sm);
}

.copyright-text {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-size-sm);
  opacity: 0.8;
  text-align: center;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ===== Color Utilities ===== */
.text-white { color: var(--white) !important; }
.text-gray { color: var(--gray) !important; }
.text-blue { color: var(--primary-blue) !important; }
.text-bold { font-weight: 700 !important; }

/* Override inline color styles */
span[style*="color: #029046"],
span[style*="color: #00a1ef"],
span[style*="color:#029046"],
span[style*="color:#00a1ef"] {
  color: var(--primary-blue) !important;
}

span[style*="color: #029046"],
span[style*="color:#029046"] {
  color: var(--success-green) !important;
}

/* Color classes for common use */
.text-green {
  color: var(--success-green) !important;
}

.text-primary {
  color: var(--primary-blue) !important;
}

.text-dark {
  color: var(--charcoal) !important;
}

.text-muted {
  color: var(--gray) !important;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.is-underline { text-decoration: underline; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .nav-primary ul {
    gap: var(--spacing-md);
  }
  
  .hero-form .main-title {
    font-size: var(--font-size-4xl);
  }
}

/* ===== Responsive Font Sizes ===== */
@media (max-width: 1024px) {
  :root {
    --font-size-5xl: 2.5rem;   /* 40px */
    --font-size-4xl: 2rem;     /* 32px */
    --font-size-3xl: 1.75rem;  /* 28px */
  }
  
  .main-title,
  h1.main-title {
    font-size: var(--font-size-4xl) !important;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.25rem;   /* 36px */
    --font-size-4xl: 1.875rem;  /* 30px */
    --font-size-3xl: 1.5rem;    /* 24px */
    --font-size-2xl: 1.25rem;  /* 20px */
  }
  
  h1, .main-title {
    font-size: var(--font-size-3xl) !important;
  }
  
  h2, .main-subtitle {
    font-size: var(--font-size-2xl) !important;
  }
  
  h3 {
    font-size: var(--font-size-xl) !important;
  }
  
  .main-title,
  h1.main-title {
    font-size: var(--font-size-3xl) !important;
  }
  
  .main-subtitle,
  h2.main-subtitle {
    font-size: var(--font-size-lg) !important;
  }
  
  .navigation {
    flex-wrap: wrap;
  }
  
  .nav-primary {
    order: 3;
    width: 100%;
    margin-top: var(--spacing-md);
  }
  
  .nav-primary ul {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .part-phone {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .hero-form {
    min-height: 400px;
    padding: var(--spacing-2xl) 0;
  }
  
  .hero-form .main-title {
    font-size: var(--font-size-3xl);
  }
  
  .calculator-container,
  .form-container {
    padding: var(--spacing-lg);
  }
  
  section {
    padding: var(--spacing-2xl) 0;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-4xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.25rem;  /* 20px */
    --font-size-2xl: 1.125rem; /* 18px */
  }
  
  .container {
    --container-padding: 1rem;
  }
  
  h1, .main-title {
    font-size: var(--font-size-2xl) !important;
    line-height: 1.2 !important;
  }
  
  h2, .main-subtitle {
    font-size: var(--font-size-lg) !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: var(--font-size-base) !important;
  }
  
  .hero-form .main-title {
    font-size: var(--font-size-2xl) !important;
  }
  
  .hero-form .main-subtitle {
    font-size: var(--font-size-lg) !important;
  }
  
  .calculator-container,
  .form-container {
    padding: var(--spacing-md);
  }
  
  .button-primary {
    width: 100%;
    padding: var(--spacing-md);
    font-size: var(--font-size-base) !important;
  }
  
  img.logo {
    height: 40px !important;
  }
  
  .icon-montway {
    width: 48px !important;
    height: 48px !important;
  }
}

/* ===== Accessibility Improvements ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
  .main-header-wrap,
  .content-info,
  .button-primary,
  .nav-primary {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}

/* ===== Loading States ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ===== Error States ===== */
.error-text {
  color: var(--error-red);
  font-size: var(--font-size-sm);
  display: block;
  margin-top: var(--spacing-xs);
}

.input-wrap.has-error input,
.input-wrap.has-error select,
.input-wrap.has-error textarea {
  border-color: var(--error-red);
}

/* ===== Success States ===== */
.success-message {
  background: var(--success-green);
  color: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
}

/* ===== Animation ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-animation {
  animation: fadeIn 0.6s ease-out;
}

/* ===== Modern Enhancements ===== */
.smooth-scroll {
  scroll-behavior: smooth;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-hover {
  transition: all var(--transition-base);
}

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

/* ===== Mobile Menu (if needed) ===== */
.burger-container {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  z-index: 1001;
}

@media (max-width: 768px) {
  .burger-container {
    display: block;
  }
  
  .nav-primary {
    display: none;
  }
  
  .nav-primary.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg);
    z-index: 1000;
  }
}

/* ===== Additional Header Styles ===== */
.moving-news {
  overflow: hidden;
}

.moving-wrapper {
  white-space: nowrap;
  display: inline-block;
  animation: scroll-left 30s linear infinite;
}

.moving-wrapper p {
  margin: 0;
  display: inline-block;
  padding-right: 50px;
  font-size: var(--font-size-sm) !important;
  line-height: 1.5 !important;
}

.moving-wrapper span {
  font-weight: 700 !important;
  color: var(--primary-blue) !important;
}

/* Override inline color styles in moving text */
.moving-wrapper span[style*="color: #029046"],
.moving-wrapper span[style*="color:#029046"] {
  color: var(--success-green) !important;
}

.moving-wrapper span[style*="color: #00a1ef"],
.moving-wrapper span[style*="color:#00a1ef"] {
  color: var(--primary-blue) !important;
}

.top-bar-number a {
  font-weight: 700;
  font-size: var(--font-size-lg);
}

/* ===== Hamburger Menu ===== */
.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 3px;
  background-color: var(--charcoal);
  border-radius: 4px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

/* ===== Align Items Utilities ===== */
.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

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

/* ===== Display Utilities ===== */
.d-inline-flex {
  display: inline-flex;
}

/* ===== Text Utilities ===== */
.text-upper {
  text-transform: uppercase;
}

.text-small {
  font-size: var(--font-size-sm);
}

/* ===== Position Utilities ===== */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-fixed {
  position: fixed;
}

/* ===== Z-Index Utilities ===== */
.z-index-1 {
  z-index: 1;
}

.z-index-2 {
  z-index: 2;
}

/* ===== Background Overlay ===== */
.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.bg-mobile {
  display: none;
}

@media (max-width: 768px) {
  .bg-mobile {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
  }
}

/* ===== Form Calculator Styles ===== */
.form-calculator {
  position: relative;
  z-index: 2;
}

.q-input {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
}

.input-wrap-list {
  position: relative;
}

.list-select {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: var(--shadow-lg);
}

.list-select.active {
  display: block;
}

.list-select li {
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.list-select li:hover {
  background: var(--gray-light);
}

/* ===== Custom Radio Buttons ===== */
.custom-radio {
  display: inline-flex;
  align-items: center;
  margin-right: var(--spacing-lg);
}

.custom-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: var(--spacing-xs);
  cursor: pointer;
}

.custom-radio label {
  margin: 0;
  cursor: pointer;
}

/* ===== W-100 Utility ===== */
.w-100 {
  width: 100%;
}

/* ===== Mobile Visibility ===== */
.is-mobile {
  display: none;
}

@media (max-width: 768px) {
  .is-mobile {
    display: block;
  }
  
  .d-md-none {
    display: none;
  }
}

/* ===== No Lazy Loading ===== */
.no-lazy {
  will-change: transform;
}

/* ===== Scroll Animation ===== */
@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ===== Additional Typography Overrides ===== */
/* Fix inconsistent font sizes from inline styles */
.bd_toc_header_title {
  font-size: var(--font-size-lg) !important;
}

.wp-block-boomdevs-toc .bd_toc_block_wrapper h2 {
  font-size: var(--font-size-xl) !important;
  margin: 0 !important;
}

/* Standardize paragraph and body text */
p {
  font-size: var(--font-size-base) !important;
  line-height: 1.7 !important;
  margin-bottom: var(--spacing-md) !important;
}

.text-body {
  font-size: var(--font-size-base) !important;
  line-height: 1.7 !important;
}

/* Standardize form text */
.form-title {
  font-size: var(--font-size-xl) !important;
  font-weight: 700 !important;
}

.input-label {
  font-size: var(--font-size-sm) !important;
  font-weight: 600 !important;
}

/* Standardize button text */
.button-primary,
.button-secondary,
.get-a-quote {
  font-size: var(--font-size-base) !important;
  font-weight: 600 !important;
}

/* Standardize navigation text */
.nav-primary a,
.menu-item a {
  font-size: var(--font-size-base) !important;
  font-weight: 600 !important;
}

.top-bar a,
.menu-top-bar-menu-container a {
  font-size: var(--font-size-sm) !important;
}

/* Video and media sizes */
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.video-wrap img,
.video-thumbnail img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Icon sizes standardization */
.icon {
  width: 60px;
  height: 60px;
  display: inline-block;
}

.icon svg {
  width: 100%;
  height: 100%;
}

/* ===== Global Overrides for Inline Styles ===== */
/* Override any inline font-size styles */
[style*="font-size"],
[style*="fontSize"] {
  font-size: inherit !important;
}

/* Ensure consistent spacing */
h1[style*="font-size"],
h2[style*="font-size"],
h3[style*="font-size"],
h4[style*="font-size"],
h5[style*="font-size"],
h6[style*="font-size"] {
  font-size: inherit !important;
}

/* Override inline width/height on images */
img[style*="width"],
img[style*="height"] {
  max-width: 100% !important;
  height: auto !important;
}

/* Ensure images maintain aspect ratio */
img.logo[style*="height"] {
  height: 50px !important;
  width: auto !important;
}

/* Standardize all heading sizes across the site */
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: var(--spacing-md);
}

.h1 { font-size: var(--font-size-4xl) !important; }
.h2 { font-size: var(--font-size-3xl) !important; }
.h3 { font-size: var(--font-size-2xl) !important; }
.h4 { font-size: var(--font-size-xl) !important; }
.h5 { font-size: var(--font-size-lg) !important; }
.h6 { font-size: var(--font-size-base) !important; }

/* Ensure consistent button sizing */
button,
.button,
.btn {
  font-size: var(--font-size-base) !important;
  font-weight: 600 !important;
}

/* Social media icons */
.icon-social {
  width: 32px !important;
  height: 32px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-social svg {
  width: 20px !important;
  height: 20px !important;
}

/* ===== Border Utilities ===== */
.border-t-none {
  border-top: none;
}

.has-gray-border {
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-sm) 0;
}

/* ===== Flexbox Utilities ===== */
.flex-column {
  flex-direction: column;
}

/* ===== Margin/Padding Utilities ===== */
.ml-1 { margin-left: var(--spacing-xs); }
.ml-2 { margin-left: var(--spacing-sm); }
.ml-3 { margin-left: var(--spacing-md); }
.ml-4 { margin-left: var(--spacing-lg); }

.mr-1 { margin-right: var(--spacing-xs); }
.mr-2 { margin-right: var(--spacing-sm); }
.mr-3 { margin-right: var(--spacing-md); }
.mr-4 { margin-right: var(--spacing-lg); }

.px-0 { padding-left: 0; padding-right: 0; }
.px-2 { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
.px-3 { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.px-4 { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }

.py-2 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-3 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }

.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

/* ===== Text Align Utilities ===== */
.text-right {
  text-align: right;
}

/* ===== Opacity Utilities ===== */
.opacity-0 {
  opacity: 0;
}

/* ===== Performance Optimizations ===== */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ===== Site Wrapper ===== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-wrapper > main {
  flex: 1;
}

/* ===== Top Bar Content ===== */
.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.top-menu-list {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
  align-items: center;
}

.top-menu-list a {
  color: var(--gray-dark);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.top-menu-list a:hover {
  color: var(--primary-blue);
}

.top-bar-phone {
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--primary-blue);
}

/* ===== Header CTA Wrapper ===== */
.header-cta-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.mobile-nav-cta {
  display: none;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.mobile-phone {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: var(--font-size-lg);
  text-align: center;
}

/* Hero background image styles consolidated above */

/* ===== Footer Layout ===== */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo .logo {
  margin-bottom: var(--spacing-lg);
}

.footer-address {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.footer-address a {
  color: var(--white);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: var(--spacing-sm);
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-base);
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--primary-blue-light);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

/* ===== Row/Column Utilities ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--container-padding) * -1);
}

.row > * {
  padding: 0 var(--container-padding);
}

.col-lg-5, .col-lg-6, .col-lg-7, .col-md-6, .col-md-12, .col-12, .col-xl-4, .col-xl-6 {
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    width: 50%;
  }
  
  .col-md-12 {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .col-lg-5 {
    width: 41.666667%;
  }
  
  .col-lg-6 {
    width: 50%;
  }
  
  .col-lg-7 {
    width: 58.333333%;
  }
  
  .col-xl-4 {
    width: 33.333333%;
  }
  
  .col-xl-6 {
    width: 50%;
  }
  
  .offset-lg-1 {
    margin-left: 8.333333%;
  }
  
  .offset-xl-2 {
    margin-left: 16.666667%;
  }
}

/* ===== Additional Utilities ===== */
.h-100 { height: 100%; }
.w-100 { width: 100%; }

.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }
.pb-3 { padding-bottom: var(--spacing-md); }

.pr-2 { padding-right: var(--spacing-sm); }

.overlayer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 47, 50, 0.4);
  z-index: 1;
  pointer-events: none;
}

/* Hero overlay is now handled by ::after pseudo-element */
.hero-form .overlayer {
  display: none;
}

/* ===== Form Styles ===== */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.step-2, .step-3 {
  display: none;
}

.step-2.active, .step-3.active {
  display: block;
}

.value-wrap {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.select-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--gray);
}

/* ===== Mobile Menu Active State ===== */
.burger-container.active .hamburger-inner {
  transform: rotate(45deg);
}

.burger-container.active .hamburger-inner::before {
  top: 0;
  transform: rotate(-90deg);
}

.burger-container.active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

@media (max-width: 1200px) {
  .d-xl-none {
    display: none !important;
  }
  
  .nav-primary.mobile-open {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
  }
}

@media (min-width: 1201px) {
  .burger-container {
    display: none !important;
  }
}

/* ===== Remove All Inline Styles ===== */
[style] {
  /* CSS will override inline styles where possible */
}

/* ===== Clean Section Padding ===== */
section {
  padding: var(--spacing-3xl) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--spacing-2xl) 0;
  }
}

@media (max-width: 480px) {
  section {
    padding: var(--spacing-xl) 0;
  }
}

/* ===== Page Header Styles ===== */
.page-header {
  padding: var(--spacing-2xl) 0;
  text-align: center;
  background: var(--bg-light);
}

.page-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.page-subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.page-header-hero {
  position: relative;
  background-image: url('app/uploads/2021/12/women-with-phone.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: var(--spacing-3xl) 0;
}

.page-header-hero .cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .page-header-hero {
    background-image: url('app/uploads/2021/12/women-with-phone-device.jpg');
    min-height: 300px;
  }
}

/* ===== Features Grid ===== */
.features-section {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

.feature-card {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.feature-icon {
  margin-bottom: var(--spacing-lg);
  display: flex;
  justify-content: center;
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.feature-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* ===== Why Us Section ===== */
.why-us-section {
  background: var(--white);
}

.section-header {
  margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
}

.subheadline {
  font-size: var(--font-size-lg);
  color: var(--gray);
}

.why-us-content h3 {
  font-size: var(--font-size-xl);
  margin: var(--spacing-xl) 0 var(--spacing-md);
  color: var(--primary-blue);
}

.why-us-content h3:first-child {
  margin-top: 0;
}

.why-us-content p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.why-us-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%) !important;
  color: var(--white) !important;
  padding: var(--spacing-4xl) 0;
}

.cta-section * {
  color: var(--white) !important;
}

.cta-content h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
  color: var(--white) !important;
}

.cta-content .subheadline {
  color: rgba(255, 255, 255, 0.95) !important;
  margin-bottom: var(--spacing-2xl);
  font-size: var(--font-size-lg);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .button-primary {
  background: var(--white) !important;
  color: var(--primary-blue) !important;
  border: 2px solid var(--white);
}

.cta-section .button-primary:hover {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid var(--white);
}

.cta-section .button-secondary {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid var(--white);
}

.cta-section .button-secondary:hover {
  background: var(--white) !important;
  color: var(--primary-blue) !important;
}

/* ===== Contact Page Styles ===== */
.contact-section {
  padding: var(--spacing-3xl) 0;
}

.contact-form-wrapper {
  padding-right: var(--spacing-2xl);
}

.contact-info-wrapper {
  padding-left: var(--spacing-2xl);
}

.section-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

.form-description {
  color: var(--gray);
  margin-bottom: var(--spacing-xl);
}

.contact-detail {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--primary-blue);
}

.contact-label {
  font-weight: 600;
  color: var(--gray);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-sm);
}

.contact-value {
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

.contact-value a {
  color: var(--primary-blue);
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

.business-hours {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-2xl);
  border-top: 2px solid var(--border-color);
}

.hours-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color);
}

.hours-day {
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.hours-time {
  font-weight: 600;
  color: var(--text-dark);
}

.chat-img {
  width: 24px;
  height: 24px;
}

/* ===== Process Steps Styles ===== */
.process-overview {
  padding: var(--spacing-3xl) 0;
  background: var(--bg-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
}

.step-card {
  text-align: center;
  padding: var(--spacing-2xl);
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.step-number {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: var(--spacing-md);
}

.step-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

.process-steps {
  padding: var(--spacing-3xl) 0;
}

.process-step {
  margin-bottom: var(--spacing-4xl);
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-content {
  position: relative;
}

.step-label {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: var(--spacing-md);
}

.step-content h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

.step-text p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.step-details {
  display: none;
  margin-top: var(--spacing-lg);
}

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

.toggle-details {
  background: none;
  border: none;
  color: var(--primary-blue);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: var(--font-size-base);
  margin-top: var(--spacing-md);
}

.step-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.video-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--bg-light);
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform var(--transition-base);
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* ===== Section Alt Background ===== */
.section-alt {
  background: var(--bg-light);
}

/* ===== Text Utilities ===== */
.text-center {
  text-align: center;
}

.text-gray {
  color: var(--gray);
}

.text-red {
  color: var(--error);
}

.text-blue {
  color: var(--primary-blue);
}

.text-green {
  color: var(--success);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.required {
  color: var(--error);
}

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

.align-items-center {
  align-items: center;
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.d-none {
  display: none;
}

/* ===== Responsive Contact Section ===== */
@media (max-width: 992px) {
  .contact-form-wrapper,
  .contact-info-wrapper {
    padding: 0;
  }
  
  .contact-info-wrapper {
    margin-top: var(--spacing-3xl);
  }
}

@media (max-width: 768px) {
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons a {
    width: 100%;
  }
}

/* ===== Thank You Page Styles ===== */
.thank-you-section {
  padding: var(--spacing-4xl) 0;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  margin-bottom: var(--spacing-2xl);
  display: flex;
  justify-content: center;
}

.thank-you-content h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.thank-you-content p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  color: var(--gray);
}

.thank-you-content .text-gray {
  color: var(--gray);
}

/* ===== Form Message Styles ===== */
.form-message {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-radius: var(--border-radius);
  font-weight: 500;
}

.form-message.success-message {
  background: rgba(2, 144, 70, 0.1);
  color: var(--success-green);
  border: 1px solid var(--success-green);
}

.form-message.error-message {
  background: rgba(220, 38, 38, 0.1);
  color: var(--error-red);
  border: 1px solid var(--error-red);
}

/* ===== Form Input Styles ===== */
.input-wrap {
  margin-bottom: var(--spacing-lg);
}

.input-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
  font-size: var(--font-size-sm);
}

.input-label .required {
  color: var(--error-red);
  margin-left: 2px;
}

.input-label .optional {
  color: var(--gray);
  font-weight: 400;
  font-size: var(--font-size-xs);
  margin-left: 4px;
}

.input.q-input {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--white);
}

.input.q-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 161, 239, 0.1);
}

.input.q-input:invalid:not(:placeholder-shown) {
  border-color: var(--error-red);
}

.input.q-input select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-md) center;
  padding-right: var(--spacing-3xl);
}

.form-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-xl);
  color: var(--text-dark);
  line-height: 1.4;
}

.form-note {
  margin-top: var(--spacing-md);
  font-size: var(--font-size-sm);
  color: var(--gray);
  text-align: center;
  line-height: 1.6;
}

/* ===== Calculator Container ===== */
.calculator-container {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .calculator-container {
    padding: var(--spacing-lg);
  }
  
  .form-title {
    font-size: var(--font-size-lg);
  }
}

/* ===== High Contrast Mode Support ===== */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --gray: #333333;
  }
}

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}