* { box-sizing: border-box; }
body { margin: 0; background: #f4f7f8; color: #23352a; font: 16px/1.5 Arial, sans-serif; }
header { background: #14532d; color: white; padding: 28px max(16px, calc((100% - 760px) / 2)); }
header a { color: white; }
h1 { font-size: 1.65rem; }
h2 { color: #14532d; font-size: 1.25rem; }
main { max-width: 800px; margin: auto; padding: 16px 16px 48px; }
section { background: white; padding: 22px; border-radius: 14px; margin-bottom: 18px; }
label { display: block; margin-top: 16px; font-weight: 600; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { width: 100%; padding: 12px; margin-top: 6px; border: 1px solid #8a9b91; border-radius: 8px; font: inherit; background: white; color: inherit; }
textarea { resize: vertical; }
fieldset { margin: 18px 0; padding: 14px; border: 1px solid #d5dfd9; border-radius: 10px; min-width: 0; }
legend { font-weight: 600; padding: 0 4px; }
.rating-options { display: flex; gap: 8px; }
.rating-options label:last-child { flex: 2; font-size: .8rem; }
.rating-options label { flex: 1; margin: 0; text-align: center; position: relative; }
.rating-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-options span { display: block; padding: 10px 0; border: 1px solid #8a9b91; border-radius: 8px; cursor: pointer; }
.rating-options input:checked + span { background: #14532d; color: white; border-color: #14532d; }
.rating-options input:focus-visible + span, :focus-visible { outline: 3px solid #c59800; outline-offset: 3px; }
.consentimento { display: flex; gap: 10px; font-weight: normal; }
.consentimento input { flex-shrink: 0; width: 20px; height: 20px; }
button { min-height: 48px; background: #14532d; color: white; border: 0; border-radius: 8px; padding: 12px 24px; font: inherit; font-weight: bold; cursor: pointer; margin-top: 24px; width: 100%; }
button:disabled { opacity: .6; cursor: wait; }
main a { color: #14532d; }
#avaliacaoStatus:not(:empty) { padding: 16px; background: white; border-left: 4px solid #14532d; border-radius: 6px; }
#avaliacaoStatus[role="alert"] { color: #991b1b; border-color: #991b1b; }
[hidden] { display: none !important; }
#respostasCopiaAvaliacao p { white-space: pre-wrap; overflow-wrap: anywhere; }
@media print {
    @page { size: A4; margin: 15mm; }
    body { background: white; color: black; }
    header, #avaliacaoStatus, #avaliacaoEventoForm, .copia-instrucoes, #salvarCopiaAvaliacao { display: none !important; }
    main { max-width: none; padding: 0; }
    #copiaAvaliacao { padding: 0; margin: 0; }
    #respostasCopiaAvaliacao p { break-inside: avoid; }
}
@media (max-width: 400px) { section { padding: 14px; } .rating-options { gap: 5px; } }
