#seo-quiz-root {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.quiz-container {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.quiz-header {
  text-align: center;
  margin-bottom: 40px;
}

.quiz-icon {
  display: inline-block;
  width: 80px;
  height: 80px;
  background: #4F46E5;
  border-radius: 50%;
  margin-bottom: 20px;
  position: relative;
}

.quiz-icon::after {
  content: "🏆";
  font-size: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.quiz-title {
  font-size: 36px;
  font-weight: bold;
  color: #1F2937;
  margin-bottom: 10px;
}

.quiz-subtitle {
  font-size: 18px;
  color: #6B7280;
}

.name-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  font-size: 16px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #D1D5DB;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #4F46E5;
}

.btn-primary {
  width: 100%;
  background: #4F46E5;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: #4338CA;
}

.btn-secondary {
  background: #10B981;
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #059669;
}

.progress-container {
  margin-bottom: 30px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.progress-label {
  color: #6B7280;
}

.progress-percentage {
  color: #4F46E5;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #4F46E5;
  transition: width 0.3s ease;
  border-radius: 999px;
}

.question-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.question-text {
  font-size: 24px;
  font-weight: bold;
  color: #1F2937;
  margin-bottom: 30px;
  line-height: 1.4;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 2px solid #D1D5DB;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.option-btn:hover {
  border-color: #4F46E5;
  background: #EEF2FF;
}

.option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.option-btn:hover .option-letter {
  background: #4F46E5;
  color: white;
}

.option-text {
  color: #374151;
  font-size: 16px;
  line-height: 1.5;
}

.results-container {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.result-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.result-icon.passed {
  background: #D1FAE5;
}

.result-icon.failed {
  background: #FEE2E2;
}

.result-title {
  font-size: 32px;
  font-weight: bold;
  color: #1F2937;
  margin-bottom: 10px;
}

.result-name {
  font-size: 20px;
  color: #6B7280;
  margin-bottom: 20px;
}

.result-score {
  font-size: 56px;
  font-weight: bold;
  color: #4F46E5;
  margin-bottom: 10px;
}

.result-percentage {
  font-size: 28px;
  color: #374151;
  margin-bottom: 20px;
}

.result-status {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.result-status.passed {
  color: #10B981;
}

.result-status.failed {
  color: #EF4444;
}

.answers-section {
  margin-bottom: 40px;
}

.answers-title {
  font-size: 24px;
  font-weight: bold;
  color: #1F2937;
  margin-bottom: 20px;
}

.answer-item {
  margin-bottom: 24px;
  padding: 20px;
  background: #F9FAFB;
  border-radius: 8px;
}

.answer-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.answer-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.answer-icon.correct {
  color: #10B981;
}

.answer-icon.incorrect {
  color: #EF4444;
}

.answer-content {
  flex: 1;
}

.answer-question {
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
  line-height: 1.4;
}

.answer-text {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 6px;
}

.answer-text.user-answer {
  color: #374151;
}

.answer-text.user-answer.correct {
  color: #10B981;
}

.answer-text.user-answer.incorrect {
  color: #EF4444;
}

.answer-text.correct-answer {
  color: #10B981;
}

.answer-explanation {
  font-size: 14px;
  color: #6B7280;
  font-style: italic;
  margin-top: 10px;
  line-height: 1.5;
}

.results-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .quiz-container {
    padding: 20px;
  }
  
  .quiz-title {
    font-size: 28px;
  }
  
  .question-text {
    font-size: 20px;
  }
  
  .result-score {
    font-size: 48px;
  }
  
  .results-actions {
    flex-direction: column;
  }
  
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  
  #print-area, #print-area * {
    visibility: visible;
  }
  
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}