/* Standardized Footer Styles for Hunxa Global Recruitment */

/* WhatsApp Modal */
.whatsapp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.whatsapp-modal.active {
    display: flex;
}

.whatsapp-modal-content {
    background-color: #FFFFFF;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.whatsapp-modal-header {
    background: #25D366;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-close-btn {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.whatsapp-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.whatsapp-contacts-list {
    padding: 10px;
}

.whatsapp-contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    transition: background 0.3s;
    cursor: pointer;
}

.whatsapp-contact-item:hover {
    background: #f0fdf4;
}

.whatsapp-btn-contact {
    background: #25D366;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mobile Responsiveness for WhatsApp Modal */
@media (max-width: 576px) {
    .whatsapp-contact-item {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 15px 10px !important;
        text-align: center;
    }
    .whatsapp-phone {
        font-size: 1.05rem !important;
        flex-wrap: wrap !important;
        margin-bottom: 0 !important;
        justify-content: center !important;
    }
    .whatsapp-label {
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
        text-align: center !important;
    }
    .whatsapp-btn-contact {
        width: 100% !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
    }
}

/* Get in Touch Section Styles */
.footer-contact-wrapper {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

#footerContactForm .form-control {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid transparent !important;
    color: #1e293b !important;
    padding: 12px 16px !important;
    height: auto !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}

#footerContactForm .form-control::placeholder {
    color: #64748b !important;
}

#footerContactForm .form-control:focus {
    outline: none;
    border-color: #1e293b;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

#footerContactForm label {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-submit-btn {
    background: #1e293b !important;
    color: #ffffff !important;
    padding: 12px 32px !important;
    font-size: 1rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.footer-submit-btn:hover {
    background: #0f172a !important;
    transform: translateY(-2px);
}

/* Main Footer Styles */
.main-footer {
    background-image: linear-gradient(135deg, rgba(77, 104, 125, 0.95) 0%, rgba(110, 147, 176, 0.95) 100%), url('../images/footer.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #E0F2FE;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 20px;
}

.footer-bottom a {
    text-decoration: none;
    color: inherit;
}

.footer-social-icons h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-icons-container {
    display: flex;
    gap: 15px;
}

.social-icon-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon-link:hover {
    background: #E0F2FE;
    color: #4D687D;
    transform: translateY(-3px);
}

.social-icon-link.twitter:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-3px);
}

.social-icon-link.linkedin:hover {
    background: #0077b5;
    color: #ffffff;
    transform: translateY(-3px);
}

.social-icon-link.tiktok:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Review Form in Footer */
.review-form-footer {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 10px;
}

.star-rating input { display: none; }

.star-rating label {
    font-size: 1.2rem;
    color: #4b5563;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ef4444;
}

.review-form-footer textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    font-size: 0.9rem;
    resize: none;
}

.review-form-footer button {
    width: 100%;
    background: #fbbf24;
    color: #1e293b;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.review-form-footer button:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

/* Mobile Responsiveness for Get in Touch Form */
@media (max-width: 768px) {
    .footer-contact-wrapper {
        padding: 25px 20px;
    }
    .footer-contact-wrapper div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}
