/* 
 * Form Validation Styles
 * Provides styling for form validation messages and error states
 */

/* Form error container */
.form-error-container {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease-in-out;
}

/* Form group with error */
.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Individual error message */
.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Success message styling */
.form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Form input focus styles */
.form-input:focus,
.form-textarea:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

/* Animation for error messages */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle background texture for form */
.contact-form {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Improve form spacing */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Improve form label appearance */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary, #333);
}

/* Improve form input appearance */
.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    font-size: 1rem;
}

/* Textarea height */
.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit button hover effect */
.contact-form .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}