* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
  color: #333;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 100vh;
}

.quiz-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  width: 100%;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2d5a87, #4a90c2);
  border-radius: 4px;
  width: 16.67%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.question-slide {
  display: none;
  animation: fadeIn 0.3s ease;
}

.question-slide.active {
  display: block;
}

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

h2 {
  font-size: 1.4rem;
  color: #1a365d;
  margin-bottom: 30px;
  line-height: 1.5;
  font-weight: 600;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.option {
  display: flex;
  align-items: flex-start;
  padding: 18px 20px;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option:hover {
  border-color: #4a90c2;
  background: #f0f7ff;
}

.option input[type="radio"] {
  margin-right: 15px;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  accent-color: #2d5a87;
  cursor: pointer;
}

.option-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
}

.option:has(input:checked) {
  border-color: #2d5a87;
  background: #e8f4ff;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-next, .btn-submit {
  background: linear-gradient(135deg, #2d5a87, #4a90c2);
  color: #fff;
  margin-left: auto;
}

.btn-next:hover, .btn-submit:hover {
  background: linear-gradient(135deg, #1a365d, #2d5a87);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 90, 135, 0.3);
}

.btn-back {
  background: #f0f0f0;
  color: #666;
}

.btn-back:hover {
  background: #e0e0e0;
}

.btn-restart {
  background: linear-gradient(135deg, #2d5a87, #4a90c2);
  color: #fff;
  margin-top: 30px;
}

.btn-restart:hover {
  background: linear-gradient(135deg, #1a365d, #2d5a87);
}

.form-subtitle {
  color: #666;
  margin-bottom: 25px;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a365d;
}

.required {
  color: #dc3545;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #4a90c2;
}

.results-slide {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.results-slide.active {
  display: block;
}

.score-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d5a87, #4a90c2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  color: #fff;
  box-shadow: 0 8px 30px rgba(45, 90, 135, 0.4);
}

.score-value {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.score-label {
  font-size: 1rem;
  opacity: 0.9;
}

.score-message {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  line-height: 1.6;
}

.score-breakdown {
  text-align: left;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.breakdown-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-icon {
  font-size: 1.2rem;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

.breakdown-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

.score-good {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.score-medium {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.score-low {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.results-headline {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 20px;
  line-height: 1.4;
}

.results-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.cta-section {
  margin-top: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.cta-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.5;
}

.btn-cta-primary {
  background: linear-gradient(135deg, #2d5a87, #4a90c2);
  color: #fff;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-cta-primary:hover {
  background: linear-gradient(135deg, #1a365d, #2d5a87);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 90, 135, 0.3);
}

.btn-cta-secondary {
  background: #f0f0f0;
  color: #333;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-cta-secondary:hover {
  background: #e0e0e0;
  border-color: #ccc;
}

@media (max-width: 600px) {
  .quiz-container {
    padding: 25px 20px;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  .option {
    padding: 15px;
  }
  
  .option-text {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .score-circle {
    width: 150px;
    height: 150px;
  }
  
  .score-value {
    font-size: 3rem;
  }
}
