.contact-page {
    font-family: Montserrat, sans-serif;
    padding: 0;
    box-sizing: border-box;
    height: auto;
    padding: 50px 0;
    margin: 0;
    width: 100%;
    max-width: 1920px;
    background-color: white;
}

.contact-container {
    position: relative;
    width: 100%;
    max-width: 1640px;
    border-radius: 20px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.map-container iframe {
    width: 65%;
    height: 100%;
    border: none;
}

.map-container:hover .blue-overlay {
    display: none !important;
}

.blue-overlay {
    position: absolute;
    width: 65%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 255, 0.3);
    filter: blur(5px);
    z-index: 2;
    transition: filter 0.3s, background 0.3s;
}

.contact-container:hover .blue-overlay {
    filter: blur(0);
    background: rgba(0, 0, 255, 0);
}

.map-button-container {
    position: absolute;
    top: 85%;
    left: 15%;
    transform: translateX(-50%);
    z-index: 3;
}

.map-button {
    background-color: #fff;
    color: #1f64a5;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 24px;
}

.map-button i {
    font-size: 24px;
    margin-left: 5px;
}

.form-container {
    position: relative;
    z-index: 2;
    background-color: #f3efef;
    padding: 50px;
    border-radius: 0px 10px 10px 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0px;
    max-width: 500px;
    margin-left: auto;
    transform: translateX(-7%);
}

.form-container h2 {
    margin-top: 0;
    color: #1f64a5;
    text-align: center;
    /* font: normal normal 800 36px/44px Montserrat; */
    font-size: 36px;
    font-weight: bold;
}

.form-container form {
    display: flex;
    flex-direction: column;
}

.form-container .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.form-container label {
    font: normal normal bold 18px/22px Montserrat;
    margin-right: 15px;
    color: #1f64a5;
    min-width: 120px;
    text-align: right;
    font-weight: bold;
}

.form-container input {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #1f64a5;
    outline: none;
    box-sizing: border-box;
    font-size: 18px;
    background-color: #f3efef;
}

.form-container input:focus,
.form-container textarea:focus {
    border-bottom-color: #007bff;
}

.form-container button {
    background-color: #1f64a5;
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-left: auto;
    font-size: 18px;
    justify-content: center;
}

.form-container button i {
    margin-top: 5px;
    margin-left: 5px;
    font-size: 20px;

}

.form-container button:hover,
.map-button:hover {
    background-image: linear-gradient(to right, #1f64a5, rgb(79, 183, 243));
    color: #fff;
}

@media screen and (max-width: 600px) {
    .contact-page {
        padding: 10px;
    }

    .contact-container {
        display: flex;
        flex-direction: column-reverse;
        /* Đảo chiều thứ tự: form trước, map sau */
        justify-content: center;
        align-items: center;
    }

    .form-container {
        padding: 20px;
        /* Giảm padding cho form container */
        border-radius: 10px;
        /* Giảm độ cong border-radius */
        margin-left: 0;
        /* Đặt lại margin-left */
        transform: translateX(0);
        /* Đặt lại transform */
    }

    .map-container {
        height: 300px;
        /* Chiều cao map container khi màn hình nhỏ */
        width: 100%;
        /* Chiều rộng map container */
        position: relative;
        /* Đặt lại position */
        margin-top: 20px;
    }

    .map-button-container {
        top: 90%;
        /* Vị trí nút xem trên Google Maps */
        left: 50%;
        /* Căn giữa nút xem trên Google Maps */
        transform: translateX(-50%);
        /* Dịch chuyển nút xem trên Google Maps */
    }

    .map-button {
        padding: 10px 15px;
        /* Các lề nút xem trên Google Maps */
        font-size: 16px;
        /* Kích thước phông chữ nút xem trên Google Maps */
    }


    .map-container iframe {
        width: 100%;
    }

    .blue-overlay {
        width: 100%;
    }
}