  :root {
  /* Modern Color Palette - Health AI Theme */
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --secondary: #7c3aed;
  --secondary-light: #a78bfa;
  --secondary-dark: #5b21b6;
  --accent: #ec4899;
  --accent-light: #f9a8d4;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #0ea5e9;
  --info-light: #e0f2fe;

  /* Health-specific accent colors */
  --health-red: #dc2626;
  --health-blue: #2563eb;
  --health-green: #059669;
  --health-teal: #0d9488;

  /* Neutral Colors */
  --dark: #0f172a;
  --light: #f8fafc;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Visual Effects */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.18);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.04), 0 24px 48px rgba(0,0,0,0.03);
  --card-shadow-hover: 0 4px 8px rgba(0,0,0,0.06), 0 12px 28px rgba(0,0,0,0.08), 0 32px 64px rgba(0,0,0,0.04);
  --card-shadow-active: 0 2px 4px rgba(79,70,229,0.08), 0 8px 24px rgba(79,70,229,0.12);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-primary-soft: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(124, 58, 237, 0.06));
  --gradient-success: linear-gradient(135deg, #059669, #10b981);
  --gradient-bg: linear-gradient(160deg, #f8faff 0%, #f0f4ff 40%, #faf5ff 100%);
  --gradient-hero: linear-gradient(135deg, #eef2ff 0%, #ede9fe 50%, #fce7f3 100%);
  --gradient-mesh: radial-gradient(at 40% 20%, rgba(79,70,229,0.06) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, rgba(124,58,237,0.05) 0px, transparent 50%),
                   radial-gradient(at 0% 50%, rgba(16,185,129,0.04) 0px, transparent 50%);

  /* Transitions & Dimensions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-spring: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Container Max Width */
  --container-max-width: 1600px;
  --container-width: 98%;

  /* Z-index layers */
  --z-back: -1;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  --z-dropdown: 5000;
  --z-top: 9999;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Form Elements */
  --input-height: 3.25rem;
  --input-padding: 0.75rem 1rem;
  --input-focus-ring: 0 0 0 3px rgba(79, 70, 229, 0.15), 0 0 0 1px rgba(79, 70, 229, 0.3);
  --button-height: 3.5rem;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--gradient-bg);
  color: var(--gray-700);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  body::before {
    display: none;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-top: 0;
}

p {
  line-height: 1.7;
  margin-top: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--primary-dark);
}

a:focus {
  outline: none;
  box-shadow: var(--input-focus-ring);
  border-radius: 2px;
}

a:focus:not(:focus-visible) {
  box-shadow: none;
}

a:focus-visible {
  outline: none;
  box-shadow: var(--input-focus-ring);
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--font-primary);
  cursor: pointer;
}

/* Container */
.container {
  width: var(--container-width);
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* Iframe container */
.iframe-container {
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  background-color: var(--white);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(209, 213, 219, 0.3);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  transition: padding 0.2s ease;
}

@media (min-width: 769px) {
  .navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
  }
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  height: clamp(32px, 8vw, 40px);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  color: var(--gray-700);
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-nav {
  display: flex;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.navbar-nav .nav-link {
  color: var(--gray-700);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  width: 50%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Language Switcher */
.lang-switcher {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: var(--z-top);
  font-family: var(--font-primary);
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 5px 10px 5px 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-700);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 32px;
}

.lang-switcher-btn:hover {
  border-color: var(--primary-light);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.12);
}

.lang-switcher-btn i {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-left: 2px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 200px;
  max-height: 280px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
  display: none;
  overflow: hidden;
  z-index: var(--z-top);
}

.lang-switcher.open .lang-dropdown {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.lang-search {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.82rem;
  outline: none;
  font-family: var(--font-primary);
  background: var(--gray-50);
  box-sizing: border-box;
}

.lang-search::placeholder {
  color: var(--gray-400);
}

.lang-search:focus {
  border-bottom-color: var(--primary-light);
  background: white;
}

.lang-list {
  max-height: 230px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 2px 0;
}

.lang-option {
  padding: 7px 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--gray-700);
  transition: background-color 0.1s ease;
  display: flex;
  align-items: center;
  gap: 7px;
  -webkit-tap-highlight-color: transparent;
}

.lang-option:hover {
  background: rgba(79, 70, 229, 0.05);
}

.lang-option.active {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .lang-switcher {
    top: 10px;
    right: 10px;
  }
  .lang-switcher-btn {
    padding: 4px 8px 4px 6px;
    font-size: 0.75rem;
    gap: 4px;
    min-height: 30px;
  }
  .lang-dropdown {
    width: 180px;
    max-height: 250px;
    right: 0;
  }
  .lang-option {
    padding: 8px 10px;
    min-height: 36px;
  }
}

.in-iframe .lang-switcher {
  display: none;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f4ff 0%, #e6eeff 100%);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: var(--z-modal);
  overflow: hidden;
  contain: layout style;
  transform: translateZ(0);
}

.blood-animation-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  contain: strict;
  overflow: hidden;
  z-index: var(--z-back);
}

.blood-cells-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.blood-cell {
  position: absolute;
  width: clamp(15px, 3vw, 25px);
  height: clamp(15px, 3vw, 25px);
  background: rgba(220, 53, 69, 0.6);
  border-radius: 50%;
  box-shadow: inset 2px -2px 8px rgba(130, 20, 30, 0.6);
  animation: floatCell 12s linear infinite;
  opacity: 0;
  transform: translateZ(0);
  contain: strict;
}

.blood-cell::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 35%;
  height: 35%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

@keyframes floatCell {
  0% {
    transform: translate(-30px, -30px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translate(calc(100vw + 30px), calc(100vh + 30px)) rotate(360deg);
    opacity: 0;
  }
}

.white-cell {
  position: absolute;
  width: clamp(18px, 3.5vw, 30px);
  height: clamp(18px, 3.5vw, 30px);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(200, 200, 220, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: floatWhiteCell 18s linear infinite;
  opacity: 0;
}

.white-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 40% 40%,
                             rgba(255,255,255,0.8) 0%,
                             rgba(240,240,255,0.2) 50%,
                             transparent 100%);
  border-radius: 50%;
}

@keyframes floatWhiteCell {
  0% {
    transform: translate(-40px, 100vh) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  50% {
    transform: translate(50vw, 50vh) scale(1.2);
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translate(calc(100vw + 40px), -40px) scale(1);
    opacity: 0;
  }
}

/* DNA Animation */
.dna-container {
  position: absolute;
  bottom: clamp(10px, 5vh, 30px);
  left: clamp(10px, 5vw, 30px);
  width: clamp(80px, 10vw, 140px);
  height: clamp(150px, 25vh, 280px);
  opacity: 0.5;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 0;
  display: none;
}

.dna-strand {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom,
                           rgba(79, 70, 229, 0.1),
                           rgba(79, 70, 229, 0.4) 20%,
                           rgba(79, 70, 229, 0.1) 40%,
                           rgba(124, 58, 237, 0.4) 60%,
                           rgba(124, 58, 237, 0.1) 80%,
                           rgba(79, 70, 229, 0.4) 100%);
  transform: translateX(-50%);
  z-index: 1;
}

.dna-rung {
  position: absolute;
  left: 50%;
  width: 50px;
  height: 6px;
  background-color: rgba(236, 72, 153, 0.3);
  transform-origin: left center;
  transform: translateX(-50%) scaleX(0);
  z-index: 2;
  border-radius: 3px;
}

.dna-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  z-index: 3;
  transform: translateX(-50%) translateY(-50%);
  animation: pulseNode 3s infinite alternate;
}

.dna-node-left {
  left: calc(50% - 25px);
  background: rgba(79, 70, 229, 0.6);
}

.dna-node-right {
  left: calc(50% + 25px);
  background: rgba(236, 72, 153, 0.6);
}

@keyframes pulseNode {
  0% {
    transform: translateX(-50%) translateY(-50%) scale(1);
    box-shadow: 0 0 0 rgba(79, 70, 229, 0);
  }
  100% {
    transform: translateX(-50%) translateY(-50%) scale(1.2);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
  }
}

/* Test Tube Animation */
.test-tube-container {
  position: absolute;
  top: clamp(20px, 8vh, 60px);
  right: clamp(20px, 8vw, 60px);
  width: clamp(40px, 8vw, 80px);
  height: clamp(100px, 20vh, 200px);
  transform: rotate(10deg);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.test-tube {
  position: relative;
  width: 60px;
  height: 180px;
  max-width: 100%;
  max-height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px 20px 50% 50% / 20px 20px 30px 30px;
  border: 3px solid rgba(200, 200, 220, 0.8);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05),
             inset 0 0 30px rgba(255, 255, 255, 0.5);
}

.test-tube-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(to bottom,
                           rgba(220, 53, 69, 0.5) 0%,
                           rgba(220, 38, 69, 0.7) 100%);
  border-radius: 0 0 26px 26px / 0 0 25px 25px;
  animation: tubeShake 3s ease-in-out infinite;
  transform-origin: center bottom;
}

.test-tube-bubbles {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  overflow: hidden;
}

.bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: bubbleRise linear infinite;
}

@keyframes tubeShake {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

@keyframes bubbleRise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) translateX(var(--tx));
    opacity: 0;
  }
}

/* Heart Monitor Animation */
.heart-monitor {
  position: absolute;
  width: 300px;
  max-width: 40vw;
  height: 80px;
  bottom: clamp(20px, 8vh, 60px);
  right: clamp(20px, 8vw, 60px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.pulse-line {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(100, 100, 120, 0.3);
}

.pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 80px;
  background: linear-gradient(90deg,
                            transparent 0%,
                            transparent 30%,
                            rgba(220, 53, 69, 0.7) 30%,
                            rgba(220, 53, 69, 0.7) 45%,
                            transparent 45%,
                            transparent 48%,
                            rgba(220, 53, 69, 0.9) 48%,
                            rgba(220, 53, 69, 0.9) 50%,
                            rgba(220, 38, 69, 0.7) 50%,
                            transparent 52%,
                            transparent 55%,
                            rgba(220, 53, 69, 0.7) 55%,
                            rgba(220, 53, 69, 0.7) 70%,
                            transparent 70%,
                            transparent 100%);
  background-size: 300px 80px;
  background-repeat: no-repeat;
  z-index: 1;
  mask-image: url("data:image/svg+xml,%3Csvg width='300' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 L30 40 L45 10 L53 70 L60 40 L70 40 L300 40' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  mask-size: 300px 80px;
  mask-repeat: no-repeat;
  animation: pulseBeat 2s linear infinite;
}

@keyframes pulseBeat {
  0% {
    transform: translateX(300px);
  }
  100% {
    transform: translateX(-300px);
  }
}

.loading-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(79, 70, 229, 0.03) 0%, transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(124, 58, 237, 0.03) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.01) 0%, transparent 60%);
  opacity: 0.7;
  z-index: -1;
}

.loading-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: -1;
}

.loading-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: float 20s infinite linear;
}

.loading-content {
  text-align: center;
  width: 95%;
  max-width: 520px;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.08),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(79, 70, 229, 0.05);
  position: relative;
  overflow: visible;
  z-index: 1;
  animation: contentPulse 3s infinite alternate ease-in-out;
}

@keyframes contentPulse {
  0% {
    box-shadow:
      0 20px 25px -5px rgba(0, 0, 0, 0.08),
      0 10px 10px -5px rgba(0, 0, 0, 0.04),
      0 0 0 1px rgba(79, 70, 229, 0.05);
  }
  100% {
    box-shadow:
      0 20px 25px -5px rgba(0, 0, 0, 0.08),
      0 10px 10px -5px rgba(0, 0, 0, 0.04),
      0 0 0 1px rgba(79, 70, 229, 0.05),
      0 0 30px rgba(79, 70, 229, 0.3);
  }
}

.loading-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  z-index: 2;
  animation: gradientShift 3s infinite alternate;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.loading-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.loading-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.loading-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 10vw, 44px);
  height: clamp(36px, 10vw, 44px);
  min-width: 36px;
  min-height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
}

.loading-title-icon i {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loading-time {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-50);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
}

.loading-time i {
  color: var(--primary);
  font-size: 0.9rem;
}

.loading-progress-container {
  margin: 2rem 0;
  position: relative;
}

.loading-stage-indicators {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.loading-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  width: 60px;
  margin: 0 auto 15px;
}

.loading-stage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 8vw, 36px);
  height: clamp(28px, 8vw, 36px);
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-400);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  z-index: 2;
  transition: all 0.4s ease;
  position: relative;
  margin-bottom: 8px;
  border: 2px solid transparent;
}

.loading-stage.active .loading-stage-icon {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.25);
}

.loading-stage.completed .loading-stage-icon {
  background: var(--success);
  color: var(--white);
}

.loading-stage.completed .loading-stage-icon::after {
  content: '✓';
  font-size: 0.9rem;
  font-weight: bold;
}

.loading-stage.completed .loading-stage-icon span {
  display: none;
}

.loading-stage-text {
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 600;
  color: var(--gray-500);
  transition: all 0.4s ease;
  white-space: nowrap;
  text-align: center;
}

.loading-stage.active .loading-stage-text,
.loading-stage.completed .loading-stage-text {
  color: var(--gray-800);
}

.loading-stage-line {
  display: none;
}

.loading-bar {
  width: 100%;
  height: 8px;
  background-color: var(--gray-100);
  border-radius: 100px;
  overflow: hidden;
  margin: 0.75rem 0;
  position: relative;
}

.loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.loading-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
  transform: skewX(-20deg);
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) skewX(-20deg);
  }
  100% {
    transform: translateX(100%) skewX(-20deg);
  }
}

.loading-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 10px;
}

.loading-percentage {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.loading-percentage-symbol {
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  font-weight: 500;
  color: var(--gray-500);
}

.loading-status {
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  font-weight: 600;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.loading-status i {
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
}

.loading-activity {
  text-align: left;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: clamp(0.75rem, 3vw, 1rem) clamp(1rem, 3vw, 1.25rem);
  margin-top: 1.5rem;
  border-left: 3px solid var(--primary-light);
}

.loading-activity-title {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loading-activity-title i {
  color: var(--primary);
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.loading-activity-message {
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}

.loading-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 15px;
}

.loading-company {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-company-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(79, 70, 229, 0.15));
}

.loading-cancel {
  font-size: 0.85rem;
  color: var(--gray-500);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.loading-cancel:hover {
  color: var(--danger);
}

.loading-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, rgba(79, 70, 229, 0.03), transparent);
  z-index: -1;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(calc(100vw - 8px), calc(100vh - 8px));
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

@media (min-width: 769px) {
  .hero {
    background-size: 200% 200%;
    animation: heroGradientShift 15s ease infinite;
  }
}

@keyframes heroGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(80px);
  opacity: 0.15;
}

@media (min-width: 769px) {
  .hero::before, .hero::after {
    animation: floatAnimation 10s ease-in-out infinite alternate;
  }
}

@media (max-width: 768px) {
  .hero::before, .hero::after {
    display: none;
  }
}

.hero::before {
  width: clamp(150px, 30vw, 300px);
  height: clamp(150px, 30vw, 300px);
  background-color: var(--primary);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.hero::after {
  width: clamp(120px, 25vw, 250px);
  height: clamp(120px, 25vw, 250px);
  background-color: var(--secondary);
  bottom: -100px;
  right: -100px;
  animation-delay: 5s;
}

@keyframes floatAnimation {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 30px);
  }
}

.hero-title {
  font-size: clamp(1.75rem, 6vw, 3rem);
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  font-weight: 800;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(50px, 15vw, 80px);
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 100px;
}

.hero-subtitle {
  color: var(--gray-600);
  font-size: clamp(0.9rem, 3vw, 1.3rem);
  max-width: clamp(300px, 80vw, 800px);
  margin: clamp(1.25rem, 4vw, 2rem) auto clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 400;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 2rem);
  margin: clamp(1.5rem, 5vw, 2.5rem) auto 0;
  flex-wrap: wrap;
  max-width: 1200px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1.25rem);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  margin: 0.25rem;
  letter-spacing: 0.02em;
}

.hero-feature:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: rgba(79, 70, 229, 0.2);
}

.hero-feature i {
  color: var(--primary);
  font-size: 1.1em;
}

.hero-cta {
  margin-top: clamp(1.5rem, 5vw, 2.5rem);
}

.hero-cta .btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: clamp(0.85rem, 2.2vw, 1.15rem) clamp(1.75rem, 4.5vw, 3rem);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.45), 0 4px 8px -2px rgba(79, 70, 229, 0.2);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.03em;
  text-transform: none;
}

.hero-cta .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  transition: opacity 0.5s ease;
  opacity: 0;
  z-index: -1;
}

.hero-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4), 0 10px 10px -5px rgba(79, 70, 229, 0.2);
}

.hero-cta .btn:hover::before {
  opacity: 1;
}

.hero-cta .btn-icon {
  transition: var(--transition);
}

.hero-cta .btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Form Card */
.card {
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: var(--transition-slow);
  overflow: hidden;
  margin-bottom: clamp(1.5rem, 5vw, 3rem);
  position: relative;
  width: 100%;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(79, 70, 229, 0.1);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-50), rgba(237,233,254,0.5));
  border-bottom: 1px solid var(--gray-100);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  position: relative;
}

.card-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg,
    var(--primary) 0%,
    var(--secondary) 40%,
    var(--accent) 80%,
    transparent 100%);
}

.card-header h5 {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-header h5 i {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--primary);
}

.card-body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* Multi-Step Form Progress - UPDATED FOR 4 STEPS */
.form-progress-container {
  margin: 0;
  padding: 1.5rem 1.5rem 0;
  position: relative;
  background: linear-gradient(to bottom, rgba(249, 250, 251, 0.7), rgba(255, 255, 255, 0));
}

.form-progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--gray-100);
  border-radius: 100px;
  overflow: hidden;
  margin: 0 0 1rem;
  position: relative;
}

.form-progress-fill {
  height: 100%;
  width: 25%; /* Initial state - first step (25% for 4 steps) */
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.form-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
  transform: skewX(-20deg);
}

.form-progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
}

.form-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 25%; /* Changed from 20% to 25% for 4 steps */
}

.form-step-indicator::after {
  content: '';
  position: absolute;
  top: 15px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--gray-200);
  z-index: 1;
}

.form-step-indicator:last-child::after {
  display: none;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2;
  transition: all 0.4s ease;
  position: relative;
  margin-bottom: 8px;
  border: 2px solid transparent;
}

.form-step-indicator.active .step-number {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.25);
}

.form-step-indicator.completed .step-number {
  background: var(--success);
  color: white;
}

.form-step-indicator.completed .step-number::after {
  content: '✓';
  font-size: 0.9rem;
  font-weight: bold;
}

.form-step-indicator.completed .step-number span {
  display: none;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: all 0.4s ease;
  white-space: nowrap;
  text-align: center;
  display: none;
}

.form-step-indicator.active .step-label {
  color: var(--primary);
  font-weight: 700;
  transform: scale(1.05);
}

.form-step-indicator.completed .step-label {
  color: var(--success);
}

/* Step Header Styling */
.step-header {
  text-align: center;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.step-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.step-description {
  color: var(--gray-600);
  font-size: clamp(0.9rem, 2vw, 1rem);
  max-width: 600px;
  margin: 0 auto;
}

/* Form Step Content */
.form-step {
  transition: var(--transition-bounce);
  transform-origin: top center;
  animation: fadeScale 0.4s forwards;
  position: relative;
  z-index: 5;
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Form Elements */
.form-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--gray-700);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.form-label i {
  color: var(--primary);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.form-control,
.form-select {
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  padding: var(--input-padding);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  background-color: var(--gray-50);
  color: var(--gray-700);
  height: var(--input-height);
  width: 100%;
}

.form-control::placeholder {
  color: var(--gray-400);
  opacity: 1;
}

.form-control:hover,
.form-select:hover {
  border-color: var(--gray-300);
  background-color: var(--white);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  box-shadow: var(--input-focus-ring);
  border-color: var(--primary);
  background-color: var(--white);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444' width='24px' height='24px'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px 20px;
  padding-right: 40px;
}

.form-select.is-invalid {
  background-position: right 30px center;
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981' width='24px' height='24px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px 20px;
  padding-right: 40px;
}

.form-select.is-valid {
  background-position: right 30px center;
}

.invalid-feedback {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.is-invalid ~ .invalid-feedback {
  display: block;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Row and Column Layout */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4,
.col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9,
.col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4,
.col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9,
.col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4,
.col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9,
.col-lg-10, .col-lg-11, .col-lg-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* File Upload */
.file-upload-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.custom-file-upload {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

.custom-file-upload:hover,
.custom-file-upload.highlighted {
  border-color: var(--primary);
  background: var(--primary-50);
  transform: scale(1.01);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.file-upload-icon {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.file-upload-icon i {
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--primary);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.custom-file-upload:hover .file-upload-icon i {
  transform: scale(1.1);
  color: var(--secondary);
}

.file-upload-icon::before {
  content: '';
  position: absolute;
  width: clamp(50px, 12vw, 70px);
  height: clamp(50px, 12vw, 70px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition);
}

.custom-file-upload:hover .file-upload-icon::before {
  transform: translate(-50%, -50%) scale(1.2);
  background: rgba(79, 70, 229, 0.15);
}

.file-upload-text {
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  transition: var(--transition);
}

.file-upload-subtext {
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}

.file-format-icons {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  margin-top: 1.25rem;
}

.file-format-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(35px, 10vw, 45px);
  height: clamp(35px, 10vw, 45px);
  border-radius: var(--radius-md);
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 700;
  font-size: clamp(0.65rem, 1.8vw, 0.75rem);
  text-transform: uppercase;
  transition: var(--transition);
}

.custom-file-upload:hover .file-format-icon {
  background: var(--gray-200);
  transform: scale(1.05);
}

.real-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.file-name-display {
  margin-top: 1.25rem;
  padding: clamp(0.7rem, 2vw, 0.85rem) clamp(1rem, 2.5vw, 1.25rem);
  background: rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--primary-dark);
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  font-size: clamp(0.85rem, 2.2vw, 0.9rem);
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80%;
}

.file-remove-btn {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.file-remove-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* PDF Viewer */
.pdf-viewer-container {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  background-color: white;
  border: 1px solid var(--gray-200);
  animation: fadeIn 0.4s ease forwards;
}

#pdfViewer {
  width: 100%;
  border-radius: var(--radius-md);
  background: white;
}

/* Custom Select Styles - Compact Dropdown */
.custom-select-container {
  position: relative;
  width: 100%;
  font-family: var(--font-primary);
  margin-bottom: 1rem;
  z-index: 30;
}

.custom-select-selected {
  height: var(--input-height);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background-color: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.95rem;
  color: var(--gray-700);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.custom-select-selected:hover {
  border-color: var(--gray-300);
}

.custom-select-container.open .custom-select-selected {
  border-color: var(--primary-light);
  box-shadow: var(--input-focus-ring);
}

.custom-select-selected.placeholder {
  color: var(--gray-400);
}

.custom-select-arrow {
  color: var(--gray-500);
  transition: transform 0.2s ease;
  font-size: 0.75rem;
}

.custom-select-container.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
  max-height: 260px;
  overflow: hidden;
  z-index: 9999;
  display: none;
  width: 100%;
}

.custom-select-options.active {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.custom-select-search {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
  outline: none;
  background: var(--gray-50);
  color: var(--gray-700);
  font-family: var(--font-primary);
}

.custom-select-search::placeholder {
  color: var(--gray-400);
}

.custom-select-search:focus {
  background: white;
  border-bottom-color: var(--primary-light);
}

.custom-select-options-list {
  max-height: 210px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 2px 0;
}

.custom-select-option {
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: background-color 0.1s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  -webkit-tap-highlight-color: transparent;
}

.custom-select-option:hover,
.custom-select-option.selected {
  background-color: rgba(79, 70, 229, 0.08);
  color: var(--primary);
}

.custom-select-option.selected {
  font-weight: 600;
}

/* Step Navigation */
.step-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

#prev-btn {
  background-color: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  min-height: var(--button-height);
}

#prev-btn:hover {
  background-color: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-700);
  transform: translateY(-2px);
}

#next-btn {
  background: var(--gradient-primary);
  border: none;
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-width: 120px;
  min-height: var(--button-height);
  letter-spacing: 0.02em;
}

#next-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  transition: opacity 0.5s ease;
  opacity: 0;
  z-index: -1;
}

#next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3), 0 4px 6px -4px rgba(79, 70, 229, 0.2);
}

#next-btn:hover::before {
  opacity: 1;
}

#next-btn i {
  transition: var(--transition);
}

#next-btn:hover i {
  transform: translateX(3px);
}

#submit-btn {
  background: linear-gradient(135deg, var(--success), #059669);
  border: none;
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.35), 0 4px 6px -4px rgba(16, 185, 129, 0.2);
  min-height: var(--button-height);
  letter-spacing: 0.02em;
}

#submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 20px -3px rgba(16, 185, 129, 0.4), 0 8px 8px -4px rgba(16, 185, 129, 0.2);
}

#submit-btn i {
  transition: var(--transition);
}

/* Notification Styles */
.notification-container {
  position: fixed;
  bottom: clamp(15px, 5vw, 20px);
  right: clamp(15px, 5vw, 20px);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: clamp(250px, 85vw, 350px);
}

.notification {
  padding: clamp(1rem, 3vw, 1.25rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 100%;
  transform: translateX(120%);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid;
}

.notification.show {
  transform: translateX(0);
}

.notification.success { border-color: var(--success); }
.notification.warning { border-color: var(--warning); }
.notification.info { border-color: var(--info); }
.notification.error { border-color: var(--danger); }

.notification-icon {
  width: 24px;
  text-align: center;
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  flex-shrink: 0;
}

.notification.success .notification-icon { color: var(--success); }
.notification.warning .notification-icon { color: var(--warning); }
.notification.info .notification-icon { color: var(--info); }
.notification.error .notification-icon { color: var(--danger); }

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.notification-message {
  color: var(--gray-600);
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  line-height: 1.5;
}

.notification-close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  padding: 4px;
  flex-shrink: 0;
}

.notification-close:hover {
  color: var(--gray-700);
}

/* PDF Password Modal Styles */
.pdf-password-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pdf-password-modal-overlay.show {
  display: flex;
}

.pdf-password-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pdf-password-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pdf-password-modal-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.pdf-password-modal-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.pdf-password-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.pdf-password-modal-subtitle {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.pdf-password-input-group {
  position: relative;
  margin-bottom: 1rem;
}

.pdf-password-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--gray-50);
}

.pdf-password-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: var(--input-focus-ring);
}

.pdf-password-input.error {
  border-color: var(--danger);
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.pdf-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.pdf-password-toggle:hover {
  color: var(--gray-600);
}

.pdf-password-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.pdf-password-error.show {
  display: block;
}

.pdf-password-modal-actions {
  display: flex;
  gap: 0.75rem;
}

.pdf-password-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.pdf-password-btn-cancel {
  background: var(--gray-100);
  color: var(--gray-700);
}

.pdf-password-btn-cancel:hover {
  background: var(--gray-200);
}

.pdf-password-btn-submit {
  background: var(--gradient-primary);
  color: white;
}

.pdf-password-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.pdf-password-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Preview Styles */
.preview-loading, .preview-error {
  padding: clamp(1.75rem, 5vw, 2.5rem);
  text-align: center;
  font-weight: 500;
  border-radius: var(--radius-md);
}

.preview-loading {
  color: var(--primary);
  background-color: rgba(79, 70, 229, 0.05);
}

.preview-error {
  color: var(--danger);
  background-color: rgba(239, 68, 68, 0.05);
}

.preview-loading i, .preview-error i {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
  display: block;
}

.preview-label {
  display: block;
  text-align: center;
  background-color: var(--primary);
  color: white;
  padding: clamp(0.75rem, 2vw, 0.85rem);
  margin-top: 0.75rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
}

/* Benefits Section */
.benefits-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--primary-50) 50%, var(--white) 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.benefits-section::before, .benefits-section::after {
  content: '';
  position: absolute;
  background: var(--gradient-primary-soft);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.8;
}

.benefits-section::before {
  width: clamp(200px, 40vw, 400px);
  height: clamp(200px, 40vw, 400px);
  top: -200px;
  right: -200px;
}

.benefits-section::after {
  width: clamp(150px, 30vw, 300px);
  height: clamp(150px, 30vw, 300px);
  bottom: -150px;
  left: -150px;
}

@media (min-width: 769px) {
  .benefits-section::before {
    animation: float-slow 18s infinite alternate ease-in-out;
  }
  .benefits-section::after {
    animation: float-slow 15s infinite alternate-reverse ease-in-out;
  }
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, 30px) scale(1.05);
  }
}

.benefits-title {
  text-align: center;
  margin-bottom: clamp(2rem, 6vw, 4rem);
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
  width: 100%;
}

.benefits-title::after {
  content: '';
  position: absolute;
  bottom: clamp(-8px, -2vw, -12px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(50px, 15vw, 80px);
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

/* Benefit cards */
.benefit-card {
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.95);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  border: 1px solid rgba(229, 231, 235, 0.6);
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-bottom: clamp(1rem, 4vw, 1.75rem);
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scaleX(0);
  transform-origin: left center;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.15);
  background: var(--white);
}

@media (max-width: 768px) {
  .benefit-card:hover {
    transform: none;
  }
}

.benefit-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 14vw, 68px);
  height: clamp(56px, 14vw, 68px);
  border-radius: var(--radius-lg);
  background: var(--primary-50);
  color: var(--primary);
  font-size: clamp(1.4rem, 3.5vw, 1.7rem);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.benefit-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  transform: scale(0.5);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1);
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.25), 0 8px 10px -6px rgba(79, 70, 229, 0.1);
}

.benefit-card:hover .benefit-icon::after {
  opacity: 1;
  animation: pulse-ring 1.5s ease-out;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.benefit-title {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  color: var(--dark);
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.benefit-card:hover .benefit-title {
  color: var(--primary);
}

.benefit-description {
  color: var(--gray-600);
  margin-bottom: 0;
  line-height: 1.7;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  transition: color 0.3s ease;
}

.benefit-card:hover .benefit-description {
  color: var(--gray-700);
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  border-top: 1px solid var(--gray-100);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--primary) 0%,
    var(--secondary) 30%,
    var(--accent) 60%,
    var(--health-teal) 100%);
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  position: relative;
  z-index: 2;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-3px);
}

.footer-logo img {
  height: clamp(30px, 8vw, 40px);
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.footer-logo:hover img {
  transform: scale(1.1) rotate(5deg);
}

.footer-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  position: relative;
  padding: 5px 0;
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 100px;
  opacity: 0;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-links a:hover::after {
  width: 100%;
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-top: 0.75rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(35px, 10vw, 45px);
  height: clamp(35px, 10vw, 45px);
  border-radius: 50%;
  background: var(--light);
  color: var(--gray-700);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.05);
  color: var(--white);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2), 0 4px 6px -2px rgba(79, 70, 229, 0.1);
}

.social-icon:hover::before {
  opacity: 1;
}

.copyright {
  margin-top: clamp(1rem, 2.5vw, 1.25rem);
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  color: var(--gray-500);
  text-align: center;
  position: relative;
}

.footer-highlight {
  color: var(--primary);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.footer-highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary-light);
  opacity: 0.5;
}

/* Featured Partner Link Styling */
.featured-partner-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.featured-partner-link i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.featured-partner-link:hover i {
    transform: rotate(360deg);
}

/* Copyright Link Styling */
.copyright a {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.copyright a:hover {
    text-decoration-style: solid;
    opacity: 0.8;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 99;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* Responsive adjustments */
@media (min-width: 576px) {
  .step-label {
    display: block;
  }

  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .loading-stage {
    width: 70px;
    margin: 0 auto 5px;
  }
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .loading-stage {
    width: 80px;
    margin: 0;
  }

  .loading-stage-line {
    display: block;
  }

  .dna-container {
    display: block;
  }

  .test-tube-container {
    display: block;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    margin: 0 auto;
  }

  .heart-monitor {
    display: block;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

/* Mobile optimizations */
/* Tablet landscape */
@media (max-width: 768px) {
  .hero-features {
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-feature {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }
  .benefits-title {
    font-size: 1.5rem;
  }
  .benefit-card {
    padding: 1.5rem 1.15rem;
  }
  .footer-links {
    gap: 0.75rem 1.25rem;
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .card-body {
    padding: 1.5rem 1.15rem;
  }
}

/* Tablet portrait & large phones */
@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .step-navigation {
    flex-direction: column;
    gap: 0.75rem;
  }
  .step-navigation .btn {
    width: 100%;
    justify-content: center;
  }
  .social-icons {
    gap: 0.75rem;
  }
}

/* Standard phones */
@media (max-width: 576px) {
  html {
    font-size: 15px;
  }

  .card-body {
    padding: 1.15rem 1rem;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .custom-file-upload {
    padding: 1.25rem 0.85rem;
  }

  .step-navigation {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  #prev-btn, #next-btn, #submit-btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .custom-select-container,
  .form-control,
  .form-select {
    margin-bottom: 0.75rem;
    min-height: 48px;
  }

  .custom-select-selected {
    min-height: 48px;
    font-size: 1rem;
  }

  .form-label {
    margin-bottom: 0.5rem;
  }

  .step-title {
    font-size: 1.15rem;
  }

  .step-description {
    font-size: 0.9rem;
  }

  /* Mobile bottom sheet dropdown */
  .custom-select-options {
    position: fixed;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 55vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    border-bottom: none;
  }

  .custom-select-options.active {
    animation: slideUpSheet 0.2s ease-out;
  }

  .custom-select-search {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
  }

  .custom-select-option {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .custom-select-options-list {
    max-height: calc(55vh - 50px);
    -webkit-overflow-scrolling: touch;
  }

  .card-header {
    padding: 1rem 1.15rem;
  }

  .lang-switcher {
    top: 10px;
    right: 12px;
  }

  .lang-switcher-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@keyframes slideUpSheet {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile overlay for bottom sheet */
.custom-select-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.custom-select-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Small phones (iPhone SE, Galaxy S8) */
@media (max-width: 375px) {
  html {
    font-size: 14px;
  }

  .hero {
    padding: 1.5rem 0 1.25rem;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-feature {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .hero-cta .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    min-height: 48px;
  }

  .card-body {
    padding: 0.85rem;
  }

  .form-progress-container {
    padding: 0.6rem 0.6rem 0;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .benefit-card {
    padding: 1.15rem 0.85rem;
  }

  .benefit-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .custom-select-options {
    max-height: 60vh;
  }

  .custom-select-option {
    padding: 0.7rem 0.85rem;
  }
}

/* Safe area insets for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
  .navbar {
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }
  footer {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
  .custom-select-options {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Iframe-specific styles */
.in-iframe body {
  background: white;
  margin: 0;
  padding: 0;
}

.in-iframe .navbar,
.in-iframe .hero,
.in-iframe .benefits-section,
.in-iframe footer {
  display: none;
}

.in-iframe .container {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem;
}

.in-iframe .card {
  margin-bottom: 0;
  border-radius: 0.5rem;
}

.in-iframe .card-header {
  padding: 0.75rem 1rem;
}

.in-iframe .card-body {
  padding: 1rem;
}

.in-iframe .form-progress-container {
  padding: 1rem 1rem 0;
}

/* Fixes for mobile devices in iframe */
@media (max-width: 576px) {
  .in-iframe .custom-select-options {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 50vh;
    z-index: 99999;
    top: auto !important;
    bottom: 0 !important;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    border-bottom: none;
  }

  .in-iframe .custom-select-option {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .in-iframe .custom-select-search {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .in-iframe .form-control,
  .in-iframe .form-select,
  .in-iframe .custom-select-selected {
    height: 3.5rem;
    font-size: 1rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 100px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
  background-clip: content-box;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

/* Fix iOS styling issues */
@supports (-webkit-touch-callout: none) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .form-control,
  .form-select,
  .custom-select-selected {
    -webkit-appearance: none;
    appearance: none;
    border-radius: var(--radius-md);
  }

  .card,
  .custom-file-upload,
  .btn,
  .notification {
    -webkit-transform: translateZ(0);
  }
}

/* Accessibility improvements */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero {
    animation: none;
    background-size: 100% 100%;
  }
  .hero::before, .hero::after {
    animation: none;
  }
  .blood-cell, .white-cell, .dna-rung, .pulse-line, .pulse, .bubble {
    animation: none !important;
  }
  .benefit-card, .hero-feature, .hero-cta .btn {
    transition: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --card-shadow: 0 0 0 2px var(--gray-800);
    --card-shadow-hover: 0 0 0 3px var(--primary);
  }
  .card {
    border: 2px solid var(--gray-800);
  }
  .form-control, .form-select {
    border-width: 3px;
  }
  .hero-feature {
    border: 2px solid var(--gray-600);
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 1.5rem 0 1rem;
  }
  .loading-screen .loading-content {
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }

  body::before {
    display: none;
  }

  .navbar, .hero, .benefits-section, footer, .scroll-top, .loading-screen, .lang-switcher {
    display: none !important;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}