/**
 * Estilos para mensajes del formulario de contacto
 * Fase 3.2 - Mensajes visuales profesionales
 */

/* Contador de caracteres */
.char-counter {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

/* Alertas del formulario */
.form-alert {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-alert .alert-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-alert .alert-content i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.form-alert .alert-content span {
    flex: 1;
    line-height: 1.5;
}

/* Alerta de éxito */
.alert-success {
    background-color: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.alert-success i {
    color: #10b981;
}

/* Alerta de error */
.alert-error {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.alert-error i {
    color: #ef4444;
}

/* Animación de entrada */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .form-alert {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        margin-top: 1.25rem;
    }
    
    .form-alert .alert-content i {
        font-size: 1.25rem;
    }
    
    .form-alert .alert-content {
        gap: 0.625rem;
    }
}

/* Transición suave al desaparecer */
.form-alert {
    transition: opacity 0.5s ease;
}
