/* Estilos modernos para mensajes de error de JustValidate */
.just-validate-error-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-white) !important;
    background: rgba(218, 64, 64, 0.4);
    border-left: 3px solid var(--red);
    padding: 0.25rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    animation: errorMessageSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icono de error */
.just-validate-error-label::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.form-control.just-validate-error-field {
    border-color: var(--red);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.2);
}

/* Animación suave para los mensajes de error */
@keyframes errorMessageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ajuste responsivo */
@media (max-width: 768px) {
    .just-validate-error-label {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
        margin-top: 0.375rem;
    }

    .just-validate-error-label::before {
        width: 14px;
        height: 14px;
    }

    .form-group {
        margin-bottom: 2rem;
    }
}

.phone-input-container .just-validate-error-label {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--red);
    padding: 0.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}