:root {
    color-scheme: dark;
    --page: #09090b;
    --panel: #151518;
    --field: #222226;
    --text: #fafafa;
    --muted: #c6c6ce;
    --accent: #ff848c;
    --action: #bb1734;
    --edge: #82828d;
    --focus: #ffcf71;
}
* { box-sizing: border-box; }
body {
    margin: 0; padding: 38px 16px; background: var(--page); color: var(--text);
    font: 17px/1.55 "Segoe UI", Arial, sans-serif;
}
.container, .obrigado {
    max-width: 780px; margin: auto; padding: clamp(18px,5vw,52px);
    background: var(--panel); border: 1px solid var(--field); border-radius: 20px;
}
.header, .obrigado { text-align: center; }
.header img,.logo { display: block; width: 200px; max-width: 70%; margin: 0 auto 16px; }
.header h1 { margin: 0; font-size: clamp(28px,5vw,40px); line-height: 1.13; }
.header p,.catalogo span,.instrucao,.catalogo p { color: var(--muted); }
.header p { margin: 12px 0 24px; }
a { color: var(--accent); }
:focus-visible,.rating input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }
button,.opcao-acesso,.btn-voltar {
    border: 0; border-radius: 9px; background: var(--action); color: #fff;
    padding: 14px 22px; font: inherit; font-weight: 700; text-align: center; cursor: pointer; text-decoration: none;
}
button:hover,.opcao-acesso:hover,.btn-voltar:hover { filter: brightness(.92); }
button[type=submit] { width: 100%; }
.btn-voltar { display: inline-block; }
.opcoes-acesso { display: flex; gap: 12px; }
.opcao-acesso { flex: 1; }
.acesso-admin { text-align: center; margin: 26px 0 0; }
.catalogo { padding: 0; list-style: none; margin: 32px 0; }
.catalogo li { padding: 18px 0; border-top: 1px solid var(--edge); }
.catalogo h2,.catalogo p { margin: 4px 0; }
.catalogo span,.instrucao { font-size: .92rem; }
.question { padding: 0; border: 0; margin: 0 0 28px; min-width: 0; }
.question > label,.question legend { display: block; font-weight: 650; margin: 0 0 9px; padding: 0; }
input[type=text],input[type=email],textarea {
    display: block; width: 100%; border: 1px solid var(--edge); border-radius: 8px;
    padding: 12px 14px; background: var(--field); color: var(--text); font: inherit;
}
textarea { resize: vertical; }
.question .radio-option { display: flex; align-items: center; gap: 8px; font-weight: 400; min-height: 34px; cursor: pointer; }
.radio-option input { width: 18px; height: 18px; accent-color: var(--action); }
.rating { display: inline-flex; gap: 2px; position: relative; }
.rating input,.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.rating label {
    display: grid; place-items: center; border: 2px solid transparent; border-radius: 6px;
    color: var(--muted); font-size: clamp(24px,7vw,34px); width: clamp(36px,9vw,48px); height: 48px; cursor: pointer;
}
.rating label:has(~ input:checked),.rating input:checked + label { color: var(--accent); }
.rating input:checked + label { border-color: currentColor; }
.tema { display: block; width: fit-content; margin: 0 auto 24px; background: transparent; border: 1px solid var(--edge); color: var(--text); font-size: 14px; padding: 8px 15px; }
[hidden] { display: none !important; }
.tema-claro {
    color-scheme: light; --page: #edf3f4; --panel: #ffffff; --field: #f5f8f9;
    --text: #162c36; --muted: #405661; --accent: #075368; --action: #075368; --edge: #667b83; --focus: #803d00;
}
@media (max-width: 550px) {
    body { padding: 12px 8px; }
    .opcoes-acesso { flex-direction: column; }
}
