/* Liên hệ Section Specific Styles */

/* Contact Cards Animation */
.contact-info .card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-info .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.contact-info .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    transition: left 0.5s ease;
}

.contact-info .card:hover::before {
    left: 0;
}

/* Contact Form Styling */
.contact-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 12px 16px;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Submit Button Animation */
.btn-submit {
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-info));
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

/* Map Section */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Quick Support Section */
.quick-support {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
    color: white;
}

.quick-support .btn-outline-primary {
    border-color: white;
    color: white;
    transition: all 0.3s ease;
}

.quick-support .btn-outline-primary:hover {
    background: white;
    border-color: white;
    color: var(--bs-primary);
    transform: translateY(-2px);
}

.quick-support .btn-primary {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: white;
    transition: all 0.3s ease;
}

.quick-support .btn-primary:hover {
    background: white;
    border-color: white;
    color: var(--bs-primary);
    transform: translateY(-2px);
}

/* Success/Error Messages */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* Contact Icons Animation */
.contact-icon {
    transition: all 0.3s ease;
}

.contact-info .card:hover .contact-icon {
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

/* Form Validation Styling */
.form-control.is-invalid {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info .card {
        margin-bottom: 1.5rem;
    }
    
    .quick-support .btn {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 10px 14px;
    }
}

@media (max-width: 576px) {
    .btn-submit {
        width: 100%;
        padding: 15px;
    }
    
    .map-container {
        border-radius: 8px;
    }
}