/* Shared questionnaire. Cream board and burgundy actions, same family as the training pages. */

.train-signin-card,
.train-take {
  scroll-margin-top: calc(var(--header-h, 76px) + 12px);
  margin: 16px 0 18px;
  padding: 16px 16px 8px;
  background: #fff;
  color: #1b0f13;
  border-radius: 16px;
}
.page-hero .train-signin-card,
.page-hero .train-signin-card h2,
.page-hero .train-signin-card p,
.page-hero .train-signin-card label,
.page-hero .train-signin-card span,
.page-hero .train-signin-card a,
.train-hero .train-signin-card,
.train-hero .train-signin-card h2,
.train-hero .train-signin-card p {
  color: #1b0f13;
}
.train-signin-card #stc-quiz,
.train-take #stc-quiz {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  max-width: none;
}

.train-take h2,
.train-take p {
  color: #1b0f13;
}

.train-take h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
}

.train-take p {
  max-width: 42rem;
  margin: 0 0 12px;
  line-height: 1.55;
}

.train-hero .train-gate {
  margin: 0 0 0.8rem;
  font-weight: 700;
}

#stc-quiz {
  box-sizing: border-box;
  width: 100%;
  max-width: 42rem;
  margin: 16px 0 0;
  padding: 14px;
  color: #1b0f13;
  color-scheme: light;
  background: #f7f1f2;
  border: 1px solid rgba(122, 31, 46, .22);
  border-radius: 16px;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.6;
  text-align: left;
}

#stc-quiz *,
#stc-quiz *::before,
#stc-quiz *::after {
  box-sizing: border-box;
}

#stc-quiz h2,
#stc-quiz h3,
#stc-quiz p,
#stc-quiz li,
#stc-quiz label,
#stc-quiz legend,
#stc-quiz a {
  overflow-wrap: break-word;
}

#stc-quiz h2,
#stc-quiz h3 {
  margin: 0 0 8px;
  color: #4e1019;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: left;
}

#stc-quiz h2 {
  font-size: 1.35rem;
}

#stc-quiz h3 {
  margin-top: 14px;
  font-size: 1.15rem;
}

#stc-quiz p {
  margin: 0 0 10px;
  color: #1b0f13;
}

#stc-quiz .stc-quiz__lead {
  color: #4e1019;
  font-weight: 800;
}

#stc-quiz .stc-quiz__fine {
  margin: 0;
  font-size: 0.95rem;
}

#stc-quiz .stc-quiz__status,
#stc-quiz .stc-quiz__pass {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fff;
  border-left: 4px solid #7a1f2e;
  border-radius: 12px;
}

#stc-quiz .stc-quiz__status {
  margin-bottom: 0;
}

#stc-quiz .stc-quiz__alert {
  margin: 0 0 12px;
  padding: 12px 14px;
  color: #1b0f13;
  background: #fff6e8;
  border: 1px solid #a15c12;
  border-radius: 12px;
}

#stc-quiz .stc-quiz__alert:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

#stc-quiz form {
  margin: 0;
}

#stc-quiz .stc-quiz__field {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
}

#stc-quiz .stc-quiz__field label {
  color: #4e1019;
  font-weight: 800;
  line-height: 1.3;
}

#stc-quiz .stc-quiz__check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  margin: 0 0 10px;
  color: #1b0f13;
  font-weight: 650;
  line-height: 1.35;
}

#stc-quiz .stc-quiz__check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

#stc-quiz input[type="text"],
#stc-quiz input[type="email"],
#stc-quiz input[type="url"],
#stc-quiz input[type="password"] {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  color: #1b0f13;
  background: #fff;
  border: 1px solid rgba(122, 31, 46, .28);
  border-radius: 12px;
  font: inherit;
}

#stc-quiz fieldset {
  min-width: 0;
  margin: 0 0 12px;
  padding: 12px 12px 14px;
  background: #fff;
  border: 1px solid rgba(122, 31, 46, .22);
  border-radius: 16px;
}

#stc-quiz legend {
  padding: 0 6px;
  color: #4e1019;
  font-weight: 800;
  line-height: 1.35;
}

#stc-quiz .stc-quiz__choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 8px 0 0;
  padding: 8px 12px;
  color: #1b0f13;
  background: #fff;
  border: 1px solid rgba(122, 31, 46, .28);
  border-radius: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

#stc-quiz .stc-quiz__choice span {
  flex: 1 1 auto;
  padding: 6px 0;
}

#stc-quiz .stc-quiz__choice input {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 2px solid #7a1f2e;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
}

#stc-quiz .stc-quiz__choice input:checked {
  background: #7a1f2e;
  box-shadow: inset 0 0 0 6px #fff;
}

#stc-quiz .stc-quiz__choice:hover {
  border-color: #7a1f2e;
  background: #f7f1f2;
}

#stc-quiz .stc-quiz__choice:has(input:checked) {
  background: #f3e6e8;
  border-color: #7a1f2e;
}

#stc-quiz .stc-quiz__actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

#stc-quiz button {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  color: #fff;
  background: #7a1f2e;
  border: 1px solid #4e1019;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

#stc-quiz button:hover {
  background: #4e1019;
}

#stc-quiz button:disabled,
#stc-quiz button:disabled:hover {
  background: #7a1f2e;
  opacity: .45;
  cursor: not-allowed;
}

#stc-quiz .stc-quiz__submit {
  margin-top: 4px;
}

#stc-quiz .stc-quiz__misses {
  margin: 0 0 12px;
  padding: 8px 12px 8px 1.6rem;
  color: #1b0f13;
  background: #fff;
  border-radius: 12px;
  list-style: disc;
}

#stc-quiz .stc-quiz__misses li {
  margin: .35rem 0;
  color: #1b0f13;
}

#stc-quiz .stc-quiz__cert {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 8px;
  color: #7a1f2e;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#stc-quiz .stc-quiz__cert:hover {
  color: #4e1019;
}

#stc-quiz :focus-visible {
  outline: 3px solid #7a1f2e;
  outline-offset: 2px;
}

#stc-quiz .stc-quiz__choice input:focus-visible {
  outline: none;
}

#stc-quiz .stc-quiz__choice:focus-within {
  outline: 3px solid #7a1f2e;
  outline-offset: 2px;
}

#stc-quiz input:focus-visible,
#stc-quiz button:focus-visible {
  border-color: #7a1f2e;
}

@media (min-width: 640px) {
  #stc-quiz .stc-quiz__actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (forced-colors: active) {
  #stc-quiz .stc-quiz__choice input {
    appearance: auto;
    -webkit-appearance: auto;
    forced-color-adjust: auto;
  }
}
