/* NeuroPolska - Instytut Zdrowia Nerwów Obwodowych - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-navy: #0f172a;
  --accent-teal: #0d9488;
  --accent-light: #f0fdf4;
  --border-color: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.6;
}

.font-display {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

/* Quiz Card Transitions */
.step-card {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Quiz option items */
.quiz-choice-item {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e2e8f0;
}

.quiz-choice-item:hover {
  border-color: #38bdf8;
  background-color: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.quiz-choice-item.selected {
  border-color: #0284c7;
  background-color: #f0f9ff;
}

.quiz-choice-item.selected .radio-circle {
  background-color: #0284c7;
  border-color: #0284c7;
}

.quiz-choice-item.selected .radio-circle i {
  display: block !important;
}

/* Pulse animation */
.dot-pulse {
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(14, 165, 233, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

/* Scanner loader */
.scan-spinner {
  border: 4px solid #e0f2fe;
  border-top: 4px solid #0284c7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Primary CTA Button */
.btn-primary-cta {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary-cta:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
}

/* Back Button */
.back-btn-hover:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Accordion FAQ */
.faq-header {
  cursor: pointer;
  user-select: none;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-content {
  max-height: 400px;
  padding-top: 0.75rem;
}

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

/* Citations Box */
.citation-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
}
