/* Professional Contact Form Styles */
.contact-form-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.contact-form-wrapper h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.contact-form-wrapper h4:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 2px;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: #ffffff;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
}

.text-danger {
    color: #dc3545 !important;
}

.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: none;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.alert .btn-close {
    background: none;
    border: none;
    font-size: 18px;
    opacity: 0.7;
}

.alert .btn-close:hover {
    opacity: 1;
}

.ttm-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ttm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-note {
    font-style: italic;
    color: #6c757d;
}

.form-note i {
    margin-right: 5px;
    color: #007bff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 20px;
        margin-top: 30px;
    }
    
    .contact-form-wrapper h4 {
        font-size: 20px;
    }
}

/* Animation for form submission */
.contact-form.submitting {
    opacity: 0.7;
    pointer-events: none;
}

.contact-form.submitting .ttm-btn {
    background-color: #6c757d !important;
    cursor: not-allowed;
}

/* Loading spinner for form submission */
.btn-loading {
    position: relative;
}

.btn-loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}