.quiz-section {
  max-width: 1180px;
  margin: 70px auto;
  padding: clamp(24px, 5vw, 56px);
  background: #f7f8fa;
  border: 1px solid #d9dee7;
  border-radius: 28px;
  color: #172033;
}
.quiz-heading {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}
.quiz-heading h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}
.quiz-standard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 230px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #172033;
  color: white;
}
.quiz-standard strong {
  color: #f4bd48;
}
.quiz-standard span {
  font-size: 0.9rem;
  color: #d7deea;
}
.quiz-intro {
  max-width: 760px;
  margin: 24px 0 30px;
  color: #536077;
  line-height: 1.7;
}
.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.identity-grid label {
  font-weight: 700;
  font-size: 0.92rem;
}
.identity-grid label span {
  font-weight: 400;
  color: #6b7280;
}
.identity-grid input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #cbd3df;
  border-radius: 12px;
  background: white;
  font: inherit;
  color: #172033;
}
.identity-grid input:focus,
.quiz-questions input:focus,
.acknowledgment input:focus {
  outline: 3px solid rgba(33, 105, 180, 0.2);
  outline-offset: 2px;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
}
.quiz-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.quiz-questions fieldset {
  margin: 0;
  padding: 22px;
  border: 1px solid #d9dee7;
  border-radius: 18px;
  background: white;
}
.quiz-questions legend {
  padding: 0 4px;
  font-weight: 800;
  line-height: 1.45;
}
.quiz-questions legend span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 10px;
  background: #172033;
  color: #f4bd48;
  font-size: 0.8rem;
}
.quiz-questions label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid #e4e8ef;
  border-radius: 11px;
  cursor: pointer;
  line-height: 1.4;
}
.quiz-questions label:hover {
  border-color: #2169b4;
  background: #f5f9ff;
}
.quiz-questions input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: #2169b4;
}
.acknowledgment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 26px 0;
  padding: 18px;
  border-radius: 15px;
  background: #fff8e8;
  border: 1px solid #f0d189;
  line-height: 1.55;
  font-weight: 650;
}
.acknowledgment input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: #2169b4;
}
.quiz-submit {
  border: 0;
  border-radius: 999px;
  background: #2169b4;
  color: white;
  padding: 15px 26px;
  font: 700 1rem inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(33, 105, 180, 0.2);
}
.quiz-submit:hover {
  background: #195690;
}
.quiz-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.quiz-result {
  display: none;
  margin-top: 22px;
  padding: 22px;
  border-radius: 16px;
  font-weight: 650;
  line-height: 1.55;
}
.quiz-result.show {
  display: block;
}
.quiz-result.pass {
  background: #e8f7ef;
  border: 1px solid #7bc69d;
  color: #14532d;
}
.quiz-result.retry {
  background: #fff1f0;
  border: 1px solid #efa6a0;
  color: #7f1d1d;
}
.quiz-result.error {
  background: #fff8e8;
  border: 1px solid #f0d189;
  color: #713f12;
}
@media (max-width: 780px) {
  .quiz-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .quiz-standard {
    min-width: 0;
  }
  .identity-grid,
  .quiz-questions {
    grid-template-columns: 1fr;
  }
  .quiz-section {
    margin: 40px 14px;
    padding: 24px 18px;
    border-radius: 20px;
  }
}
