.kde-app { max-width: 820px; margin: 0 auto; font-family: inherit; }
.kde-app *, .kde-app *::before, .kde-app *::after { box-sizing: border-box; }

.kde-app-progress { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.kde-step { padding: 8px 14px; border-radius: 20px; background: #e5e7eb; color: #4b5563; font-weight: 600; font-size: 13px; }
.kde-step.active { background: #1f2937; color: #fff; }

.kde-step-panel { display: none; border: 1px solid #e5e7eb; border-radius: 10px; padding: 22px; background: #fff; }
.kde-step-panel.active { display: block; }
.kde-step-panel legend, .kde-subhead { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: #111827; }
.kde-subhead { font-size: 14px; margin-top: 18px; border-top: 1px dashed #d1d5db; padding-top: 12px; }

.kde-row { display: flex; gap: 14px; flex-wrap: wrap; }
.kde-field { flex: 1 1 0; min-width: 180px; margin-bottom: 12px; }
.kde-field label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.kde-field input[type="text"], .kde-field input[type="email"], .kde-field input[type="tel"],
.kde-field input[type="date"], .kde-field select, .kde-field textarea {
	width: 100%; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; background: #fff; color: #111;
}
.kde-field textarea { min-height: 70px; }
.kde-field input.kde-error, .kde-field select.kde-error, .kde-field textarea.kde-error { border-color: #b00020; box-shadow: 0 0 0 2px rgba(176,0,32,.15); }
.kde-check { font-weight: 500 !important; display: flex !important; align-items: center; gap: 8px; }

.kde-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 16px; }
.kde-btn {
	padding: 11px 22px; border: none; border-radius: 6px; cursor: pointer;
	background: #111827; color: #fff; font-size: 14px; font-weight: 600;
}
.kde-btn-ghost { background: transparent; color: #374151; border: 1px solid #d1d5db; }
.kde-btn:disabled { opacity: .5; cursor: not-allowed; }

.kde-sig-wrap { border: 2px dashed #d1d5db; border-radius: 8px; overflow: hidden; position: relative; }
.kde-sig-wrap canvas { display: block; width: 100%; height: 200px; background: #fff; touch-action: none; }
.kde-sig-wrap .kde-btn { position: absolute; top: 10px; right: 10px; }

.kde-file-list { margin-top: 8px; }
.kde-file-item { font-size: 13px; color: #374151; padding: 4px 0; border-bottom: 1px solid #f3f4f6; }
input[type="file"] { font-size: 13px; }

.kde-msg { margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.kde-msg-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

.kde-agreement-body { border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; padding: 16px 18px; margin: 8px 0 18px; max-height: 420px; overflow-y: auto; }
.kde-agreement-body p { font-size: 13px; line-height: 1.6; color: #374151; margin: 0 0 10px; }
.kde-agreement-body p:last-child { margin-bottom: 0; }

.kde-questionnaire-title { font-weight: 700; color: #111827; margin: 0 0 14px; }
.kde-conditions-label { font-weight: 600; color: #374151; margin: 16px 0 8px; }
.kde-conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.kde-check { font-weight: 500 !important; display: flex !important; align-items: flex-start; gap: 8px; }
.kde-check input[type="checkbox"] { margin-top: 2px; }
.kde-check span { font-size: 13px; line-height: 1.4; }

@media (max-width: 640px) {
	.kde-conditions { grid-template-columns: 1fr; }
	.kde-row { flex-direction: column; }
}