/* 联系我们页面专用样式 */
/* 联系我们页面头部背景样式 */
.contact-page-header {
    background: linear-gradient(135deg, #1a47af 0%, #1bb3cd 50%, #020177 100%);
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.contact-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.contact-page-header .page-header-content {
    position: relative;
    z-index: 2;
}

.contact-page-header .title {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-page-header .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 重新设计的表单样式 */
.contact24-form-container {
    background: linear-gradient(135deg, #1a47af 0%, #1bb3cd 50%, #020177 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 900px;
}

.contact24-form-wrapper {
    background: rgba(248, 249, 250, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 700px;
}

/* 表单标题样式 */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.form-header p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

/* 表单行和组样式 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 25px;
    position: relative;
}

/* 输入框样式 */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

/* 确保下拉框可以正常交互 */
.form-group select:hover {
    border-color: #3498db;
}

.form-group select:active {
    border-color: #2980b9;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #95a5a6;
}

/* 简化的下拉框样式 */
.form-group select {
    cursor: pointer;
    background-color: white;
}

.form-group select option {
    background: white;
    color: #2c3e50;
    padding: 10px;
}

/* 文本域样式 */
.form-group textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
    position: relative;
}

/* 验证码区域样式 - 只影响中间表单 */
.contact24-form-wrapper .captcha-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.contact24-form-wrapper .captcha-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact24-form-wrapper .captcha-input-area {
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact24-form-wrapper .captcha-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.contact24-form-wrapper .captcha-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.contact24-form-wrapper .captcha-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.contact24-form-wrapper .captcha-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 2px;
    min-width: 120px;
}

.contact24-form-wrapper .captcha-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.contact24-form-wrapper .captcha-image-area {
    flex: 1;
    min-width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact24-form-wrapper .captcha-image-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    text-align: center;
    min-height: 80px;
    max-width: 250px;
}

.contact24-form-wrapper .captcha-image {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: contain;
    border: 1px solid #e9ecef;
    background: #e3f2fd;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.contact24-form-wrapper .captcha-hint {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
}

/* 字符计数器 */
.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    color: #6c757d;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

/* 提交按钮容器 */
.submit-button-container {
    margin-top: 40px;
    padding: 0 20px;
    text-align: center;
}

/* 提交按钮 - 只影响中间表单 */
.contact24-form-container .submit-btn {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    border: none;
    border-radius: 12px;
    padding: 18px 40px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.contact24-form-container .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.5);
}

.contact24-form-container .submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 表单底部提示 */
.form-footer {
    margin-top: 20px;
    text-align: center;
}

.consent-text {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.consent-icon {
    font-size: 1rem;
}

/* 提示框样式 */
.success-alert, .error-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideInScale 0.4s ease-out;
}

.success-alert {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.error-alert {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    color: white;
}

.alert-icon {
    font-size: 2rem;
}

.alert-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.alert-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 动画效果 */
@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-page-header .title {
        font-size: 2.5rem;
    }
    
    .contact-page-header .subtitle {
        font-size: 1rem;
    }
    
    .contact24-form-container {
        padding: 25px;
    }
    
    .contact24-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .captcha-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .captcha-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .captcha-btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .message-section {
        padding: 20px;
    }
}
