body {
    background-image: url(../images/bgimg/connect_bgimg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

*:not(footer):not(footer *){
    color: #3e3a39;
}

.contain {
    padding: 110px 200px;
}

.banner {
    width: 100%;
    overflow: hidden;
}

.banner img {
    width: 100%;
    aspect-ratio: 16/6.5;
    object-fit: cover;
}


.preface {
    font-size: 18px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.full-width {
    width: 100%;
}

.contact label {
    text-align: left;
    padding: 10px 0;
    font-weight: bold;
    font-size: 20px;
    white-space: nowrap;
}

.contact-form div {
    display: flex;
    align-items: center; /* 垂直方向對齊 */
    gap: 10px; /* Label 和 Input 之間的間距 */
}

.contact-form label {
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap; /* 確保文字不換行 */
}

.contact-form input[type="text"],
.contact-form input[type="tel"] {
    border: none;
    border-bottom: 3px solid #3e3a39;
    padding: 8px 10px;
    font-size: 18px;
    background-color: transparent;
    outline: none;
    flex-grow: 1; /* 填滿剩餘空間 */
    min-width: 150px; /* 防止太短 */
}


.contact-form div:nth-child(2n) input {
    border: none;
    border-bottom: 3px solid #3e3a39;
    padding: 8px 10px;
    font-size: 18px;
    background-color: transparent;
    outline: none;
    width: 86%;
}

.contact textarea {
    width: 100%;
    padding: 8px;
    min-height: 30vh;
    border: 1px solid #ccc;
    border-radius: 15px;
    font-size: 18px;
    resize: vertical;
}

.contact textarea:focus-visible {
    outline: none;
}


.contact button {
    width: 190px;
    margin: auto;
    margin-top: 25px;
    border: none;
    cursor: pointer;
    background-color: transparent;
}

.contact button img {
    width: 100%;
    object-fit: cover;
}

.map iframe {
    width: 100%;
    aspect-ratio: 27/16;
}

@media screen and (max-width: 1400px) {
    body {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        background-image: url(../images/bgimg/connect_media.jpg);
    }

    .contain {
        padding: 110px 8%;
    }

}

@media screen and (max-width: 996px) {

    .contact-form input[type="text"],
    .contact-form input[type="tel"],
    .contact-form input[type="email"] {
        font-size: 36px;
    }

    .contact textarea {
        font-size: 36px;
    }

}

@media screen and (max-width: 768px) {
    .contact-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-form input {
        border: none;
        border-bottom: 3px solid #3e3a39;
        padding: 8px 10px;
        font-size: 25px;
        background-color: transparent;
        outline: none;
        width: 100% !important;
    }
    .contact textarea {
        font-size: 18px; /*因為被!important覆蓋25px無效*/
    }

}