/* 留言表单样式 */

/* 留言区域容器 */
.message-form-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.message-form-section .section-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
}

.message-form-section .section-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 35px;
    text-align: center;
}

/* 留言表单 */
.message-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    margin-bottom: 24px;
}

.form-group.full-width {
    flex: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    text-align: left;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2860bb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

/* 表单操作区域 */
.form-actions {
    text-align: center;
    margin-top: 10px;
}

/* 提交按钮 */
.submit-btn {
    background: linear-gradient(135deg, #225abb 0%, #225abb 100%);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn .loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.submit-btn.loading .loading-spinner {
    display: block;
}

.submit-btn.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 提示信息 */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 25px;
    margin-bottom: 0;
    display: none;
    align-items: center;
    gap: 10px;
}

.form-message.show {
    display: flex;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message .icon {
    font-size: 20px;
    flex-shrink: 0;
}

.form-message .text {
    text-align: left;
}

/* 响应式 */
@media (max-width: 768px) {
    .message-form-section {
        padding: 50px 0;
    }
    
    .message-form {
        padding: 30px 20px;
        margin: 0 15px;
        border-radius: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .message-form-section .section-title {
        font-size: 24px;
    }
    
    .message-form-section .section-subtitle {
        font-size: 14px;
    }
    
    .submit-btn {
        width: 100%;
    }
}

/* 隐私提示 */
.privacy-notice {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
    text-align: center;
}

.privacy-notice a {
    color: #03a84e;
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}
