/* Site styles, part 2 of 3: the quiz dialog. */
/* Focused consultation flow */
.quiz-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  margin: 0;
  color: var(--ink);
  background: #f1f4f4;
  overscroll-behavior: contain;
}
.quiz-dialog::backdrop {
  background: #1d2e32cc;
}
.quiz-page {
  min-height: 100dvh;
}
.quiz-header {
  height: 88px;
  background: var(--paper);
  border-bottom: 1px solid #dfe6e7;
}
.quiz-header-inner {
  height: 100%;
  max-width: 1280px;
  width: calc(100% - 80px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.quiz-brand {
  width: 178px;
}
.quiz-header-title {
  font-size: 15px;
  color: var(--muted);
  margin-left: -30px;
}
.quiz-exit {
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 14px;
  min-height: 44px;
  min-width: 74px;
  padding: 7px 0 7px 12px;
  color: var(--muted);
}
.quiz-exit:hover {
  color: var(--ink);
}
.quiz-exit .icon {
  width: 20px;
  height: 20px;
}
.quiz-workspace {
  max-width: 810px;
  width: calc(100% - 64px);
  margin: 30px auto 0;
  padding-bottom: 20px;
}
.quiz-navigation {
  margin: 0 16px 25px;
}
.quiz-card {
  padding: 37px 42px 24px;
  border: 1px solid #dce5e6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 30px #1d2e3210;
}
.quiz-content {
  width: 100%;
}
.quiz-form {
  margin: 0;
}
.question-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.question-fieldset legend {
  display: table;
  width: 100%;
  padding: 0;
}
.quiz-question {
  font-size: 33px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 660px;
}
.quiz-question:focus,
.result-title:focus {
  outline: none;
}
.question-hint {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 13px;
  max-width: 620px;
}
.question-body {
  min-height: 405px;
}
.quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 27px;
}
.quiz-options.option-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.quiz-option {
  position: relative;
  border: 1px solid #d9e2e3;
  border-radius: 10px;
  min-height: 61px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  cursor: pointer;
}
.quiz-option:hover {
  background: #f1f5f5;
  border-color: #708c91;
}
.quiz-option:has(input:checked) {
  background: #e9eff0;
  border-color: #35585b;
  box-shadow: inset 0 0 0 1px #35585b;
}
.quiz-option:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.quiz-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.option-grid .quiz-option {
  min-height: 133px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 13px;
  padding: 23px 21px;
  align-content: center;
}
.option-icon {
  width: 28px;
  height: 28px;
  color: #35585b;
}
.option-text {
  display: block;
  flex: 1;
  min-width: 0;
}
.option-label {
  display: block;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  padding-right: 27px;
}
.option-description {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 5px;
  padding-right: 15px;
}
.option-grid .option-text {
  grid-column: 1 / -1;
}
.option-grid .option-label {
  font-size: 16px;
}
.option-grid .option-description {
  font-size: 12px;
}
.radio-indicator {
  position: absolute;
  right: 20px;
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #788e93;
  background: #fff;
  display: grid;
  place-items: center;
}
.option-grid .radio-indicator {
  top: 24px;
}
.radio-indicator:after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  transform: scale(0);
}
.quiz-option:has(input:checked) .radio-indicator {
  background: var(--ink);
  border-color: var(--ink);
}
.quiz-option:has(input:checked) .radio-indicator:after {
  transform: scale(1);
}
.form-error {
  color: #a33b2c;
  font-size: 13px;
  min-height: 24px;
  line-height: 1.6;
  padding-top: 5px;
}
.quiz-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-top: 21px;
  border-top: 1px solid #e2e9e9;
  margin-top: 6px;
  min-height: 75px;
}
.quiz-controls .button {
  font-size: 14px;
  min-height: 52px;
  min-width: 176px;
  justify-content: space-between;
  padding-inline: 22px;
  gap: 25px;
}
.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}
.quiz-back:hover {
  color: var(--ink);
}
.quiz-back .icon {
  width: 18px;
  height: 18px;
}
.quiz-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 17px 0;
  color: #5e7175;
  font-size: 12px;
  line-height: 1.5;
}
.quiz-bottom > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.quiz-bottom .icon {
  width: 14px;
  height: 14px;
}
.quiz-bottom .plain-button {
  font-size: 12px;
  color: #5e7175;
  white-space: nowrap;
  flex-shrink: 0;
}
.edit-notice {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.result-kicker {
  font-size: 13px;
  font-weight: 500;
  color: #35585b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}
.result-kicker .icon {
  width: 17px;
  height: 17px;
}
.result-title {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.result-intro {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 14px;
  max-width: 620px;
}
.result-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 19px;
  list-style: none;
  padding: 0;
}
.result-focus li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #53676b;
}
.result-focus .icon {
  width: 14px;
  height: 14px;
}
.review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.review-heading h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.answer-summary {
  margin: 0;
}
.result-next {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.result-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 19px;
  flex-wrap: wrap;
}
.result-actions .button {
  min-height: 52px;
  font-size: 14px;
  gap: 18px;
}
.result-transfer {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 13px;
}
.result-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 13px;
}
.result-secondary > a {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--muted);
}
.result-secondary .plain-button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.result-secondary .icon {
  width: 15px;
  height: 15px;
}
.brief-status {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 10px;
}
.brief-status:empty {
  display: none;
}
.toast {
  display: none;
}
.quiz-tap-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
/* A tap on an answer moves on, so the button shows only for keyboard focus. */
.quiz-controls .button.quiet-submit:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
