/* ═══════════════════════════════════════════════════
   法律文书代写 — 共享样式
   ═══════════════════════════════════════════════════ */

.doc-container { max-width: 860px; margin: 0 auto; padding: 30px 20px; }
.doc-header { text-align: center; margin-bottom: 24px; }
.doc-header h2 { font-size: 26px; color: #1a1a2e; margin-bottom: 6px; }
.doc-header p { color: #9ca3af; font-size: 14px; }

/* 服务介绍卡片 */
.intro-card { background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%); border: 1px solid #bfdbfe; border-radius: 12px; padding: 20px 24px; margin-bottom: 24px; }
.intro-card h4 { font-size: 16px; color: #1e40af; margin-bottom: 10px; }
.intro-card p { font-size: 13.5px; color: #475569; line-height: 1.7; }

/* 材料清单 */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 12px; }
.checklist li { font-size: 13px; color: #475569; padding: 4px 0; }
.checklist li::before { content: "✅ "; }

/* 定价提示 */
.price-hint { margin-top: 12px; padding: 10px 14px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; font-size: 13px; color: #92400e; }

/* 表单卡片 */
.form-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.form-card h3 { font-size: 18px; color: #1a1a2e; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; }

/* 文件上传区 */
.upload-area { border: 2px dashed #d1d5db; border-radius: 10px; padding: 24px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; margin-bottom: 12px; }
.upload-area:hover { border-color: #667eea; background: #f8f9ff; }
.upload-area.dragover { border-color: #667eea; background: #eef2ff; }
.upload-area .upload-icon { font-size: 32px; margin-bottom: 8px; }
.upload-area p { font-size: 13px; color: #6b7280; }
.upload-area .upload-hint { font-size: 11px; color: #9ca3af; margin-top: 4px; }

.file-list { margin-top: 10px; }
.file-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #f8f9fa; border-radius: 6px; margin-bottom: 6px; font-size: 13px; }
.file-item .file-name { color: #1a1a2e; }
.file-item .file-size { color: #9ca3af; font-size: 11px; margin-left: 8px; }
.file-item .file-remove { background: none; border: none; color: #dc3545; cursor: pointer; font-size: 16px; padding: 0 4px; }

/* 表单控件 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 6px; }
.form-group label .required { color: #dc3545; }
.form-group .form-control { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; transition: border-color 0.2s; box-sizing: border-box; }
.form-group .form-control:focus { border-color: #667eea; outline: none; box-shadow: 0 0 0 3px rgba(102,126,234,0.1); }
.form-group textarea.form-control { height: 120px; resize: vertical; line-height: 1.6; }
.form-group .form-hint { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 提交按钮 */
.submit-section { text-align: center; padding: 20px 0; }
.btn-submit { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border: none; border-radius: 10px; padding: 14px 48px; font-size: 17px; font-weight: 700; cursor: pointer; transition: all 0.25s; }
.btn-submit:hover { box-shadow: 0 6px 20px rgba(37,99,235,0.4); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-submit.loading::after { content: " ⏳"; }

/* 成功提示 */
.success-box { display: none; text-align: center; padding: 40px 24px; background: #f0fdf4; border: 1px solid #86efac; border-radius: 12px; margin-bottom: 20px; }
.success-box .success-icon { font-size: 48px; margin-bottom: 12px; }
.success-box h3 { font-size: 20px; color: #166534; margin-bottom: 8px; }
.success-box .order-no { font-size: 22px; font-weight: 700; color: #2563eb; background: #eff6ff; padding: 6px 16px; border-radius: 6px; display: inline-block; margin: 10px 0; }
.success-box p { font-size: 14px; color: #475569; line-height: 1.7; }
.success-box .contact-note { margin-top: 12px; font-size: 13px; color: #92400e; padding: 10px; background: #fffbeb; border-radius: 8px; }

/* 服务列表网格 */
.doc-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

/* 响应式 */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .checklist { grid-template-columns: 1fr; }
    .doc-services-grid { grid-template-columns: 1fr; }
}
