/* FormForge Frontend Styles */
.formforge-wrap { max-width: 640px; margin: 0 auto; }
.formforge-form { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.formforge-field { margin-bottom: 20px; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.formforge-label { display: block; font-size: 14px; font-weight: 600; color: #1e293b; margin-bottom: 6px; overflow-wrap: anywhere; word-break: break-word; }
.formforge-required { color: #dc2626; margin-left: 2px; }
.formforge-input, .formforge-textarea, .formforge-select { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 15px; color: #1e293b; transition: border-color 0.15s, box-shadow 0.15s; background: #fff; }
.formforge-input:focus, .formforge-textarea:focus, .formforge-select:focus { border-color: #3B82F6; outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.formforge-textarea { resize: vertical; min-height: 100px; }
.formforge-color { width: 56px; min-width: 56px; height: 40px; padding: 4px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; cursor: pointer; vertical-align: middle; }
.formforge-color::-webkit-color-swatch-wrapper { padding: 0; }
.formforge-color::-webkit-color-swatch { border: 0; border-radius: 5px; }
.formforge-color::-moz-color-swatch { border: 0; border-radius: 5px; }
.formforge-radio-label, .formforge-checkbox-label { display: block; padding: 8px 0; font-size: 14px; color: #334155; cursor: pointer; }
.formforge-radio-label input, .formforge-checkbox-label input { margin-right: 8px; }
.formforge-description { font-size: 14px; color: #64748b; margin-top: 4px; overflow-wrap: anywhere; word-break: break-word; }
.formforge-submit-wrap { margin-top: 24px; }
.formforge-submit-btn { background: #3B82F6; color: #fff; border: none; padding: 12px 32px; font-size: 16px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: background 0.15s; width: 100%; }
.formforge-submit-btn:hover { background: #2D74E8; }
.formforge-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.formforge-message { margin-top: 16px; padding: 12px 16px; border-radius: 6px; font-size: 14px; }
.formforge-message--success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.formforge-message--error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.formforge-form--completed { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; }
.formforge-form--completed .formforge-success-state { width: min(100%, 520px); margin: 0 auto; padding: 28px 24px; text-align: center; border-radius: 14px; font-size: 18px; line-height: 1.5; box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12); }
.formforge-form--completed .formforge-success-state::before { content: "\2713"; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 999px; background: #10b981; color: #fff; font-weight: 800; }
.formforge-name-group, .formforge-address-row { display: flex; gap: 10px; }
.formforge-input--half { flex: 1; }
.formforge-input--quarter { flex: 0.5; }
.formforge-calculation { display: inline-flex; align-items: baseline; gap: 0.35em; flex-wrap: wrap; font-weight: 600; color: #1e293b; }
.formforge-calc-prefix:empty, .formforge-calc-suffix:empty { display: none; }
.formforge-file { padding: 8px; }
.formforge-rating { display: flex; gap: 4px; cursor: pointer; }
.formforge-star { font-size: 24px; color: #e2e8f0; transition: color 0.15s; }
.formforge-star.active, .formforge-star:hover { color: #f59e0b; }
.formforge-range-wrap { display: flex; align-items: center; gap: 12px; }
.formforge-range { flex: 1; }
.formforge-range-value { font-weight: 600; color: #3B82F6; min-width: 30px; }
.formforge-heading { margin: 24px 0 8px; color: #0f172a; }
.formforge-divider { border: none; border-top: 1px solid #e2e8f0; margin: 20px 0; }
.formforge-error { color: #dc2626; padding: 12px; background: #fef2f2; border-radius: 6px; }
.formforge-field[data-hidden="true"] { display: none; }
.formforge-map-address { position: relative; }
.formforge-map-suggest-shell { position: relative; z-index: 100000; width: 100%; }
.formforge-map-suggest-shell .formforge-map-input { box-sizing: border-box; display: block; width: 100%; }

/* Multi-step */
.formforge-progress { margin-bottom: 20px; }
.formforge-progress-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.formforge-progress-fill { height: 100%; background: #3B82F6; border-radius: 3px; transition: width 0.3s ease; }
.formforge-progress-text { font-size: 14px; color: #64748b; margin-top: 4px; display: inline-block; }
.formforge-step-nav { display: flex; gap: 10px; margin-top: 16px; }
.formforge-btn-prev, .formforge-btn-next { padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; }
.formforge-btn-prev { background: #f1f5f9; color: #334155; }
.formforge-btn-prev:hover { background: #e2e8f0; }
.formforge-btn-next { background: #3B82F6; color: #fff; }
.formforge-btn-next:hover { background: #2D74E8; }

/* Repeater */
.formforge-repeater { border: 1px solid #e2e8f0; border-radius: 6px; padding: 12px; }
.formforge-repeater-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.formforge-repeater-input { flex: 1; }
.formforge-repeater-remove { background: none; border: none; color: #dc2626; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.formforge-repeater-remove:hover { background: #fef2f2; }
.formforge-repeater-add { background: #f1f5f9; border: 1px dashed #cbd5e1; border-radius: 6px; padding: 8px 16px; cursor: pointer; font-size: 14px; color: #3B82F6; font-weight: 600; width: 100%; transition: background 0.15s; }
.formforge-repeater-add:hover { background: #EFF6FF; border-color: #3B82F6; }

/* ── Conversational Mode styles moved to assets/css/conversational.css ── */
