/* Adaptive Games CSS - Version 3 */
/* Multilingual language learning suite - ASR Design System */
/* Design matches ASR reference exactly */
/*
 * VERSION 3 CHANGES:
 * - Enhanced mobile layout for feature grids and workflow steps
 * - Improved touch targets for all interactive elements (44px minimum)
 * - Better responsive breakpoints for tablets (768px) and mobile (600px)
 * - Fixed FAQ accordion touch targets
 * - Improved selection card layouts on mobile
 * - Enhanced button sizing consistency
 */

/* ===== CSS Custom Properties - ASR Design System ===== */
:root {
  /* ASR Color Palette */
  --primary-blue: #003DA5;
  --secondary-blue: #002D72;
  --dark-navy: #001F4C;
  --accent-red: #DC143C;
  --accent-teal: #0891B2;
  --light-gray: #F8F9FA;
  --medium-gray: #E9ECEF;
  --border-gray: #DEE2E6;
  --text-dark: #212529;
  --text-muted: #6C757D;
  --text-light: #495057;
  --white: #FFFFFF;

  /* Semantic Colors */
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;

  /* ASR Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

/* ===== LLM Settings Page ===== */

.settings-container {
  max-width: 900px;
  margin: var(--spacing-xxl) auto;
  padding: var(--spacing-xl);
}

.provider-tabs {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--primary-blue);
  flex-wrap: wrap;
}

.provider-tab {
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  transition: all var(--transition-medium);
  border-bottom: 3px solid transparent;
  font-weight: 500;
  /* Touch target */
  min-height: 44px;
  min-width: 100px;
}

.provider-tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  font-weight: 600;
}

.provider-tab:hover {
  color: var(--primary-blue);
  background: rgba(0, 61, 165, 0.05);
}

.provider-panel {
  display: none;
  padding: var(--spacing-xl);
  background: var(--light-gray);
  border-radius: 12px;
  border: 1px solid var(--border-gray);
}

.provider-panel.active {
  display: block;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  transition: all var(--transition-fast);
  background: var(--white);
  color: var(--text-dark);
  min-height: 48px;
}

.form-group input:focus,
.form-group select:focus {
  outline: 3px solid transparent;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 50px; /* Make room for toggle button */
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  /* Touch target */
  min-width: 44px;
  min-height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.password-toggle:hover {
  color: var(--primary-blue);
  background: rgba(0, 61, 165, 0.05);
}

.button-group {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

/* Standardized button sizes - all buttons same height and minimum width */
.btn-primary,
.btn-secondary,
.btn-test,
.btn-export,
.btn-import,
.continue-button {
  min-height: 48px;
  min-width: 140px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--secondary-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--light-gray);
}

.btn-test {
  background: var(--accent-teal);
  color: var(--white);
}

.btn-test:hover:not(:disabled) {
  background: #0E7490;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-test:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.alert {
  padding: var(--spacing-md);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
  border-left: 4px solid;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  color: #155724;
  border-color: var(--success);
}

.alert-error {
  background: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border-color: var(--danger);
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
  border-color: var(--warning);
}

.alert-info {
  background: rgba(23, 162, 184, 0.1);
  color: #0c5460;
  border-color: var(--info);
}

/* ===== Language/Difficulty Selection - COMPACT VERSION ===== */

.selection-screen {
  max-width: 1000px;
  margin: var(--spacing-xl) auto;
  padding: var(--spacing-lg);
  text-align: center;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
}

.selection-card {
  background: var(--white);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Touch target */
  min-height: 64px;
}

.selection-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-blue);
}

.selection-card.selected {
  border-color: var(--primary-blue);
  border-width: 2px;
  background: linear-gradient(135deg, rgba(0, 61, 165, 0.04) 0%, rgba(0, 61, 165, 0.08) 100%);
}

.selection-card.selected::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: var(--shadow-sm);
}

.selection-card h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
}

.selection-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 4px 0 0 0;
  line-height: 1.3;
}

.selection-card.difficulty-beginner {
  border-left: 3px solid var(--success);
}

.selection-card.difficulty-intermediate {
  border-left: 3px solid var(--warning);
}

.selection-card.difficulty-advanced {
  border-left: 3px solid var(--danger);
}

.continue-button {
  background: var(--primary-blue);
  color: var(--white);
  margin-top: var(--spacing-xl);
  min-width: 200px;
  font-size: 1.1rem;
}

.continue-button:hover:not(:disabled) {
  background: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.continue-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== Progress Modal ===== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: var(--z-modal);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 12px;
  padding: var(--spacing-xxl);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  box-shadow: var(--shadow-lg);
}

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

/* Share Link Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: var(--z-modal);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--light-gray);
}

.modal-header h3 {
  margin: 0;
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--light-gray);
  color: var(--text-dark);
}

.modal-body {
  margin-bottom: var(--spacing-lg);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--light-gray);
}

.share-url-container {
  display: flex;
  gap: var(--spacing-sm);
  align-items: stretch;
  margin: var(--spacing-md) 0;
}

#shareURLInput {
  flex: 1;
  padding: var(--spacing-md);
  border: 2px solid var(--primary-blue);
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  background: var(--light-gray);
  color: var(--text-dark);
  cursor: pointer;
}

#shareURLInput:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}

.btn-copy {
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--accent-teal);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  min-width: 100px;
}

.btn-copy:hover {
  background: #0E7490;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Share Link Progress Bar */
.share-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--medium-gray);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.share-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,
    var(--accent-teal) 0%,
    var(--primary-blue) 50%,
    var(--accent-teal) 100%);
  background-size: 200% 100%;
  animation: progressSlide 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes progressSlide {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* Share Instructions Box */
.share-instructions {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--light-gray);
  border-radius: 8px;
  border-left: 3px solid var(--primary-blue);
}

.share-instructions strong {
  color: var(--primary-blue);
  font-size: 0.95rem;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.share-instructions ol {
  margin: var(--spacing-sm) 0 0 0;
  padding-left: var(--spacing-lg);
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.share-instructions li {
  margin-bottom: var(--spacing-xs);
}

.progress-bar {
  width: 100%;
  height: 30px;
  background: var(--medium-gray);
  border-radius: 15px;
  overflow: hidden;
  margin: var(--spacing-lg) 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 61, 165, 0.3);
}

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

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-text {
  text-align: center;
  margin: var(--spacing-md) 0;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.progress-items {
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0;
}

.progress-items li {
  padding: var(--spacing-sm);
  margin: var(--spacing-xs) 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.progress-items li.completed::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

.progress-items li.pending::before {
  content: '○';
  color: var(--text-muted);
}

/* Loading spinner */
.spinner {
  border: 4px solid var(--medium-gray);
  border-top: 4px solid var(--primary-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: var(--spacing-lg) auto;
}

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

/* ===== Export/Import Buttons - FIXED SIZING ===== */

.content-actions {
  display: flex;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-export,
.btn-import,
.btn-share {
  /* Force exact same sizing */
  height: 48px;
  width: fit-content;
  padding: 0 24px;
  margin: 0;
  border: 2px solid var(--primary-blue);
  background: var(--white);
  color: var(--primary-blue);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Ensure label behaves exactly like button */
  box-sizing: border-box;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  vertical-align: middle;
}

.btn-export:hover,
.btn-import:hover,
.btn-share:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Remove pseudo-elements that were causing issues */
.btn-export::before,
.btn-import::before {
  content: none;
}

/* Add icons via direct content in HTML instead */

/* ===== Content Info Box ===== */

.content-info-box {
  background: linear-gradient(135deg, rgba(0, 61, 165, 0.05) 0%, rgba(0, 61, 165, 0.08) 100%);
  border: 1px solid rgba(0, 61, 165, 0.2);
  border-left: 4px solid var(--primary-blue);
  border-radius: 8px;
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.content-info-box h4 {
  margin-top: 0;
  color: var(--primary-blue);
}

/* ===== Settings Section Dividers ===== */

.settings-section {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.settings-section h3 {
  margin-top: 0;
  color: var(--primary-blue);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--medium-gray);
  margin-bottom: var(--spacing-lg);
}

.settings-section-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

/* ===== Game Selection Cards ===== */

.game-card {
  background: var(--white);
  border: 2px solid var(--border-gray);
  border-radius: 12px;
  padding: var(--spacing-xl);
  cursor: pointer;
  transition: all var(--transition-medium);
  text-align: center;
  min-height: 120px;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.game-card h3 {
  color: var(--primary-blue);
  margin: var(--spacing-sm) 0;
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: var(--spacing-xs) 0;
}

/* ===== Hero Section Styling ===== */

.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: var(--spacing-xxl) var(--spacing-lg);
  border-radius: 12px;
  margin-bottom: var(--spacing-xxl);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.hero-section h2 {
  color: var(--white);
  margin-top: 0;
  font-size: 2.5em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
  font-size: 1.2em;
  margin: var(--spacing-lg) 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== Homepage Specific Styles ===== */

/* Intro Section - Left-aligned text without title */
.intro-section {
  margin: var(--spacing-xxl) 0;
}

.intro-text {
  max-width: 900px;
  margin: 0;
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-dark);
  text-align: left;
}

/* Feature Grid - Single row of 4 cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin: var(--spacing-xxl) 0;
}

/* Workflow Steps - Single row of 5 steps with hover details */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xxl);
}

.workflow-step {
  text-align: center;
  padding: var(--spacing-lg);
  position: relative;
  transition: transform 0.2s;
}

.workflow-step:hover {
  transform: translateY(-4px);
}

.step-detail {
  color: var(--text-muted);
  font-size: 0.9em;
  margin-top: var(--spacing-sm);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s, max-height 0.3s;
}

.workflow-step:hover .step-detail {
  opacity: 1;
  max-height: 100px;
}

/* ===== FAQ Accordion ===== */

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

.faq-item {
  margin-bottom: var(--spacing-sm);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: white;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-blue);
  transition: background 0.2s;
  /* Touch target */
  min-height: 48px;
}

.faq-question:hover {
  background: var(--light-gray);
}

.faq-arrow {
  transition: transform 0.3s;
  font-size: 0.8em;
  color: var(--text-muted);
  /* Ensure clickable */
  min-width: 24px;
  text-align: center;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 var(--spacing-lg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 var(--spacing-lg) var(--spacing-md);
}

.faq-answer p {
  margin: 0;
  color: var(--text-light);
}

/* ===========================
   Responsive Design - Tablet (768px)
   =========================== */
@media (max-width: 768px) {
  .settings-container {
    padding: var(--spacing-lg);
  }

  /* Feature grid: 2 columns on tablet */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  /* Workflow steps: 2-3 columns on tablet */
  .workflow-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
  }

  /* Selection cards: 3 columns on tablet */
  .selection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
  }

  .hero-section h2 {
    font-size: 2em;
  }

  .hero-section p {
    font-size: 1.1em;
  }
}

/* ===========================
   Responsive Design - Mobile (600px and below)
   =========================== */
@media (max-width: 600px) {
  .settings-container {
    padding: var(--spacing-md);
  }

  /* Provider tabs: Stack vertically on mobile */
  .provider-tabs {
    flex-direction: column;
  }

  .provider-tab {
    text-align: center;
    width: 100%;
  }

  /* Selection grid: 2 columns on mobile for better readability */
  .selection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  /* All buttons full width on mobile */
  .button-group {
    flex-direction: column;
  }

  .button-group button,
  .button-group .btn-primary,
  .button-group .btn-secondary,
  .button-group .btn-test {
    width: 100%;
    min-width: 100%;
  }

  .content-actions {
    flex-direction: column;
  }

  .btn-export,
  .btn-import {
    width: 100%;
    min-width: 100%;
    justify-content: center;
  }

  .continue-button {
    width: 100%;
    min-width: 100%;
  }

  .modal-content {
    padding: var(--spacing-lg);
    width: 95%;
  }

  .hero-section h2 {
    font-size: 1.8em;
  }

  .hero-section p {
    font-size: 1em;
  }

  .settings-section {
    padding: var(--spacing-lg);
  }

  /* Homepage: Stack grids vertically on mobile */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  /* Always show step details on mobile */
  .step-detail {
    opacity: 1;
    max-height: none;
  }

  /* FAQ: Better spacing on mobile */
  .faq-question {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 var(--spacing-md);
  }

  .faq-item.active .faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-sm);
  }
}

/* ===== 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;
}

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

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Ensure touch targets are at least 44px on all screen sizes */
button,
a,
input,
select,
.faq-question,
.selection-card,
.password-toggle {
  min-height: 44px;
}

/* Additional mobile touch target enforcement */
@media (max-width: 600px) {
  button,
  a,
  input,
  select,
  .faq-question,
  .selection-card,
  .provider-tab {
    min-height: 48px;
  }
}
