﻿.kls-form-wrap { max-width: 100%; }
.kls-form__title { margin-bottom: 24px; }
.kls-form__fields { display: flex; flex-wrap: wrap; }
.kls-field { box-sizing: border-box; }
.kls-field__choices { display: flex; flex-direction: column; gap: 8px; }
.kls-choice { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.kls-separator { border: none; border-top: 1px solid #eee; margin: 8px 0; }
.kls-freetext { font-size: 14px; color: #555; }
.kls-field__help { margin: 4px 0 0; font-size: 12px; color: #6b7280; line-height: 1.4; }

/* Password */
.kls-password__wrap { display: flex; flex-direction: column; gap: 8px; }
.kls-password__input-wrap { position: relative; }
.kls-password__input-wrap input { width: 100%; padding-right: 40px; box-sizing: border-box; }
.kls-password__toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #6b7280; padding: 0; line-height: 1; }

/* Range */
.kls-range__wrap { display: flex; flex-direction: column; gap: 6px; }
.kls-range__input { width: 100%; cursor: pointer; accent-color: #3b82f6; }
.kls-range__labels { display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; }
.kls-range__value { text-align: center; font-weight: 600; font-size: 14px; color: #1e293b; }

/* Rating */
.kls-rating { display: flex; gap: 4px; }
.kls-rating__star { background: none; border: none; font-size: 24px; cursor: pointer; color: #d1d5db; padding: 0; line-height: 1; transition: color 0.1s; }
.kls-rating__star--active { color: #f59e0b; }
.kls-rating__star:hover { color: #f59e0b; }

/* NPS */
.kls-nps { display: flex; flex-direction: column; gap: 8px; }
.kls-nps__buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.kls-nps__btn { flex: 1; min-width: 32px; padding: 8px 4px; border: 1px solid #d1d5db; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 500; transition: background 0.15s, border-color 0.15s; }
.kls-nps__btn:hover { background: #f1f5f9; }
.kls-nps__btn--selected { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.kls-nps__labels { display: flex; justify-content: space-between; font-size: 11px; color: #6b7280; }

/* Terms & RGPD */
.kls-terms, .kls-rgpd { display: flex; align-items: flex-start; gap: 10px; }
.kls-terms input[type="checkbox"], .kls-rgpd input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; accent-color: #3b82f6; }
.kls-terms__label, .kls-rgpd__label { font-size: 13px; color: #374151; line-height: 1.5; }
.kls-terms__label a, .kls-rgpd__label a { color: #3b82f6; text-decoration: underline; }

/* Masked input */
.kls-masked input { font-family: monospace; letter-spacing: 1px; }

/* Phone prefix */
.kls-phone { display: flex; gap: 8px; }
.kls-phone__prefix { flex: 0 0 auto; width: 100px; }
.kls-phone__number { flex: 1; }

/* Multi-step */
.kls-steps-progress { display: flex; gap: 0; margin-bottom: 20px; }
.kls-step-dot { flex: 1; text-align: center; padding: 6px 4px; font-size: 12px; font-weight: 600; color: #94a3b8; border-bottom: 3px solid #e2e8f0; cursor: default; transition: color 0.2s, border-color 0.2s; }
.kls-step-dot--active { color: #6366f1; border-color: #6366f1; }
.kls-step-dot--done { color: #22c55e; border-color: #22c55e; }
.kls-step-nav { display: flex; justify-content: space-between; margin-top: 16px; gap: 8px; }
.kls-step-prev, .kls-step-next { padding: 10px 20px; border: 1px solid #d1d5db; background: #fff; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background 0.15s; }
.kls-step-next { background: #6366f1; color: #fff; border-color: #6366f1; }
.kls-step-prev:hover { background: #f1f5f9; }
.kls-step-next:hover { background: #4f46e5; }

/* Repeat group */
.kls-repeat-group { border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; }
.kls-repeat-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 12px; margin-bottom: 8px; }
.kls-repeat-subfield { margin-bottom: 8px; }
.kls-repeat-subfield:last-of-type { margin-bottom: 0; }
.kls-repeat-remove { background: none; border: 1px solid #fca5a5; color: #ef4444; border-radius: 4px; padding: 4px 10px; cursor: pointer; font-size: 12px; margin-top: 8px; }
.kls-repeat-remove:hover { background: #fef2f2; }
.kls-repeat-add { background: none; border: 1px dashed #a5b4fc; color: #6366f1; border-radius: 6px; padding: 8px 16px; cursor: pointer; font-size: 13px; width: 100%; margin-top: 8px; transition: background 0.15s; }
.kls-repeat-add:hover { background: #f5f3ff; }

/* Rich text */
.kls-richtext-wrap { border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; }
.kls-richtext-wrap .ql-toolbar { border: none; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.kls-richtext-wrap .ql-container { border: none; font-size: 14px; min-height: 120px; }
.kls-richtext-wrap.kls-richtext--error { border-color: #e53e3e; }
