/* ===== MOBILE FOOTER OPTIMIZATION ===== */
/* Optimized footer for mobile screens to prevent zooming */

/* Base Footer Styles */
.footer {
    background: #2c3e50 !important;
    color: white !important;
    padding: 40px 0 20px !important;
    margin-top: 60px !important;
}

.footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Desktop Layout */
.footer-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
}

.footer-sections-row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 40px !important;
}

.footer-sections-row .footer-section {
    flex: 1 !important;
    text-align: left !important;
}

.footer-section h3 {
    color: #FF6B6B !important;
    margin-bottom: 15px !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

.footer-section h4 {
    color: white !important;
    margin-bottom: 15px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.footer-section p {
    color: #ecf0f1 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.footer-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.footer-links a {
    color: #ecf0f1 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    padding: 4px 0 !important;
}

.footer-links a:hover {
    color: #FF6B6B !important;
}

.footer-contact {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    text-align: left !important;
}

.footer-contact div {
    color: #ecf0f1 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    text-align: left !important;
    justify-content: flex-start !important;
    line-height: 1.5 !important;
}

.footer-contact i {
    color: #FF6B6B !important;
    width: 18px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.footer-social {
    display: flex !important;
    justify-content: center !important;
    margin-top: 10px !important;
}

.footer-social a {
    color: #ecf0f1 !important;
    font-size: 1.5rem !important;
    transition: color 0.3s ease !important;
    padding: 8px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
}

.footer-social a:hover {
    color: #e4405f !important;
    background: rgba(228, 64, 95, 0.1) !important;
}

.footer-bottom {
    border-top: 1px solid #34495e !important;
    padding-top: 20px !important;
    text-align: center !important;
}

.footer-bottom p {
    color: #bdc3c7 !important;
    margin: 0 !important;
    font-size: 14px !important;
}

/* ===== MOBILE OPTIMIZATIONS ===== */

/* Tablet Styles */
@media (max-width: 1024px) {
    .footer-sections-row {
        gap: 30px !important;
    }
}

/* Mobile Styles - Optimized for readability without zooming */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px !important;
        margin-top: 40px !important;
    }
    
    .footer-container {
        padding: 0 15px !important;
    }
    
    /* First section - Company info (centered) */
    .footer-section:first-child {
        text-align: center !important;
        margin-bottom: 25px !important;
    }
    
    .footer-section:first-child h3 {
        font-size: 1.4rem !important;
        margin-bottom: 12px !important;
    }
    
    .footer-section:first-child p {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 0 !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Two column layout for Quick Links and Contact Info */
    .footer-sections-row {
        display: flex !important;
        justify-content: space-between !important;
        gap: 20px !important;
        margin-bottom: 25px !important;
    }
    
    .footer-sections-row .footer-section {
        flex: 1 !important;
        text-align: left !important;
    }
    
    .footer-section h4 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
        text-align: left !important;
    }
    
    .footer-links {
        text-align: left !important;
    }
    
    .footer-links a {
        display: block !important;
        text-align: left !important;
        padding: 3px 0 !important;
        font-size: 14px !important;
        min-height: 24px !important;
        line-height: 1.4 !important;
    }
    
    .footer-contact {
        text-align: left !important;
    }
    
    .footer-contact div {
        justify-content: flex-start !important;
        text-align: left !important;
        font-size: 14px !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
    }
    
    .footer-contact i {
        margin-top: 3px !important;
        width: 16px !important;
        font-size: 14px !important;
    }
    
    /* Follow Us section (centered) */
    .footer-section:nth-child(4) {
        text-align: center !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }
    
    .footer-section:nth-child(4) h4 {
        text-align: center !important;
        font-size: 1.1rem !important;
    }
    
    .footer-social {
        justify-content: center !important;
    }
    
    .footer-social a {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.4rem !important;
        margin: 0 5px !important;
    }
    
    .footer-bottom {
        padding-top: 15px !important;
    }
    
    .footer-bottom p {
        font-size: 13px !important;
    }
}

/* Extra Small Mobile Styles */
@media (max-width: 480px) {
    .footer {
        padding: 25px 0 12px !important;
    }
    
    .footer-container {
        padding: 0 12px !important;
    }
    
    .footer-section:first-child h3 {
        font-size: 1.3rem !important;
    }
    
    .footer-section:first-child p {
        font-size: 14px !important;
        max-width: 280px !important;
    }
    
    .footer-sections-row {
        gap: 15px !important;
    }
    
    .footer-section h4 {
        font-size: 1rem !important;
    }
    
    .footer-links a {
        font-size: 13px !important;
        min-height: 22px !important;
    }
    
    .footer-contact div {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    
    .footer-contact i {
        font-size: 13px !important;
        width: 15px !important;
    }
    
    .footer-social a {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.3rem !important;
    }
    
    .footer-bottom p {
        font-size: 12px !important;
    }
}

/* ===== FEEDBACK SECTION MOBILE OPTIMIZATION ===== */
.footer-feedback {
    text-align: center !important;
    padding: 25px 0 !important;
    border-top: 1px solid #34495e !important;
    margin-bottom: 20px !important;
}

.feedback-message {
    color: #bdc3c7 !important;
    font-size: 14px !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.5 !important;
}

.feedback-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #E85A4F 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
    min-height: 44px !important;
}

.feedback-btn:hover {
    background: linear-gradient(135deg, #E85A4F 0%, #D44638 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
}

.feedback-btn i {
    font-size: 16px !important;
}

@media (max-width: 768px) {
    .footer-feedback {
        padding: 20px 0 !important;
    }
    
    .feedback-message {
        font-size: 13px !important;
        margin-bottom: 12px !important;
        padding: 0 10px !important;
    }
    
    .feedback-btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
        min-height: 40px !important;
    }
    
    .feedback-btn i {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .footer-feedback {
        padding: 15px 0 !important;
    }
    
    .feedback-message {
        font-size: 12px !important;
        margin-bottom: 10px !important;
        padding: 0 8px !important;
    }
    
    .feedback-btn {
        padding: 8px 16px !important;
        font-size: 12px !important;
        min-height: 36px !important;
    }
    
    .feedback-btn i {
        font-size: 13px !important;
    }
}

/* ===== TOUCH-FRIENDLY IMPROVEMENTS ===== */
@media (max-width: 768px) {
    /* Ensure all clickable elements are touch-friendly */
    .footer-links a,
    .footer-social a,
    .feedback-btn {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255, 107, 107, 0.2) !important;
    }
    
    .footer-links a {
        justify-content: flex-start !important;
        padding: 8px 0 !important;
    }
    
    /* Better spacing for touch */
    .footer-contact div {
        padding: 4px 0 !important;
        min-height: 28px !important;
    }
    
    /* Ensure proper text contrast */
    .footer-section,
    .footer-section * {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (max-width: 768px) {
    /* Focus states for keyboard navigation */
    .footer-links a:focus,
    .footer-social a:focus,
    .feedback-btn:focus {
        outline: 2px solid #FF6B6B !important;
        outline-offset: 2px !important;
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .footer {
            background: #000 !important;
            color: #fff !important;
        }
        
        .footer-section h3,
        .footer-contact i {
            color: #fff !important;
        }
        
        .footer-links a,
        .footer-contact div,
        .footer-social a {
            color: #fff !important;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .footer-links a,
        .footer-social a,
        .feedback-btn {
            transition: none !important;
        }
        
        .feedback-btn:hover {
            transform: none !important;
        }
    }
}