/*
============================================================================
EVALÚO — Estilos del Widget de Encuesta Embebida
============================================================================
Extraído de backend/utils/encuesta_renderer.py (ENCUESTA_CSS inline)
para eliminar <style> inline y cumplir CSP Level 3 sin 'unsafe-inline'.

Ubicación: frontend/static/css/encuesta.css
Cargado vía: <link rel="stylesheet"> inyectado por context_processor

Versión: 1.0 — 26-Feb-2026
Paleta oficial: NAVY #1B4B68, TEAL #4A8A8C, GREEN #7BC98C
============================================================================
*/

.encuesta-widget {
  border: 2px solid #4A8A8C;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  background: linear-gradient(135deg, #f0f9fa 0%, #fff 100%);
}

.encuesta-header {
  margin-bottom: 16px;
}

.encuesta-badge {
  display: inline-block;
  background: #4A8A8C;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.encuesta-titulo {
  font-size: 1.1em;
  color: #1B4B68;
  margin: 8px 0 4px;
}

.encuesta-desc {
  color: #5a6b7a;
  font-size: 14px;
  margin: 0;
}

.encuesta-pregunta {
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.encuesta-pregunta:last-of-type {
  border-bottom: none;
}

.encuesta-texto {
  font-weight: 500;
  color: #1a2a3a;
  margin-bottom: 8px;
}

.encuesta-opciones {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.encuesta-opcion {
  cursor: pointer;
}

.encuesta-opcion input[type="radio"] {
  display: none;
}

.encuesta-opcion span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #d1d9e0;
  border-radius: 8px;
  font-weight: 600;
  color: #5a6b7a;
  transition: all 0.15s ease;
}

.encuesta-opcion input:checked + span {
  background: #4A8A8C;
  border-color: #4A8A8C;
  color: #fff;
  transform: scale(1.05);
}

.encuesta-opcion:hover span {
  border-color: #4A8A8C;
  color: #4A8A8C;
}

.encuesta-label-min,
.encuesta-label-max {
  font-size: 11px;
  color: #8896a6;
  white-space: nowrap;
}

.encuesta-email-row {
  margin-top: 16px;
}

.encuesta-email {
  width: 100%;
  max-width: 300px;
  padding: 8px 12px;
  border: 1.5px solid #d1d9e0;
  border-radius: 8px;
  font-size: 14px;
}

.encuesta-email:focus {
  outline: none;
  border-color: #4A8A8C;
  box-shadow: 0 0 0 3px rgba(74, 138, 140, 0.12);
}

.encuesta-submit {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  background: #7BC98C;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.encuesta-submit:hover {
  background: #5ab86a;
  transform: translateY(-1px);
}

.encuesta-submit:disabled {
  background: #a0aec0;
  cursor: not-allowed;
  transform: none;
}

.encuesta-gracias {
  text-align: center;
  padding: 20px;
  color: #2d7a3f;
  font-weight: 600;
  font-size: 16px;
}

.encuesta-error {
  padding: 12px;
  background: #fff5f5;
  border: 1px solid #F78A8A;
  border-radius: 8px;
  color: #c53030;
  text-align: center;
  margin: 16px 0;
}