:root {
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: #142439;
  background: #edf3fa;
  accent-color: #175cb5;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(155deg, #daeafa, #f3f7fc 520px); }
[hidden] { display: none !important; }
.form-panel {
  width: min(760px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(22px, 6vw, 58px);
  border-top: 6px solid #175cb5;
  background: #fff;
  box-shadow: 0 6px 32px #234d7314;
}
header { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid #d9e2ef; }
h1 { margin: 0 0 12px; white-space: pre-line; font-size: clamp(25px, 5vw, 34px); line-height: 1.3; }
p { line-height: 1.55; margin: 0; color: #50657e; }
fieldset { border: 0; min-width: 0; padding: 0; margin: 0 0 28px; }
legend { font-size: 17px; font-weight: 650; padding: 0; margin: 0 0 8px; }
.required { color: #a72b29; padding-left: 4px; }
.description { font-size: 14px; margin: 0 0 9px; }
.choices { display: grid; gap: 7px; }
.choices.with-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { min-width: 0; display: flex; flex-direction: column; }
.choice-label {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 7px;
  min-height: 42px; height: 100%; padding: 9px 11px;
  background: #f5f8fc; border: 1px solid #d4e1ef; border-radius: 8px; cursor: pointer;
}
.choice-label:has(:checked) { border-color: #175cb5; background: #e7f1ff; }
.choice-label:hover { border-color: #6196d1; }
.choice-caption { display: flex; align-items: baseline; gap: 8px; white-space: pre-wrap; }
.choice-caption input { flex: none; margin: 0; }
.choice-label img { width: 100%; height: 124px; object-fit: contain; margin-top: auto; }
textarea, input.answer {
  display: block; width: 100%; min-height: 42px; font: inherit; color: inherit;
  padding: 9px 11px; border: 1px solid #b6c8dc; border-radius: 7px; background: #fff;
}
textarea { resize: vertical; }
textarea.supplement { margin-top: 6px; }
:focus-visible { outline: 2px solid #175cb5; outline-offset: 2px; }
button {
  border: 0; border-radius: 8px; padding: 11px 28px; background: #175cb5;
  color: #fff; font: inherit; font-weight: 650; cursor: pointer;
}
button:disabled { opacity: .64; cursor: wait; }
#message { margin-top: 9px; color: #a72b29; }
#success a { color: #175cb5; }
@media (max-width: 480px) {
  .form-panel { width: 100%; }
  .choice-label img { height: 92px; }
}
