:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
    
    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
  
  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  
  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

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

p {
  margin: 0 0 var(--space-16) 0;
}

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

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

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

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Custom CSS for Lotus Medical Career College CNA Training Program */

/* Custom variables for the prototype */
:root {
  --primary-blue: #5B9BD5;
  --primary-blue-dark: #4A90C2;
  --primary-blue-light: #E8F4FD;
  --cta-orange: #FF6B6B;
  --cta-hover: #FF5252;
  --text-primary: #343A40;
  --text-body: #6C757D;
  --text-light: #708090;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --success-green: #28A745;
  --border-light: #E8F4FD;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
}

.btn--cta {
  background-color: var(--cta-orange);
  color: white;
}

.btn--cta:hover {
  background-color: var(--cta-hover);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}

.btn--secondary:hover {
  background-color: var(--primary-blue-light);
  border-color: var(--primary-blue);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 80px 0;
  text-align: center;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.institution-badge {
  display: inline-block;
  background-color: var(--primary-blue-light);
  border: 2px solid var(--primary-blue);
  border-radius: 50px;
  padding: 12px 24px;
  margin-bottom: 32px;
}

.institution-badge__text {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 16px;
}

.hero__headline {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.2;
}

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

.hero__subheadline {
  font-size: 20px;
  color: var(--text-body);
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero__cta {
  margin-bottom: 32px;
  font-size: 20px;
  padding: 20px 40px;
}

.hero__disclaimer {
  font-size: 14px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Trust Indicators */
.trust-indicators {
  padding: 80px 0;
  background-color: var(--bg-secondary);
}

.trust-indicators__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.trust-card {
  background: white;
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.trust-card__icon {
  width: 60px;
  height: 60px;
  background-color: var(--success-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 16px;
}

.trust-card__number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.trust-card__rating {
  font-size: 28px;
  color: #FFD700;
  margin-bottom: 8px;
}

.trust-card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.trust-card__subtitle {
  font-size: 16px;
  color: var(--text-body);
}

/* Benefits Section */
.benefits {
  padding: 80px 0;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.benefit-card {
  background: white;
  padding: 40px 32px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-card__icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.benefit-card__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.benefit-card__description {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 24px;
}

.benefit-card__features {
  list-style: none;
  padding: 0;
}

.benefit-card__features li {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 12px;
  position: relative;
  padding-left: 24px;
}

.benefit-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

/* Form Section */
.form-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  min-height: 100vh;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.progress-bar {
  margin-bottom: 48px;
}

.progress-bar__track {
  height: 8px;
  background-color: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar__fill {
  height: 100%;
  background-color: var(--primary-blue);
  border-radius: 4px;
  transition: width 0.5s ease;
  width: 20%;
}

.progress-bar__text {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-step__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.form-step__subtitle {
  font-size: 18px;
  color: var(--text-body);
  margin-bottom: 40px;
}

/* Schedule Cards */
.schedule-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.schedule-card {
  background: var(--bg-primary);
  border: 3px solid var(--border-light);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.schedule-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.schedule-card.selected {
  border-color: var(--primary-blue);
  background-color: var(--primary-blue-light);
}

.schedule-card--unavailable {
  background: var(--color-gray-200);
  border-color: var(--color-gray-300);
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.schedule-card--unavailable:hover {
  border-color: var(--color-gray-300);
  transform: none;
}

.schedule-card--unavailable h3,
.schedule-card--unavailable .schedule-time,
.schedule-card--unavailable .schedule-description {
  color: var(--color-gray-400);
}

.unavailable-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.25);
  z-index: 10;
}

.spots-remaining {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  z-index: 10;
  white-space: nowrap;
}

.program-details {
  text-align: left;
  margin-top: 16px;
}

.program-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}

.program-features li {
  position: relative;
  padding: 4px 0 4px 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.program-features li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.schedule-card--unavailable .program-features li {
  color: var(--color-gray-400);
}

.schedule-card--unavailable .program-features li:before {
  color: var(--color-gray-400);
}

.capacity-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(107, 114, 128, 0.1);
  border-radius: 6px;
}

.capacity-bar {
  flex: 1;
  height: 8px;
  background: rgba(107, 114, 128, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.capacity-full {
  width: 100%;
  background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
}

.capacity-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-400);
  white-space: nowrap;
}

.document-note {
  font-size: 15px;
  color: var(--color-slate-800);
  font-weight: 500;
  margin-top: 16px;
  padding: 16px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.deadline-note {
  font-size: 16px;
  color: var(--color-teal-700);
  font-weight: 600;
  margin-top: 16px;
  padding: 18px;
  background: rgba(20, 184, 166, 0.08);
  border-radius: 8px;
  border-left: 4px solid var(--color-teal-500);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  position: relative;
}

.deadline-note::before {
  content: "⚠️";
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 18px;
}

/* Lightweight guidance styles */
.info-box.guidance {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: #111827; /* strong contrast */
  line-height: 1.6;
  border-left: none; /* Remove grey left border */
}

.info-box.guidance h3,
.info-box.guidance h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937; /* Dark grey for better contrast */
}

.info-box.guidance p {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #374151; /* Medium grey for readability */
}

.info-box.guidance strong {
  font-weight: 600;
  color: #111827;
}

.alert {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  font-weight: 600;
}

.alert--error {
  background: #FEF2F2; /* light red background */
  border: 1px solid #FCA5A5; /* clearer border */
  color: #991B1B; /* dark red text */
}

/* Emphasis title for dynamic guidance */
.guidance-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #0F172A;
}

.guidance ul { margin: 0 0 0 18px; padding: 0; }
.guidance li { margin: 6px 0; }
.guidance-links { margin-top: 8px; }

.schedule-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.schedule-time {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.schedule-description {
  font-size: 16px;
  color: var(--text-body);
}

/* Motivation Section */
.motivation-section {
  margin-bottom: 48px;
}

.motivation-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* Form Elements */
.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.form-control {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: flex-start;
  font-size: 16px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.checkbox-label:hover,
.radio-label:hover {
  border-color: var(--color-primary);
  background: rgba(var(--color-teal-500-rgb), 0.05);
}

/* Benefit option specific styling */
.benefit-option {
  margin-bottom: 8px;
}

.benefit-content {
  flex: 1;
  margin-left: 12px;
}

.benefit-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.benefit-documents {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.benefit-documents strong {
  color: var(--text-primary);
  font-weight: 600;
}

.benefit-documents ul {
  margin: 6px 0 0 0;
  padding-left: 16px;
  list-style-type: disc;
}

.benefit-documents li {
  margin: 4px 0;
  color: var(--text-secondary);
}

.benefit-documents em {
  font-style: italic;
  color: var(--text-muted);
}

/* Professional document options styling */
.document-options {
  margin-top: 8px;
}

.document-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 6px;
  padding: 4px 0;
}

.bullet {
  color: var(--color-primary);
  font-weight: bold;
  margin-right: 8px;
  margin-top: 2px;
  flex-shrink: 0;
}

.document-text {
  flex: 1;
  line-height: 1.4;
  color: var(--text-secondary);
}

.both-required {
  color: var(--color-warning);
  font-weight: 600;
  font-size: 13px;
}

/* Calculator link styling */
.calculator-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(91, 155, 213, 0.1);
  transition: all 0.2s ease;
}

.calculator-link:hover {
  background: rgba(91, 155, 213, 0.2);
  text-decoration: underline;
}

/* Income Calculator Layout */
.income-calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}

.income-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.income-calculator {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Zip Code Field - Enhanced Professional Styling */
.form-group:has(#zipCode) {
  margin-bottom: 0;
}

/* ZIP code input styling for calculator layout */
.zip-code-input {
  max-width: 100%;
  width: 100%;
}

/* ZIP code field within calculator container */
.income-calculator .form-group:has(#zipCode) {
  margin-bottom: 0;
}

.income-calculator .form-group:has(#zipCode) .form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-slate-900);
  margin-bottom: 8px;
}

.income-calculator .form-group:has(#zipCode) .form-help-text {
  font-size: 12px;
  color: var(--color-slate-600);
  margin-top: 4px;
}

.form-group:has(#zipCode) .form-label {
  font-weight: 600;
  color: var(--color-slate-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-group:has(#zipCode) .form-control {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group:has(#zipCode) .form-control:focus {
  border-color: var(--color-teal-500);
  box-shadow: 0 0 0 3px rgba(33, 128, 141, 0.1);
  background: #ffffff;
  transform: translateY(-1px);
}

.form-group:has(#zipCode) .form-control:valid {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.form-group:has(#zipCode) .form-help-text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-slate-500);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group:has(#zipCode) .form-help-text::before {
  content: "📍";
  font-size: 14px;
}

/* Placeholder Styling - Direct Targeting */
#annualIncome::placeholder,
#zipCode::placeholder,
#dateOfBirth::placeholder {
  color: #E8F4FD !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

#annualIncome::-webkit-input-placeholder,
#zipCode::-webkit-input-placeholder,
#dateOfBirth::-webkit-input-placeholder {
  color: #E8F4FD !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

#annualIncome::-moz-placeholder,
#zipCode::-moz-placeholder,
#dateOfBirth::-moz-placeholder {
  color: #E8F4FD !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

#annualIncome:-ms-input-placeholder,
#zipCode:-ms-input-placeholder,
#dateOfBirth:-ms-input-placeholder {
  color: #E8F4FD !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

.income-calculation-display {
  position: relative;
  margin: 24px 0;
  padding: 0;
}

/* Calculation Card - Premium Design */
.calculation-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin: 0;
}

.calculation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 16px 16px 0 0;
}

.calculation-card.success {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.calculation-card.success::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.calculation-card.info {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.calculation-card.info::before {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.calculation-card.warning {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.calculation-card.warning::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.calculation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.calculation-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  flex-shrink: 0;
}

.calculation-card.info .calculation-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.calculation-card.warning .calculation-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.calculation-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.calculation-content {
  color: #4b5563;
  line-height: 1.6;
}

.calculation-content p {
  margin: 0 0 12px 0;
  font-size: 14px;
}

.calculation-content p:last-child {
  margin-bottom: 0;
}

.calculation-content strong {
  color: #1f2937;
  font-weight: 600;
}

/* Calculation Placeholder - Enhanced Design */
.calculation-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  color: #64748b;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.calculation-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
  border-radius: 16px 16px 0 0;
}

.calculation-placeholder:hover {
  border-color: #94a3b8;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.placeholder-icon {
  margin-bottom: 20px;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.calculation-placeholder:hover .placeholder-icon {
  color: #64748b;
  transform: scale(1.05);
}

.placeholder-text {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

/* Veteran Details Section */
.veteran-details-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  transition: all 0.3s ease;
}

.veteran-details-header {
  margin-bottom: 20px;
}

.veteran-details-header h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.veteran-details-header p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.veteran-details-content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

/* Accessibility Features */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-nav:focus {
    top: 6px;
}

/* Focus indicators for better accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero__headline {
        color: #000;
    }
    
    .trust-card {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Voice Search Optimization */
.voice-search-optimized {
    margin: 16px 0;
    padding: 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.voice-search-text {
    font-size: 16px;
    color: #374151;
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}

/* Mobile-First Optimizations */
@media (max-width: 768px) {
    .voice-search-text {
        font-size: 14px;
    }
    
    .chatbot-container {
        width: 90%;
        right: 5%;
        left: 5%;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .faq-item {
        padding: 16px;
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.faq-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-answer {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Email Marketing Integration Styles */
.email-signup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    max-width: 400px;
    width: 90%;
}

.email-signup-content {
    position: relative;
}

.email-signup h3 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
}

.email-signup p {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 14px;
}

.email-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.email-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.close-email {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Email Toggle Button */
.email-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.email-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* ChatGPT Integration Chatbot Styles */
.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.chatbot-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-chatbot {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background: #f3f4f6;
    align-self: flex-end;
    margin-left: auto;
}

.message.bot {
    background: #e0f2fe;
    align-self: flex-start;
    margin-right: auto;
}

.chatbot-input {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
}

.chatbot-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.chatbot-input button {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.chatbot-input button:hover {
    background: #059669;
}

/* Responsive Design */
@media (max-width: 768px) {
  .income-calculator-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .calculation-card {
    padding: 20px;
  }
  
  .calculation-placeholder {
    padding: 32px 20px;
  }
  
  .veteran-details-container {
    padding: 16px;
  }
}
  transition: all 0.3s ease;
  min-height: 48px; /* Better touch targets */
  position: relative;
}

.checkbox-label:hover,
.radio-label:hover {
  border-color: var(--primary-blue);
  background-color: var(--primary-blue-light);
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkmark,
.radio-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-light);
  margin-right: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.checkmark {
  border-radius: 4px;
}

.radio-mark {
  border-radius: 50%;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark,
.radio-label input[type="radio"]:checked + .radio-mark {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* Focus states for accessibility */
.checkbox-label:focus-within,
.radio-label:focus-within {
  outline: 1px solid var(--color-border);
  outline-offset: 1px;
  box-shadow: none;
}

.checkbox-label input[type="checkbox"]:focus + .checkmark,
.radio-label input[type="radio"]:focus + .radio-mark {
  box-shadow: none;
}

/* Enhanced focus states for form controls */
.form-control:focus {
  outline: 1px solid var(--color-border);
  outline-offset: 1px;
  box-shadow: none;
  border-color: var(--color-border);
}

/* Error states */
.form-control.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.error:focus {
  outline-color: var(--color-error);
  box-shadow: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.radio-label input[type="radio"]:checked + .radio-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

/* Checklist */
.checklist h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* Privacy Notice */
.privacy-notice {
  background-color: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.privacy-notice p {
  font-size: 14px;
  color: var(--text-body);
  margin: 0;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 24px;
}

/* Results Page */
.results-success {
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--success-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: bold;
  margin: 0 auto 32px;
}

.next-steps,
.important-dates {
  text-align: left;
  margin: 40px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.next-steps h3,
.important-dates h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.next-steps ol {
  padding-left: 24px;
}

.next-steps li {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 12px;
}

.date-item {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 12px;
}

.date-item strong {
  color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero__headline {
    font-size: 32px;
  }
  
  .hero__subheadline {
    font-size: 18px;
  }
  
  .hero__cta {
    font-size: 18px;
    padding: 16px 32px;
  }
  
  .form-container {
    padding: 32px 24px;
  }
  
  .form-step__title {
    font-size: 24px;
  }
  
  .schedule-cards {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: row;
    gap: 12px;
  }
  
  .btn {
    flex: 1;
  }
  
  .trust-indicators__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .benefits__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .trust-indicators,
  .benefits {
    padding: 60px 0;
  }
  
  .trust-indicators__grid {
    grid-template-columns: 1fr;
  }
}

/* Inline Message Box Styles */
.inline-message-box {
  margin: 20px 0;
  padding: 0;
  border-radius: 12px;
  background: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.inline-message-box.active {
  opacity: 1;
  transform: translateY(0);
}

.inline-message-box--error {
  border-color: #FCA5A5;
  background: linear-gradient(to bottom, #FEF2F2, #FFFFFF);
}

.inline-message-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.inline-message-box__icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.inline-message-box__content {
  flex: 1;
}

.inline-message-box__title {
  font-size: 18px;
  font-weight: 600;
  color: #991B1B;
  margin: 0 0 8px 0;
}

.inline-message-box__text {
  font-size: 16px;
  color: #7F1D1D;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.inline-message-box__actions {
  margin: 16px 0;
}

.inline-message-box__actions p {
  font-size: 15px;
  font-weight: 600;
  color: #991B1B;
  margin: 0 0 8px 0;
}

.inline-message-box__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inline-message-box__list li {
  font-size: 15px;
  color: #7F1D1D;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.inline-message-box__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #DC2626;
  font-weight: bold;
}

.inline-message-box__list a {
  color: #DC2626;
  text-decoration: underline;
  font-weight: 500;
}

.inline-message-box__list a:hover {
  color: #991B1B;
}

.inline-message-box__footer {
  font-size: 14px;
  color: #7F1D1D;
  margin: 16px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid #FCA5A5;
  font-style: italic;
}

/* Make selection guidance full-width to match buttons */
.info-box.guidance, .inline-message-box {
  width: 100%;
}

/* Required field asterisk */
.required-asterisk {
  color: #DC2626; /* Bright red for visibility */
  font-weight: 600;
  margin-left: 4px;
}

/* Form section titles */
.form-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937; /* Dark grey for good readability */
  margin: 0 0 20px 0;
  padding: 0;
  line-height: 1.3;
}

/* Form help text */
.form-help-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  margin-bottom: 12px;
  padding: 0;
  background: none;
  line-height: 1.5;
  max-width: 100%;
  word-wrap: break-word;
  border-radius: 0;
  border-left: none;
}

/* Placeholder styling - consistent across all form controls */
.form-control::placeholder {
  color: #E8F4FD !important; /* Light blue placeholder - force override */
  opacity: 1 !important;
  font-style: normal !important; /* Remove italic for cleaner look */
}

.form-control::-webkit-input-placeholder {
  color: #E8F4FD !important;
  opacity: 1 !important;
  font-style: normal !important;
}

.form-control::-moz-placeholder {
  color: #E8F4FD !important;
  opacity: 1 !important;
  font-style: normal !important;
}

.form-control:-ms-input-placeholder {
  color: #E8F4FD !important;
  opacity: 1 !important;
  font-style: normal !important;
}

/* Clean input styling - remove any browser autofill backgrounds */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select {
  background-color: #FFFFFF !important;
  -webkit-box-shadow: 0 0 0 30px #FFFFFF inset !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Remove autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #FFFFFF inset !important;
  -webkit-text-fill-color: #000000 !important;
  background-color: #FFFFFF !important;
}

/* Income validation result styles */
.info-box--success {
  background: #f0f9ff;
  border: 2px solid #10b981;
  border-radius: 8px;
  color: #065f46;
}

.info-box--success h4 {
  color: #047857;
  margin: 0 0 8px 0;
}

.info-box--info {
  background: #f0f9ff;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  color: #1e40af;
}

.info-box--info h4 {
  color: #1d4ed8;
  margin: 0 0 8px 0;
}

.info-box--warning {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  color: #92400e;
}

.info-box--warning h4 {
  color: #b45309;
  margin: 0 0 8px 0;
}

/* Form row layout for income fields */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row > div {
  flex: 1;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
}

/* Hide validation errors on page load - only show after user interaction */
.quality-error {
  display: none !important;
}

/* Hide all quality-error elements from frontend display */
.quality-error,
div.quality-error,
.quality-error * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Show validation errors only after user has interacted with the field */
input.touched + .quality-error,
select.touched + .quality-error,
textarea.touched + .quality-error,
input.focused + .quality-error,
select.focused + .quality-error,
textarea.focused + .quality-error {
  display: none !important;
}

/* Benefits section collapse functionality */
.benefits-selected-message {
  margin-top: 12px;
  margin-bottom: 16px;
  animation: slideDown 0.3s ease-out;
  border-radius: 8px;
  overflow: hidden;
}

/* Smooth animation for dynamic insertion */
.benefits-selected-message {
  opacity: 0;
  transform: translateY(-10px);
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Congratulations message styling */
.congratulations-message {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  margin-top: 6px;
  animation: slideDown 0.3s ease-out;
}

.congratulations-message h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.congratulations-message p {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.5;
}

.congratulations-message p strong {
  font-weight: 700;
  font-size: 17px;
}

.checkbox-label.collapsed {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-width: 0;
  opacity: 0;
  transition: all 0.35s ease-in-out;
}

/* Animation for smooth appearance */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
}

/* Responsive adjustments for inline message box */
@media (max-width: 768px) {
  .inline-message-box {
    padding: 16px;
    gap: 12px;
  }
  
  .inline-message-box__icon {
    font-size: 20px;
  }
  
  .inline-message-box__title {
    font-size: 16px;
  }
  
  .inline-message-box__text,
  .inline-message-box__list li {
    font-size: 14px;
  }
}

/* Task Card Styles */
.task-card {
  margin: 16px 0;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-secondary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.task-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.task-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

.task-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.task-card__status {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--success-green);
  color: white;
}

.task-card__body {
  padding: 16px;
}

.task-card__steps {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
}

.task-card__steps li {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 8px;
}

.task-card__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.task-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-blue);
  text-decoration: none;
}

.task-card__link:hover {
  text-decoration: underline;
}

/* Document Guide Container - Professional Design */
.document-guide-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.document-guide-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f3f4f6;
}

.document-guide-title {
  color: #1f2937;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.document-guide-subtitle {
  color: #6b7280;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.task-cards-container {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

/* Action Buttons */
.document-guide-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.print-btn, .continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.print-btn {
  background: #f8fafc;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.print-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.continue-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}


/* Emergency Contact Section */
.emergency-contact {
  background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
  border: 2px solid #0288d1;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(2, 136, 209, 0.15);
}

.contact-header h4 {
  color: #01579b;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-header p {
  color: #0277bd;
  font-size: 16px;
  margin-bottom: 20px;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

/* Modern Call Button Styles */
.modern-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3), 0 2px 8px rgba(37, 99, 235, 0.2);
  color: #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.gradient-style {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.gradient-style::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gradient-style:hover::before {
  opacity: 1;
}

.gradient-style:hover {
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4), 0 4px 12px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.gradient-style .btn-icon,
.gradient-style .btn-text {
  position: relative;
  z-index: 1;
}

.gradient-style .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gradient-style:hover .btn-icon {
  transform: scale(1.1) rotate(5deg);
}

/* WhatsApp Button */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3), 0 2px 8px rgba(37, 211, 102, 0.2);
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

/* Print Styles for Document Guide */
@media print {
  .document-guide-container {
    background: white !important;
    border: 2px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 20px !important;
    page-break-inside: avoid;
  }
  
  .document-guide-title {
    color: #000 !important;
    font-size: 24px !important;
    margin-bottom: 16px !important;
  }
  
  .document-guide-subtitle {
    color: #333 !important;
    font-size: 16px !important;
    margin-bottom: 24px !important;
  }
  
  .task-card {
    background: white !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 16px !important;
    page-break-inside: avoid;
  }
  
  .task-card__header {
    background: #f5f5f5 !important;
    border-bottom: 1px solid #000 !important;
    padding: 12px !important;
  }
  
  .task-card__title {
    color: #000 !important;
    font-size: 16px !important;
    font-weight: bold !important;
  }
  
  .task-card__body {
    padding: 12px !important;
  }
  
  .task-card__steps {
    color: #000 !important;
    font-size: 14px !important;
  }
  
  .task-card__steps li {
    margin-bottom: 6px !important;
    color: #000 !important;
  }
  
  .task-card__footer {
    background: #f9f9f9 !important;
    border-top: 1px solid #000 !important;
    padding: 8px 12px !important;
  }
  
  .task-card__link {
    color: #000 !important;
    text-decoration: underline !important;
  }
  
  .document-guide-actions,
  .emergency-contact {
    display: none !important;
  }
  
  .task-cards-container {
    display: block !important;
    gap: 0 !important;
  }
  
  /* Print-specific checkbox styling */
  .print-checkbox {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #000;
    margin-right: 8px;
    vertical-align: middle;
  }
  
  .print-checkbox.checked::after {
    content: "✓";
    display: block;
    text-align: center;
    line-height: 14px;
    font-size: 12px;
    font-weight: bold;
  }
}

/* Enhanced Task Card Styles for Better UX */
.task-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.task-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.task-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 12px 12px 0 0;
}

.task-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.task-card__status {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  background: #10b981;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.task-card__body {
  padding: 20px;
}

.task-card__steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.task-card__steps li {
  font-size: 15px;
  color: #374151;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.task-card__steps li::before {
  content: "•";
  color: #3b82f6;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.task-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
}

.task-card__link {
  font-size: 14px;
  font-weight: 500;
  color: #3b82f6;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.task-card__link:hover {
  text-decoration: underline;
}

.task-card__done-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-card__done-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.task-card__done-btn:disabled {
  background: #6b7280;
  cursor: not-allowed;
  transform: none;
}

/* Enhanced Task Card Styles */
.task-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.task-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.task-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border-bottom: none;
}

.task-card__title {
  font-weight: 700;
  color: #1f2937;
  font-size: 18px;
  flex: 1;
  min-width: 200px;
}

.task-card__priority {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.task-card__priority.critical {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.task-card__priority.high {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fed7aa;
}

.task-card__priority.normal {
  background: #f0f9ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.task-card__status {
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.task-card__body {
  margin-bottom: 16px;
  padding: 0;
}

.task-card__documents {
  margin-bottom: 16px;
}

.task-card__documents strong {
  color: #374151;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

.task-card__documents ul {
  margin: 0;
  padding-left: 20px;
  color: #6b7280;
  font-size: 14px;
}

.task-card__documents li {
  margin-bottom: 4px;
}

.task-card__steps {
  margin: 16px 0;
  padding-left: 20px;
}

.task-card__steps strong {
  color: #374151;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

.task-card__steps li {
  margin-bottom: 8px;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

.task-card__steps a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.task-card__steps a:hover {
  text-decoration: underline;
}

.task-card__contact {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  margin-top: 16px;
}

.task-card__contact strong {
  color: #1e40af;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

.task-card__contact p {
  margin: 4px 0;
  font-size: 14px;
  color: #374151;
}

.task-card__footer {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  background: transparent;
  border-top: none;
  border-radius: 0;
}

.task-card__link {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border: 2px solid #2563eb;
  border-radius: 6px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.task-card__link:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-1px);
  text-decoration: none;
}

.task-card__done-btn {
  font-size: 14px;
  padding: 8px 16px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.task-card__done-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Emergency Contact Styles */
.emergency-contact {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  text-align: center;
}

.emergency-contact h4 {
  color: #92400e;
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.emergency-contact p {
  color: #78350f;
  margin-bottom: 16px;
  font-size: 16px;
}

.contact-options {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.contact-note {
  font-size: 14px;
  color: #78350f;
  font-style: italic;
  margin: 0;
}

/* Responsive Design for Task Cards */
@media (max-width: 768px) {
  .task-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .task-card__title {
    min-width: auto;
    margin-bottom: 8px;
  }
  
  .task-card__footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .task-card__link,
  .task-card__done-btn {
    text-align: center;
    justify-content: center;
  }
  
  .contact-options {
    flex-direction: column;
    align-items: center;
  }
}

/* Task Completion Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.task-completion-message {
  animation: slideIn 0.3s ease;
}

/* Specific Guidance Styling */
.specific-documents {
  margin: 16px 0;
}

.benefit-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}

.benefit-section h5 {
  color: #1e40af;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit-section p {
  margin: 8px 0;
  color: #374151;
  font-size: 14px;
}

.benefit-section ul {
  margin: 8px 0;
  padding-left: 20px;
  color: #6b7280;
  font-size: 14px;
}

.benefit-section li {
  margin-bottom: 4px;
}

.benefit-section a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.benefit-section a:hover {
  text-decoration: underline;
}

.file-naming {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 12px;
  margin: 16px 0;
}

.file-naming h4 {
  color: #92400e;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
}

.file-naming p {
  color: #78350f;
  font-size: 14px;
  margin: 4px 0;
}

.important-notes {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px;
  margin: 16px 0;
}

.important-notes h4 {
  color: #dc2626;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
}

.important-notes ul {
  margin: 8px 0;
  padding-left: 20px;
  color: #7f1d1d;
  font-size: 14px;
}

.important-notes li {
  margin-bottom: 4px;
}