* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #24313e; font-family: "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, "Hiragino Sans GB", "Heiti SC", Arial, "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; line-height: 1.6; }
button, input, textarea { font: inherit; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
button, .type-grid label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.report-page { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 48px; }


header { text-align: center; margin: 8px 0 26px; }
h1 { margin: 0 0 12px; font-size: 24px; font-weight: 750; }
header p { margin: 0; color: #8294a4; font-size: 14px; }
.report-card { padding: 28px 32px; background: #fff; border: 1px solid #dce9ec; border-radius: 16px; box-shadow: 0 14px 50px #24313e04; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend, .field-title { font-size: 14px; font-weight: 700; }
legend { padding: 0; margin-bottom: 14px; }
.required { color: #df6565; }
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.type-grid label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border: 1.5px solid #dce8ed; border-radius: 12px; cursor: pointer; font-size: 14px; }
.type-grid label:has(input:checked) { color: #586cea; border-color: #586cea; background: #eef1fc; }
.type-grid label:hover { border-color: #586cea; }
.type-grid input { margin: 0; width: 15px; height: 15px; accent-color: #586cea; flex-shrink: 0; }
.form-field { margin-top: 26px; }
.field-title { display: block; }
.form-field p { margin: 8px 0 12px; font-size: 12px; color: #899baa; }
textarea, #contact { display: block; width: 100%; border: 1.5px solid #d8e7ed; border-radius: 13px; background: #fff; padding: 12px 15px; font-size: 16px; color: #24313e; }
textarea { min-height: 160px; resize: vertical; }
textarea::placeholder, #contact::placeholder { color: #7d898f; }
.counter { text-align: right; margin-top: 7px; color: #899baa; font-size: 12px; }
.submit-button { display: block; width: 100%; margin-top: 24px; padding: 12px; border: 0; border-radius: 999px; background: #586cea; color: white; font-size: 14px; font-weight: 700; cursor: pointer; }
.submit-button:hover { background: #4658ce; }
.submit-button:focus { outline: none; box-shadow: none; }
.submit-button:focus-visible { background: #4658ce; }
:focus-visible { outline: 3px solid #586cea; outline-offset: 4px; }
textarea:focus, #contact:focus { border-color: #d8e7ed; outline: none; box-shadow: none; }
dialog { width: min(400px, calc(100% - 36px)); max-height: calc(100dvh - 40px); padding: 42px 28px 34px; border: 0; border-radius: 16px; color: #303534; text-align: center; background: #fff; box-shadow: 0 20px 80px #182a3c26; }
dialog::backdrop { background: #19283766; }
.success-heading { display: flex; align-items: center; justify-content: center; gap: 12px; }
.success-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; }
dialog h2 { margin: 0; font-size: 30px; line-height: 1.3; font-weight: 400; }
dialog p { margin: 24px 0 0; font-size: 14px; line-height: 1.8; color: #303534; }

dialog .submit-button { margin-top: 28px; min-height: 44px; padding: 10px; font-size: 14px; font-weight: 500; }
@media (max-width: 760px) {
  .report-page { width: calc(100% - 28px); padding-top: 20px; }
  header { margin: 22px 0 26px; }
  header p { font-size: 14px; }
  .report-card { padding: 22px 18px; border-radius: 20px; }
  legend, .field-title { font-size: 14px; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .type-grid label { font-size: 14px; padding: 10px 6px; gap: 7px; }
  .form-field { margin-top: 22px; }
  .form-field p { font-size: 14px; }
  textarea, #contact { font-size: 16px; padding: 12px; }
  textarea { min-height: 140px; }
  .counter { font-size: 14px; }
  .submit-button { margin-top: 22px; font-size: 14px; padding: 12px; }
  dialog { width: min(340px, calc(100% - 40px)); padding: 32px 22px 26px; }
  .success-heading { gap: 10px; }
  .success-icon { width: 40px; height: 40px; }
  dialog h2 { font-size: 28px; }
  dialog p { font-size: 13px; margin-top: 20px; overflow-wrap: anywhere; }
  dialog .submit-button { margin-top: 24px; }
}
