/* The web report form, as drawn in the website design file (frames RF-01 to RF-07). */
@font-face { font-family: "Mulish"; src: url("Mulish.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Paytone One"; src: url("PaytoneOne.ttf") format("truetype"); font-display: swap; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #F7F7F8; color: #1A1918; font: 15px/1.4 Mulish, system-ui, sans-serif; }
.top { background: #FFA000; height: 56px; display: flex; align-items: center; padding: 0 20px; }
.brand { color: #FFFFFF; font: 20px "Paytone One", system-ui, sans-serif; }
main { padding: 24px 16px 32px; }
.card { background: #FFFFFF; border-radius: 12px; padding: 24px; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
h1 { margin: 0; font-size: 26px; font-weight: 800; }
p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.locks { display: flex; flex-direction: column; gap: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kinds { display: flex; flex-direction: column; gap: 8px; }
.kind { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #8A8886; border-radius: 10px; cursor: pointer; }
.kind input { appearance: none; width: 18px; height: 18px; margin: 0; flex: none; border: 2px solid #55575A; border-radius: 50%; }
.kind input:checked { border-color: #8A5600; background: radial-gradient(circle, #8A5600 0 3px, transparent 4px); }
.kind:has(input:checked) { background: #FFF3E0; border-color: #C77700; }
.field { display: flex; flex-direction: column; gap: 6px; }
label, .label { font-size: 14px; font-weight: 700; }
/* Only the chosen kind is bold. */
label.kind { font-size: 15px; font-weight: 400; }
label.kind:has(input:checked) { font-weight: 700; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.counter, .hint { color: #6D6C6A; font-size: 12px; }
input[type=text], select, textarea { width: 100%; font: inherit; color: inherit; background: #FFFFFF; border: 1px solid #8A8886; border-radius: 10px; padding: 10px 12px; min-height: 44px; }
textarea { min-height: 96px; resize: vertical; }
:focus-visible { outline: 2px solid #8A5600; outline-offset: 2px; }
[aria-invalid=true] { border-color: #B3261E !important; }
.error { color: #B3261E; font-size: 13px; }
.banner { background: #FCEEEE; color: #8C1D18; font-weight: 700; border-radius: 10px; padding: 12px 14px; }
.search { position: relative; }
.search input { padding-right: 40px; }
.search-icon { position: absolute; right: 12px; top: 14px; width: 16px; height: 16px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#quest-results { list-style: none; margin: 0; padding: 0; border: 1px solid #8A8886; border-radius: 10px; max-height: 280px; overflow-y: auto; }
#quest-results li { padding: 12px 14px; min-height: 44px; border-top: 1px solid #E5E4E1; cursor: pointer; overflow-wrap: anywhere; }
#quest-results li:first-child { border-top: 0; }
#quest-results li:hover, #quest-results li[aria-selected=true] { background: #FFF3E0; }
#quest-results li.manual { color: #8A5600; font-weight: 700; }
#files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#files:empty { display: none; }
.file { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid #E5E4E1; border-radius: 10px; }
.file.refused { border-color: #B3261E; }
.preview { width: 48px; height: 48px; flex: none; border-radius: 6px; background: #D9E2E8; display: grid; place-items: center; }
.preview svg { width: 20px; height: 20px; }
.details { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; overflow-wrap: anywhere; }
.details progress { height: 4px; }
.remove { flex: none; width: 44px; height: 44px; border: 0; background: none; color: #55575A; cursor: pointer; display: grid; place-items: center; }
.remove svg { width: 18px; height: 18px; }
button { font: inherit; }
.outline { align-self: flex-start; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: #FFFFFF; color: #8A5600; border: 1px solid #8A5600; border-radius: 10px; font-weight: 700; cursor: pointer; }
.outline svg { width: 16px; height: 16px; }
.primary { height: 44px; padding: 0 24px; background: #FFA000; color: #FFFFFF; border: 0; border-radius: 12px; font-weight: 700; cursor: pointer; }
button:disabled { cursor: default; }
.note { display: flex; gap: 10px; background: #F5F4F1; border-radius: 10px; padding: 12px; font-size: 13px; }
.note svg { width: 18px; height: 18px; flex: none; color: #55575A; }
.progress { background: #FFF3E0; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.progress p:first-child { font-weight: 700; font-size: 13px; }
progress { appearance: none; width: 100%; height: 6px; border: 0; border-radius: 3px; background: #E5E4E1; overflow: hidden; }
progress::-webkit-progress-bar { background: #E5E4E1; }
progress::-webkit-progress-value { background: #C77700; }
progress::-moz-progress-bar { background: #C77700; }
/* While the report travels, what was sent is shown but cannot change. */
.locks:disabled, form.sending .note, form.sending #files { opacity: .55; }
form.sending .outline, form.sending #send { display: none; }
.outcome { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.outcome > svg { width: 22px; height: 22px; flex: none; color: #2E5E0E; }
.outcome > #outcome-bad { color: #8C1D18; }
.outcome p { flex: 1; min-width: 0; }
.outcome .primary { margin-left: 34px; flex-basis: auto; }
.outcome .primary { order: 3; }
.outcome:has(#try-again:not([hidden])) p { flex-basis: calc(100% - 40px); }

@media (max-width: 480px) {
  main { padding: 0; }
  .card { border-radius: 0; padding: 16px; }
}
