/* Indonesia Immigration Website - Custom Styles */
/* CDN-compatible CSS without @apply directives */

/* ==========================================
   CSS Custom Properties (Design Tokens)
   ========================================== */

:root {
  /* Indonesia Color Palette */
  --color-indonesia-red: #FF0000;
  --color-indonesia-white: #FFFFFF;
  --color-indonesia-blue: #002868;
  --color-indonesia-gold: #FFD700;
  
  /* Complexity Color System */
  --color-complexity-simple: #10B981;    /* Green - Easy visas */
  --color-complexity-moderate: #F59E0B;  /* Yellow - Medium complexity */
  --color-complexity-complex: #EF4444;   /* Red - Difficult visas */
  --color-complexity-expert: #6B7280;    /* Gray - Expert level */
  
  /* Semantic Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;
  
  /* Typography Scale */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  
  /* Spacing Scale */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */

  /* VoA Component Colors */
  --color-indo-blue: #1E40AF;
  --color-indo-red: #FF6B35;
  --color-indo-green: #059669;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Z-index Scale */
  --z-dropdown: 10000;
  --z-sticky: 10020;
  --z-fixed: 10030;
  --z-modal-backdrop: 10040;
  --z-modal: 10050;
  --z-popover: 10060;
  --z-tooltip: 10070;
  --z-toast: 10080;
}

/* ==========================================
   Base Styles & Reset Extensions
   ========================================== */

/* Smooth scrolling for the entire document */
html {
  scroll-behavior: smooth;
}

/* Focus styles for better accessibility */
*:focus {
  outline: 2px solid var(--color-info);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
.js-focus-visible *:focus:not(.focus-visible) {
  outline: none;
}

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

/* ==========================================
   Custom Animations
   ========================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

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

@keyframes bounceGentle {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(-2px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   Component Styles (Using standard CSS)
   ========================================== */

/* Visa Complexity Indicators */
.complexity-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.complexity-simple {
  background-color: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.complexity-moderate {
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.complexity-complex {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.complexity-expert {
  background-color: #F3F4F6;
  color: #374151;
  border: 1px solid #D1D5DB;
}

/* Visa Cards */
.visa-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  transition: all 0.3s ease;
}

.visa-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #D1D5DB;
  transform: translateY(-2px);
}

.visa-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #F3F4F6;
}

.visa-card-body {
  padding: 1.5rem;
}

.visa-card-footer {
  padding: 1rem 1.5rem;
  background-color: #F9FAFB;
  border-top: 1px solid #F3F4F6;
}

/* Navigation Styles */
.nav-link {
  color: #374151;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: #2563EB;
}

.nav-link.active {
  color: #2563EB;
  background-color: #EFF6FF;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  width: 12rem;
  background-color: white;
  border-radius: 0.375rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid #E5E7EB;
  padding: 0.25rem 0;
  z-index: var(--z-dropdown);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-out;
}

.nav-dropdown.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.nav-dropdown-item:hover {
  background-color: #F9FAFB;
  color: #2563EB;
}

/* Navigation Submenus */
.nav-dropdown {
  width: 16rem; /* Increased width for submenus */
}

.nav-dropdown-category .nav-dropdown-item.category {
  font-weight: 600;
  color: #1F2937;
  border-bottom: 1px solid #F3F4F6;
  margin-bottom: 0.25rem;
}

.nav-submenu {
  padding-left: 0.5rem;
  border-left: 2px solid #E5E7EB;
  margin-left: 0.5rem;
  margin-top: 0.25rem;
}

.nav-dropdown-item.submenu {
  font-size: 0.8125rem;
  color: #6B7280;
  padding: 0.375rem 0.75rem;
}

.nav-dropdown-item.submenu:hover {
  color: #2563EB;
  background-color: #F0F9FF;
}

.nav-dropdown-item.submenu.active {
  color: #2563EB;
  background-color: #EFF6FF;
  border-left: 2px solid #2563EB;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: 4rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  overflow-x: hidden;
  background-color: white;
  border-top: 1px solid #E5E7EB;
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
  -webkit-overflow-scrolling: touch;
  z-index: 40;
}

.mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Scrollbar Styling */
.mobile-menu::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: #F3F4F6;
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: #9CA3AF;
  border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
  background: #6B7280;
}

/* Mobile Submenu Styles */
.mobile-submenu-group {
  margin-bottom: 0.5rem;
}

.mobile-submenu-group .nav-link.category {
  font-weight: 600;
  color: #1F2937;
  border-bottom: 1px solid #F3F4F6;
  margin-bottom: 0.25rem;
}

.mobile-submenu {
  border-left: 2px solid #E5E7EB;
  padding-left: 0.5rem;
}

.mobile-submenu .nav-link.submenu {
  font-size: 0.8125rem;
  color: #6B7280;
  padding: 0.375rem 0.5rem;
}

.mobile-submenu .nav-link.submenu:hover,
.mobile-submenu .nav-link.submenu.active {
  color: #2563EB;
  background-color: #F0F9FF;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.btn-primary {
  background-color: #2563EB;
  color: white;
}

.btn-primary:hover {
  background-color: #1D4ED8;
}

.btn-secondary {
  background-color: #F3F4F6;
  color: #111827;
}

.btn-secondary:hover {
  background-color: #E5E7EB;
}

.btn-success {
  background-color: #059669;
  color: white;
}

.btn-success:hover {
  background-color: #047857;
}

.btn-warning {
  background-color: #D97706;
  color: white;
}

.btn-warning:hover {
  background-color: #B45309;
}

.btn-danger {
  background-color: #DC2626;
  color: white;
}

.btn-danger:hover {
  background-color: #B91C1C;
}

.btn-outline {
  border: 2px solid currentColor;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: currentColor;
  color: white;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

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

/* Form Elements */
.form-input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: #9CA3AF;
}

.form-input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:invalid {
  border-color: #DC2626;
}

.form-input:invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.form-error {
  font-size: 0.875rem;
  color: #DC2626;
  margin-top: 0.25rem;
}

.form-help {
  font-size: 0.875rem;
  color: #6B7280;
  margin-top: 0.25rem;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  background-color: white;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  cursor: pointer;
}

.faq-question:hover,
.faq-question:focus {
  background-color: #F9FAFB;
}

.faq-answer {
  padding: 1rem 1.5rem;
  background-color: #F9FAFB;
  border-top: 1px solid #E5E7EB;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #9CA3AF;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Progress Steps */
.step-container {
  display: flex;
  align-items: center;
}

.step-item {
  display: flex;
  align-items: center;
}

.step-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.step-circle.completed {
  background-color: #059669;
  color: white;
}

.step-circle.current {
  background-color: #2563EB;
  color: white;
}

.step-circle.pending {
  background-color: #D1D5DB;
  color: #6B7280;
}

.step-line {
  flex: 1;
  height: 2px;
  margin: 0 1rem;
}

.step-line.completed {
  background-color: #059669;
}

.step-line.pending {
  background-color: #D1D5DB;
}

/* Timeline Visualization */
.timeline-container {
  position: relative;
  padding: 1rem 0;
}

.timeline-track {
  position: relative;
  background: linear-gradient(to right, #E5E7EB, #E5E7EB);
  height: 4px;
  border-radius: 2px;
  margin: 2rem 0;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(to right, #10B981, #F59E0B, #EF4444);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.timeline-markers {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 0 -0.5rem;
}

.timeline-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E5E7EB;
  min-width: 120px;
  transition: all 0.3s ease;
}

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

.timeline-marker-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.timeline-marker-icon.simple {
  background-color: #DCFCE7;
  color: #166534;
  border: 2px solid #BBF7D0;
}

.timeline-marker-icon.moderate {
  background-color: #FEF3C7;
  color: #92400E;
  border: 2px solid #FDE68A;
}

.timeline-marker-icon.complex {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 2px solid #FECACA;
}

.timeline-marker-icon.expert {
  background-color: #F3F4F6;
  color: #374151;
  border: 2px solid #D1D5DB;
}

.timeline-marker-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.timeline-marker-time {
  font-size: 0.625rem;
  color: #6B7280;
  text-align: center;
  font-weight: 500;
}

.timeline-marker-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  background: white;
  border: 2px solid;
  font-weight: bold;
}

.timeline-marker-badge.simple {
  border-color: #10B981;
  color: #10B981;
}

.timeline-marker-badge.moderate {
  border-color: #F59E0B;
  color: #F59E0B;
}

.timeline-marker-badge.complex {
  border-color: #EF4444;
  color: #EF4444;
}

.timeline-marker-badge.expert {
  border-color: #6B7280;
  color: #6B7280;
}

.timeline-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.timeline-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6B7280;
}

.timeline-legend-icon {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.timeline-legend-icon.simple {
  background-color: #10B981;
}

.timeline-legend-icon.moderate {
  background-color: #F59E0B;
}

.timeline-legend-icon.complex {
  background-color: #EF4444;
}

.timeline-legend-icon.expert {
  background-color: #6B7280;
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline-markers {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .timeline-marker {
    min-width: 100px;
  }
  
  .timeline-track {
    display: none;
  }
  
  .timeline-legend {
    gap: 1rem;
  }
}

/* Language Toggle */
.language-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: white;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  border: 1px solid #E5E7EB;
  padding: 0.5rem;
  z-index: var(--z-fixed);
  transition: box-shadow 0.2s ease;
}

.language-toggle:hover {
  box-shadow: var(--shadow-xl);
}

.language-option {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
}

.language-option.active {
  background-color: #2563EB;
  color: white;
}

.language-option:not(.active) {
  color: #6B7280;
}

.language-option:not(.active):hover {
  background-color: #F3F4F6;
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal-backdrop);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-xl);
  max-width: 28rem;
  width: 100%;
  padding: 1.5rem;
  transform: scale(1);
  transition: all 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.modal-close {
  color: #9CA3AF;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close:hover {
  color: #6B7280;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  max-width: 24rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid #E5E7EB;
  padding: 1rem;
  z-index: var(--z-toast);
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: #BBF7D0;
  background-color: #F0FDF4;
}

.toast.error {
  border-color: #FECACA;
  background-color: #FEF2F2;
}

.toast.warning {
  border-color: #FDE68A;
  background-color: #FFFBEB;
}

.toast.info {
  border-color: #BFDBFE;
  background-color: #EFF6FF;
}

/* Loading States */
.loading-skeleton {
  background-color: #E5E7EB;
  animation: pulse 2s infinite;
  border-radius: 0.25rem;
}

.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #D1D5DB;
  border-top-color: #2563EB;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ==========================================
   Utility Classes
   ========================================== */

/* Text Selection */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Scrollbar Styling */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #9CA3AF #F3F4F6;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #9CA3AF;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #6B7280;
}

/* ==========================================
   Responsive Utilities
   ========================================== */

/* Mobile-first responsive text sizes */
.text-responsive-sm {
  font-size: 0.875rem;
}

.text-responsive-base {
  font-size: 1rem;
}

.text-responsive-lg {
  font-size: 1.125rem;
}

.text-responsive-xl {
  font-size: 1.25rem;
}

.text-responsive-2xl {
  font-size: 1.5rem;
}

.text-responsive-3xl {
  font-size: 1.875rem;
}

@media (min-width: 768px) {
  .text-responsive-sm {
    font-size: 1rem;
  }
  
  .text-responsive-base {
    font-size: 1.125rem;
  }
  
  .text-responsive-lg {
    font-size: 1.25rem;
  }
  
  .text-responsive-xl {
    font-size: 1.5rem;
  }
  
  .text-responsive-2xl {
    font-size: 1.875rem;
  }
  
  .text-responsive-3xl {
    font-size: 2.25rem;
  }
}

/* Container utilities */
.container-narrow {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-wide {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-narrow,
  .container-wide {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-narrow,
  .container-wide {
    padding: 0 2rem;
  }
}

/* Grid Responsive Utilities */
.grid-responsive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-responsive {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .grid-responsive {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-responsive-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-responsive-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.grid-responsive-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-responsive-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-responsive-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-responsive-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Visa Comparison Styles */
.visa-comparison .comparison-row:hover {
  background-color: #F9FAFB;
}

.visa-comparison .field-value.highlight {
  background-color: #F0FDF4;
  border-left: 3px solid #10B981;
}

.visa-comparison .recommendation {
  border-left: 4px solid #3B82F6;
}

.visa-comparison .selected-visa-header.best-match {
  border: 2px solid #10B981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Visa Selector Styles */
.visa-selector .mode-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: transparent;
  color: #6B7280;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.visa-selector .mode-btn.active {
  background: white;
  color: #2563EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.visa-selector .option-card {
  transition: all 0.2s ease;
}

.visa-selector .option-card:hover .option-content {
  border-color: #3B82F6;
  background-color: #F8FAFC;
}

.visa-selector .option-content.border-blue-500 {
  border-color: #3B82F6 !important;
  background-color: #EFF6FF !important;
}

.visa-selector .scale-input {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.visa-selector .scale-input::-webkit-slider-track {
  background: #E5E7EB;
  height: 8px;
  border-radius: 4px;
}

.visa-selector .scale-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #3B82F6;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.visa-selector .scale-input::-moz-range-track {
  background: #E5E7EB;
  height: 8px;
  border-radius: 4px;
  border: none;
}

.visa-selector .scale-input::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #3B82F6;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.visa-selector .recommendation-card.border-green-300 {
  border-color: #86EFAC !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.visa-selector .match-percentage {
  text-align: center;
}

/* Enhanced FAQ Styles */
.faq-accordion .faq-search {
  position: relative;
}

.faq-accordion mark {
  background-color: #FEF3C7;
  color: #92400E;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.faq-accordion .related-links a {
  transition: all 0.2s ease;
}

.faq-accordion .related-links a:hover {
  transform: translateX(4px);
}

.faq-accordion .faq-tags .inline-flex {
  transition: all 0.2s ease;
}

.faq-accordion .faq-tags .inline-flex:hover {
  background-color: #E5E7EB;
  color: #374151;
}

/* Timeline Visualization Enhancements */
.timeline-marker.selected {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px -8px rgba(59, 130, 246, 0.5);
}

.timeline-marker.selected .timeline-marker-icon {
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.timeline-progress {
  background: linear-gradient(90deg, #10B981 0%, #F59E0B 50%, #EF4444 100%);
  position: relative;
  overflow: hidden;
}

.timeline-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ==========================================
   Animation Classes
   ========================================== */

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

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.5s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

.animate-bounce-gentle {
  animation: bounceGentle 2s infinite;
}

/* Staggered animations for lists */
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================
   Print Styles
   ========================================== */

@media print {
  .no-print {
    display: none !important;
  }
  
  .print-break-before {
    page-break-before: always;
  }
  
  .print-break-after {
    page-break-after: always;
  }
  
  .print-break-inside-avoid {
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  .visa-card {
    break-inside: avoid;
    border: 1px solid #000;
    margin-bottom: 1rem;
  }
  
  .complexity-badge {
    border: 1px solid #000;
  }
  
  .btn,
  .language-toggle,
  .nav-dropdown,
  .mobile-menu {
    display: none !important;
  }
}

/* ==========================================
   Accessibility Enhancements
   ========================================== */

@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;
  }
}

@media (prefers-contrast: high) {
  .complexity-simple {
    border: 2px solid #166534;
  }
  
  .complexity-moderate {
    border: 2px solid #92400E;
  }
  
  .complexity-complex {
    border: 2px solid #991B1B;
  }
  
  .complexity-expert {
    border: 2px solid #374151;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .visa-card {
    border: 2px solid #374151;
  }
}

/* ==========================================
   VoA Component Styles
   ========================================== */

/* Filter and View Toggle Buttons */
.filter-tab,
.filter-btn,
.view-btn,
.faq-category-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: #6B7280;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-tab:hover,
.filter-btn:hover,
.view-btn:hover,
.faq-category-btn:hover {
  background: #F3F4F6;
  color: #374151;
}

.filter-tab.active,
.filter-btn.active,
.view-btn.active,
.faq-category-btn.active {
  background: #1E40AF;
  color: white;
}

/* Country Cards */
.country-card {
  transition: all 0.2s ease;
}

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

/* Location Cards */
.location-card {
  transition: all 0.2s ease;
}

.location-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Process Timeline Step Items */
.step-item {
  transition: all 0.3s ease;
}

.step-item:hover {
  transform: scale(1.02);
}

.step-item.active {
  transform: scale(1.05);
}

/* FAQ Items */
.faq-item {
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-answer {
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

.faq-answer:not(.hidden) {
  max-height: 200px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotate-180 {
  transform: rotate(180deg);
}

/* Progress Bar Animation */
#progress-bar {
  transition: width 0.5s ease-in-out;
}

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

.hero-animate {
  animation: fadeInUp 0.8s ease-out;
}

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #E5E7EB;
  border-top: 2px solid #1E40AF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

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

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .filter-tab,
  .filter-btn,
  .view-btn,
  .faq-category-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  .country-card,
  .location-card {
    padding: 0.75rem;
  }

  .step-item {
    margin-bottom: 2rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .filter-tab,
  .filter-btn,
  .view-btn,
  .faq-category-btn {
    border: 1px solid currentColor;
  }

  .country-card,
  .location-card {
    border-width: 2px;
  }

  .faq-item {
    border-width: 2px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .country-card,
  .location-card,
  .step-item,
  .filter-tab,
  .filter-btn,
  .view-btn,
  .faq-category-btn {
    transition: none;
  }

  .step-item:hover,
  .country-card:hover,
  .location-card:hover {
    transform: none;
  }

  #progress-bar {
    transition: none;
  }

  .hero-animate {
    animation: none;
  }
}