* { box-sizing: border-box; }
body { font-family: system-ui, Arial, sans-serif; background: #f4f4f4; color: #222; margin: 0; }
.jf-wrap { max-width: 720px; margin: 40px auto; background: #fff; padding: 32px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; border-bottom: 1px solid #ddd; padding-bottom: 6px; margin-top: 0; }
.jf-progress { background: #eee; height: 6px; border-radius: 3px; margin-bottom: 24px; overflow: hidden; }
.jf-progress-bar { background: #4a7; height: 100%; width: 0; transition: width .2s; }
.jf-field { margin-bottom: 18px; }
.jf-label { display: block; font-weight: 600; margin-bottom: 4px; }
.jf-required { color: #c33; }
.jf-main-desc, .jf-desc { font-size: .88rem; color: #555; margin: 4px 0; white-space: pre-line; }
.jf-field input[type=text], .jf-field input[type=email], .jf-field input[type=tel],
.jf-field input[type=number], .jf-field input[type=date], .jf-field select, .jf-field textarea {
    width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem;
}
.jf-options { display: flex; flex-wrap: wrap; gap: 12px; }
.jf-option { font-weight: normal; display: flex; align-items: center; gap: 4px; }
.jf-address { display: grid; gap: 8px; }
.jf-sublabel { font-size: .8rem; color: #666; }
.jf-signature-pad { border: 1px solid #ccc; border-radius: 4px; touch-action: none; background: #fff; display: block; }
.jf-sig-clear { margin-top: 6px; }
.jf-honeypot { position: absolute; left: -9999px; top: -9999px; }
.jf-nav { display: flex; justify-content: space-between; margin-top: 24px; }
.jf-nav button { padding: 10px 20px; font-size: 1rem; border-radius: 4px; border: 1px solid #999; background: #f0f0f0; cursor: pointer; }
.jf-nav .jf-submit { background: #4a7; color: #fff; border-color: #396; }
.jf-nav .jf-submit:disabled { background: #aaa; border-color: #999; cursor: not-allowed; }
.jf-error-banner { background: #fee; border: 1px solid #c33; color: #900; padding: 12px; border-radius: 4px; margin-bottom: 16px; }
.jf-inline-error { color: #c33; font-size: .85rem; font-weight: 600; margin: 4px 0 0; }
.jf-file-upload { border: 1px dashed #bbb; border-radius: 6px; padding: 12px; }
.jf-file-count { font-size: .8rem; color: #666; margin: 6px 0 0; }
.jf-file-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.jf-file-thumb { position: relative; margin: 0; width: 90px; height: 90px; }
.jf-file-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 1px solid #ccc; }
.jf-file-thumb button { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: none; background: #c33; color: #fff; cursor: pointer; line-height: 1; font-size: 14px; }
.jf-thankyou { text-align: center; padding: 40px 0; }
