.contact-form-container {
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Contact section background styles */
.contact-section {
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-section {
        padding: 30px 0;
        background-attachment: scroll;
        min-height: auto;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .contact-form-container h2 {
        font-size: 24px;
    }
    
    .contact-form-container p {
        font-size: 14px;
    }
    .sainty-image-section{
        display: none;
    }
    .saintyContactMessage{
        padding: 30px auto;
    }
}

/* Sainty Contact Form Styles */

/* 确保页面铺满整个浏览器窗口 */
.sainty-contact-section {
    margin-top: 30px;
    position: relative;
    background: #181873;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.sainty-contact-wrapper {
    width: 100%;
    max-width: none;
}

.sainty-contact-layout {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

/* 左侧背景图片区域 */
.sainty-image-section {
    flex: 0 0 50%;
    position: relative;
    min-height: 800px;
    overflow: hidden;
}

.sainty-bg-image {
    background: url('/static/website/img/message_bg.png') no-repeat;
    background-position: 4%;
    background-size: cover;
    width: 100%;
    height: 100%;
}

/* 分隔线 */
.sainty-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* 右侧联系表单区域 */
.sainty-form-section {
    flex: 0 0 50%;
    background: #181873;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.sainty-form-container {
    width: 100%;
}

.sainty-form-title {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sainty-form-description {
    text-align: center;
    margin-bottom: 30px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.6;
}

/* 表单行布局 */
.sainty-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.sainty-form-field {
    flex: 1;
}

.sainty-form-group {
    margin-bottom: 25px;
}

/* 表单输入框 */
.sainty-form-input,
.sainty-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.sainty-form-textarea {
    padding: 15px;
    resize: vertical;
}

/* 输入框焦点效果 */
.sainty-form-input:focus,
.sainty-form-textarea:focus {
    outline: none;
    border-color: rgba(71, 158, 131, 0.8);
    box-shadow: 0 0 0 3px rgba(71, 158, 131, 0.1);
}

/* 输入框错误状态 */
.sainty-form-input.error,
.sainty-form-textarea.error {
    border-color: #e74c3c;
}

/* 提交按钮 */
.sainty-submit-btn {
    width: 100%;
    padding: 15px 25px;
    font-size: 20   px;
    font-weight: 600;
    border-radius: 8px;
    background: #479E83;
    color: white;
    border: none;
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

/* 按钮悬停效果 */
.sainty-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 158, 131, 0.4);
}

/* 按钮禁用状态 */
.sainty-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 错误消息 */
.sainty-error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

/* 成功消息 */
.sainty-success-message {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* 响应式设计 */

/* 中等屏幕设备 (平板) */
@media (min-width: 768px) and (max-width: 991px) {
    .sainty-contact-section {
        padding: 35px 0;
    }
    
    .sainty-contact-layout {
        gap: 0;
    }
    
    .sainty-image-section {
        min-height: 600px;
    }
    
    .sainty-form-section {
        padding: 35px 25px;
        min-height: 600px;
    }
    
    .sainty-form-title {
        font-size: 2.5rem;
    }
    
    .sainty-form-description {
        font-size: 18px;
    }
}

/* 小屏幕设备 (手机) */
@media (max-width: 767px) {
    .sainty-contact-section {
        padding: 30px 0;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .sainty-contact-layout {
        flex-direction: column;
        gap: 0;
    }
    
    .sainty-image-section {
        flex: 0 0 auto;
        min-height: 300px;
    }
    
    .sainty-form-section {
        flex: 0 0 auto;
        max-width: 100%;
        padding: 30px 20px;
        min-height: auto;
    }
    
    /* 隐藏分隔线 */
    .sainty-divider {
        display: none;
    }
    
    .sainty-form-title {
        text-align: center;
        font-size: 2rem;
    }
    
    .sainty-form-description {
        text-align: center;
        font-size: 16px;
    }
    
    .sainty-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .sainty-form-group {
        margin-bottom: 20px;
    }
    
    .sainty-form-input,
    .sainty-form-textarea {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .sainty-submit-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* 超小屏幕设备 (小手机) */
@media (max-width: 575px) {
    .sainty-contact-section {
        padding: 25px 0;
    }
    
    .sainty-image-section {
        min-height: 250px;
    }
    
    .sainty-form-section {
        padding: 25px 15px;
    }
    
    .sainty-form-title {
        font-size: 1.8rem;
    }
    
    .sainty-form-description {
        font-size: 14px;
    }
}

