:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - Enhanced with #3498db palette */
:root { 
  --background-color: #ffffff;
  --default-color: #4a5568; /* Softer than pure dark gray */
  --heading-color: #1a202c; /* Rich dark blue-gray */
  --accent-color: #3498db; /* Your preferred blue */
  --accent-hover: #2980b9; /* Darker blue for hover */
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --success-color: #10b981; /* Modern green */
  --danger-color: #ef4444; /* Modern red */
  --warning-color: #f59e0b; /* Modern amber */
  --info-color: #5dade2; /* Lighter variant of your blue */
  --light-gray: #f8fafc;
  --border-color: #e5e7eb;
  --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);
}

/* Nav Menu Colors - Updated for better contrast */
:root {
  --nav-color: #4a5568;
  --nav-hover-color: #3498db;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #4a5568;
  --nav-dropdown-hover-color: #3498db;
}

/* Color Presets - Enhanced backgrounds */
.light-background {
  --background-color: #f8fafc;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #0f172a;
  --default-color: #e2e8f0;
  --heading-color: #f1f5f9;
  --surface-color: #1e293b;
  --contrast-color: #ffffff;
}

/* Smooth scroll with better easing */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes - Enhanced
--------------------------------------------------------------*/
* {
  box-sizing: border-box;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* Enhanced buttons */
.btn-get-started {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--accent-color);
  background: var(--accent-color);
  color: var(--contrast-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-get-started::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent-hover);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-get-started:hover {
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-get-started:hover::before {
  width: 100%;
}

/* PHP Email Form Messages - Enhanced */
.php-email-form .error-message {
  display: none;
  background: #fee;
  border-left: 4px solid var(--danger-color);
  color: #dc2626;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 500;
  border-radius: 8px;
}

.php-email-form .sent-message {
  display: none;
  background: #f0fdf4;
  border-left: 4px solid var(--success-color);
  color: #15803d;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 500;
  border-radius: 8px;
}

.php-email-form .loading {
  display: none;
  background: var(--light-gray);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  border-radius: 8px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: transparent;
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Global Header - Enhanced with modern styling
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  transition: all 0.3s ease;
  z-index: 997;
  border-bottom: 1px solid var(--border-color);
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  height: 70px;
  width: auto;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.header .logo:hover img {
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .header .logo img {
    height: 60px;
    width: auto;
  }
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 10px 28px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .btn-getstarted {
    order: 2;
    margin: 0 15px 0 0;
    padding: 8px 20px;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

/*--------------------------------------------------------------
# Navigation Menu - Enhanced with modern animations
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
  }

  .navmenu a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--nav-hover-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .navmenu a:hover::after,
  .navmenu .active::after {
    transform: scaleX(1);
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 12px;
    z-index: 99;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
    background: var(--light-gray);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile Enhanced */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 12px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: var(--shadow-xl);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 12px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    border-radius: 8px;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
    background: var(--light-gray);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer - Enhanced
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--light-gray);
  font-size: 14px;
  padding: 60px 0 40px 0;
  position: relative;
  border-top: 1px solid var(--border-color);
}

.footer .copyright p {
  margin-bottom: 0;
  font-weight: 500;
}

.footer .social-links {
  margin-top: 20px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  font-size: 16px;
  color: var(--default-color);
  margin: 0 5px;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/*--------------------------------------------------------------
# Preloader - Enhanced
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader:before {
  content: "";
  width: 60px;
  height: 60px;
  border: 4px solid var(--light-gray);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Scroll Top Button - Enhanced
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-lg);
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: var(--accent-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Global Sections - Enhanced
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 80px 0;
  scroll-margin-top: 90px;
  overflow: clip;
  position: relative;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
    padding: 60px 0;
  }
}

/*--------------------------------------------------------------
# Global Section Titles - Enhanced
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  color: var(--heading-color);
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  margin-bottom: 0;
  font-size: 18px;
  color: var(--default-color);
}

/*--------------------------------------------------------------
# Hero Section - Enhanced
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 80vh;
  position: relative;
  padding: 120px 0 80px 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--background-color) 100%);
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.hero p {
  color: var(--default-color);
  margin: 0 0 30px 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
}

.hero .btn-get-started {
  font-size: 16px;
  padding: 14px 40px;
  margin-right: 20px;
}

.hero .animated {
  animation: hero-float 3s ease-in-out infinite;
}

@media (max-width: 991px) {
  .hero {
    min-height: 70vh;
    padding: 100px 0 60px 0;
  }
  
  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
    margin-bottom: 30px;
  }
}

@keyframes hero-float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/*--------------------------------------------------------------
# Clients Section - Enhanced
--------------------------------------------------------------*/
.clients {
  padding: 40px 0;
  background: var(--light-gray);
}

.clients .client-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 15px;
}

.clients .client-logo img {
  padding: 20px 40px;
  max-width: 90%;
  transition: all 0.4s ease;
  opacity: 0.6;
  filter: grayscale(100%);
}

.clients .client-logo:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# About Section - Enhanced
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 25px;
  color: var(--heading-color);
}

.about .content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.about .content .about-btn {
  padding: 12px 35px;
  color: var(--accent-color);
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--accent-color);
  background: transparent;
}

.about .content .about-btn i {
  font-size: 16px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

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

.about .content .about-btn:hover i {
  transform: translateX(5px);
}

.about .icon-box {
  padding: 30px;
  border-radius: 12px;
  background: var(--surface-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.about .icon-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.about .icon-box i {
  font-size: 44px;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.about .icon-box h4 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 15px 0;
}

.about .icon-box h4 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.about .icon-box p {
  font-size: 15px;
  color: var(--default-color);
  margin-bottom: 0;
  line-height: 1.8;
}

.about .icon-box:hover h4 a {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Stats Section - Enhanced
--------------------------------------------------------------*/
.stats {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M0 0l50 50-50 50M50 0l50 50-50 50" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/%3E%3C/svg%3E');
  opacity: 0.1;
}

.stats .stats-item {
  text-align: center;
  padding: 20px;
}

.stats .stats-item i {
  font-size: 48px;
  color: var(--contrast-color);
  margin-bottom: 15px;
  display: block;
}

.stats .stats-item .purecounter {
  color: var(--contrast-color);
  font-size: 48px;
  display: block;
  font-weight: 700;
  line-height: 1.2;
}

.stats .stats-item p {
  color: rgba(255, 255, 255, 0.9);
  padding: 0;
  margin: 10px 0 0 0;
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 500;
}

/*--------------------------------------------------------------
# Form Section - Enhanced styling following design system
--------------------------------------------------------------*/
.form-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.form-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}

.form-header h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--info-color) 100%);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.form-header p {
  font-size: 18px;
  color: var(--default-color);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Form Container */
#surveyForm {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--surface-color);
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

#surveyForm::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--info-color) 50%, var(--accent-hover) 100%);
}

/* Form Sections */
.form-section {
  margin-bottom: 50px;
  padding: 40px 30px;
  background: var(--background-color);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  transition: all 0.3s ease;
}

.form-section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(52, 152, 219, 0.3);
}

.form-section h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.form-section h3 i {
  font-size: 28px;
  color: var(--accent-color);
  margin-right: 15px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--info-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-section h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 1px;
}

/* Form Controls */
.form-label {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 8px;
  font-size: 15px;
  display: block;
}

.form-label .text-danger {
  color: var(--danger-color);
  margin-left: 4px;
}

.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  background-color: var(--surface-color);
  color: var(--default-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
  outline: none;
  background-color: var(--surface-color);
  transform: translateY(-1px);
}

.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Textarea specific */
textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Select dropdown */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  padding-right: 45px;
}

/* Radio buttons and checkboxes */
.form-check {
  margin-bottom: 12px;
  padding-left: 0;
  display: flex;
  align-items: center;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  border: 2px solid var(--border-color);
  background-color: var(--surface-color);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
  outline: none;
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--default-color);
  cursor: pointer;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.form-check:hover .form-check-label {
  color: var(--accent-color);
}

/* Conditional fields */
.conditional-field {
  margin-top: 20px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.conditional-field.d-none {
  display: none !important;
}

.conditional-field .form-label {
  color: var(--accent-hover);
  font-weight: 600;
}

/* Validation states */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger-color);
  background-color: rgba(239, 68, 68, 0.05);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--success-color);
  background-color: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.invalid-feedback {
  display: none; /* Hidden by default */
  width: 100%;
  margin-top: 8px;
  font-size: 14px;
  color: var(--danger-color);
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
  border-left: 3px solid var(--danger-color);
}

/* Only show invalid feedback when field has is-invalid class */
.form-control.is-invalid + .invalid-feedback,
.form-select.is-invalid + .invalid-feedback,
.is-invalid ~ .invalid-feedback {
  display: block;
}

.valid-feedback {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-size: 14px;
  color: var(--success-color);
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 6px;
  border-left: 3px solid var(--success-color);
}

/* Form messages */
.form-message {
  padding: 20px 25px;
  border-radius: 12px;
  margin: 30px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}

.form-message.loading {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border-color: var(--info-color);
  color: var(--accent-hover);
}

.form-message.error {
  background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
  border-color: var(--danger-color);
  color: #c62828;
}

.form-message.success {
  background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
  border-color: var(--success-color);
  color: #2e7d32;
}

/* Loading spinner */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 12px;
  flex-shrink: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* reCAPTCHA styling */
.g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.g-recaptcha:hover {
  transform: scale(1.02);
}

#recaptcha-error {
  text-align: center;
  margin-top: 10px;
}

/* Submit button */
#submitBtn {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  border: none;
  border-radius: 50px;
  padding: 18px 50px;
  font-size: 18px;
  font-weight: 600;
  color: var(--contrast-color);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

#submitBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

#submitBtn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--accent-hover) 0%, #1e6091 100%);
}

#submitBtn:hover::before {
  left: 100%;
}

#submitBtn:active {
  transform: translateY(-1px);
}

#submitBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

#submitBtn:disabled:hover {
  transform: none;
  box-shadow: var(--shadow-lg);
}

.submit-loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Row spacing */
.mb-3 {
  margin-bottom: 25px;
}

.row .col-md-6:first-child .mb-3 {
  margin-right: 15px;
}

.row .col-md-6:last-child .mb-3 {
  margin-left: 15px;
}

/* Responsive design */
@media (max-width: 991px) {
  #surveyForm {
    padding: 40px 30px;
  }
  
  .form-header h2 {
    font-size: 36px;
  }
  
  .form-section {
    padding: 30px 20px;
    margin-bottom: 40px;
  }
  
  .form-section h3 {
    font-size: 22px;
  }
  
  .row .col-md-6:first-child .mb-3,
  .row .col-md-6:last-child .mb-3 {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  #surveyForm {
    padding: 30px 20px;
  }
  
  .form-header {
    margin-bottom: 40px;
  }
  
  .form-header h2 {
    font-size: 28px;
  }
  
  .form-header p {
    font-size: 16px;
  }
  
  .form-section {
    padding: 25px 15px;
    margin-bottom: 30px;
  }
  
  .form-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
  }
  
  .form-section h3 i {
    font-size: 24px;
  }
  
  #submitBtn {
    padding: 16px 40px;
    font-size: 16px;
    width: 100%;
  }
  
  .g-recaptcha {
    transform: scale(0.9);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  #surveyForm {
    padding: 20px 15px;
  }
  
  .form-section {
    padding: 20px 15px;
  }
  
  .form-control,
  .form-select {
    padding: 12px 15px;
  }
  
  .g-recaptcha {
    transform: scale(0.8);
  }
}

/* Animation enhancements */
.form-section {
  animation: fadeInUp 0.6s ease-out;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }
.form-section:nth-child(6) { animation-delay: 0.6s; }
.form-section:nth-child(7) { animation-delay: 0.7s; }

/* Focus management */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  z-index: 2;
  position: relative;
}

/* Print styles */
@media print {
  #surveyForm {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .form-section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  
  #submitBtn,
  .g-recaptcha,
  .form-message {
    display: none;
  }
}

/*--------------------------------------------------------------
# Services Section - Enhanced
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: var(--shadow-sm);
  padding: 40px 30px;
  transition: all 0.3s ease;
  height: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.services .service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--info-color) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.services .service-item:hover::before {
  transform: scaleX(1);
}

.services .service-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.services .service-item i {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--info-color) 100%);
  color: var(--contrast-color);
  font-size: 28px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.services .service-item:hover i {
  transform: scale(1.1) rotate(5deg);
}

.services .service-item h4 {
  font-weight: 600;
  margin: 0 0 15px 0;
  font-size: 22px;
  transition: 0.3s;
}

.services .service-item h4 a {
  color: var(--heading-color);
}

.services .service-item p {
  line-height: 1.8;
  font-size: 15px;
  margin: 0;
  color: var(--default-color);
}

.services .service-item:hover h4 a {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Features Section - Enhanced
--------------------------------------------------------------*/
.features .features-item {
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  padding: 25px;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.features .features-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(52, 152, 219, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.features .features-item:hover::after {
  opacity: 1;
}

.features .features-item i {
  font-size: 36px;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.features .features-item h3 {
  font-weight: 600;
  margin: 0;
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.features .features-item h3 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.features .features-item:hover {
  border-color: var(--accent-color);
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.features .features-item:hover i {
  transform: scale(1.2) rotate(5deg);
}

.features .features-item:hover h3 a {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# FAQ Section - Enhanced
--------------------------------------------------------------*/
.faq .faq-item {
  margin: 0 0 25px 0;
  padding: 30px;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.faq .faq-item i {
  color: var(--accent-color);
  font-size: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

.faq .faq-item h4 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: var(--heading-color);
}

.faq .faq-item p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  color: var(--default-color);
}

/*--------------------------------------------------------------
# Contact Section - Enhanced
--------------------------------------------------------------*/
.contact {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--background-color) 100%);
  position: relative;
  padding: 80px 0;
}

.contact .info-item {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.contact .info-item i {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--info-color) 100%);
  color: var(--contrast-color);
  font-size: 24px;
  width: 54px;
  height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact .info-item:hover i {
  transform: scale(1.1) rotate(5deg);
}

.contact .info-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--heading-color);
}

.contact .info-item p {
  margin: 0;
  font-size: 16px;
  color: var(--default-color);
}

/* Enhanced inquiry button area */
.contact .d-flex {
  background: var(--surface-color);
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.contact .d-flex:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.contact .d-flex h3 {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.contact .d-flex p {
  font-size: 18px;
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 30px;
}

.contact .btn-get-started.btn-lg {
  font-size: 18px;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  border: none;
  box-shadow: var(--shadow-md);
}

.contact .btn-get-started.btn-lg:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Form inputs enhancement */
.contact input[type=text],
.contact input[type=email],
.contact textarea {
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  transition: all 0.3s ease;
}

.contact input[type=text]:focus,
.contact input[type=email]:focus,
.contact textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  outline: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos="fade-up"] {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .section-title h2 {
    font-size: 28px;
  }
  
  .section-title p {
    font-size: 16px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .stats .stats-item .purecounter {
    font-size: 36px;
  }
}