/* The teachers' survey (/encuesta). Same card language as My hours. */
.survey-form { display: grid; gap: 18px; max-width: 980px; }
.survey-anonymity { margin: 0; padding: 14px 18px; border-radius: var(--radius-control); background: var(--brand-yellow-soft); border: 1px solid var(--accent-orange); font-weight: 700; }
.survey-section { display: grid; gap: 18px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.survey-section h3 { margin: 0; }
.survey-question { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.survey-question legend, .survey-question > label { padding: 0; font-weight: 800; }
.survey-question small { color: var(--muted); font-weight: 600; }
.survey-help { margin: 0; color: var(--muted); }
.survey-question textarea { width: 100%; min-height: 84px; resize: vertical; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: inherit; }

.survey-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.survey-scale-end { color: var(--muted); font-size: 0.9rem; }
.survey-scale-points { display: flex; gap: 8px; }
.survey-scale-point { position: relative; cursor: pointer; }
.survey-scale-point input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.survey-scale-point span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; font-weight: 800; background: var(--surface); }
.survey-scale-point input:checked + span { background: var(--brand-cyan-strong); border-color: var(--brand-cyan-strong); color: #fff; }
.survey-scale-point input:focus-visible + span { outline: 3px solid var(--brand-cyan-strong); outline-offset: 2px; }

.survey-choices, .survey-tool-options { display: flex; flex-wrap: wrap; gap: 8px; }
.survey-choice { display: inline-flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); cursor: pointer; background: var(--surface); }
.survey-choice input { margin: 3px 0 0; }
.survey-choice:has(input:checked) { border-color: var(--brand-cyan-strong); box-shadow: inset 0 0 0 1px var(--brand-cyan-strong); }
.survey-consent .survey-choice { font-weight: 700; }

.survey-tools { display: grid; gap: 4px; }
.survey-tool { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: center; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.survey-tool:first-child { border-top: 0; }
.survey-tool-name { font-weight: 700; }
.survey-tool-options { flex-wrap: nowrap; }
.survey-tool .survey-choice { padding: 6px 10px; font-size: 0.92rem; }

.survey-error { margin: 0; padding: 10px 14px; border-radius: 16px; background: var(--accent-coral-soft); color: #a73c2f; font-weight: 700; }
.survey-form > .button { justify-self: start; }
.survey-done { display: grid; gap: 8px; max-width: 640px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.survey-done h3, .survey-done p { margin: 0; }

@media (max-width: 760px) {
  .survey-tool { grid-template-columns: 1fr; }
  .survey-tool-options { flex-wrap: wrap; }
  .survey-scale-point span { width: 40px; height: 40px; }
}
