/**
 * Estilos para validación de encuesta
 * Compatible con la guía de estilo FuturLaboral
 * Solo incluye estilos específicos de validación, no duplicados de styles.css
 */

/* ===== ESTILOS DE ERROR PARA CAMPOS ===== */

/* Campos de texto con error */
.input-text-inline.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background-color: #fff5f5 !important;
}

.input-text-inline.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Radio buttons con error */
.radio-option.error input[type="radio"] + .radio-custom {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.radio-option.error input[type="radio"]:checked + .radio-custom {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.radio-option.error input[type="radio"]:checked + .radio-custom::after {
    background-color: white !important;
}

.radio-option.error {
    background-color: #fff5f5 !important;
    border: 1px solid #f5c6cb !important;
}

/* ===== MENSAJES DE ERROR ===== */

/* Mensajes de error de campo individual */
.field-error {
    color: #dc3545 !important;
    font-size: 0.875rem !important;
    margin-top: 5px !important;
    display: block !important;
    font-weight: 500 !important;
}

/* Contenedor de errores del formulario */
.form-errors {
    background-color: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
    padding: 15px !important;
    border-radius: 6px !important;
    margin-bottom: 20px !important;
    animation: slideDown 0.3s ease-out !important;
}

.form-errors h4 {
    margin: 0 0 10px 0 !important;
    color: #721c24 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.form-errors ul {
    margin: 0 !important;
    padding-left: 20px !important;
}

.form-errors li {
    margin-bottom: 5px !important;
    color: #721c24 !important;
}

/* ===== ANIMACIONES ===== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== POSICIONAMIENTO DE ERRORES ===== */

/* Posicionamiento específico para errores en radio groups */
.radio-group {
    position: relative !important;
}

.radio-group .field-error {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -25px !important;
    z-index: 10 !important;
    background-color: white !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #f5c6cb !important;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .field-error {
        position: static !important;
        margin-top: 5px !important;
    }
}
