/**
 * Custom Form Validation Styles
 * Styles for error messages in Elementor forms
 * 
 * @author woop.design
 * @version 1.0.0
 */

/* Error field container */
.elementor-field-group.field-error {
    position: relative;
}

/* Error input styling */
.elementor-field-group .error-input {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}

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

/* Error message */
.error-message {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #dc3545;
    background-color: #fff5f5;
    border-left: 3px solid #dc3545;
    border-radius: 0.25rem;
    animation: slideDown 0.3s ease-out;
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .error-message {
        font-size: 0.8125rem;
        padding: 0.4rem 0.6rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .elementor-field-group .error-input {
        border-width: 2px !important;
    }
    
    .error-message {
        border-left-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .error-message {
        animation: none;
    }
    
    .elementor-field-group .error-input,
    .elementor-field-group .error-input:focus {
        transition: none !important;
    }
}
