/* Perguntas como o paciente as vê: o portal (`#questionnaire.perguntas`) e a prévia do editor
   (`.perguntas.previa-paciente`) usam o mesmo parcial, `templates/portal/_perguntas.html`, e
   estas regras. Escopadas por `.perguntas` para não vazar para o resto do painel. */
.perguntas .question { border: 0; padding: 0; margin: 1.5rem 0; min-width: 0; }
.perguntas .question legend { width: 100%; padding: 0; font-size: 1.2rem; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.perguntas .question .number { margin-right: .25rem; color: var(--muted); font-weight: 400; }
.perguntas .question .help { margin: .5rem 0; color: var(--muted); font-size: .95rem; }
.perguntas .question-hint { margin: .55rem 0 1.2rem; color: var(--muted); font-size: .85rem; }
.perguntas .question-error { margin-bottom: 0; color: var(--danger); font-size: .9rem; font-weight: 600; }
.perguntas .question.missing legend { color: var(--danger); }
/* A linha inteira é o alvo; a borda identifica o controle (3,54:1). */
.perguntas .option { display: flex; align-items: center; gap: .9rem; min-height: 58px; margin: .65rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line-campo); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-campo); font-size: 1rem; cursor: pointer; transition: background-color .12s, border-color .12s; }
.perguntas .option:hover { background: var(--surface-subtle); }
.perguntas .option:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.perguntas .option:has(input:focus-visible) { border-color: var(--brand); box-shadow: var(--shadow-campo), var(--anel-foco); }
.perguntas .option input:focus-visible { outline: none; }
.perguntas .option input { width: 1.2rem; height: 1.2rem; flex-shrink: 0; margin: 0; accent-color: var(--brand); }
.perguntas .option span { overflow-wrap: anywhere; }
.perguntas .question input[type=number], .perguntas .question input[type=text], .perguntas .question textarea { width: 100%; padding: .9rem; border: 1px solid var(--line-campo); border-radius: var(--radius-md); box-shadow: var(--shadow-campo); font: inherit; }
@media (max-width: 520px) {
  .perguntas .question legend { font-size: 1.1rem; }
  .perguntas .option { padding: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .perguntas .option { transition: none; } }

/* Escolha com duas alternativas (Sim / Não): dois botões lado a lado. */
.perguntas .option-par { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.perguntas .option-par .option { margin: 0; justify-content: center; }
/* Slider: começa sem marcador; o valor aparece grande depois do primeiro toque. */
.perguntas .slider { display: grid; gap: .4rem; }
.perguntas .slider input[type=range] { width: 100%; min-height: 44px; accent-color: var(--brand); }
.perguntas .slider.intocado input[type=range]::-webkit-slider-thumb { opacity: 0; }
.perguntas .slider.intocado input[type=range]::-moz-range-thumb { opacity: 0; }
.perguntas .slider-valor { font-size: 2rem; font-weight: 650; text-align: center; color: var(--ink); }
.perguntas .slider.intocado .slider-valor { color: var(--muted); }
.perguntas .slider-limites { display: flex; justify-content: space-between; gap: 1rem; margin: 0; color: var(--muted); font-size: .85rem; }
.perguntas .question .campo-data { max-width: 14rem; /* largura: campo de data */ }
.perguntas .question .campo-data > input { padding-right: 2.75rem; }
.perguntas .slider.intocado input[type=range] { accent-color: var(--line); }
