.ysa-quiz {
  --ysa-navy: #273960;
  --ysa-yellow: #f4c542;
  --ysa-cream: #fff9f1;
  --ysa-text: #27313f;
  --ysa-border: #dedede;
  max-width: 820px;
  margin: 2rem auto;
  color: var(--ysa-text);
  font: inherit;
}

.ysa-quiz * { box-sizing: border-box; }

.ysa-quiz__intro,
.ysa-quiz__question-screen,
.ysa-quiz__result {
  background: #fff;
  border: 1px solid var(--ysa-border);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 52px);
  box-shadow: 0 12px 32px rgba(39,57,96,.08);
}

.ysa-eyebrow {
  margin: 0 0 .65rem;
  color: var(--ysa-navy);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ysa-quiz h2,
.ysa-quiz h3 {
  color: var(--ysa-navy);
  line-height: 1.2;
}

.ysa-quiz h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.ysa-question__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
}

.ysa-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.ysa-intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.25rem 0 1.75rem;
}

.ysa-intro-points span {
  padding: .55rem .8rem;
  border-radius: 999px;
  background: var(--ysa-cream);
  font-size: .92rem;
  font-weight: 600;
}

.ysa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--ysa-navy);
  color: #fff !important;
  text-decoration: none !important;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.ysa-button:hover { transform: translateY(-1px); }
.ysa-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.ysa-button--secondary {
  background: #eef1f7;
  color: var(--ysa-navy) !important;
}

.ysa-small {
  margin-top: 1rem;
  font-size: .9rem;
  opacity: .78;
}

.ysa-progress-wrap { margin-bottom: 2rem; }
.ysa-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff4;
}
.ysa-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ysa-yellow);
  transition: width .25s ease;
}
.ysa-progress-label {
  margin-top: .55rem;
  font-size: .88rem;
  color: #657083;
}

.ysa-answers {
  display: grid;
  gap: .75rem;
}

.ysa-answer {
  position: relative;
  display: block;
  padding: 1rem 1.1rem;
  border: 2px solid #e3e6ec;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  line-height: 1.45;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.ysa-answer:hover {
  border-color: #b9c2d5;
  transform: translateY(-1px);
}

.ysa-answer.is-selected {
  border-color: var(--ysa-navy);
  background: var(--ysa-cream);
}

.ysa-answer input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ysa-answer input:focus-visible + span {
  outline: 3px solid rgba(244,197,66,.45);
  outline-offset: 5px;
}

.ysa-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.ysa-result-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ysa-navy);
}

.ysa-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.ysa-card,
.ysa-secondary-result,
.ysa-lead-form,
.ysa-cta {
  padding: 1.4rem;
  border-radius: 14px;
  background: var(--ysa-cream);
}

.ysa-card h3,
.ysa-secondary-result h3,
.ysa-lead-form h3,
.ysa-cta h3 { margin-top: 0; }

.ysa-card ul { margin-bottom: 0; }

.ysa-secondary-result,
.ysa-lead-form,
.ysa-cta { margin-top: 1rem; }

.ysa-cta {
  background: var(--ysa-navy);
  color: #fff;
}
.ysa-cta h3 { color: #fff; }
.ysa-cta .ysa-button {
  background: var(--ysa-yellow);
  color: var(--ysa-navy) !important;
}

.ysa-text-button {
  margin-top: 1.25rem;
  border: 0;
  padding: .4rem 0;
  background: transparent;
  color: var(--ysa-navy);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 640px) {
  .ysa-result-grid { grid-template-columns: 1fr; }
  .ysa-nav { flex-direction: column-reverse; }
  .ysa-nav .ysa-button { width: 100%; }
}

.ysa-dcfh-note {
  margin-top: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px dashed #c7cedc;
  border-radius: 14px;
  background: #f8f9fc;
}
.ysa-dcfh-note h3 { margin-top: 0; }
.ysa-dcfh-note code { font-size: .9em; }
