.mq-condition-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px;
  border: 0;
}

.mq-condition-question legend {
  float: left;
  max-width: calc(100% - 150px);
  padding: 0;
  font-weight: 750;
}

.mq-condition-question legend b {
  color: #b42318;
}

.mq-condition-options {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.mq-condition-options label {
  cursor: pointer;
}

.mq-condition-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mq-condition-options span {
  display: block;
  min-width: 58px;
  padding: 8px 12px;
  border: 1px solid #cfc3ae;
  border-radius: 9px;
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.mq-condition-options input:checked + span {
  border-color: #a67c24;
  background: #a67c24;
  color: #fff;
}

.mq-condition-options input:focus-visible + span {
  outline: 3px solid #d9b866;
  outline-offset: 2px;
}

.mq-condition-section-intro {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid #a67c24;
  background: #f3eee4;
  font-weight: 800;
}

@media (max-width: 760px) {
  .mq-condition-question {
    align-items: flex-start;
    flex-direction: column;
  }

  .mq-condition-question legend {
    max-width: 100%;
  }
}

.mq-history-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mq-history-result {
  padding: 12px;
  border: 1px solid #e1d6c3;
  border-left: 4px solid #8b8171;
  border-radius: 10px;
  background: #fff;
}

.mq-history-result.yes {
  border-left-color: #a67c24;
  background: #fffaf0;
}

.mq-history-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mq-history-result-head span {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eee8dc;
  text-align: center;
  font-weight: 800;
}

.mq-history-result.yes .mq-history-result-head span {
  background: #a67c24;
  color: #fff;
}

.mq-history-result p {
  margin: 7px 0 0;
}

@media print {
  .mq-report-page .mq-history-result {
    break-inside: avoid-page;
  }
}

.mq-report-declaration {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #d8cdb9;
  border-left: 4px solid #a67c24;
  border-radius: 12px;
  background: #f3eee4;
}

.mq-report-declaration h3 {
  margin-top: 0;
}

.mq-report-declaration p {
  margin: 8px 0;
}

@media print {
  .mq-report-page .mq-report-declaration {
    break-inside: avoid-page;
    background: #f3eee4 !important;
  }
}
