.edtf-tirgs-form-root { max-width: 900px; margin: 0 auto; font-family: inherit; }

.edtf-progress { display: flex; list-style: none; margin: 0 0 24px; padding: 0; flex-wrap: wrap; gap: 4px; }
.edtf-progress li { flex: 1; min-width: 90px; text-align: center; padding: 8px 4px; font-size: 12px; background: #eee; border-radius: 4px; color: #666; cursor: pointer; }
.edtf-progress li:hover { background: #e0e0e0; }
.edtf-progress li.is-active { background: #2c3e91; color: #fff; font-weight: 600; }
.edtf-progress li.is-active:hover { background: #2c3e91; }
.edtf-progress li.is-complete { background: #d7e6d7; color: #2a5d2a; }
.edtf-progress li.is-complete:hover { background: #c9dfc9; }

.edtf-autosave-indicator { font-size: 12px; color: #888; margin-bottom: 12px; min-height: 16px; }
.edtf-autosave-indicator.saving::before { content: "Saving…"; }
.edtf-autosave-indicator.saved::before { content: "✓ Saved"; color: #2a7d2a; }

.edtf-download-bar { margin-bottom: 16px; }

.edtf-print-callout { background: #eef0fb; border: 1px solid #c7cdf0; border-radius: 6px; padding: 14px 16px; margin: 12px 0 18px; }
.edtf-print-callout p { margin: 0 0 10px; font-size: 14px; color: #333; }

.edtf-field-wrap { margin-bottom: 18px; }
.edtf-field-wrap label.edtf-label { display: block; font-weight: 600; margin-bottom: 4px; }
.edtf-required-mark { color: #b00020; font-weight: 700; margin-left: 1px; }
.edtf-required-legend { font-size: 12px; color: #777; margin-bottom: 16px; }
.edtf-field-wrap .edtf-help { font-size: 12px; color: #777; margin-bottom: 6px; }
.edtf-field-wrap input[type=text], .edtf-field-wrap input[type=email], .edtf-field-wrap input[type=tel],
.edtf-field-wrap input[type=number], .edtf-field-wrap input[type=date], .edtf-field-wrap select, .edtf-field-wrap textarea {
	width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; box-sizing: border-box;
}
.edtf-field-wrap textarea { min-height: 100px; resize: vertical; }
.edtf-field-error { color: #b00020; font-size: 12px; margin-top: 4px; display: none; }
.edtf-field-wrap.has-error input, .edtf-field-wrap.has-error textarea, .edtf-field-wrap.has-error select { border-color: #b00020; }
.edtf-field-wrap.has-error .edtf-field-error { display: block; }

.edtf-word-counter { font-size: 12px; color: #888; text-align: right; }
.edtf-word-counter.over-limit { color: #b00020; font-weight: 600; }

.edtf-weighted-badge { display: inline-block; background: #fff4d6; color: #8a6d00; font-size: 11px; padding: 2px 6px; border-radius: 10px; margin-left: 6px; }

.edtf-group-box { border: 1px solid #ddd; border-radius: 6px; padding: 14px; margin-bottom: 18px; background: #fafafa; }
.edtf-group-box h4 { margin-top: 0; }

.edtf-repeater-row { border: 1px solid #ddd; border-radius: 6px; padding: 12px; margin-bottom: 10px; position: relative; background: #fff; }
.edtf-repeater-remove { position: absolute; top: 8px; right: 8px; background: none; border: none; color: #b00020; cursor: pointer; font-size: 13px; }
.edtf-repeater-add { background: #2c3e91; color: #fff; border: none; padding: 8px 14px; border-radius: 4px; cursor: pointer; font-size: 13px; }

.edtf-radio-group label, .edtf-checkbox-group label { display: block; font-weight: normal; margin-bottom: 6px; }

.edtf-budget-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.edtf-budget-table th, .edtf-budget-table td { border: 1px solid #ddd; padding: 6px; font-size: 13px; }
.edtf-budget-table thead th { background: #f0f0f0; }
.edtf-budget-table input[type=number] { width: 100%; border: none; padding: 4px; text-align: right; }
.edtf-budget-category-row td { background: #f7f7f7; font-weight: 600; }
.edtf-budget-subtotal-row td { font-style: italic; background: #fbfbfb; }
.edtf-budget-grand-total-row td { background: #eaeaea; font-weight: 700; }
.edtf-budget-add-row { font-size: 12px; background: none; border: 1px dashed #999; padding: 4px 10px; border-radius: 4px; cursor: pointer; }

.edtf-signature-methods { display: flex; gap: 10px; margin-bottom: 8px; }
.edtf-signature-methods button { padding: 6px 12px; border: 1px solid #ccc; background: #f5f5f5; border-radius: 4px; cursor: pointer; font-size: 12px; }
.edtf-signature-methods button.is-active { background: #2c3e91; color: #fff; border-color: #2c3e91; }
.edtf-signature-canvas { border: 1px dashed #999; border-radius: 4px; touch-action: none; background: #fff; display: block; }
.edtf-signature-clear { margin-top: 6px; font-size: 12px; background: none; border: 1px solid #ccc; padding: 4px 10px; border-radius: 4px; cursor: pointer; }
.edtf-signature-preview img { max-height: 100px; border: 1px solid #ddd; border-radius: 4px; padding: 4px; }

.edtf-step-nav { display: flex; justify-content: space-between; margin-top: 28px; }
.edtf-btn { padding: 10px 20px; border-radius: 4px; border: none; cursor: pointer; font-size: 14px; }
.edtf-btn-primary { background: #2c3e91; color: #fff; }
.edtf-btn-secondary { background: #eee; color: #333; }
.edtf-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.edtf-submit-success { background: #e6f4ea; border: 1px solid #b7dfc0; padding: 20px; border-radius: 6px; text-align: center; }
.edtf-form-loading { text-align: center; padding: 40px; color: #888; }

.edtf-choice-screen { text-align: center; padding: 20px 0; }
.edtf-choice-screen h2 { margin-bottom: 20px; }
.edtf-choice-cards { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.edtf-choice-card { flex: 1; min-width: 240px; max-width: 340px; text-align: left; background: #fff; border: 2px solid #ddd; border-radius: 8px; padding: 20px; cursor: pointer; font-family: inherit; position: relative; transition: border-color 0.15s, box-shadow 0.15s; }
.edtf-choice-card:hover { border-color: #2c3e91; box-shadow: 0 2px 8px rgba(44,62,145,0.12); }
.edtf-choice-card h3 { margin: 6px 0 8px; font-size: 16px; }
.edtf-choice-card p { margin: 0; font-size: 13px; color: #555; }
.edtf-choice-recommended { display: inline-block; background: #fff4d6; color: #8a6d00; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }

.edtf-manual-form { max-width: 500px; margin: 0 auto; }
.edtf-manual-error { color: #b00020; font-size: 13px; margin: 10px 0; }

.edtf-continue-prompt { background: #fff8e6; border: 1px solid #f0d896; border-radius: 6px; padding: 14px 16px; margin: 16px 0; }
.edtf-continue-prompt p { margin: 0 0 10px; font-size: 14px; color: #5a4a00; }
.edtf-continue-prompt .edtf-btn { margin-right: 8px; }
