* {
  box-sizing: border-box;
}

.wr-quiz-container {
  max-width: 760px;
  margin: 20px auto;
  padding: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #edf2f7;
}

.wr-quiz-header {
  text-align: center;
  margin-bottom: 30px;
}

.wr-quiz-title {
  font-size: 30px;
  color: #1f2937;
  margin: 0 0 10px 0;
  font-weight: 800;
}

.wr-quiz-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

.wr-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  margin: 20px 0;
  overflow: hidden;
}

.wr-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8080ff, #6060dd);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}

.wr-question-counter {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 600;
}

.wr-question-card,
.wr-email-card,
.wr-results-card {
  display: none;
  animation: wrFadeIn 0.35s ease;
}

.wr-question-card.wr-active,
.wr-email-card.wr-active,
.wr-results-card.wr-active {
  display: block;
}

.wr-question-text {
  font-size: 21px;
  color: #111827;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.4;
}

.wr-answer-option {
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 16px;
  color: #1f2937;
  display: block;
  width: 100%;
  text-align: left;
}

.wr-answer-option:hover {
  background: #f3f3ff;
  border-color: #8080ff;
  transform: translateX(4px);
}

.wr-answer-option.wr-selected {
  background: #8080ff;
  border-color: #6060dd;
  color: #ffffff;
  font-weight: 700;
}

.wr-next-button,
.wr-restart-button {
  border-radius: 10px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
  transition: all 0.25s ease;
  font-family: inherit;
}

.wr-next-button {
  background: #8080ff;
  color: #ffffff;
  border: none;
}

.wr-next-button:hover {
  background: #6060dd;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(96, 96, 221, 0.22);
}

.wr-next-button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.wr-email-card,
.wr-results-card {
  text-align: center;
}

.wr-email-icon,
.wr-results-icon {
  font-size: 54px;
  margin-bottom: 18px;
}

.wr-email-title,
.wr-results-title {
  font-size: 28px;
  color: #111827;
  margin: 0 0 14px;
  font-weight: 800;
}

.wr-email-description,
.wr-results-message {
  font-size: 17px;
  color: #6b7280;
  margin-bottom: 18px;
  line-height: 1.6;
}

.wr-email-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid #dbe2ea;
  border-radius: 10px;
  margin-bottom: 12px;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.wr-email-input:focus {
  outline: none;
  border-color: #8080ff;
  box-shadow: 0 0 0 4px rgba(128, 128, 255, 0.12);
}

.wr-email-note,
.wr-results-email-status {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 10px;
}

.wr-results-score {
  font-size: 50px;
  color: #6060dd;
  font-weight: 800;
  margin-bottom: 16px;
}

.wr-results-breakdown {
  background: #f8fafc;
  border-radius: 12px;
  padding: 22px;
  margin-top: 25px;
  text-align: left;
  border: 1px solid #e5e7eb;
}

.wr-breakdown-heading {
  margin: 0 0 18px;
  color: #111827;
  font-size: 18px;
}

.wr-breakdown-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
}

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

.wr-breakdown-question {
  color: #111827;
  font-weight: 700;
  margin-bottom: 8px;
}

.wr-breakdown-meta {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.wr-breakdown-label {
  font-weight: 700;
}

.wr-breakdown-result {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
}

.wr-breakdown-result.wr-correct {
  background: #e7f8ed;
  color: #1f9d55;
}

.wr-breakdown-result.wr-incorrect {
  background: #fdecec;
  color: #c53030;
}

.wr-restart-button {
  background: transparent;
  color: #6060dd;
  border: 2px solid #8080ff;
}

.wr-restart-button:hover {
  background: #8080ff;
  color: #ffffff;
  transform: translateY(-1px);
}

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

@media (max-width: 600px) {
  .wr-quiz-container {
    padding: 18px;
    margin: 15px auto;
  }

  .wr-quiz-title,
  .wr-email-title,
  .wr-results-title {
    font-size: 24px;
  }

  .wr-question-text {
    font-size: 18px;
  }

  .wr-answer-option {
    padding: 14px 16px;
    font-size: 15px;
  }

  .wr-results-score {
    font-size: 40px;
  }
}
