/* 表单容器 */
.peizhen-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* 表单头部 */
.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.form-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.form-header h3 {
    color: #666;
    font-weight: normal;
    font-size: 16px;
}

/* 表单部分 */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h4 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* 欢迎文本 */
.welcome-text {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

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

.form-row .form-group {
    flex: 1;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 单选组 */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 复选框组 */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 语言水平字段 */
.language-proficiency-field {
    margin-bottom: 10px;
}

.language-proficiency-field label {
    font-weight: normal;
    margin-bottom: 5px;
}

/* 重要说明 */
.important-note {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 10px;
    font-size: 14px;
}

/* 说明文本 */
.note {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    font-style: italic;
}

/* 上传字段 */
.form-group input[type="file"] {
    margin-top: 5px;
}

/* 服务条款按钮 */
.terms-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.terms-button:hover {
    background-color: #2980b9;
}

/* 提交按钮 */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.submit-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #229954;
}

.submit-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.terms-content {
    margin: 20px 0;
    line-height: 1.6;
}

.terms-content h4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.countdown {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 14px;
}

.close-modal {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.close-modal:hover {
    background-color: #2980b9;
}

.close-modal:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 错误样式 */
.error {
    border-color: #e74c3c !important;
    background-color: #fee;
}

.error-text {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}

.error-message br {
    margin-bottom: 5px;
}

/* 成功样式 */
.success {
    border-color: #27ae60 !important;
    background-color: #efe;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
