* {
  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, #1a3a5c, #2d5a87);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}

.quiz-container {
  max-width: 600px;
  width: 100%;
}

.quiz-header {
  text-align: center;
  padding: 25px 30px 15px;
  background: white;
  border-radius: 16px 16px 0 0;
  border-top: 5px solid #2d3e50;
}

.progress-container {
  background: #e5e7eb;
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b6b8a, #6a9bb8);
  border-radius: 6px;
  width: 14.28%;
  transition: width 0.4s ease;
}

.progress-text {
  color: #6b7280;
  font-size: 0.9rem;
}

.quiz-content {
  background: white;
  border-radius: 0 0 16px 16px;
  padding: 30px 30px;
}

.question-card {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

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

.question-card h2 {
  color: #1f2937;
  font-size: 1.35rem;
  margin-bottom: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.question-note {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.5;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 1rem;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  line-height: 1.3;
}

.option-btn:hover {
  border-color: #b0c4d8;
  background: #f8fafc;
}

.option-btn:active {
  transform: scale(0.98);
}

.option-btn.selected {
  border-color: #5a8ab5;
  background: #e8f4fc;
  color: #2c5272;
}

.nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.back-btn {
  flex: 1;
  height: 52px;
  background: #e8eaed;
  color: #5a6a7a;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.back-btn:active {
  transform: scale(0.98);
}

.ok-btn {
  flex: 1.3;
  height: 52px;
  background: linear-gradient(180deg, #6a9fc0 0%, #456b85 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ok-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #5a8fb0 0%, #355b75 100%);
}

.ok-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.ok-btn:disabled {
  background: linear-gradient(180deg, #9ca3af 0%, #7a8290 100%);
  cursor: not-allowed;
}

.form-nav {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.form-nav .ok-btn {
  height: 52px;
}

.required {
  color: #dc2626;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
}

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

.form-group input:focus {
  outline: none;
  border-color: #5a8ab5;
  background: white;
}

.submit-btn {
  background: linear-gradient(180deg, #5a8ab5 0%, #3d6a8a 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 18px 30px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background: linear-gradient(180deg, #4a7aa5 0%, #2d5a7a 100%);
}

.submit-btn:active {
  transform: scale(0.98);
}

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

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

.result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.result-icon.positive {
  background: #dcfce7;
  color: #16a34a;
}

.result-icon.neutral {
  background: #fef3c7;
  color: #d97706;
}

.result-icon.negative {
  background: #fee2e2;
  color: #dc2626;
}

.results-card h2 {
  color: #1f2937;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.results-card > p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.cta-text {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.cta-text:last-of-type {
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(180deg, #5a8ab5 0%, #3d6a8a 100%);
  color: white;
  text-decoration: none;
  border-radius: 14px;
  padding: 18px 40px;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cta-btn:hover {
  background: linear-gradient(180deg, #4a7aa5 0%, #2d5a7a 100%);
}

@media (max-width: 480px) {
  html, body {
    padding: 15px 10px;
  }

  .quiz-header {
    padding: 20px 15px 12px;
  }

  .quiz-content {
    padding: 20px 15px;
  }

  .question-card h2 {
    font-size: 1.15rem;
  }

  .option-btn {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .cta-btn {
    padding: 16px 30px;
    font-size: 1rem;
  }
}
