﻿/* #region Contact Us Banner */
.contact-banner {
    line-height: 0; /* 消除图片下方空隙 */
}



/* 移动端适配：切换背景图、调整内边距和字体 */
@media (max-width: 767px) {
    .contact-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .contact-banner {
        height: auto;
        background: none; /* 移除背景图 */
    }
}


/* #endregion */

/* #region 信息展示栏和表单*/
/* Contact 组件整体容器 */
.contact-section {
    padding: 60px 24px 80px;
    background-color: #ffffff;
}

.contact-container {
    max-width: 1336px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
}

/* 左侧联系信息 */
.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.info-icon {
    font-size: 28px;
    line-height: 1;
}

.info-details {
    flex: 1;
}

    .info-details strong {
        display: block;
        font-size: 18px;
        color: #1e2f30;
        margin-bottom: 6px;
    }

    .info-details a {
        display: block;
        color: #0b90c7;
        text-decoration: none;
        margin-bottom: 4px;
        font-weight: 500;
    }

        .info-details a:hover {
            text-decoration: underline;
        }

    .info-details span {
        font-size: 14px;
        color: #5f7a7c;
    }
/*FAQ START*/
.faq-wrap {
    margin-top: 80px;
}

.faq-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}

.faq-item {
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 0 12px;
    display: block;
    font-size: 15px;
    line-height: 1.6;
}

    .faq-answer.show {
        display: block;
    }
/*FAP END*/

/* 右侧表单 */
.contact-form {
    flex: 1;
    width: 100%;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1e2f30;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        color: #1e1e1e;
    }

        .form-group label span {
            font-weight: normal;
            color: #5f7a7c;
        }

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    transition: 0.2s;
    font-family: 'Open Sans', sans-serif;
}

    .form-control:focus {
        outline: none;
        border-color: #0b90c7;
        box-shadow: 0 0 0 2px rgba(40,195,197,0.2);
    }

textarea.form-control {
    resize: vertical;
}

.phone-group {
    display: flex;
    gap: 12px;
}

    .phone-group select {
        width: 30%;
    }

    .phone-group input {
        width: 70%;
    }

.captcha-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

    .captcha-wrapper .form-control {
        flex: 1; /* 文本框自动伸缩 */
        min-width: 0; /* 防止溢出 */
    }

.captcha-image {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0; /* 防止图片和刷新按钮被压缩 */
}

    .captcha-image img {
        height: 50px;
        width: auto;
        border-radius: 8px;
        background: #f5f5f5;
    }

.refresh-icon {
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.2s;
    flex-shrink: 0;
}


.refresh-icon:hover {
    transform: rotate(15deg);
}

.field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #e74c3c;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #0b90c7;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

    .submit-btn:hover {
        background: #1e9b9d;
    }

.form-result {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

/* 响应式：移动端 */
@media (max-width: 767px) {
    .contact-section {
        padding: 40px 16px 60px;
    }

    .contact-container {
        flex-direction: column;
        gap: 48px;
    }
    .contact-form {
        width: 100%;
    }

    .captcha-image {
        margin-top: 8px;
    }

    .info-title, .form-title {
        font-size: 24px;
        text-align: center;
    }

    .phone-group {
        flex-direction: column;
        gap: 8px;
    }

        .phone-group select,
        .phone-group input {
            width: 100%;
        }

    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap; /* 小屏可换行，避免挤压 */
    }
    .captcha-image {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
/* #endregion*/
