/* Enhanced Contacts Section - Modern Gradient Design */

/* Main contacts section background with gradient */
#contacts {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 80px 0 !important;
    margin: 0 !important;
}

/* Add subtle overlay for better text readability */
#contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Ensure all content appears above overlay */
#contacts .container {
    position: relative;
    z-index: 2;
}

/* Section title styling */
#contacts .section-title h2 {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

#contacts .section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
}

#contacts .text-white {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

/* Contact info panel - glassmorphism style */
#contacts .contact-info {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    margin-top: 30px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Individual contact info items */
#contacts .contact-info > div {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    margin-bottom: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s ease !important;
}

#contacts .contact-info > div:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Contact info icons */
#contacts .contact-info i {
    background: linear-gradient(45deg, #ffd700, #ffed4a) !important;
    color: #333 !important;
    width: 45px !important;
    height: 45px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin-right: 15px !important;
    font-size: 18px !important;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3) !important;
}

/* Contact info text */
#contacts .contact-info span {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    vertical-align: middle !important;
}

/* Contact form - glassmorphism design */
#contacts .contact-form {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    color: #333 !important;
}

/* Form inputs styling */
#contacts .form-control {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(103, 126, 234, 0.2) !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    margin-bottom: 20px !important;
}

#contacts .form-control:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(103, 126, 234, 0.1) !important;
    outline: none !important;
}

#contacts .form-control::placeholder {
    color: #999 !important;
}

/* Submit button styling */
#contacts .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 15px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.4) !important;
    width: 100% !important;
}

#contacts .btn-primary:hover {
    background: linear-gradient(45deg, #5a6fd8, #6b42a3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(103, 126, 234, 0.5) !important;
}

#contacts .btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 3px 10px rgba(103, 126, 234, 0.4) !important;
}

/* Checkbox styling */
#contacts .form-check-input {
    border: 2px solid #667eea !important;
    border-radius: 4px !important;
    width: 20px !important;
    height: 20px !important;
}

#contacts .form-check-input:checked {
    background-color: #667eea !important;
    border-color: #667eea !important;
}

#contacts .form-check-label {
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-left: 10px !important;
}

/* Responsive design */
@media (max-width: 768px) {
    #contacts {
        padding: 60px 0 !important;
    }
    
    #contacts .section-title h2 {
        font-size: 2rem !important;
    }
    
    #contacts .contact-info,
    #contacts .contact-form {
        padding: 25px !important;
        margin-top: 20px !important;
    }
    
    #contacts .contact-info i {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        margin-right: 12px !important;
    }
    
    #contacts .contact-info span {
        font-size: 1rem !important;
    }
    
    #contacts .form-control {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    
    #contacts .btn-primary {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #contacts {
        background: #000000 !important;
    }
    
    #contacts .contact-form {
        background: #ffffff !important;
        border: 3px solid #000000 !important;
    }
    
    #contacts .form-control {
        border: 3px solid #000000 !important;
    }
    
    #contacts .btn-primary {
        background: #000000 !important;
        border: 3px solid #ffffff !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #contacts .contact-form {
        background: rgba(30, 30, 30, 0.95) !important;
        color: #ffffff !important;
    }
    
    #contacts .form-control {
        background: rgba(50, 50, 50, 0.9) !important;
        color: #ffffff !important;
        border-color: rgba(103, 126, 234, 0.3) !important;
    }
    
    #contacts .form-check-label {
        color: #cccccc !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #contacts .contact-info > div,
    #contacts .btn-primary,
    #contacts .form-control {
        transition: none !important;
    }
    
    #contacts .contact-info > div:hover,
    #contacts .btn-primary:hover {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    #contacts {
        background: white !important;
        color: black !important;
    }
    
    #contacts .contact-info,
    #contacts .contact-form {
        background: white !important;
        border: 1px solid black !important;
        box-shadow: none !important;
    }
    
    #contacts .btn-primary {
        background: #333333 !important;
        color: white !important;
    }
}

/* Force visibility and accessibility */
#contacts * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Keyboard navigation focus styles */
#contacts .form-control:focus,
#contacts .btn-primary:focus,
#contacts .form-check-input:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8) !important;
    outline-offset: 2px !important;
}
