@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   DESIGN SYSTEM — "Minimal Premium"
   Clean, warm, handcrafted feel
   ======================================== */

:root {
  /* Light mode (default) */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-soft: #EEF2FF;
  --primary-glow: rgba(79, 70, 229, 0.12);

  --success: #059669;
  --success-soft: #ECFDF5;
  --warning: #D97706;
  --error: #DC2626;
  --error-soft: #FEF2F2;

  --bg-page: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-input: #F3F4F6;
  --bg-input-hover: #E5E7EB;
  --bg-elevated: #FFFFFF;

  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-on-primary: #FFFFFF;

  --border: #E5E7EB;
  --border-hover: #D1D5DB;
  --divider: #F3F4F6;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary: #818CF8;
  --primary-hover: #6366F1;
  --primary-soft: rgba(99, 102, 241, 0.12);
  --primary-glow: rgba(129, 140, 248, 0.15);

  --success: #34D399;
  --success-soft: rgba(52, 211, 153, 0.1);
  --warning: #FBBF24;
  --error: #F87171;
  --error-soft: rgba(248, 113, 113, 0.1);

  --bg-page: #0F1117;
  --bg-card: #1A1D27;
  --bg-input: #252833;
  --bg-input-hover: #2E3240;
  --bg-elevated: #1E2130;

  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-on-primary: #FFFFFF;

  --border: #2E3240;
  --border-hover: #3B4050;
  --divider: #252833;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -4px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

/* ========================================
   BASE RESET
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

::selection {
  background: var(--primary-soft);
  color: var(--primary);
}

/* ========================================
   THEME TOGGLE — Always visible
   ======================================== */

.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  transition: opacity var(--transition-base), transform var(--transition-base);
  position: absolute;
}

/* Light mode: show moon (to switch to dark) */
:root:not([data-theme="dark"]) .icon-sun,
[data-theme="light"] .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

:root:not([data-theme="dark"]) .icon-moon,
[data-theme="light"] .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Dark mode: show sun (to switch to light) */
[data-theme="dark"] .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ========================================
   SURVEY CONTAINER
   ======================================== */

.survey-container {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ========================================
   CARD
   ======================================== */

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}

/* ========================================
   HERO / WELCOME SECTION
   ======================================== */

.hero-bike {
  width: 56px;
  height: 56px;
  color: var(--primary);
  display: block;
  margin: 0 auto 1.25rem auto;
  animation: gentle-float 4s ease-in-out infinite;
}

@keyframes gentle-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.hero-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.hero-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   PROGRESS BAR
   ======================================== */

.progress-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.bike-progress-track {
  width: 100%;
  height: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  position: relative;
  margin-top: 2rem;
  /* Make room for the bike */
  margin-bottom: 0.5rem;
}

.bike-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bike-indicator {
  position: absolute;
  top: -24px;
  left: 0%;
  width: 28px;
  height: 28px;
  color: var(--primary);
  transform: translateX(-50%);
  transition: left 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 6px var(--primary-glow));
}

/* ========================================
   QUESTION BLOCKS
   ======================================== */

.question-block {
  margin-bottom: 1.75rem;
}

.question-block:last-child {
  margin-bottom: 0;
}

.question-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
  line-height: 1.5;
}

.req-star {
  color: var(--error);
  margin-left: 2px;
  font-weight: 400;
}

.question-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
  line-height: 1.5;
}

/* ========================================
   OPTIONS — Radio & Checkbox
   ======================================== */

.options-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.8125rem 1rem;
  background: var(--bg-input);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  gap: 0.75rem;
}

.option-card:hover {
  background: var(--bg-input-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.option-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.option-card.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.option-card input {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Custom Radio */
.custom-radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}

.option-card:hover .custom-radio {
  border-color: var(--text-secondary);
}

.option-card.selected .custom-radio {
  border-color: var(--primary);
}

.radio-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform var(--transition-fast);
}

.option-card.selected .radio-dot {
  transform: scale(1);
}

/* Custom Checkbox */
.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.option-card:hover .custom-checkbox {
  border-color: var(--text-secondary);
}

.option-card.selected .custom-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.check-icon {
  color: white;
  width: 14px;
  height: 14px;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card.selected .check-icon {
  stroke-dashoffset: 0;
}

/* Option label text */
.option-card>div:last-child {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ========================================
   TEXT INPUTS & SELECTS
   ======================================== */

.input-text,
.input-select {
  width: 100%;
  max-width: 280px;
  padding: 0.625rem 0.875rem;
  font-family: var(--font);
  font-size: 0.875rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.input-text::placeholder {
  color: var(--text-muted);
}

.input-text:hover,
.input-select:hover {
  border-color: var(--border-hover);
}

.input-text:focus,
.input-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-card);
}

/* Hide number spinners */
.input-text[type="number"]::-webkit-inner-spin-button,
.input-text[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  cursor: pointer;
}

[data-theme="dark"] .input-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

/* ========================================
   LIKERT MATRIX
   ======================================== */

.likert-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0.75rem;
}

.likert-table th,
.likert-table td {
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
}

.likert-table th {
  color: var(--text-muted);
  font-weight: 500;
  padding-bottom: 1rem;
}

.likert-table th:first-child,
.likert-table td:first-child {
  text-align: left;
  width: 40%;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding-right: 1rem;
}

.likert-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
}

.likert-table tbody tr {
  transition: background var(--transition-fast);
}

.likert-table tbody tr:hover {
  background: var(--bg-input);
}

.likert-table tbody tr+tr td {
  border-top: 1px solid var(--divider);
}

.likert-table .option-card {
  padding: 0.375rem;
  background: transparent;
  border: none;
  justify-content: center;
  display: flex;
}

.likert-table .option-card:hover {
  background: transparent;
}

.likert-table .custom-radio {
  margin: 0 auto;
}

/* Likert Mobile */
.likert-mobile {
  display: none;
}

/* ========================================
   MAX SELECTIONS DISPLAY
   ======================================== */

.max-sel-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mini-progress {
  width: 80px;
  height: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mini-bar {
  height: 100%;
  background: var(--primary);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

/* ========================================
   BUTTONS
   ======================================== */

.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-input);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ========================================
   SUCCESS SCREEN
   ======================================== */

.success-card {
  text-align: center;
  padding: 3.5rem 2rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  color: var(--success);
  margin: 0 auto 1.25rem auto;
}

.success-icon circle,
.success-icon path,
.success-icon polyline {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-check 0.8s ease forwards 0.3s;
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.success-bike {
  display: block;
  margin: 2rem auto 0;
  color: var(--primary);
  animation: ride-away 3s ease-in-out infinite;
}

@keyframes ride-away {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(20px);
  }
}

/* ========================================
   ERROR STATES
   ======================================== */

.has-error .question-title {
  color: var(--error);
}

.has-error .error-text {
  display: block;
}

.error-text {
  display: none;
  color: var(--error);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 0.5rem;
  padding: 0.375rem 0.625rem;
  background: var(--error-soft);
  border-radius: var(--radius-sm);
}

/* ========================================
   ANIMATION HELPERS
   ======================================== */

.fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-enter {
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.welcome-container {
  text-align: center;
  padding: 2rem 0;
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typing-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--primary);
  width: 0;
  margin: 0 auto;
  animation: typing 2s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
}

/* Fallback for title to be fully visible if JS disabled, or if wrapping is needed, 
   typing-text doesn't wrap natively. But for short titles it's fine. 
   We will refine this in JS to wrap gracefully. */
.typing-text.done {
  border-right: none;
  white-space: normal;
  width: auto;
  animation: none;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--primary)
  }
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards 1.2s;
}

.section-exit {
  animation: slideOut 0.25s ease-in;
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

/* Loader */
.loader {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
  font-size: 0.875rem;
}

/* ========================================
   SECTION BADGE & QUESTION SLIDE
   ======================================== */

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.question-slide {
  min-height: 200px;
}

.question-slide.has-error .question-title {
  color: var(--error);
}

.question-slide.has-error .error-text {
  display: block;
}

/* ========================================
   DYNAMIC QUESTION VISIBILITY ANIMATIONS
   ======================================== */

.q-hidden {
  display: none;
}

.q-slide-in {
  animation: questionSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes questionSlideIn {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
    margin-bottom: 0;
    padding-top: 0;
    overflow: hidden;
  }
  to {
    opacity: 1;
    max-height: 800px;
    transform: translateY(0);
    margin-bottom: 1.75rem;
    overflow: visible;
  }
}

.q-slide-out {
  animation: questionSlideOut 0.3s ease-in forwards;
}

@keyframes questionSlideOut {
  from {
    opacity: 1;
    max-height: 800px;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
    margin-bottom: 0;
    padding-top: 0;
    overflow: hidden;
  }
}

/* ========================================
   QUESTION HELP TEXT
   ======================================== */

.question-help {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-style: italic;
  padding: 0.375rem 0.625rem;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

/* ========================================
   MATRIX CARDS (kart tabanlı güzel UI)
   ======================================== */

.matrix-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.matrix-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.matrix-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.matrix-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--divider);
}

.matrix-card-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.matrix-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  user-select: none;
  white-space: nowrap;
}

.matrix-chip input {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.matrix-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.matrix-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-on-primary);
  box-shadow: 0 2px 8px var(--primary-glow);
  transform: translateY(-1px);
}

/* ========================================
   TIME INPUT
   ======================================== */

.input-time {
  max-width: 200px;
  font-variant-numeric: tabular-nums;
}

/* ========================================
   VALIDATION MESSAGE
   ======================================== */

.validation-msg {
  display: none;
  color: var(--error);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 0.375rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
  body {
    padding: 1.5rem 1rem;
  }

  .survey-container {
    gap: 1rem;
  }

  .glass-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .hero-title {
    font-size: 1.375rem;
  }

  .hero-text {
    font-size: 0.875rem;
  }

  .hero-bike {
    width: 48px;
    height: 48px;
  }

  .likert-table,
  .matrix-table {
    display: none;
  }

  .likert-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .likert-mobile-card {
    background: var(--bg-input);
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .likert-mobile-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
  }

  .likert-mobile-opts {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
  }

  .nav-buttons {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .input-text,
  .input-select {
    max-width: 100%;
  }

  .option-card>div:last-child {
    font-size: 0.8125rem;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Smooth theme transition only on specific properties */
.glass-card,
.progress-wrapper,
.option-card,
.btn,
.input-text,
.input-select,
.theme-toggle {
  transition-property: background-color, border-color, color, box-shadow, transform;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}