/* ============================================================================
   FastGraduate Ultra-Premium Design System
   $50,000+ Luxury Website - Perfect Layering & Responsiveness
   Advanced Glassmorphism, Animations & Premium Effects
   ========================================================================= */

:root {
  /* Premium Color Palette - Enhanced */
  --color-primary: #3a5998;
  --color-primary-dark: #2d4373;
  --color-primary-light: #4a69a8;
  --color-secondary: #8b9dc3;
  --color-surface: #ffffff;
  --color-text: #1a1d23;
  --color-text-muted: #5a6270;
  --color-text-soft: #7a8291;
  --color-success: #42b72a;
  --color-error: #e74c3c;
  --color-warning: #f4b400;

  /* Ultra-Premium Gradients */
  --gradient-primary: linear-gradient(135deg, #3a5998 0%, #5c7cba 50%, #4a69a8 100%);
  --gradient-secondary: linear-gradient(135deg, #8b9dc3 0%, #a3b5d5 50%, #9badd3 100%);
  --gradient-surface: linear-gradient(155deg, rgba(255,255,255,0.98) 0%, rgba(248,249,250,0.95) 100%);
  --gradient-glass: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(252,253,254,0.95) 50%, rgba(248,249,250,0.92) 100%);
  --gradient-glass-card: linear-gradient(155deg, rgba(255,255,255,0.96) 0%, rgba(250,251,252,0.90) 100%);
  --gradient-hero: radial-gradient(ellipse at 30% 20%, rgba(139,157,195,0.30) 0%, rgba(58,89,152,0.15) 40%, transparent 70%);
  
  /* Premium Shadows - Multi-layered */
  --shadow-xs: 0 2px 8px rgba(58, 89, 152, 0.08), 0 1px 4px rgba(28, 30, 33, 0.04);
  --shadow-sm: 0 4px 16px rgba(58, 89, 152, 0.12), 0 2px 8px rgba(28, 30, 33, 0.06);
  --shadow-md: 0 8px 28px rgba(58, 89, 152, 0.16), 0 4px 14px rgba(28, 30, 33, 0.08);
  --shadow-lg: 0 16px 48px rgba(58, 89, 152, 0.20), 0 8px 24px rgba(28, 30, 33, 0.10);
  --shadow-xl: 0 24px 64px rgba(58, 89, 152, 0.24), 0 12px 32px rgba(28, 30, 33, 0.12);
  --shadow-2xl: 0 32px 80px rgba(58, 89, 152, 0.28), 0 16px 40px rgba(28, 30, 33, 0.14);
  
  /* Advanced Glassmorphism */
  --glass-blur: blur(24px);
  --glass-blur-strong: blur(32px);
  --glass-blur-ultra: blur(40px);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-border-strong: rgba(255, 255, 255, 0.35);
  --glass-shine: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  
  /* Layout */
  --container-width: min(1280px, 100% - 2 * clamp(1.25rem, 4vw, 3rem));
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-2xl: 42px;
  --radius-pill: 999px;

  /* Z-Index Scale - Proper Layering */
  --z-base: 1;
  --z-content: 10;
  --z-surface: 50;
  --z-elevated: 100;
  --z-header: 900;
  --z-dropdown: 950;
  --z-modal-backdrop: 9998;
  --z-modal: 9999;
  --z-toast: 10000;
  --z-carousel: 100000; /* Highest z-index for carousel elements */
  --z-carousel-progress: 100001; /* Highest z-index for carousel progress */

  /* Animations - Optimized for Performance */
  --transition-fast: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 380ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 550ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance Optimizations =============================================== */
/* Use GPU acceleration for animations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Optimize all scrollable containers for smooth scrolling */
* {
  /* Enable smooth scrolling on all elements */
  scroll-behavior: inherit;
}

/* Optimize images and media for smooth scrolling */
img {
  /* Prevent layout shifts during scroll */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* GPU acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Disable Text Selection and Copying ====================================== */
* {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Allow text selection only in form inputs and textareas */
input,
textarea,
select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Prevent image dragging */
img {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  pointer-events: none;
}

/* Re-enable pointer events for interactive images (like carousel) */
.university-logo-item img,
.testimonial-card img,
.benefit-card img,
.solution-card img {
  pointer-events: auto;
}

/* Optimize animations to use transform and opacity (GPU-accelerated) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    -webkit-transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Optimize floating bubble animation - GPU-accelerated for 60-120fps */

/* Reduce animation complexity on tablets for better performance */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__content h1 {
    animation-duration: 0.6s, 10s; /* Faster, less intensive */
  }
}

/* Disable animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

html {
  font-size: 14px; /* Reduced from 16px for better proportions */
  overflow-x: hidden;
  /* Enable native smooth scrolling for buttery smooth experience */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Optimize scrolling performance for 60-120fps */
  -webkit-overflow-scrolling: touch;
  /* Enable smooth scrolling with GPU acceleration */
  scroll-padding-top: 80px;
  /* Smooth scroll timing for better feel */
  scroll-snap-type: none;
  /* Optimize scroll performance */
  overscroll-behavior: contain;
}

body {
  margin: 0;
  font-family: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #fafbfc 0%, #f0f3f7 100%);
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  /* Optimize for smooth scrolling */
  -webkit-overflow-scrolling: touch;
  /* GPU acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Prevent layout shifts during scroll */
  overflow-x: hidden;
  /* Smooth momentum scrolling */
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  /* Optimize scroll performance */
  scroll-behavior: smooth;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

p {
  margin: 0;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.025em;
  position: relative;
  z-index: var(--z-content);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem); /* Reduced significantly */
  font-weight: 800;
  position: relative;
  z-index: var(--z-content);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem); /* Reduced significantly */
  font-weight: 700;
  position: relative;
  z-index: var(--z-content);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem); /* Reduced significantly */
  font-weight: 600;
  position: relative;
  z-index: var(--z-content);
}

h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem); /* Reduced significantly */
  font-weight: 600;
  position: relative;
  z-index: var(--z-content);
}

p {
  position: relative;
  z-index: var(--z-content);
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

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

.container {
  width: var(--container-width);
  max-width: 100%;
  margin-inline: auto;
  position: relative;
  z-index: var(--z-content);
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  box-sizing: border-box;
  overflow-y: visible;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: var(--z-base);
  padding-top: 0;
  /* Optimize for ultra-smooth scrolling */
  scroll-behavior: smooth;
  /* Prevent scroll chaining */
  overscroll-behavior: contain;
  /* GPU acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section {
  min-height: auto; /* Changed from 100vh for better content flow */
  padding: clamp(3rem, 8vh, 5rem) 0; /* Reduced padding significantly */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: var(--z-content);
  isolation: auto; /* Changed from isolate to prevent stacking context issues */
  overflow: hidden; /* Clip shadows and prevent visible boundaries */
  background: #f0f2f5; /* Solid color to prevent gradient artifacts at boundaries */
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  /* Optimize for smooth scrolling - use content-visibility for off-screen sections */
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
  /* GPU acceleration for scroll performance */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: scroll-position;
  /* Smooth scroll optimization */
  scroll-margin-top: 80px;
}

.section > * {
  position: relative;
  z-index: var(--z-content);
}

/* Prevent shadow artifacts at section boundaries */
.section > .container > *:first-child {
  margin-top: 0;
}

.section > .container > *:last-child {
  margin-bottom: 0;
}

/* Ensure seamless transitions between sections - overlap to eliminate visible lines */
.section + .section {
  margin-top: -1px !important; /* Negative margin to create slight overlap and eliminate line */
  margin-bottom: 0 !important;
  padding-top: clamp(3rem, 8vh, 5rem); /* Maintain consistent padding */
}

.section--tight {
  min-height: auto;
  padding: clamp(4rem, 12vh, 7rem) 0;
  overflow: hidden; /* Ensure consistent clipping */
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 6vh, 3.5rem); /* Reduced margin significantly */
  text-align: center;
  position: relative;
  z-index: var(--z-content);
}

.section-heading h2 {
  margin-bottom: 1rem; /* Reduced margin */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-heading p {
  color: var(--color-text-muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.75;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  background: rgba(58, 89, 152, 0.08);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-primary);
  border: 1px solid rgba(58, 89, 152, 0.15);
  box-shadow: var(--shadow-xs);
  position: relative;
  z-index: var(--z-content);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 15px;
}

.eyebrow i {
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0.9;
  flex-shrink: 0;
}

.surface {
  position: relative;
  background: var(--gradient-glass-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); /* Reduced shadow to minimize boundary visibility */
  border: 2px solid var(--glass-border-strong);
  transition: all var(--transition-base);
  z-index: var(--z-elevated);
  isolation: isolate;
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
}

.surface > * {
  position: relative;
  z-index: var(--z-content);
}

.surface.surface--glass {
  background: var(--gradient-glass);
  backdrop-filter: var(--glass-blur-ultra);
  -webkit-backdrop-filter: var(--glass-blur-ultra);
  border-color: var(--glass-border-strong);
}

.surface.surface--soft {
  background: var(--gradient-surface);
  border-color: rgba(139, 157, 195, 0.35);
}

.surface.surface--quiet {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(223, 227, 238, 0.5);
}

.surface-content {
  padding: clamp(1.5rem, 4vh, 2.5rem); /* Decreased padding */
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Add spacing between child elements */
  position: relative;
  z-index: var(--z-content);
}

/* Premium Buttons ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem; /* Reduced gap */
  padding: 0.875rem 1.75rem; /* Reduced padding */
  border-radius: var(--radius-pill);
  border: none;
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem; /* Reduced font size */
  letter-spacing: -0.01em;
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: var(--z-surface);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  pointer-events: none;
  z-index: 2;
}

.btn > * {
  position: relative;
  z-index: 3;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.btn:focus-visible {
  outline: 3px solid rgba(58, 89, 152, 0.4);
  outline-offset: 4px;
}

.btn--secondary {
  background: var(--gradient-primary); /* Match submit button - dark/primary color */
  color: #ffffff; /* Ensure white text */
}

.btn--ghost {
  background: rgba(58, 89, 152, 0.08);
  color: var(--color-primary);
  box-shadow: none;
  border: 2px solid rgba(58, 89, 152, 0.25);
}

.btn--ghost:hover {
  background: rgba(58, 89, 152, 0.15);
  border-color: rgba(58, 89, 152, 0.35);
  box-shadow: var(--shadow-sm);
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
}

.btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1875rem;
}

/* Premium Flash Messages =================================================== */
.flash-container {
  position: fixed;
  inset-inline: 50% auto;
  top: clamp(2.5rem, 6vh, 3.5rem);
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: block; /* Changed from grid to block to prevent layout shifts */
  width: min(560px, calc(100% - 3rem));
  pointer-events: none;
  /* Reserve minimal space initially - flash messages will appear without shifting layout */
  min-height: 0;
  max-height: 0;
  overflow: visible; /* Allow flash messages to be visible outside container */
  /* Prevent layout shifts - container is positioned fixed and doesn't affect document flow */
  contain: layout style paint;
  will-change: contents; /* Optimize for dynamic content */
}

.flash {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding: 1.375rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-glass);
  backdrop-filter: var(--glass-blur-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2xl);
  transform: translateY(-24px) scale(0.95);
  opacity: 0;
  animation: flash-in 450ms cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  pointer-events: auto;
  /* Prevent layout shifts - flash messages are positioned absolutely within fixed container */
  position: relative;
  margin-bottom: 1.125rem; /* Space between multiple flash messages */
  /* Ensure consistent sizing to prevent shifts */
  min-height: 60px; /* Reserve minimum height */
  box-sizing: border-box;
}

.flash--success {
  border-color: rgba(66, 183, 42, 0.35);
  background: linear-gradient(135deg, rgba(66, 183, 42, 0.14), rgba(66, 183, 42, 0.08));
}

.flash--error {
  border-color: rgba(231, 76, 60, 0.35);
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.14), rgba(231, 76, 60, 0.08));
}

.flash__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 89, 152, 0.12);
  color: var(--color-primary);
  flex-shrink: 0;
  font-size: 1.375rem;
  box-shadow: var(--shadow-xs);
}

.flash--success .flash__icon {
  background: rgba(66, 183, 42, 0.18);
  color: var(--color-success);
}

.flash--error .flash__icon {
  background: rgba(231, 76, 60, 0.18);
  color: var(--color-error);
}

.flash__message {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

.flash__close {
  padding: 0.625rem;
  background: rgba(28, 30, 33, 0.06);
  border-radius: var(--radius-sm);
  color: var(--color-text-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.flash__close:hover {
  background: rgba(28, 30, 33, 0.12);
  color: var(--color-text);
  transform: scale(1.1);
}

@keyframes flash-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Premium Success Modal ==================================================== */
.premium-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.premium-modal.is-visible {
  opacity: 1;
}

.premium-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 30, 33, 0.80);
  backdrop-filter: blur(10px);
  z-index: var(--z-modal-backdrop);
}

.premium-modal__content {
  position: relative;
  max-width: 600px;
  width: 100%;
  background: var(--gradient-glass);
  backdrop-filter: var(--glass-blur-strong);
  border-radius: var(--radius-2xl);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--glass-border);
  text-align: center;
  transform: scale(0.9) translateY(30px);
  transition: all var(--transition-slow);
  z-index: var(--z-modal);
}

.premium-modal.is-visible .premium-modal__content {
  transform: scale(1) translateY(0);
}

.premium-modal__success-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 2.5rem;
}

.premium-modal__success-circle {
  stroke: var(--color-success);
  stroke-width: 2.5;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
  filter: drop-shadow(0 4px 12px rgba(66, 183, 42, 0.3));
  animation: success-circle 0.7s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
}

.premium-modal__success-check {
  stroke: var(--color-success);
  stroke-width: 3.5;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-linecap: round;
  animation: success-check 0.5s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}

@keyframes success-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes success-check {
  to {
    stroke-dashoffset: 0;
  }
}

.premium-modal__title {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.premium-modal__message {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-weight: 600;
}

.premium-modal__submessage {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.premium-modal__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.premium-modal__feature {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.5rem;
  background: rgba(58, 89, 152, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(58, 89, 152, 0.15);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.premium-modal__feature:hover {
  background: rgba(58, 89, 152, 0.10);
  transform: translateY(-2px);
}

.premium-modal__feature i {
  color: var(--color-success);
  font-size: 1.375rem;
}

.premium-modal__close {
  width: 100%;
  font-size: 1.1875rem;
  padding: 1.5rem;
}

/* Navigation =============================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.site-nav {
  background: var(--gradient-glass);
  backdrop-filter: var(--glass-blur-strong);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 2px rgba(58, 89, 152, 0.04); /* Very minimal bottom shadow only */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  /* GPU-accelerated transform for 60-120fps scrolling */
  transform: translate3d(0, 0, 0);
  opacity: 1;
  /* Optimize for scroll performance */
  will-change: transform, opacity;
  /* Ultra-smooth transitions with easing for buttery feel */
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Don't isolate rendering - allow menu to escape stacking context */
  /* Force hardware acceleration */
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.site-nav.is-hidden {
  transform: translate3d(0, -100%, 0);
  -webkit-transform: translate3d(0, -100%, 0);
  opacity: 0;
  pointer-events: none;
}

.site-nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.5rem); /* Reduced gap */
  min-height: clamp(56px, 8vw, 72px); /* Responsive height */
  padding: clamp(0.5rem, 2vw, 1rem) 0;
  position: relative;
  z-index: inherit;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.625rem, 2vw, 1rem);
  font-weight: 900;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--color-primary);
  z-index: calc(var(--z-header) + 2);
  letter-spacing: -0.03em;
  position: relative;
}

.site-nav__brand:hover {
  color: var(--color-primary-light);
}

/* Disable hover effect and pointer cursor for non-clickable brand (landing.php) */
.site-nav__brand--disabled {
  cursor: default !important;
  pointer-events: none;
}

.site-nav__brand--disabled:hover {
  color: var(--color-primary) !important;
}

.site-nav__logo {
  width: clamp(40px, 7vw, 56px);
  height: clamp(40px, 7vw, 56px);
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.site-nav__logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  opacity: 0.3;
  pointer-events: none;
}

.site-nav__logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
  /* Prevent layout shifts - ensure consistent sizing */
  min-width: 32px;
  min-height: 32px;
  aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
}

.site-nav__title span {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4rem);
  position: relative;
  z-index: calc(var(--z-header) + 1);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.site-nav__links > li {
  position: relative;
}

.site-nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  padding: clamp(0.375rem, 1vw, 0.5rem) 0;
}

/* Navigation Dropdown Styles */
.nav-item-has-dropdown {
  position: relative;
}

.nav-dropdown-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.3s ease;
}

.nav-dropdown-toggle i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.nav-item-has-dropdown:hover .nav-dropdown-toggle i,
.nav-item-has-dropdown.is-open .nav-dropdown-toggle i {
  transform: rotate(180deg);
}

.nav-dropdown-toggle:hover {
  opacity: 0.8;
}

/* Keep old selector for backward compatibility */
.nav-item-has-dropdown > a i {
  display: none;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: var(--z-dropdown);
  margin-top: 1rem;
}

.nav-item-has-dropdown:hover .nav-dropdown,
.nav-item-has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ensure dropdown stays open when clicked */
@media (min-width: 1081px) {
  .nav-item-has-dropdown.is-open .nav-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* Close dropdown when clicking outside */
  body:not(:has(.nav-item-has-dropdown:hover)) .nav-item-has-dropdown.is-open:not(:hover) .nav-dropdown {
    opacity: 0;
    visibility: hidden;
  }
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: 0.875rem 1.5rem;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-dropdown a:hover {
  background: var(--color-primary);
  color: #ffffff !important;
  padding-left: 2rem;
}

.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(58, 89, 152, 0.3);
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  color: var(--color-primary);
}

.site-nav__links a:hover::after,
.site-nav__links a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav__cta {
  flex-shrink: 0;
}

.site-nav__cta .btn {
  padding: clamp(0.5rem, 1.5vw, 0.625rem) clamp(1rem, 2.5vw, 1.25rem);
  font-size: clamp(0.75rem, 1.75vw, 0.875rem);
  flex-direction: row;
  gap: clamp(0.625rem, 1.5vw, 0.875rem);
  align-items: center;
  justify-content: space-between;
  line-height: 1.2;
}

.site-nav__cta .btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.0625rem, 0.25vw, 0.125rem);
  line-height: 1.2;
  flex: 1;
}

.site-nav__cta .btn__label {
  font-size: clamp(0.5rem, 1.25vw, 0.625rem);
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.site-nav__cta .btn__phone {
  font-size: clamp(0.6875rem, 1.75vw, 0.8125rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav__cta .btn .icon {
  font-size: clamp(0.875rem, 2vw, 1rem);
  flex-shrink: 0;
  order: 2;
}

.site-nav__toggle {
  display: none;
  width: clamp(44px, 8vw, 60px);
  height: clamp(44px, 8vw, 60px);
  min-width: clamp(44px, 8vw, 60px);
  min-height: clamp(44px, 8vw, 60px);
  border-radius: clamp(12px, 2vw, 16px);
  /* Apple-style glassmorphism - multi-layer design */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  position: relative;
  /* Toggle button must be above menu to remain clickable */
  z-index: 9998;
  cursor: pointer;
  flex-shrink: 0;
  /* Ensure button is always clickable */
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  /* Multi-layer shadows for depth */
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Perfect centering for icon lines */
  display: none; /* Will be set to flex on mobile */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: clamp(4px, 1vw, 6px);
}

.site-nav__toggle:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.site-nav__toggle:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Shine effect overlay */
.site-nav__toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
  opacity: 0.6;
}

.site-nav__toggle-line {
  position: relative;
  width: clamp(22px, 5vw, 28px);
  height: clamp(2px, 0.5vw, 2.5px);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Subtle shadow on lines for depth */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  /* Perfect center - flexbox handles this automatically */
  z-index: 1; /* Ensure lines are above shine overlay */
}

.site-nav__toggle:hover .site-nav__toggle-line {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.site-nav.is-open .site-nav__toggle-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.site-nav.is-open .site-nav__toggle-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.site-nav.is-open .site-nav__toggle-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Overlay removed - no dark shadow/backdrop needed */
.site-nav__overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hero Section ============================================================= */
.hero {
  background: #f0f2f5; /* Solid color to match sections exactly */
  position: relative;
  overflow: hidden; /* Clip shadows at boundaries */
  z-index: var(--z-base);
  isolation: auto; /* Changed from isolate to prevent stacking context issues (consistent with .section) */
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding-top: clamp(88px, 12vw, 104px); /* Navbar height + spacing */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}


.hero::after {
  display: none; /* Disabled to prevent visible boundaries between sections */
}


.hero__inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(3rem, 8vw, 5rem);
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  max-width: min(1400px, 100% - 2 * clamp(1.25rem, 4vw, 3rem));
  margin: 0 auto;
  overflow-y: visible;
  box-sizing: border-box;
  flex-wrap: wrap;
  padding-top: 6vw;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  position: relative;
  z-index: var(--z-content);
  flex: 0 1 auto;
  min-width: min(320px, 100%);
  max-width: 640px;
  overflow: visible;
  box-sizing: border-box;
}

.hero__content h1 {
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.025em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(58, 89, 152, 0.25)) drop-shadow(0 4px 16px rgba(58, 89, 152, 0.15));
  margin-bottom: 0;
  position: relative;
  padding-bottom: 1.5rem;
  background-size: 200% 200%;
  animation: fadeInUp 0.8s ease-out, gradientShift 8s ease infinite;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  width: 100%;
  min-width: 0; /* Allow text to wrap */
}

.hero__content > * {
  position: relative;
  z-index: var(--z-content);
}

.hero__subtitle {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem); /* Reduced font size */
  line-height: 1.65;
  max-width: 640px;
  font-weight: 400;
  position: relative;
  z-index: var(--z-content);
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  min-width: 0;
}

.hero__highlights {
  display: grid;
  gap: 1.25rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.0625rem;
  width: 100%;
  max-width: 100%;
  min-width: 0; /* Prevent overflow */
  min-height: 180px; /* Reserve space to prevent layout shift */
  box-sizing: border-box;
}

.hero__highlights li {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding: clamp(0.875rem, 2vw, 1rem) clamp(1.125rem, 2.5vw, 1.375rem);
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(252, 253, 254, 0.92) 50%, 
    rgba(248, 249, 250, 0.90) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 4px 16px rgba(58, 89, 152, 0.08),
    0 2px 8px rgba(28, 30, 33, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all var(--transition-base);
  position: relative;
  z-index: var(--z-surface);
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  isolation: auto; /* Changed from isolate for consistency */
}

.hero__highlights li::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.5) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%);
  opacity: 0.7;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--transition-base);
}

.hero__highlights li:hover {
  transform: translateX(8px);
  box-shadow: 
    0 6px 20px rgba(58, 89, 152, 0.12),
    0 3px 10px rgba(28, 30, 33, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(252, 253, 254, 0.96) 50%, 
    rgba(248, 249, 250, 0.94) 100%);
}

.hero__highlights li:hover::before {
  opacity: 0.9;
}

.hero__highlights i {
  color: var(--color-success);
  font-size: 1.375rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(66, 183, 42, 0.10);
  border-radius: var(--radius-sm);
}

.hero__metrics {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%; /* Take full width */
  max-width: 100%;
  min-width: 0;
  min-height: 160px; /* Reserve space to prevent CLS during content load (increased for font loading and animations) */
  overflow: visible; /* Allow cards to be visible when hovering/transforming */
  box-sizing: border-box;
  position: relative;
  z-index: var(--z-surface);
  contain: layout style paint; /* Optimize rendering - prevent layout shifts */
  /* Prevent font-related layout shifts */
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.5;
  /* Reserve space for metrics cards to prevent shifts during animation */
  padding: 0.5rem 0; /* Minimal padding to prevent collapse */
}

.hero__metric {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  text-align: center;
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.96) 0%, 
    rgba(252, 253, 254, 0.94) 50%, 
    rgba(248, 249, 250, 0.92) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 2px 12px rgba(58, 89, 152, 0.04),
    0 1px 6px rgba(28, 30, 33, 0.02);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: var(--z-surface);
  box-sizing: border-box;
  width: 100%;
  isolation: auto; /* Changed from isolate for consistency */
}

.hero__metric::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.6) 0%, 
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.1) 60%,
    transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: inherit;
  z-index: -1;
}

.hero__metric::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.hero__metric:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 4px 16px rgba(58, 89, 152, 0.06),
    0 2px 8px rgba(28, 30, 33, 0.03);
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(252, 253, 254, 0.96) 50%, 
    rgba(248, 249, 250, 0.94) 100%);
  z-index: var(--z-elevated);
  position: relative;
}

.hero__metric:hover::before {
  opacity: 1;
}

.hero__metric:hover::after {
  opacity: 1;
}

.hero__metric-number {
  font-size: clamp(1.5rem, 4vw, 2.25rem); /* Increased size */
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__metric-label {
  color: var(--color-text-muted);
  font-size: clamp(0.9375rem, 2vw, 1.125rem); /* Increased size */
  font-weight: 600;
  position: relative;
  z-index: 1;
  line-height: 1.3;
  white-space: normal; /* Allow wrapping */
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.hero__metric-icon {
  color: var(--color-primary);
  font-size: clamp(1.5rem, 4vw, 2rem); /* Increased size */
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.hero__form {
  position: sticky;
  top: clamp(40px, 6vw, 60px);
  flex: 0 0 auto;
  width: 100%;
  max-width: 480px;
  min-width: min(280px, 100%);
  min-height: 520px; /* Reserve space to prevent layout shift */
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(252, 253, 254, 0.96) 50%, 
    rgba(248, 249, 250, 0.94) 100%);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: 
    0 8px 32px rgba(58, 89, 152, 0.12),
    0 4px 16px rgba(58, 89, 152, 0.08),
    0 2px 8px rgba(28, 30, 33, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.6);
  z-index: var(--z-elevated);
  isolation: auto; /* Changed from isolate to prevent stacking context issues (consistent with .section and .hero) */
  box-sizing: border-box;
  transition: all var(--transition-base);
  align-self: flex-start;
}

.hero__form::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.1) 60%,
    transparent 100%
  );
  opacity: 0.8;
  pointer-events: none;
  border-radius: inherit;
  z-index: -1;
  transition: opacity var(--transition-base);
}

.hero__form::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.hero__form:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(58, 89, 152, 0.15),
    0 6px 20px rgba(58, 89, 152, 0.10),
    0 3px 10px rgba(28, 30, 33, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero__form:hover::before {
  opacity: 0.9;
}

.hero__form h3 {
  margin-bottom: clamp(0.375rem, 1vw, 0.5rem);
  margin-top: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: var(--z-content);
  font-size: clamp(1rem, 1.75vw, 1.375rem);
  line-height: 1.3;
}

.hero__form-intro {
  color: var(--color-text-muted);
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.5;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  font-weight: 500;
  position: relative;
  z-index: var(--z-content);
}

.hero__form .surface-content {
  padding: clamp(1.25rem, 3vh, 1.5rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.25rem);
  position: relative;
  z-index: 1;
}

/* Premium Forms ============================================================ */
.form {
  display: grid;
  gap: clamp(0.875rem, 2vw, 1rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.hero-form {
  gap: clamp(0.75rem, 1.75vw, 0.875rem);
}

.form__group {
  display: grid;
  gap: clamp(0.375rem, 1vw, 0.5rem);
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.form__label {
  font-weight: 700;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: var(--z-content);
}

.form__input,
.form textarea,
.form select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: clamp(0.5rem, 1.25vw, 0.75rem) clamp(0.75rem, 1.75vw, 1rem);
  border-radius: 14px;
  border: 2px solid rgba(223, 227, 238, 0.6);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text);
  font-size: clamp(0.8125rem, 1.75vw, 0.9375rem);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: var(--z-content);
  box-sizing: border-box;
  overflow-x: hidden;
  word-wrap: break-word;
}

.form textarea {
  resize: vertical;
  min-height: clamp(70px, 10vw, 85px);
  max-height: 110px;
  font-family: inherit;
  line-height: 1.5;
}

.form__input::placeholder,
.form textarea::placeholder {
  color: var(--color-text-soft);
  font-weight: 400;
}

.form__input:hover,
.form textarea:hover,
.form select:hover {
  border-color: rgba(58, 89, 152, 0.4);
  background: rgba(255, 255, 255, 1);
  box-shadow: 
    0 4px 12px rgba(58, 89, 152, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.form__input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--color-primary);
  box-shadow: 
    0 0 0 4px rgba(58, 89, 152, 0.15),
    0 4px 16px rgba(58, 89, 152, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  outline: none;
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.form__input.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.12);
  background: rgba(231, 76, 60, 0.02);
}

.form__input.is-valid {
  border-color: var(--color-success);
  box-shadow: 0 0 0 4px rgba(66, 183, 42, 0.12);
  background: rgba(66, 183, 42, 0.02);
}

.form__feedback {
  display: none;
  font-size: 0.9375rem;
  color: var(--color-error);
  font-weight: 700;
  padding-left: 0.5rem;
}

.form__input.is-invalid + .form__feedback,
.form textarea.is-invalid + .form__feedback,
.form__input.is-invalid ~ .form__char-counter ~ .form__feedback,
.form textarea.is-invalid ~ .form__char-counter ~ .form__feedback {
  display: block;
}

/* Character Counter Styling */
.form__char-counter {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color var(--transition-base);
}

.form__char-counter .char-count {
  font-weight: 600;
  color: var(--color-primary);
}

.form__char-counter.char-warning {
  color: #f59e0b;
}

.form__char-counter.char-warning .char-count {
  color: #f59e0b;
  font-weight: 700;
}

.form__char-counter.char-limit-reached {
  color: var(--color-error);
}

.form__char-counter.char-limit-reached .char-count {
  color: var(--color-error);
  font-weight: 700;
}

.form textarea.char-limit-error-shown {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.12);
  background: rgba(231, 76, 60, 0.02);
}

.form__disclaimer {
  font-size: clamp(0.6875rem, 1.25vw, 0.8125rem);
  color: var(--color-text-soft);
  line-height: 1.4;
  margin-top: clamp(0.25rem, 1vw, 0.5rem);
  text-align: center;
  font-weight: 500;
}

.form__footer {
  display: grid;
  gap: clamp(0.375rem, 1.25vw, 0.5rem);
  margin-top: clamp(0.125rem, 0.75vw, 0.25rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero-form__phone {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.form__country-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  background: var(--gradient-glass);
  backdrop-filter: var(--glass-blur);
  border: 2px solid rgba(58, 89, 152, 0.3);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-xs);
  user-select: none;
  pointer-events: none;
  min-width: 52px;
}

.hero-form__number {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.hero-form .btn {
  width: 100%;
  font-size: clamp(0.875rem, 2vw, 1rem);
  padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1.25rem, 3vw, 1.5rem);
}

/* Trust Section ============================================================ */
/* trust__panel removed - no longer needed */

.trust__intro {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 6vh, 3.5rem); /* Match section-heading */
  text-align: center;
  position: relative;
  z-index: var(--z-content);
}

.trust__intro h2 {
  margin-bottom: 1rem; /* Match section-heading */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.trust__intro h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.trust__intro p {
  color: var(--color-text-muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem); /* Match section-heading */
  line-height: 1.75;
  font-weight: 500;
}

.trust__universities {
  margin-top: clamp(3.5rem, 8vh, 5rem);
}

.trust__universities h3 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text);
  font-size: 1.75rem;
}

/* Universities Logo Carousel =========================================== */
.universities-carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 3rem 0;
  overflow: visible; /* Allow hovered items to overflow */
  padding: 3rem 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.universities-carousel {
  width: 100%;
  overflow: visible; /* Allow hovered items to overflow */
  position: relative;
}

.universities-carousel-track {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  /* Animation now handled by JavaScript requestAnimationFrame for 60fps */
  will-change: transform;
  /* GPU acceleration for smooth, non-blurry animation */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  /* Force hardware acceleration and 60fps rendering */
  contain: layout style paint;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.university-logo-item {
  flex-shrink: 0;
  width: 140px; /* Circular - equal width and height */
  height: 140px; /* Circular - equal width and height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Remove padding to eliminate transparent areas */
  background: #ffffff; /* Solid white background - no transparency */
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%; /* Perfect circle */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02); /* Very minimal shadow */
  position: relative;
  overflow: hidden; /* Clip image to circle */
  /* No transitions or hover effects */
  z-index: 1;
  /* GPU acceleration to prevent blur during animation */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: auto; /* Don't force GPU layer unless needed */
}

/* Ensure no pseudo-elements exist */
.university-logo-item::before,
.university-logo-item::after {
  display: none !important;
  content: none !important;
}

.university-logo-item img {
  width: 100%; /* Fill the circle completely */
  height: 100%; /* Fill the circle completely */
  object-fit: cover; /* Cover the entire circle, no transparent areas */
  object-position: center; /* Center the image */
  display: block; /* Remove any inline spacing */
  margin: 0; /* Remove any margins */
  padding: 0; /* Remove any padding */
  background: #ffffff; /* Solid white background for transparent images */
  filter: brightness(0.92) contrast(1.08) saturate(0.95);
  position: relative;
  z-index: 2; /* Ensure image is above background elements */
  /* Prevent blur during animation - optimized for 60fps with GPU acceleration */
  image-rendering: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Force GPU layer for smooth 60fps rendering */
  will-change: transform;
  contain: layout style paint;
  /* Prevent subpixel rendering blur */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure no pseudo-elements on images */
.university-logo-item img::before,
.university-logo-item img::after {
  display: none !important;
  content: none !important;
}

/* scroll-universities keyframes removed - now using JavaScript requestAnimationFrame for 60fps */


/* Benefits Section ========================================================= */
.benefits {
  background: #f0f2f5; /* Solid color to match sections exactly */
  position: relative;
  z-index: var(--z-base);
  isolation: auto; /* Changed from isolate for consistency with .section */
  overflow: hidden; /* Clip shadows at boundaries */
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(2rem, 6vw, 3.5rem);
  position: relative;
  z-index: var(--z-content);
}

/* Optimize cards for 60-120fps scrolling */
.benefit-card {
  padding: 0; /* Removed padding */
  display: grid;
  gap: 1rem; /* Reduced gap */
  background: var(--gradient-glass-card);
  backdrop-filter: var(--glass-blur-ultra);
  -webkit-backdrop-filter: var(--glass-blur-ultra);
  border: 2px solid var(--glass-border-strong);
  box-shadow: none !important; /* Premium glassmorphism - no shadow */
  /* GPU-accelerated transitions for smooth scrolling */
  transition: transform var(--transition-base), opacity var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: var(--z-elevated);
  isolation: auto; /* Changed from isolate for consistency */
  /* GPU acceleration for 60-120fps */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  contain: layout style paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.benefit-card > * {
  position: relative;
  z-index: var(--z-content);
}

.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.benefit-card:hover {
  transform: translate3d(0, -8px, 0) scale(1.02);
  -webkit-transform: translate3d(0, -8px, 0) scale(1.02);
  box-shadow: none !important; /* Premium - no shadow on hover */
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(250,251,252,0.96) 100%);
}

.benefit-card:hover::before {
  opacity: 0.8;
}

.benefit-card__icon {
  width: 52px; /* Reduced significantly */
  height: 52px;
  border-radius: var(--radius-md);
  padding: 0.875rem; /* Added padding */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #ffffff !important; /* Ensure white color */
  font-size: 1.375rem; /* Reduced significantly */
  box-shadow: none !important; /* Premium glassmorphism - no shadow */
  position: relative;
  z-index: 1;
}

/* Ensure all icons inside benefit-card__icon are white */
.benefit-card__icon i,
.benefit-card__icon svg,
.benefit-card__icon::before {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.benefit-card__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  pointer-events: none;
}

.benefit-card h3 {
  color: var(--color-text);
  font-size: 1.125rem; /* Reduced */
  position: relative;
  z-index: 1;
}

.benefit-card p {
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: 0.9375rem; /* Reduced */
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Solutions Section ======================================================== */
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(2rem, 6vw, 3.5rem);
  position: relative;
  z-index: var(--z-content);
}

.solution-card {
  padding: 1.75rem 1.5rem; /* Reduced padding significantly */
  background: var(--gradient-glass-card);
  backdrop-filter: var(--glass-blur-ultra);
  -webkit-backdrop-filter: var(--glass-blur-ultra);
  border: 2px solid var(--glass-border-strong);
  box-shadow: none !important; /* Premium glassmorphism - no shadow */
  /* GPU-accelerated transitions for smooth scrolling */
  transition: transform var(--transition-base), opacity var(--transition-base);
  position: relative;
  z-index: var(--z-elevated);
  isolation: auto; /* Changed from isolate for consistency */
  /* GPU acceleration for 60-120fps */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  contain: layout style paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.solution-card > * {
  position: relative;
  z-index: var(--z-content);
}

.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.solution-card:hover {
  transform: translate3d(0, -8px, 0) scale(1.02);
  -webkit-transform: translate3d(0, -8px, 0) scale(1.02);
  box-shadow: none !important; /* Premium - no shadow on hover */
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(250,251,252,0.96) 100%);
}

.solution-card:hover::before {
  opacity: 0.8;
}

.solution-card__icon {
  width: 48px; /* Reduced */
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(58, 89, 152, 0.10);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem; /* Reduced */
  margin-bottom: 1rem; /* Reduced */
  border: 2px solid rgba(58, 89, 152, 0.25);
  box-shadow: none !important; /* Premium glassmorphism - no shadow */
  position: relative;
  z-index: var(--z-content);
}

.solution-card h3 {
  margin-bottom: 0.75rem; /* Reduced */
  color: var(--color-text);
  position: relative;
  z-index: var(--z-content);
}

.solution-card p {
  position: relative;
  z-index: var(--z-content);
}

.solution-card ul {
  display: grid;
  gap: 1rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  position: relative;
  z-index: var(--z-content);
}

.solution-card li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  line-height: 1.7;
  font-weight: 500;
  position: relative;
  z-index: var(--z-content);
}

.solution-card li i {
  color: var(--color-success);
  margin-top: 0.25rem;
  flex-shrink: 0;
  font-size: 1.1875rem;
  position: relative;
  z-index: var(--z-content);
}

/* Process Section ========================================================== */
.process__timeline {
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: var(--z-content);
}

.process-step {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: flex-start;
  position: relative;
  z-index: var(--z-content);
  isolation: auto; /* Changed from isolate for consistency */
}

.process-step__number {
  width: 56px; /* Reduced */
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #ffffff !important; /* Ensure white color */
  font-weight: 800;
  font-size: 1.375rem; /* Reduced */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: var(--z-elevated);
}

/* Ensure all text inside process-step__number is white */
.process-step__number,
.process-step__number span {
  color: #ffffff !important;
}

.process-step__number::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  pointer-events: none;
}

.process-step__content {
  background: var(--gradient-glass-card);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border-radius: var(--radius-lg);
  border: 2px solid var(--glass-border-strong);
  padding: clamp(1.25rem, 4vw, 1.75rem); /* Reduced padding significantly */
  box-shadow: var(--shadow-md);
  /* GPU-accelerated transitions for smooth scrolling */
  transition: transform var(--transition-base), opacity var(--transition-base);
  position: relative;
  z-index: var(--z-elevated);
  isolation: auto; /* Changed from isolate for consistency */
  /* GPU acceleration for 60-120fps */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  contain: layout style paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.process-step__content > * {
  position: relative;
  z-index: var(--z-content);
}

.process-step__content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  opacity: 0.4;
  transition: opacity var(--transition-fast);
  z-index: -1;
  border-radius: inherit;
}

.process-step__content:hover {
  box-shadow: var(--shadow-xl);
  transform: translate3d(10px, 0, 0);
  -webkit-transform: translate3d(10px, 0, 0);
  border-color: rgba(255, 255, 255, 0.45);
}

.process-step__content:hover::before {
  opacity: 0.8;
}

.process-step__content h3 {
  margin-bottom: 1.25rem;
  color: var(--color-text);
  position: relative;
  z-index: var(--z-content);
}

.process-step__content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 1.0625rem;
  font-weight: 500;
  position: relative;
  z-index: var(--z-content);
}

/* Comparison Section ======================================================= */
.comparison {
  background: #f0f2f5; /* Solid color to match sections exactly */
  overflow: hidden; /* Clip shadows at boundaries */
}

.comparison__table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(58, 89, 152, 0.04), 0 0 1px rgba(28, 30, 33, 0.02) !important; /* Very minimal shadow */
  background: var(--color-surface);
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: var(--z-surface);
}

.comparison__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.comparison__table thead {
  background: var(--gradient-primary);
  color: #ffffff;
  position: relative;
}

.comparison__table thead::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  pointer-events: none;
}

.comparison__table th,
.comparison__table td {
  padding: 1.75rem 2rem;
  text-align: left;
  border-bottom: 1px solid rgba(223, 227, 238, 0.7);
  font-size: 1.0625rem;
}

.comparison__table th {
  font-weight: 800;
  font-size: 1.1875rem;
}

.comparison__table tbody tr {
  transition: all var(--transition-fast);
}

.comparison__table tbody tr:hover {
  background: rgba(139, 157, 195, 0.05);
}

.comparison__table tbody tr:last-child td {
  border-bottom: none;
}

.comparison__table td:first-child {
  font-weight: 700;
  color: var(--color-text);
}

.comparison__table td:last-child {
  background: rgba(58, 89, 152, 0.06);
  font-weight: 800;
  color: var(--color-primary);
}

.comparison__icon--yes {
  color: var(--color-success);
  font-size: 1.375rem;
}

.comparison__icon--no {
  color: var(--color-error);
  font-size: 1.375rem;
}

.comparison__icon--maybe {
  color: var(--color-warning);
  font-size: 1.375rem;
}

/* Premium 3D Testimonials Carousel ========================================= */
.testimonials {
  overflow: hidden; /* Clip shadows while allowing controls to overflow via higher z-index */
  isolation: auto; /* Changed from isolate for consistency */
  position: relative;
  background: #f0f2f5; /* Solid color to match sections exactly */
}

.testimonials__wrapper {
  position: relative;
  width: 100%;
  padding: 0 0 8rem; /* Removed top padding, kept bottom padding for controls */
  overflow: visible !important; /* Allow controls to be visible */
  isolation: auto; /* Changed from isolate for consistency */
}

.testimonials__carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  perspective: 2000px;
  overflow: hidden;
  isolation: auto; /* Changed from isolate for consistency */
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials__grid {
  position: relative;
  width: 100%;
  height: 100%;
  /* Remove any grid/flex that might position cards vertically */
  display: block;
}

.testimonial-card {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 100%;
  max-width: 620px;
  margin: 0 !important; /* Remove any margins */
  background: var(--gradient-glass);
  backdrop-filter: var(--glass-blur-ultra);
  -webkit-backdrop-filter: var(--glass-blur-ultra);
  border: 2px solid var(--glass-border-strong);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  display: flex !important;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: none !important; /* Premium glassmorphism - no shadow */
  /* GPU-accelerated transitions for smooth scrolling */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  user-select: none;
  /* GPU acceleration for 60-120fps */
  will-change: transform, opacity;
  contain: layout style paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* All cards stacked in same position, hidden by default */
  transform: translate3d(-50%, -50%, 0) !important;
  -webkit-transform: translate3d(-50%, -50%, 0) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Active card - centered and visible */
.testimonial-card.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 10 !important;
  transform: translate3d(-50%, -50%, 0) translateX(0%) !important;
  -webkit-transform: translate3d(-50%, -50%, 0) translateX(0%) !important;
}

/* Card sliding out to the left */
.testimonial-card.slide-out-left {
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: 5 !important;
  transform: translate3d(-50%, -50%, 0) translateX(-100%) !important;
  -webkit-transform: translate3d(-50%, -50%, 0) translateX(-100%) !important;
}

/* Card sliding out to the right */
.testimonial-card.slide-out-right {
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: 5 !important;
  transform: translate3d(-50%, -50%, 0) translateX(100%) !important;
  -webkit-transform: translate3d(-50%, -50%, 0) translateX(100%) !important;
}

/* Card sliding in from the right */
.testimonial-card.slide-in-right {
  opacity: 0 !important;
  z-index: 9 !important;
  transform: translate3d(-50%, -50%, 0) translateX(100%) !important;
  -webkit-transform: translate3d(-50%, -50%, 0) translateX(100%) !important;
}

/* Card sliding in from the left */
.testimonial-card.slide-in-left {
  opacity: 0 !important;
  z-index: 9 !important;
  transform: translate3d(-50%, -50%, 0) translateX(-100%) !important;
  -webkit-transform: translate3d(-50%, -50%, 0) translateX(-100%) !important;
}

/* Hidden cards - keep at center position */
.testimonial-card.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transform: translate(-50%, -50%) !important;
}

.testimonial-card > * {
  position: relative;
  z-index: var(--z-content);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  border-radius: inherit;
  z-index: -1;
}

.testimonial-card.active::before {
  opacity: 0.9;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  pointer-events: none;
  z-index: 10;
}

/* Removed hover effect - carousel should be non-interactive */

.testimonial-card:active {
  cursor: grabbing;
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
  position: relative;
  z-index: var(--z-content);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #ffffff !important; /* Ensure white color */
  display: flex;
    align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: var(--z-content);
}

/* Ensure all text inside testimonial-card__avatar is white */
.testimonial-card__avatar,
.testimonial-card__avatar span {
  color: #ffffff !important;
}

.testimonial-card__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  pointer-events: none;
}

.testimonial-card__header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.testimonial-card__header p {
  font-size: 1rem;
  color: var(--color-text-soft);
  font-weight: 600;
}

.testimonial-card__quote {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.testimonial-card__quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 5rem;
  color: var(--color-primary);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card__rating {
  color: var(--color-warning);
  display: inline-flex;
  gap: 0.625rem;
  font-size: 1.375rem;
  position: relative;
  z-index: 1;
}

/* Carousel Controls ======================================================== */
.testimonials__controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 99999 !important; /* Highest z-index - always on top */
  pointer-events: none; /* Allow clicks to pass through container */
  width: auto;
  min-width: max-content;
}

.carousel-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.carousel-nav__btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-glass);
  backdrop-filter: var(--glass-blur-strong);
  border: 2px solid var(--glass-border-strong);
  color: var(--color-primary);
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.carousel-nav__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.carousel-nav__btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.6);
}

.carousel-nav__btn:hover::before {
  opacity: 1;
}

.carousel-nav__btn:active {
  transform: scale(0.95);
}

.carousel-nav__btn i {
  position: relative;
  z-index: 2;
}

.carousel-dots {
  display: flex !important; /* Force display */
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--gradient-glass);
  backdrop-filter: var(--glass-blur-strong);
  border: 2px solid var(--glass-border-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  z-index: var(--z-carousel) !important; /* Highest z-index - always on top */
  position: relative;
  pointer-events: auto !important; /* Make dots clickable */
  visibility: visible !important;
  opacity: 1 !important;
}

.carousel-dot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(58, 89, 152, 0.3);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  z-index: 10001 !important; /* Even higher z-index for individual dots */
  pointer-events: auto; /* Ensure dots are clickable */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 4px;
}

.carousel-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}

.carousel-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color var(--transition-base);
}

.carousel-dot:hover {
  background: rgba(58, 89, 152, 0.5);
  transform: scale(1.3);
}

.carousel-dot.active {
  background: var(--gradient-primary);
  width: 44px;
  min-width: 44px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(58, 89, 152, 0.5);
}

.carousel-dot.active::before {
  width: 24px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
}

.carousel-dot.active::after {
  border-color: rgba(58, 89, 152, 0.3);
}

/* Auto-play Progress Indicator */
.carousel-progress {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: rgba(223, 227, 238, 0.3);
  border-radius: 2px;
  overflow: hidden;
  z-index: var(--z-carousel-progress) !important; /* Highest z-index - always on top */
  visibility: visible !important;
  opacity: 1 !important;
}

.carousel-progress__bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(58, 89, 152, 0.5);
}

.carousel-progress__bar.paused {
  transition: none;
}

/* FAQ Section ============================================================== */
.faq {
  position: relative;
  z-index: var(--z-content);
  background: #f0f2f5; /* Solid color to match sections exactly */
  overflow: hidden; /* Clip shadows at boundaries */
}

.faq__grid {
  display: grid;
  gap: 1.75rem;
  max-width: 960px;
  margin-inline: auto;
  position: relative;
  z-index: var(--z-content);
}

.faq-item {
  border-radius: var(--radius-lg);
  border: 2px solid var(--glass-border-strong);
  background: var(--gradient-glass-card);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1.5rem; /* Reduced padding */
  transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: var(--z-elevated);
  isolation: auto; /* Changed from isolate for consistency */
  overflow: hidden; /* Ensure content doesn't overflow during animation */
}

.faq-item > * {
  position: relative;
  z-index: var(--z-content);
}

.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  background: #ffffff;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.1875rem;
  color: var(--color-text);
  list-style: none;
  transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 89, 152, 0.10);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-size: 1.375rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item[open] summary i {
  transform: rotate(45deg);
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Smooth content animation for FAQ items - controlled by JavaScript */
.faq-item p {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 1.0625rem;
  font-weight: 500;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: max-height, opacity;
  /* Ensure full content is visible - no text truncation */
  display: block;
  visibility: visible;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-overflow: clip;
  -webkit-line-clamp: none;
  line-clamp: none;
}

/* Ensure content can be animated even when details is closed */
.faq-item:not([open]) p {
  display: block;
  visibility: visible;
}

/* Ensure smooth transitions are applied */
.faq-item[open] p {
  /* JavaScript will handle the actual animation */
  /* Keep these as fallback for initial state */
  display: block;
  visibility: visible;
}

/* CTA Section ============================================================== */
.cta {
  background: #f0f2f5; /* Solid color to match sections exactly */
  position: relative;
  z-index: var(--z-base);
  isolation: auto; /* Changed from isolate for consistency */
  overflow: hidden; /* Clip shadows at boundaries */
}

.cta__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(3rem, 8vw, 5rem);
  align-items: center;
  padding: clamp(3.5rem, 10vh, 6rem) clamp(3rem, 8vw, 5rem);
  background: var(--gradient-glass-card);
  backdrop-filter: var(--glass-blur-ultra);
  -webkit-backdrop-filter: var(--glass-blur-ultra);
  border-radius: var(--radius-2xl);
  border: 2px solid var(--glass-border-strong);
  box-shadow: 0 1px 3px rgba(58, 89, 152, 0.04), 0 0 1px rgba(28, 30, 33, 0.02) !important; /* Very minimal shadow */
  position: relative;
  z-index: var(--z-elevated);
  isolation: auto; /* Changed from isolate for consistency */
}

.cta__content > * {
  position: relative;
  z-index: var(--z-content);
}

.cta__content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  opacity: 0.5;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

.cta__content h2 {
  margin-bottom: 1.5rem;
}

.cta__content p {
  color: var(--color-text-muted);
  font-size: 1.1875rem;
  line-height: 1.8;
  font-weight: 500;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cta__actions .btn {
  min-width: 240px;
}

/* Why Choose Section ======================================================= */
.why-choose {
  background: #f0f2f5; /* Solid color to match sections exactly */
  position: relative;
  z-index: var(--z-base);
  isolation: auto; /* Changed from isolate for consistency */
  overflow: hidden; /* Clip shadows at boundaries */
  box-shadow: none !important; /* Remove any shadow from section */
}

/* Ensure combined selector has no shadow */
.why-choose.section {
  box-shadow: none !important;
}

.why-choose__content {
  box-shadow: 0 1px 3px rgba(58, 89, 152, 0.04), 0 0 1px rgba(28, 30, 33, 0.02) !important; /* Very minimal shadow */
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: var(--z-surface);
}

.why-choose__scroll {
  max-height: 78vh;
  overflow-y: auto;
  padding: clamp(3rem, 8vh, 4.5rem);
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) rgba(223, 227, 238, 0.4);
}

/* Remove or minimize shadow for surface-content with why-choose__scroll */
.surface-content.why-choose__scroll {
  box-shadow: none !important;
}

/* Also ensure parent surface has minimal shadow when containing why-choose__scroll */
.surface .why-choose__scroll {
  box-shadow: none !important;
}

.why-choose__scroll::-webkit-scrollbar {
  width: 14px;
}

.why-choose__scroll::-webkit-scrollbar-track {
  background: rgba(223, 227, 238, 0.4);
  border-radius: 7px;
}

.why-choose__scroll::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.why-choose__scroll::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

.why-choose__block {
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 2px solid rgba(223, 227, 238, 0.6);
}

.why-choose__block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.why-choose__block h3 {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin-bottom: 1.75rem;
  color: var(--color-primary);
  font-size: 1.625rem;
}

.why-choose__block h3 i {
  font-size: 2rem;
}

.why-choose__block p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.why-choose__block ul {
  display: grid;
  gap: 1.125rem;
  margin-top: 1.75rem;
}

.why-choose__block li {
  position: relative;
  padding-left: 2.25rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 1.0625rem;
  font-weight: 500;
}

.why-choose__block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(66, 183, 42, 0.12);
  color: var(--color-success);
  font-weight: 800;
  font-size: 1.1875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

/* Footer =================================================================== */
.site-footer {
  background: var(--gradient-primary);
  color: rgba(255, 255, 255, 0.95);
  padding: clamp(3rem, 8vh, 4.5rem) 0 0; /* Reduced padding */
  margin-top: clamp(4rem, 10vh, 6rem); /* Reduced margin */
  position: relative;
  overflow: hidden;
  z-index: var(--z-content);
  flex-shrink: 0;
  display: block;
  visibility: visible;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.site-footer::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(3rem, 8vw, 5rem);
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.site-footer__column h4 {
  margin-bottom: 1.75rem;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
}

.site-footer__column ul {
  display: grid;
  gap: 1.125rem;
}

.site-footer__column a {
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
}

.site-footer__column a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.site-footer__brand p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-top: 1.5rem;
  margin-bottom: 2.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 1.125rem;
  font-weight: 900;
  font-size: 1.625rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.site-footer__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: #ffffff; /* Solid white background for logo visibility */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.site-footer__icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.site-footer__contact {
  display: grid;
  gap: 1rem;
}

.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.375rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
  font-weight: 700;
}

.site-footer__contact a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(0) translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.site-footer__contact i {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.25rem;
}

.site-footer__bar {
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}

.site-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  font-weight: 600;
}

.site-footer__bar-inner p {
  margin: 0;
  white-space: nowrap;
}

.site-footer__legal {
  display: flex;
  gap: 2.25rem;
  flex-wrap: wrap;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.site-footer__legal a:hover {
  color: #ffffff;
}

.site-footer__disclaimer {
  display: block;
  visibility: visible;
  position: relative;
  z-index: 1;
}

/* Live Chat FAB ============================================================ */
.livechat-fab {
  position: fixed;
  bottom: 2.25rem;
  right: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 1.375rem 2rem;
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-2xl);
  font-weight: 800;
  font-size: 1.1875rem;
  cursor: pointer;
  z-index: var(--z-dropdown);
  transition: all var(--transition-base);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.livechat-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  pointer-events: none;
}

.livechat-fab:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 28px 70px rgba(58, 89, 152, 0.4);
}

.livechat-fab__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Policy Pages ============================================================= */
.policy-page {
  padding: clamp(3rem, 8vh, 5rem) 0;
  position: relative;
  z-index: var(--z-content);
}

.policy-header {
  padding: clamp(3.5rem, 10vh, 6rem) 0;
  background: var(--gradient-hero),
              linear-gradient(155deg, rgba(250,251,252,1), rgba(240,242,245,0.98));
  border-bottom: 2px solid rgba(223, 227, 238, 0.7);
  text-align: center;
  position: relative;
  z-index: var(--z-content);
}

.policy-header h1 {
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.policy-header p {
  color: var(--color-text-muted);
  font-size: 1.25rem;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 500;
}

.policy-content {
  padding: clamp(4rem, 11vh, 7rem) 0;
  position: relative;
  z-index: var(--z-content);
}

.policy-last-updated {
  text-align: center;
  padding: 1.75rem 2.25rem;
  background: rgba(58, 89, 152, 0.06);
  border-radius: var(--radius-md);
  margin-bottom: 4rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  font-weight: 600;
  border: 1px solid rgba(58, 89, 152, 0.15);
}

.policy-section {
  margin-bottom: 4rem;
}

.policy-section h2 {
  margin-bottom: 1.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.policy-section h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.policy-section p {
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 1.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.policy-section ul {
  list-style: disc;
  padding-left: 2.25rem;
  margin-bottom: 1.75rem;
}

.policy-section li {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.policy-section strong {
  color: var(--color-text);
  font-weight: 800;
}

.policy-cta {
  margin-top: 6rem;
  padding: clamp(3.5rem, 10vh, 5rem);
  background: var(--gradient-glass);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-2xl);
  text-align: center;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2xl);
  position: relative;
  z-index: var(--z-surface);
}

.policy-cta h3 {
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.policy-cta p {
  color: var(--color-text-muted);
  font-size: 1.1875rem;
  margin-bottom: 2.25rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
  font-weight: 500;
}

/* Services Legacy Layout =================================================== */
.services-section {
  padding: clamp(5rem, 14vh, 8rem) 0;
  background: linear-gradient(180deg, rgba(250,251,252,0.95) 0%, rgba(240,242,245,1) 100%);
  position: relative;
  z-index: var(--z-content);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -1.125rem;
}

.row > [class^='col-'],
.row > [class*=" col-"] {
  padding-inline: 1.125rem;
  box-sizing: border-box;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-md-6 {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-lg-3 {
  flex: 0 0 100%;
  max-width: 100%;
}

.mb-4 {
  margin-bottom: 3rem;
}

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

.service-card {
  background: var(--gradient-glass-card);
  backdrop-filter: var(--glass-blur-ultra);
  -webkit-backdrop-filter: var(--glass-blur-ultra);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; /* Reduced padding significantly */
  box-shadow: none !important; /* Premium glassmorphism - no shadow */
  border: 2px solid var(--glass-border-strong);
  display: grid;
  gap: 1rem; /* Reduced gap */
  height: 100%;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: var(--z-elevated);
  isolation: auto; /* Changed from isolate for consistency */
}

.service-card > * {
  position: relative;
  z-index: var(--z-content);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: none !important; /* Premium - no shadow on hover */
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(250,251,252,0.96) 100%);
}

.service-card:hover::before {
  opacity: 0.8;
}

.service-icon {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: none !important; /* Premium glassmorphism - no shadow */
  position: relative;
  z-index: 1;
}

.service-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  pointer-events: none;
}

.service-title {
  color: var(--color-text);
  font-size: 1.625rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

.service-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1rem 0;
  position: relative;
  z-index: 1;
}

.service-price .price {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-price .per-page {
  color: var(--color-text-soft);
  font-size: 1.0625rem;
  font-weight: 600;
}

.service-description {
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 1.0625rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.service-features {
  display: grid;
  gap: 0.875rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.service-features i {
  color: var(--color-success);
  font-size: 1.125rem;
}

.service-btn {
  margin-top: auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
}

/* Premium Fade-In Animation ================================================ */
/* Animation styles moved to proper section - removed override block */

/* ============================================================================
   Responsive Design - Perfect Breakpoints
   ========================================================================= */

/* Large Tablets & Small Desktops (1080px) ================================= */
@media (max-width: 1080px) {
  /* Navigation */
  :root {
    --container-width: min(1180px, 100% - 2 * clamp(1.5rem, 4vw, 2.5rem));
  }

  .site-nav__container {
    min-height: clamp(48px, 7vw, 64px);
    padding: clamp(0.375rem, 1.5vw, 0.75rem) 0;
  }

  .site-nav__menu {
    position: fixed !important;
    top: clamp(60px, 10vw, 92px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: var(--gradient-glass) !important;
    backdrop-filter: var(--glass-blur-strong) !important;
    -webkit-backdrop-filter: var(--glass-blur-strong) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 4px 24px rgba(58, 89, 152, 0.15) !important;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.5rem, 5vw, 2.25rem);
    padding: clamp(2rem, 6vh, 3rem) clamp(1.5rem, 5vw, 2.5rem);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Very high z-index to ensure menu appears above ALL content including navbar */
    z-index: 9997 !important;
    max-height: calc(100vh - clamp(60px, 10vw, 92px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
    /* Create new stacking context to escape parent */
    isolation: isolate;
    /* Ensure menu escapes any parent stacking contexts */
    transform-style: preserve-3d;
  }

  .site-nav.is-open .site-nav__menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .site-nav__links a {
    font-size: 1.25rem;
    padding: 0.75rem 0;
  }

  .site-nav__links a::after {
    display: none;
  }

  /* Mobile Dropdown Styles */
  .nav-item-has-dropdown {
    width: 100%;
  }

  .nav-dropdown-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-item-has-dropdown > .nav-dropdown-wrapper > a {
    width: 100%;
    flex: 1;
  }

  .nav-dropdown-toggle {
    flex-shrink: 0;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin-top: 0.5rem;
    display: none;
  }

  .nav-item-has-dropdown.is-open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 0.625rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-dropdown a:hover {
    padding-left: 1.5rem;
    background: var(--color-primary);
    color: #ffffff !important;
  }

  .site-nav__cta {
    width: 100%;
  }

  .site-nav__cta .btn {
    width: 100%;
    justify-content: space-between;
    padding: clamp(0.5rem, 2vw, 0.625rem) clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.6875rem, 2vw, 0.8125rem);
    flex-direction: row;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
  }

  .site-nav__cta .btn__text {
    align-items: flex-start;
  }

  .site-nav__cta .btn__label {
    font-size: clamp(0.4375rem, 1.25vw, 0.5625rem);
  }

  .site-nav__cta .btn__phone {
    font-size: clamp(0.625rem, 1.75vw, 0.75rem);
  }

  .site-nav__cta .btn .icon {
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    order: 2;
    flex-shrink: 0;
  }

  .site-nav__toggle {
    display: flex !important; /* Perfect flexbox centering on mobile */
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Ensure vertical stacking */
    gap: 6px; /* Consistent gap */
  }

  /* Overlay removed - no dark shadow/backdrop needed */
  .site-nav__overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Tablets (900px) ========================================================== */
@media (max-width: 900px) {
  /* Base Layout */
  .section {
    padding: clamp(4rem, 10vh, 6rem) 0;
  }

  /* Hero Section */
  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: clamp(3rem, 8vw, 4.5rem);
    max-width: 100%;
  }

  .hero__content {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
  }

  .hero__form {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    position: relative;
    top: 0;
    margin-top: clamp(2rem, 5vh, 3rem);
  }
}

/* Desktop and Laptop Screens (1024px and above) ============================ */
@media (min-width: 1024px) {
  /* Hero Section */
  .hero__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(4rem, 8vw, 6rem);
    max-width: min(1400px, 100% - 2 * clamp(1.25rem, 4vw, 3rem));
    width: 100%;
    overflow-y: visible;
  }

  .hero__content {
    flex: 0 1 auto;
    max-width: 640px;
    min-width: min(320px, 100%);
    overflow-y: visible;
  }

  .hero__form {
    flex: 0 0 auto;
    max-width: 480px;
    width: 480px;
    min-width: min(280px, 100%);
  }

  .hero__content h1 {
    font-size: clamp(2.25rem, 3.5vw, 3rem);
    line-height: 1.25;
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 540px;
    width: 100%;
  }

  .hero__highlights {
    max-width: 100%;
    width: 100%;
  }

  .hero__metrics {
    max-width: 100%;
    width: 100%;
  }
}

/* Large Desktop Screens (1440px and above) */
@media (min-width: 1440px) {
  .hero__inner {
    max-width: min(1600px, 100% - 2 * clamp(1.25rem, 4vw, 4rem));
  }

  .hero__content {
    max-width: 720px;
  }

  .hero__form {
    max-width: 500px;
    width: 500px;
  }

  .hero__content h1 {
    font-size: clamp(2.5rem, 3vw, 3.25rem);
  }
}

/* Tablet Devices (768px - 1023px) ========================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Base Typography & Layout */
  body {
    font-size: 0.9375rem;
  }

  :root {
    --container-width: min(100%, calc(100% - 3rem));
  }

  .section {
    padding: clamp(3rem, 6vh, 4.5rem) 0;
  }

  /* Hero Section - Tablet Optimized */
  .hero {
    padding-top: clamp(80px, 8vw, 100px);
  }

  .hero__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(3rem, 5vw, 4rem);
    max-width: min(1200px, 100% - 3rem);
  }

  .hero__content {
    flex: 1 1 55%;
    max-width: 55%;
    min-width: 0;
  }

  .hero__form {
    flex: 0 0 42%;
    max-width: 42%;
    min-width: 320px;
  }

  .hero__content h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.3;
  }

  .hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    max-width: 100%;
  }

  .hero__highlights {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
  }

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

  .hero__metric {
    padding: 1.25rem;
  }

  /* Benefits Grid - Tablet */
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Solutions Grid - Tablet */
  .solutions__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Testimonials - Tablet */
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Comparison Table - Tablet */
  .comparison__table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison__table {
    font-size: 0.875rem;
  }

  /* Process Timeline - Tablet */
  .process__timeline {
    gap: 2rem;
  }

  .process-step {
    padding-left: 3rem;
  }

  /* FAQ - Tablet */
  .faq__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* CTA - Tablet */
  .cta__actions {
    flex-direction: row;
    gap: 1rem;
  }

  /* Utilities */
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Landscape Phones & Small Tablets (768px) */
@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Mobile Devices (767px and below) ========================================= */
@media (max-width: 767px) {
  /* Base Typography & Layout */
  body {
    font-size: 0.875rem;
  }

  :root {
    --container-width: min(100%, calc(100% - 2.5rem));
  }

  .page {
    padding-top: 0;
  }

  .section {
    min-height: auto;
    padding: clamp(2rem, 6vh, 3.5rem) 0;
  }

  /* Hero Section */
  .hero {
    padding-top: clamp(72px, 10vw, 88px); /* Reduced for mobile */
  }

  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: clamp(2.5rem, 7vw, 4rem);
    max-width: 100%;
  }

  .hero__content {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    align-items: center;
  }

  .hero__form {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    position: relative;
    top: 0;
    margin-top: clamp(2rem, 5vh, 3rem);
  }

    .hero__content h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 1rem;
    padding-bottom: 1.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    width: 100%;
  }

  .hero__subtitle {
    font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
    max-width: 100%;
    width: 100%;
  }

  .eyebrow {
    font-size: clamp(0.75rem, 2.5vw, 0.8125rem);
    padding: 0.5rem 1rem;
    gap: 0.625rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: nowrap;
    width: fit-content;
    max-width: 100%;
  }

  .eyebrow i {
    font-size: clamp(0.875rem, 2vw, 1rem);
  }

  .hero__highlights {
    gap: 1rem;
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  }

  .hero__highlights li {
    padding: 0.875rem 1rem;
    gap: 0.875rem;
    flex-wrap: wrap;
  }

  .hero__highlights i {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    width: clamp(28px, 7vw, 32px);
    height: clamp(28px, 7vw, 32px);
    min-width: clamp(28px, 7vw, 32px);
  }

  .hero__highlights {
    text-align: left;
  }

  .hero__form {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    position: relative;
    top: 0;
    box-shadow: 0 1px 4px rgba(58, 89, 152, 0.06), 0 0 2px rgba(28, 30, 33, 0.02) !important; /* Even less shadow on mobile */
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .hero-form__phone {
    grid-template-columns: auto 1fr;
  }

  .form__country-code {
    min-width: 48px;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }


  /* Reduce input and button sizes on mobile */
  .form__input,
  .form textarea,
  .form select {
    padding: 0.625rem 0.875rem; /* Smaller on mobile */
    font-size: 0.875rem;
  }

  .btn {
    padding: 0.75rem 1.25rem; /* Smaller buttons on mobile */
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .site-footer__bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .site-footer__legal {
    justify-content: center;
    gap: 1.5rem;
  }

  .cta__actions {
    flex-direction: column;
  }

  .cta__actions .btn {
    width: 100%;
  }

  .livechat-fab {
    bottom: 1.75rem;
    right: 1.75rem;
    padding: 1rem 1.25rem;
  }

  .livechat-fab__label {
    display: none;
  }

  .livechat-fab__icon {
    width: 32px;
    height: 32px;
    font-size: 1.375rem;
  }

  .premium-modal__content {
    padding: 2.5rem 1.75rem;
  }

  .premium-modal__success-icon {
    width: 90px;
    height: 90px;
  }

  .universities-carousel-wrapper {
    padding: 1.5rem 0;
  }
  
  .university-logo-item {
    width: 110px; /* Maintain circle - equal width and height */
    height: 110px; /* Maintain circle - equal width and height */
    padding: 0; /* Remove padding to eliminate transparent areas */
    border-radius: 50%; /* Perfect circle */
    background: #ffffff; /* Solid white background */
  }
  
  .universities-carousel-track {
    gap: 2rem;
    animation-duration: 50s;
  }

  /* Content Sections - Cards & Grids */
  .benefits__grid,
  .solutions__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    display: block !important;
  }

  .process-step {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 1.25rem;
  }

  .process-step__number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Reduce card padding on mobile */
  .surface-content {
    padding: clamp(1.25rem, 4vh, 1.75rem) !important; /* Reduced */
  }

  .benefit-card,
  .solution-card {
    padding: 1.5rem 1.25rem; /* Reduced for mobile */
  }

  /* Testimonials carousel mobile */
  .testimonials__wrapper {
    padding: 0 0 4rem; /* Removed top padding on mobile */
  }

  .testimonials__carousel-container {
    height: 550px;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }

  .testimonial-card.active {
    transform: translate(-50%, -50%) translateX(0%) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .testimonial-card.slide-out-left {
    transform: translate(-50%, -50%) translateX(-100%) !important;
  }

  .testimonial-card.slide-out-right {
    transform: translate(-50%, -50%) translateX(100%) !important;
  }

  .testimonial-card.slide-in-left {
    transform: translate(-50%, -50%) translateX(-100%) !important;
  }

  .testimonial-card.slide-in-right {
    transform: translate(-50%, -50%) translateX(100%) !important;
  }

  .testimonial-card.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translate(-50%, -50%) !important;
  }

  .testimonials__controls {
    flex-direction: column;
    gap: 1.5rem;
    bottom: 2rem !important;
    z-index: 99999 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .carousel-nav__btn {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
  }

  .carousel-dots {
    padding: 0.5rem 0.75rem !important;
    gap: 0.375rem !important;
    order: -1;
    z-index: 100000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    max-width: 90vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .carousel-dots::-webkit-scrollbar {
    display: none;
  }

  .carousel-dot {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
    margin: 0 2px !important;
    flex-shrink: 0;
  }

  .carousel-dot::before {
    width: 4px !important;
    height: 4px !important;
  }

  .carousel-dot.active {
    width: 16px !important;
    min-width: 16px !important;
  }

  .carousel-dot.active::before {
    width: 12px !important;
    height: 4px !important;
  }

  .carousel-progress {
    bottom: 0.5rem !important;
    width: 150px;
    z-index: 100001 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .testimonial-card__quote::before {
    font-size: 3.5rem;
    top: -15px;
  }

  .testimonial-card__rating {
    font-size: 1.125rem;
    gap: 0.5rem;
  }

  /* Reduce icon sizes on mobile */
  .benefit-card__icon {
    width: 46px; /* Reduced for mobile */
    height: 46px;
    font-size: 1.25rem;
  }

  .solution-card__icon {
    width: 42px; /* Reduced for mobile */
    height: 42px;
    font-size: 1.125rem;
  }

  .testimonial-card__avatar {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .testimonial-card__header h3 {
    font-size: 1rem;
  }

  .testimonial-card__header p {
    font-size: 0.875rem;
  }

  .service-icon {
    width: 48px; /* Reduced for mobile */
    height: 48px;
    font-size: 1.25rem; /* Reduced for mobile */
  }

  /* Reduce text sizes on mobile */
  .benefit-card h3,
  .solution-card h3,
  .testimonial-card h3 {
    font-size: 1.0625rem; /* Reduced */
  }

  .benefit-card p,
  .solution-card p,
  .testimonial-card p {
    font-size: 0.875rem; /* Reduced */
  }

  .process-step__content {
    padding: 1.25rem 1rem; /* Reduced */
  }

  .process-step__content h3 {
    font-size: 1.0625rem; /* Reduced */
  }

  .process-step__content p {
    font-size: 0.875rem; /* Reduced */
  }

  .faq-item {
    padding: 1.125rem 1rem; /* Reduced for mobile */
  }

  .faq-item summary {
    font-size: 1rem; /* Reduced */
  }

  .faq-item p {
    font-size: 0.875rem; /* Reduced */
  }

  .hero__metrics {
    width: 100% !important; /* Take full width on mobile */
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: nowrap;
    justify-content: space-between; /* Distribute evenly */
  }

  .hero__metric {
    padding: 1.25rem 0.875rem; /* Increased padding for mobile */
    gap: 0.625rem; /* Increased gap */
    min-width: 0;
  }

  .hero__metric-number {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem); /* Increased size */
  }

  .hero__metric-label {
    font-size: clamp(0.8125rem, 1.75vw, 1rem); /* Increased size */
  }
  
  .hero__metric-icon {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem); /* Increased size */
  }
}

/* Larger Phones (600px) =================================================== */
@media (max-width: 600px) {
  /* Typography */
  h1 {
    font-size: clamp(2.25rem, 9vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.875rem, 7vw, 2.75rem);
  }

  .section-heading h2::after {
    width: 60px;
  }
}

/* Small Phones (480px) ==================================================== */
@media (max-width: 480px) {
  /* Hero Section */
  .hero {
    padding-top: clamp(64px, 9vw, 80px); /* Further reduced for small mobile */
  }

  .hero__content {
    gap: clamp(1rem, 3vw, 1.5rem);
    padding: 0 0.5rem;
  }

  .hero__content h1 {
    font-size: clamp(1.375rem, 7vw, 2.25rem);
    line-height: 1.35;
    padding-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero__subtitle {
    font-size: clamp(0.875rem, 3.5vw, 1rem);
    line-height: 1.6;
  }

  .eyebrow {
    font-size: clamp(0.6875rem, 2.5vw, 0.75rem);
    padding: 0.5rem 0.875rem;
    gap: 0.5rem;
    white-space: nowrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
  }

  .eyebrow i {
    font-size: clamp(0.8125rem, 1.75vw, 0.9375rem);
  }

  .hero__highlights {
    gap: 0.875rem;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    width: 100%;
  }

  .hero__highlights li {
    padding: 0.75rem 0.875rem;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .hero__highlights i {
    font-size: clamp(1rem, 3vw, 1.25rem);
    width: clamp(26px, 6.5vw, 30px);
    height: clamp(26px, 6.5vw, 30px);
    min-width: clamp(26px, 6.5vw, 30px);
    margin-top: 0.125rem;
  }

  .hero__metrics {
    width: 100% !important;
    gap: clamp(0.375rem, 2vw, 0.5rem);
    margin-top: 1rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  
  .hero__metric {
    padding: clamp(0.75rem, 3vw, 1rem) clamp(0.5rem, 2vw, 0.625rem);
    gap: clamp(0.375rem, 2vw, 0.5rem);
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
  }
  
  .hero__metric-number {
    font-size: clamp(1rem, 4vw, 1.375rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  
  .hero__metric-label {
    font-size: clamp(0.6875rem, 2vw, 0.875rem);
    line-height: 1.3;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    max-width: 100%;
  }
  
  .hero__metric-icon {
    font-size: clamp(1rem, 4vw, 1.375rem);
  }
  
  .universities-carousel-wrapper {
    padding: 1rem 0;
  }
  
  .university-logo-item {
    width: 90px; /* Maintain circle - equal width and height */
    height: 90px; /* Maintain circle - equal width and height */
    padding: 0; /* Remove padding to eliminate transparent areas */
    border-radius: 50%; /* Perfect circle */
    background: #ffffff; /* Solid white background */
  }
  
  .universities-carousel-track {
    gap: 1.5rem;
    animation-duration: 45s;
  }
}

/* Extra Small Phones (375px and below) ==================================== */
@media (max-width: 375px) {
  /* Hero Section */
  .hero__content {
    gap: clamp(0.875rem, 3vw, 1.25rem);
    padding: 0 0.75rem;
  }

  .hero__content h1 {
    font-size: clamp(1.25rem, 8vw, 2rem);
    line-height: 1.4;
    padding-bottom: 0.875rem;
  }

  .hero__subtitle {
    font-size: clamp(0.8125rem, 3.5vw, 0.9375rem);
    line-height: 1.65;
  }

  .eyebrow {
    font-size: clamp(0.625rem, 2.5vw, 0.6875rem);
    padding: 0.4375rem 0.75rem;
    gap: 0.4375rem;
    width: fit-content;
    max-width: 100%;
  }

  .eyebrow i {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  }

  .hero__highlights {
    gap: 0.75rem;
    font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
  }

  .hero__highlights li {
    padding: 0.625rem 0.75rem;
    gap: 0.625rem;
  }

  .hero__highlights i {
    font-size: clamp(0.9375rem, 3vw, 1.125rem);
    width: clamp(24px, 6vw, 28px);
    height: clamp(24px, 6vw, 28px);
    min-width: clamp(24px, 6vw, 28px);
  }

  .hero__metrics {
    gap: clamp(0.25rem, 2vw, 0.375rem);
  }

  .hero__metric {
    padding: clamp(0.625rem, 3vw, 0.875rem) clamp(0.375rem, 2vw, 0.5rem);
    gap: clamp(0.25rem, 2vw, 0.375rem);
  }

  .hero__metric-number {
    font-size: clamp(0.9375rem, 4.5vw, 1.25rem);
  }

  .hero__metric-label {
    font-size: clamp(0.625rem, 2vw, 0.8125rem);
    line-height: 1.35;
  }

  .hero__metric-icon {
    font-size: clamp(0.9375rem, 4.5vw, 1.25rem);
  }
}

/* Tiny Phones (320px and below) =========================================== */
@media (max-width: 320px) {
  /* Hero Section */
  .hero__content {
    padding: 0 0.5rem;
    gap: 0.75rem;
  }

  .hero__content h1 {
    font-size: clamp(1.125rem, 9vw, 1.75rem);
    line-height: 1.45;
    padding-bottom: 0.75rem;
    letter-spacing: -0.02em;
  }

  .hero__subtitle {
    font-size: clamp(0.75rem, 3.5vw, 0.875rem);
    line-height: 1.7;
  }

  .eyebrow {
    font-size: clamp(0.5625rem, 2.5vw, 0.625rem);
    padding: 0.375rem 0.625rem;
    gap: 0.375rem;
    width: fit-content;
    max-width: 100%;
  }

  .eyebrow i {
    font-size: clamp(0.6875rem, 1.25vw, 0.8125rem);
  }

  .hero__highlights {
    gap: 0.625rem;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  }

  .hero__highlights li {
    padding: 0.5rem 0.625rem;
    gap: 0.5rem;
  }

  .hero__highlights i {
    font-size: clamp(0.875rem, 3vw, 1rem);
    width: 22px;
    height: 22px;
    min-width: 22px;
  }

  .hero__metrics {
    gap: 0.25rem;
    margin-top: 0.875rem;
  }

  .hero__metric {
    padding: 0.5rem 0.375rem;
    gap: 0.25rem;
  }

  .hero__metric-number {
    font-size: clamp(0.875rem, 5vw, 1.125rem);
  }

  .hero__metric-label {
    font-size: clamp(0.5625rem, 2vw, 0.75rem);
    line-height: 1.4;
  }

  .hero__metric-icon {
    font-size: clamp(0.875rem, 5vw, 1.125rem);
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .process-step__number {
    justify-self: flex-start;
  }

  .premium-modal__features {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 0.75rem 1.125rem;
    font-size: 0.8125rem;
  }

  .form__input,
  .form textarea,
  .form select {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .form__country-code {
    min-width: 44px;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }


  /* Testimonials carousel small mobile */
  .testimonials__carousel-container {
    height: 600px;
  }

  .testimonial-card {
    padding: 1.75rem 1.25rem;
    max-width: 95%;
  }

  .testimonial-card.active {
    transform: translate(-50%, -50%) translateX(0%) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .testimonial-card.slide-out-left {
    transform: translate(-50%, -50%) translateX(-100%) !important;
  }

  .testimonial-card.slide-out-right {
    transform: translate(-50%, -50%) translateX(100%) !important;
  }

  .testimonial-card.slide-in-left {
    transform: translate(-50%, -50%) translateX(-100%) !important;
  }

  .testimonial-card.slide-in-right {
    transform: translate(-50%, -50%) translateX(100%) !important;
  }

  .testimonial-card.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translate(-50%, -50%) !important;
  }

  .testimonials__controls {
    gap: 1.25rem;
  }

  .carousel-nav {
    display: flex;
    gap: 0.75rem;
  }

  .carousel-nav__btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .carousel-dots {
    padding: 0.375rem 0.5rem !important;
    gap: 0.25rem !important;
    max-width: 95vw;
  }

  .carousel-dot {
    width: 5px !important;
    height: 5px !important;
    min-width: 5px !important;
    min-height: 5px !important;
    margin: 0 1.5px !important;
  }

  .carousel-dot::before {
    width: 3px !important;
    height: 3px !important;
  }

  .carousel-dot.active {
    width: 14px !important;
    min-width: 14px !important;
  }

  .carousel-dot.active::before {
    width: 10px !important;
    height: 3px !important;
  }

  .testimonial-card__header h3 {
    font-size: 1.0625rem;
  }

  .testimonial-card__header p {
    font-size: 0.875rem;
  }

  .testimonial-card__quote {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .testimonial-card__quote::before {
    font-size: 3rem;
    top: -12px;
  }

  .testimonial-card__avatar {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .flash-container {
    width: calc(100% - 2rem);
  }

  .site-nav__container {
    min-height: clamp(44px, 6vw, 56px);
    padding: clamp(0.25rem, 1vw, 0.5rem) 0;
  }

  .site-nav__logo {
    width: clamp(36px, 6vw, 44px);
    height: clamp(36px, 6vw, 44px);
  }

  .site-nav__brand {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
  }

  .site-nav__toggle {
    width: clamp(40px, 7vw, 48px);
    height: clamp(40px, 7vw, 48px);
    min-width: clamp(40px, 7vw, 48px);
    min-height: clamp(40px, 7vw, 48px);
  }

  .page {
    padding-top: 0;
  }

  .livechat-fab {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 1rem;
  }

  .livechat-fab__icon {
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
  }
}

/* Desktop-specific (992px and up) */
@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Print Styles ============================================================= */
@media print {
  .site-nav,
  .livechat-fab,
  .flash-container,
  .premium-modal,
  .cta__actions,
  .site-nav__overlay {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  .section {
    min-height: auto;
    page-break-inside: avoid;
  }

  .surface,
  .benefit-card,
  .solution-card,
  .testimonial-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ============================================================================
   Popup Form - Fixed Modal Overlay
   ========================================================================= */

/* Prevent body scrolling when popup is active */
body.popup-active,
html.popup-active {
  overflow: hidden !important;
  height: 100% !important;
  position: fixed !important;
  width: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

.popup-form-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-form-container.popup-form-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.popup-form-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 29, 35, 0.75);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-form-container.popup-form-active .popup-form-overlay {
  opacity: 1;
  visibility: visible;
}

.popup-form-wrapper {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 480px;
  max-height: 95vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}

.popup-form-container.popup-form-active .popup-form-wrapper {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Mobile Optimizations - Compact Design - No Scrolling */
@media (max-width: 767px) {
  .popup-form-wrapper {
    max-width: 95%;
    max-height: 98vh;
    width: 95%;
    overflow: hidden;
  }
  
  .popup-form-content {
    padding: 1rem 0.875rem;
    border-radius: 16px;
    max-height: 98vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  /* Compact header on mobile */
  .popup-form-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
  }
  
  .popup-form-header h3 {
    font-size: 0.9375rem !important;
    margin-bottom: 0.375rem !important;
    line-height: 1.25 !important;
  }
  
  /* Smaller discount banner */
  .popup-form-header p[style*="background: linear-gradient"] {
    padding: 0.4375rem 0.625rem !important;
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
  }
  
  /* Compact intro text */
  .popup-form-intro {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.375rem !important;
  }
  
  /* Compact list */
  .popup-form-header ul {
    margin: 0.375rem 0 !important;
    font-size: 0.6875rem !important;
  }
  
  .popup-form-header ul li {
    margin-bottom: 0.25rem !important;
    line-height: 1.3 !important;
  }
  
  .popup-form-header ul li i {
    font-size: 0.625rem !important;
    margin-right: 0.375rem !important;
  }
  
  /* Hide bottom intro text on mobile to save space */
  .popup-form-header p:last-of-type:not(.popup-form-intro) {
    display: none !important;
  }
  
  /* Compact form elements */
  .popup-form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  
  .popup-form .form__group {
    margin-bottom: 0.625rem;
    flex-shrink: 0;
  }
  
  .popup-form .form__label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  .popup-form .form__input {
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
  }
  
  .popup-form textarea.form__input {
    min-height: 50px;
    max-height: 65px;
    resize: none;
  }
  
  .popup-form .form__char-counter {
    font-size: 0.625rem;
    margin-top: 0.25rem;
  }
  
  /* Compact button */
  .popup-form .btn {
    padding: 0.625rem 1rem !important;
    font-size: 0.875rem !important;
    flex-shrink: 0;
  }
  
  /* Compact footer text */
  .popup-form .form__footer {
    flex-shrink: 0;
    margin-top: 0.5rem;
  }
  
  .popup-form .form__disclaimer {
    font-size: 0.625rem !important;
    margin-top: 0.375rem !important;
    line-height: 1.3;
  }
  
  .popup-form .form__footer p[style*="font-size: 0.7rem"] {
    font-size: 0.5625rem !important;
    margin-top: 0.25rem !important;
    line-height: 1.3;
  }
  
  /* Smaller close button */
  .popup-form-close {
    width: 32px;
    height: 32px;
    top: 0.5rem;
    right: 0.5rem;
  }
  
  .popup-form-close i {
    font-size: 14px;
  }
  
  /* Very small mobile devices */
  @media (max-width: 480px) {
    .popup-form-wrapper {
      max-height: 100vh;
    }
    
    .popup-form-content {
      padding: 0.875rem 0.75rem;
      max-height: 100vh;
    }
    
    .popup-form-header h3 {
      font-size: 0.875rem !important;
    }
    
    .popup-form-header p[style*="background: linear-gradient"] {
      padding: 0.375rem 0.5rem !important;
      font-size: 0.6875rem !important;
    }
    
    .popup-form-header ul li:nth-child(4) {
      display: none;
    }
  }
  
  /* Extra small devices */
  @media (max-width: 360px) {
    .popup-form-content {
      padding: 0.75rem 0.625rem;
    }
    
    .popup-form-header ul li:nth-child(n+3) {
      display: none;
    }
  }
}

/* Tablet and Desktop - Two Column Layout - No Scrolling */
@media (min-width: 768px) {
  .popup-form-wrapper {
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    overflow: hidden;
  }
  
  .popup-form-content {
    padding: 1.5rem;
    max-height: 90vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  
  .popup-form-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 1.5rem;
    overflow-y: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }
  
  .popup-form {
    padding-left: 0;
    overflow-y: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }
  
  .popup-form-header h3 {
    font-size: 1.125rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
  }
  
  .popup-form-header p[style*="background: linear-gradient"] {
    padding: 0.625rem 0.875rem !important;
    font-size: 0.8125rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  .popup-form-intro {
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
  }
  
  .popup-form-header ul {
    margin: 0.5rem 0 !important;
    font-size: 0.75rem !important;
  }
  
  .popup-form-header ul li {
    margin-bottom: 0.375rem !important;
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }
  
  .popup-form-header ul li i {
    font-size: 0.6875rem !important;
    margin-right: 0.5rem !important;
  }
  
  .popup-form-header p:last-of-type:not(.popup-form-intro) {
    font-size: 0.6875rem !important;
    margin-top: 0.5rem !important;
    line-height: 1.4 !important;
  }
  
  .popup-form .form__group {
    margin-bottom: 0.875rem;
  }
  
  .popup-form .form__label {
    font-size: 0.8125rem;
    margin-bottom: 0.3125rem;
  }
  
  .popup-form .form__input {
    padding: 0.5625rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .popup-form textarea.form__input {
    min-height: 70px;
    max-height: 85px;
    resize: none;
  }
  
  .popup-form .form__char-counter {
    font-size: 0.6875rem;
    margin-top: 0.25rem;
  }
  
  .popup-form .form__footer {
    margin-top: 0.75rem;
    flex-shrink: 0;
  }
  
  .popup-form .btn {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
  
  .popup-form .form__disclaimer {
    margin-top: 0.5rem;
    font-size: 0.625rem !important;
    line-height: 1.4;
  }
  
  .popup-form .form__footer p[style*="font-size: 0.7rem"] {
    font-size: 0.5625rem !important;
    margin-top: 0.375rem !important;
    line-height: 1.3;
  }
}

/* Desktop - Even wider - Optimized for no scrolling */
@media (min-width: 1024px) {
  .popup-form-wrapper {
    max-width: 1000px;
    max-height: 88vh;
  }
  
  .popup-form-content {
    padding: 1.75rem;
    gap: 2rem;
    max-height: 88vh;
  }
  
  .popup-form-header {
    padding-right: 2rem;
  }
  
  .popup-form-header h3 {
    font-size: 1.25rem !important;
  }
  
  .popup-form-header p[style*="background: linear-gradient"] {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
  }
  
  .popup-form-intro {
    font-size: 0.875rem !important;
  }
  
  .popup-form-header ul {
    font-size: 0.8125rem !important;
  }
  
  .popup-form-header ul li {
    font-size: 0.8125rem !important;
  }
  
  .popup-form .form__input {
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
  }
  
  .popup-form textarea.form__input {
    min-height: 75px;
    max-height: 90px;
  }
}


.popup-form-content {
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(252, 253, 254, 0.96) 50%, 
    rgba(248, 249, 250, 0.94) 100%);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 
    0 24px 64px rgba(58, 89, 152, 0.24),
    0 12px 32px rgba(28, 30, 33, 0.12),
    0 8px 16px rgba(58, 89, 152, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.6);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  display: block;
}

.popup-form-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.8) 50%, 
    transparent 100%);
  z-index: 1;
}

.popup-form-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(58, 89, 152, 0.12);
}

.popup-form-close:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 16px rgba(58, 89, 152, 0.18);
}

.popup-form-close i {
  font-size: 18px;
}

.popup-form-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .popup-form-wrapper {
    max-width: 850px;
    max-height: 92vh;
  }
  
  .popup-form-content {
    padding: 1.25rem;
    gap: 1.25rem;
    max-height: 92vh;
  }
  
  .popup-form-header {
    padding-right: 1.25rem;
  }
}

.popup-form-intro {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.popup-form .form__group {
  margin-bottom: 1.25rem;
}

.popup-form .form__input {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.popup-form .form__input:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(58, 89, 152, 0.4);
  box-shadow: 0 4px 16px rgba(58, 89, 152, 0.12),
              inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.popup-form .btn {
  width: 100%;
  background: linear-gradient(135deg, #3a5998 0%, #5c7cba 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(58, 89, 152, 0.24);
}

.popup-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 89, 152, 0.32);
}

/* Popup form responsive styles - consolidated into main 768px media query above */
