:root {
  color-scheme: light;
  --brand: #7f251c;
  --ink: #3d3331;
  --muted: #776b67;
  --line: #e8e1dd;
  --wash: #fbf2ef;
  font-family: Acrom, Arial, sans-serif;
  color: var(--ink);
  background: #f5f3f0;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.5; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--brand); text-underline-offset: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px;
}
.test-notice { max-width: 500px; padding: 14px 20px; margin: 0 auto; color: #745f57; font-size: 12px; }
.page { width: min(100% - 32px, 460px); margin: 4px auto 36px; background: white; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.brand { display: flex; justify-content: center; padding: 20px; }
.brand-logo { width: 166px; height: 89px; }
.intro { padding: 26px; background: var(--wash); }
.eyebrow { color: var(--brand); font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; margin: 0 0 10px; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.7px; font-weight: 500; margin: 0 0 13px; color: var(--brand); }
.intro p:last-child { font-size: 13px; line-height: 1.65; color: #775a54; margin: 0; }
form { padding: 24px 26px; }
.required-note { margin: 0 0 18px; font-size: 11px; color: var(--muted); }
.required { color: var(--brand); }
.field { display: block; margin-bottom: 19px; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
#counter { font-size: 10px; color: var(--muted); white-space: nowrap; }
input[type="text"], textarea { display: block; width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 16px; }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8b817d; }
.hint { display: block; font-size: 11px; line-height: 1.6; color: var(--muted); margin: 6px 0 0; }
.anonymous { padding: 13px; border: 1px solid #eddfda; border-radius: 10px; background: #fcf6f4; margin-bottom: 19px; }
.anonymous .check { font-size: 13px; font-weight: 600; }
.anonymous .hint { margin-left: 28px; }
.check { display: flex; align-items: flex-start; gap: 10px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 18px; accent-color: var(--brand); }
.is-anonymous { opacity: .55; }
input:disabled { background: #f2f1ef; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; }
.consent { font-size: 11px; color: var(--muted); min-width: 0; flex: 1; }
.privacy-button { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #eadbd6; background: white; border-radius: 50%; display: grid; place-items: center; color: var(--brand); }
.privacy-button svg { width: 17px; height: 19px; }
.submit { width: 100%; min-height: 49px; border: 0; border-radius: 10px; background: var(--brand); color: white; font-size: 14px; font-weight: 600; padding: 12px; }
.submit span { margin-left: 12px; }
.submit:hover { background: #682017; }
.submit:disabled { opacity: .65; cursor: wait; }
.error { padding: 12px; background: #fff2ed; border-left: 3px solid var(--brand); font-size: 13px; overflow-wrap: anywhere; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#captcha { min-height: 100px; margin-bottom: 14px; }
.attach-button { width: 100%; min-height: 60px; color: var(--brand); background: #fdfaf9; border: 1px dashed #cdaea7; border-radius: 10px; font-size: 13px; font-weight: 600; }
#file-list { list-style: none; padding: 0; margin: 8px 0; }
#file-list li { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; margin-top: 6px; }
#file-list span { flex: 1; overflow-wrap: anywhere; }
#file-list button { min-height: 32px; border: 0; background: transparent; color: var(--brand); }
.upload-progress { color: var(--brand) !important; font-size: 12px !important; }
footer { text-align: center; background: #fdfbf9; border-top: 1px solid #f0e9e6; padding: 18px; font-size: 10px; line-height: 1.8; color: #8b7c77; }
.success { text-align: center; padding: 40px 26px; }
.tick { display: grid; place-items: center; border-radius: 50%; width: 60px; height: 60px; background: var(--wash); color: var(--brand); font-size: 27px; margin: 0 auto 20px; }
.success p { font-size: 13px; color: var(--muted); }
.number { display: inline-block; border: 1px solid var(--line); padding: 9px 14px; border-radius: 8px; }
.test-result { font-size: 11px !important; }
dialog { max-width: min(440px, 100% - 32px); border: 1px solid var(--line); border-radius: 16px; padding: 24px; color: var(--ink); }
dialog::backdrop { background: #3d292566; }
dialog h2 { font-size: 20px; margin: 0 0 14px; }
dialog p { font-size: 13px; line-height: 1.7; }
@media (max-width: 370px) { .intro, form { padding-left: 19px; padding-right: 19px; } h1 { font-size: 25px; } }
