/* 表单页面样式 */
.form-container {
    padding: 20px;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

/* 单选框组样式 */
.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.radio-item label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

/* 复选框组样式 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.checkbox-item label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

/* 日期选择器样式 */
.date-picker {
    position: relative;
}

.date-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* 时间选择器样式 */
.time-picker {
    display: flex;
    gap: 8px;
    align-items: center;
}

.time-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

/* 文件上传样式 */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 12px 16px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: #4facfe;
    color: #4facfe;
}

/* 表单验证样式 */
.form-input.error,
.form-select.error,
.form-textarea.error,
.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* 成功状态样式 */
.form-input.success,
.form-select.success,
.form-textarea.success,
.form-input.valid,
.form-select.valid,
.form-textarea.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* 表单提交按钮 */
.form-submit {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.form-submit .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
}

/* 表单步骤指示器 */
.form-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: #4facfe;
    color: white;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-connector {
    position: absolute;
    top: 50%;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.step.completed .step-connector {
    background: #10b981;
}

.step:last-child .step-connector {
    display: none;
}

/* 表单帮助文本 */
.form-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.4;
}

/* 表单分组 */
.form-row {
    display: flex;
    gap: 12px;
}

.form-col {
    flex: 1;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .time-picker {
        flex-direction: column;
        gap: 12px;
    }
} 