/* === Base Styles === */
body {
    font-family: 'Be Vietnam Pro', 'Arial', sans-serif;
    background-color: #f8f9fa;
}

.contact-page-wrapper {
    position: relative;
    overflow-x: hidden;
    padding-bottom: 350px; /* Increased space before footer */
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, 
            rgba(248, 249, 250, 1) 5%, 
            rgba(248, 249, 250, 0) 25%, 
            rgba(248, 249, 250, 0) 75%, 
            rgba(248, 249, 250, 1) 95%
        ),
        url('../images/Basemap image.png');
    background-size: cover, cover;
                background-position: center, center -60%; /* Position map lower */
    background-repeat: no-repeat, no-repeat;
    z-index: -1;
    opacity: 0.9; /* Increased opacity for better visibility with gradient */
}

.container {
    width: 90%;
    max-width: 1240px; /* Adjusted to Figma spec */
    margin: 0 auto;
    padding: 0 15px;
}

/* === Hero Section === */
.contact-hero {
    padding: 60px 0;
    text-align: center;
}

.contact-hero h1 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #1A2C47;
}

.contact-hero .highlight-text {
    color: #1181D0;
}

/* === Contact Card (Figma) === */
.contact-card-container {
    padding-bottom: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card {
    width: 100%;
    max-width: 1240px;
    background: #FFFFFF;
    box-shadow: 0px 0px 60px 30px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    overflow: hidden; /* Keep overflow hidden */
}

.contact-card-grid {
    display: grid;
    grid-template-columns: 45% 55%; /* Adjusted ratio */
    align-items: stretch; /* Stretch panels to full height */
}

/* === Reach Us Panel (Figma) === */
.reach-us-panel-new {
    background: #1181D0;
    color: #FFFFFF;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
}

.reach-us-panel-new h2 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 36px;
    color: #FFFFFF;
    margin: 0;
}

.contact-info-new {
    display: flex;
    flex-direction: column;
    gap: 27px;
}

.contact-info-new .contact-item-new {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-info-new .contact-item-new i {
    font-size: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #BDD2FC;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info-new .contact-item-new span {
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #EEEEEE;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: auto; /* Pushes to the bottom */
}

.social-icons a {
    width: 48px;
    height: 48px;
    background: #0F5C92;
    border: 2px solid #BDD2FC;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
    background: #1181D0;
}

/* === Contact Form Panel (Figma) === */
.contact-form-panel-new {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-form-panel-new h2 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 36px;
    color: #000000;
    margin: 0;
}

#contactFormNew {
    display: flex;
    flex-direction: column;
    gap: 27px;
}

#contactFormNew .form-row-new {
    display: flex;
    gap: 20px;
}

#contactFormNew .form-group-new {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#contactFormNew input,
#contactFormNew textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #797979;
    padding: 8px 0;
    font-family: 'Geist', sans-serif;
    font-size: 18px;
    background-color: transparent;
    transition: border-color 0.3s;
}

#contactFormNew input:focus,
#contactFormNew textarea:focus {
    outline: none;
    border-bottom-color: #168CE0;
}

#contactFormNew ::placeholder {
    color: #797979;
    font-family: 'Geist', sans-serif;
    font-size: 18px;
}

#contactFormNew textarea {
    resize: none;
    min-height: 90px;
}

.submit-group {
    margin-top: 20px;
}

.btn-submit-new {
    width: auto;
    min-width: 255px;
    background: #168CE0;
    border: 1px solid #FFFFFF;
    border-radius: 12px;
    padding: 4px 4px 4px 24px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit-new:hover {
    background: #0F5C92;
}

.btn-submit-new span {
    flex-grow: 1;
    text-align: center;
}

.btn-submit-new i {
    width: 46px;
    height: 46px;
    background: #5BB0EC;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

/* === Responsive Styles === */
@media (max-width: 1024px) {
    .contact-card-grid {
        grid-template-columns: 1fr;
    }

    .reach-us-panel-new {
        padding: 40px;
        gap: 40px;
    }

    .social-icons {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2rem;
    }

    #contactFormNew .form-row-new {
        flex-direction: column;
        gap: 27px;
    }

    .contact-form-panel-new, .reach-us-panel-new {
        padding: 30px;
    }
}

/* === Popup Styles === */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.popup-content {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 100%;
}

.popup-content h2 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: #1A2C47;
    margin-top: 0;
    margin-bottom: 16px;
}

.popup-content p {
    font-family: 'Geist', sans-serif;
    font-size: 18px;
    color: #252525;
    line-height: 1.6;
    margin-bottom: 0;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #797979;
    cursor: pointer;
    transition: color 0.3s;
}

.close-popup:hover {
    color: #000000;
}
