/* contract-banner */
.contract-banner {
	width: 100%;
	height: 100%;
    max-height: 320px;
    object-fit: cover;
    min-height: 300px;
}
.contact-banner-placeholder {
    width: 100%;
    height: 300px;
}
.content-us {
    background: #ffffff;
    box-shadow: 0px 0px 32px 0px rgba(0,0,0,0.08); 
}
.contact-banner-placeholder-content {
    max-width: var(--main-max-width);
    width: 100%;
    color: #fff;
    padding: 20px;
}

.contact-wrapper {
    display: grid;
    gap: max(3vw, 30px);
    margin-top: var(--section-top);
}

.contact-map {
    height: 100%;
    min-height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.contact-form {
    gap: 10px !important;
}
.contact-form-wrapper h2 {
    display: none;
}
.contact-info {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    flex-wrap: wrap;
    gap: 30px;
}

.info-item {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 20px;
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.icon-user,
.icon-support,
.icon-phone {
    width: 64px;
    height: 64px;
    background: rgba(0,117,201,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.info-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1;
}

.info-content a {
    display: block;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    color: var(--theme-color);
    line-height: 1;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .contact-wrapper .wpcf7-submit {
        width: 100%;
    }
}

/* Branch Office Styles */
.branch-office {
    background-color: #f5f5f5;
}

.branch-grid {
    max-width: var(--main-max-width);
    margin: 0 auto;
    padding: var(--section-top) var(--main-padding-l-f);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    grid-gap: max(1.5vw, 20px);
}

.branch-row {
    display: flex;
}

.branch-row:last-child {
    margin-bottom: 0;
}

.branch-item {
    flex: 1;
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--animation-duration) ease;
    position: relative;
    padding: max(2vw, 20px);
}
.branch-image {
    flex: 0 0 45%;
    overflow: hidden;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--animation-duration) ease;
}

.branch-item:hover .branch-image img {
    transform: scale(1.1);
}

.branch-content {
    flex: 1;
    padding: 0 30px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.branch-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--theme-color);
    margin: 0 0 15px;
}

.branch-content p {
    font-size: 16px;
    color: #000;
    line-height: 1.6;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .branch-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .branch-item {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .branch-item {
        flex-direction: column;
        height: auto;
    }
    
    .branch-image {
        flex: 0 0 200px;
    }
    
    .branch-content {
        padding: 20px;
    }
    
    .branch-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .branch-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .branch-image {
        flex: 0 0 160px;
    }
    
    .branch-content {
        padding: 15px;
    }
    
    .branch-content h3 {
        font-size: 16px;
    }
    
    .branch-content p {
        font-size: 14px;
    }
}

/* Contact Form 7 特定样式 */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: max(1.6vw, 20px);
}

.wpcf7-form p {
    margin: 0;
}

/* 表单项样式 */
.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--theme-p-color);
    font-size: var(--widget-title-p-4-fs);
}

.wpcf7-form label .required {
    color: #FF0000;
    margin-left: 4px;
}

/* 输入框样式 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    min-width: 200px;
    padding: 12px 16px;
    background: #F8F8F8;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: var(--widget-title-p-4-fs);
    color: var(--theme-p-color);
    transition: all var(--animation-duration) ease;
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* 输入框焦点状态 */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    border-color: var(--theme-color);
    background: #fff;
    outline: none;
}

/* 提交按钮样式 */
.contact-wrapper .wpcf7-submit {
    background: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 32px;
    font-size: var(--widget-title-p-3-fs);
    cursor: pointer;
    transition: background-color var(--animation-duration) ease;
    margin: auto;
    display: block;
}

.contact-wrapper .wpcf7-submit:hover {
    background-color: var(--theme-color-dark);
}

/* 错误提示样式 */
.contact-wrapper .wpcf7-not-valid-tip {
    color: #FF0000;
    font-size: 12px;
    margin-top: 4px;
}

.contact-wrapper .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    border: 1px solid transparent;
}

.contact-wrapper .wpcf7 form.sent .wpcf7-response-output {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.contact-wrapper .wpcf7 form.failed .wpcf7-response-output {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* 标题样式 */
.widget-title h2 {
    text-align: center;
    font-size: var(--widget-title-h2-fs);
    color: var(--theme-p-color);
    margin-bottom: 0;
}