/**
 * Contact Form Styles
 * Success and error message styling
 */

/* Form Messages */
.form-messages {
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.form-messages.success {
    display: block;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-messages.error {
    display: block;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Loading State */
.contact-form2 button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Field Validation */
.contact-form2 input.error,
.contact-form2 textarea.error,
.contact-form2 select.error {
    border-color: #dc3545 !important;
}

.contact-form2 input.success,
.contact-form2 textarea.success,
.contact-form2 select.success {
    border-color: #28a745 !important;
}

/* Focus States */
.contact-form2 input:focus,
.contact-form2 textarea:focus,
.contact-form2 select:focus {
    outline: none;
    border-color: #0B59DB;
    box-shadow: 0 0 0 3px rgba(11, 89, 219, 0.1);
}

/* Button Hover Effect */
.contact-form2 .th-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 89, 219, 0.3);
    transition: all 0.3s ease;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}
