/* Enhanced Mobile Contact Fixes */

/* Base styles for contact section */
.contact-us-page2-area {
    position: relative;
    padding: 60px 0;
    background: #f9f9f9;
}

.contact-heading {
    font-size: 28px;
    font-weight: 600;
    color: #002147;
    text-align: center;
    margin-bottom: 15px;
}

.contact-heading-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f1c40f, #e67e22);
    margin: 0 auto 40px;
}

/* Card styles */
.contact-card, .map-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-card {
    background: white;
    padding: 25px 20px;
}

.map-card {
    background: #002147;
    height: 100%;
}

.map-card-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.map-pin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
}

.map-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

/* Contact items */
.contact-info-list {
    padding: 0;
    list-style: none;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #002147, #003a7a);
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
    padding-top: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .contact-row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .contact-row > div {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .contact-us-page2-area {
        padding: 40px 0;
    }
    
    .contact-heading {
        font-size: 24px;
    }
    
    /* Better card alignment */
    .contact-card {
        margin-bottom: 30px;
        padding: 20px 15px;
    }
    
    /* Center the contact card header on mobile */
    .contact-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .title-default-left {
        text-align: center;
        font-size: 22px;
    }
    
    .contact-card-icon {
        margin-top: 15px;
    }
    
    /* Fix alignment of contact items */
    .contact-item {
        align-items: flex-start;
    }
    
    .contact-icon-wrapper {
        margin-top: 0;
    }
    
    .contact-text {
        padding-top: 10px;
        text-align: left;
        font-size: 14px;
    }
    
    /* Social icons */
    .social-media-icons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
    }
    
    /* Map card */
    .map-card {
        height: 400px;
    }
    
    .map-card-header {
        justify-content: center;
        padding: 12px;
    }
    
    .google-map-area iframe {
        height: 350px !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .contact-us-page2-area {
        padding: 30px 0;
    }
    
    .contact-heading {
        font-size: 22px;
    }
    
    .contact-card, .map-card {
        border-radius: 10px;
    }
    
    .map-card {
        height: 350px;
    }
    
    .google-map-area iframe {
        height: 300px !important;
    }
}
