.qap-quiz-wrapper {
  --qap-cta-bg: #0f766e;
  --qap-cta-text: #ffffff;
  --qap-cta-hover: #115e59;
  --qap-cta-radius: 999px;
}

.qap-quiz-wrapper {
  margin: 32px 0;
}

.qap-quiz-card,
.qap-result-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  border: 1px solid #d7e0ea;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.qap-quiz-title {
  color: #102a43;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 12px;
}

.qap-quiz-intro,
.qap-result-description,
.qap-question-help {
  color: #486581;
}

.qap-question {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}

.qap-question legend {
  color: #102a43;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.qap-answer-list {
  display: grid;
  gap: 12px;
}

.qap-answer-option,
.qap-answer-button {
  background: #fff;
  border: 1px solid #d7e0ea;
  border-radius: 14px;
  cursor: pointer;
  display: block;
  font: inherit;
  text-align: left;
  width: 100%;
  padding: 14px 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.qap-answer-option input {
  margin: 0;
}

.qap-answer-option {
  align-items: center;
  display: flex;
  gap: 12px;
}

.qap-answer-button:hover,
.qap-answer-option:hover {
  border-color: #0f766e;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
}

.qap-question-title {
  color: #102a43;
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.qap-question-header {
  margin-bottom: 18px;
}

.qap-answer-list-buttons {
  margin-top: 14px;
}

.qap-submit-button,
.qap-result-cta {
  background: var(--qap-cta-bg);
  border: 0;
  border-radius: var(--qap-cta-radius);
  color: var(--qap-cta-text);
  display: inline-block;
  font-weight: 700;
  padding: 14px 22px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qap-submit-button:hover,
.qap-result-cta:hover {
  background: var(--qap-cta-hover);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
  transform: translateY(-1px);
}

.qap-result-cta-disabled {
  cursor: default;
  opacity: 0.8;
}

.qap-result-cta-disabled:hover {
  background: var(--qap-cta-bg);
  box-shadow: none;
  transform: none;
}

.qap-result-eyebrow {
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.qap-result-card h3 {
  color: #102a43;
  font-size: 1.85rem;
  margin: 0 0 12px;
}

.qap-result-media img {
  border-radius: 14px;
  display: block;
  height: auto;
  margin-top: 18px;
  max-width: 100%;
}

.qap-result-embed {
  margin-top: 20px;
}

.qap-reset-wrap {
  margin-top: 18px;
}

.qap-reset-link {
  background: none;
  border: 0;
  color: #0f766e;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.qap-notice {
  background: #fff8e1;
  border-left: 4px solid #dba617;
  padding: 12px 16px;
}

@media (max-width: 640px) {
  .qap-quiz-card,
  .qap-result-card {
    padding: 20px;
  }

  .qap-quiz-title,
  .qap-result-card h3 {
    font-size: 1.6rem;
  }
}
