/* Fieldwren – frontend styles. Themes: default, modern, minimal, rounded, material, dark, inherit. */
.fwren-wrap, .editor-styles-wrapper.fwren-wrap {
	/* Colours: Forms -> Global Styles (kit), with fallbacks when no kit is loaded. */
	--fwren-accent: var(--fwrenbc-color-primary, #4f46e5);
	--fwren-highlight: var(--fwrenbc-color-accent, #0ea5e9);
	--fwren-heading: var(--fwrenbc-color-secondary, #0f172a);
	--fwren-text: var(--fwrenbc-color-secondary, #0f172a);
	--fwren-muted: var(--fwrenbc-color-text, #64748b);
	--fwren-border: #d9dee7;
	--fwren-border-hover: #b8c0cc;
	--fwren-bg: #ffffff;
	--fwren-input-bg: #ffffff;
	--fwren-soft: #f6f7fb;
	--fwren-error: #dc2626;
	--fwren-success: #047857;
	/* Typography presets: Text (body), Secondary (labels), Primary (headings), Accent (buttons). */
	--fwren-font: var(--fwrenbc-typo-text-font-family, inherit);
	--fwren-label-font: var(--fwrenbc-typo-secondary-font-family, var(--fwren-font));
	--fwren-label-weight: var(--fwrenbc-typo-secondary-font-weight, 600);
	--fwren-heading-font: var(--fwrenbc-typo-primary-font-family, var(--fwren-font));
	--fwren-heading-weight: var(--fwrenbc-typo-primary-font-weight, 700);
	--fwren-btn-font: var(--fwrenbc-typo-accent-font-family, var(--fwren-font));
	--fwren-btn-weight: var(--fwrenbc-typo-accent-font-weight, 600);
	--fwren-btn-transform: var(--fwrenbc-typo-accent-text-transform, none);
	--fwren-btn-spacing: var(--fwrenbc-typo-accent-letter-spacing, .01em);
	--fwren-radius: 10px;
	--fwren-gap: 20px;
	--fwren-font-size: 15px;
	--fwren-input-pad: 12px 14px;
	--fwren-col-gap: var(--fwren-gap);
	--fwren-ring: rgba(79, 70, 229, .16);
	--fwren-accent-soft: rgba(79, 70, 229, .08);
	color: var(--fwren-text);
	font-family: var(--fwren-font);
	font-size: var(--fwren-font-size);
	line-height: 1.55;
	position: relative;
	-webkit-font-smoothing: antialiased;
}
@supports (color: color-mix(in srgb, red, blue)) {
	.fwren-wrap, .editor-styles-wrapper.fwren-wrap {
		--fwren-border: color-mix(in srgb, var(--fwren-text) 17%, #ffffff);
		--fwren-border-hover: color-mix(in srgb, var(--fwren-text) 32%, #ffffff);
		--fwren-soft: color-mix(in srgb, var(--fwren-accent) 4%, #f8f9fb);
		--fwren-ring: color-mix(in srgb, var(--fwren-accent) 18%, transparent);
		--fwren-accent-soft: color-mix(in srgb, var(--fwren-accent) 8%, #ffffff);
	}
}
.fwren-form { margin: 0; }
.fwren-form, .fwren-form * { box-sizing: border-box; }
.fwren-form[style*="max-width"] { margin-left: auto; margin-right: auto; }
.fwren-form-title { margin: 0 0 16px; }

/* Layout grid */
.fwren-fields { display: flex; flex-wrap: wrap; gap: var(--fwren-gap) var(--fwren-col-gap); align-items: flex-start; }
.fwren-col { flex: 0 0 100%; max-width: 100%; min-width: 0; }
.fwren-col-75 { flex-basis: calc(75% - var(--fwren-col-gap) * .25); }
.fwren-col-66 { flex-basis: calc(66.666% - var(--fwren-col-gap) * .334); }
.fwren-col-50 { flex-basis: calc(50% - var(--fwren-col-gap) * .5); }
.fwren-col-33 { flex-basis: calc(33.333% - var(--fwren-col-gap) * .667); }
.fwren-col-25 { flex-basis: calc(25% - var(--fwren-col-gap) * .75); }
.fwren-columns { display: flex; gap: var(--fwren-col-gap); flex-wrap: nowrap; align-items: flex-start; }
.fwren-columns > .fwren-column { flex: 1 1 0; min-width: 0; }
.fwren-columns.fwren-col { flex-basis: 100%; }
.fwren-hidden-field, .fwren-hp, [hidden] { display: none !important; }
.fwren-hp { position: absolute !important; left: -9999px !important; }
.fwren-form:not(.is-ready) .fwren-cond { display: none; }

/* Labels */
.fwren-label { display: block; font-weight: 600; margin: 0 0 6px; font-size: .95em; color: var(--fwren-text); }
.fwren-sublabel { display: block; font-size: .85em; color: var(--fwren-muted); margin: 0 0 4px; }
.fwren-req { color: var(--fwren-error); margin-left: 3px; }
.fwren-help { font-size: .85em; color: var(--fwren-muted); margin-top: 5px; }
.fwren-error { font-size: .85em; color: var(--fwren-error); min-height: 0; margin-top: 4px; }
.fwren-error:empty { display: none; }
.fwren-lp-hidden .fwren-label:not(.fwren-consent *), .fwren-field.fwren-lp-hidden .fwren-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fwren-lp-left .fwren-field__inner, .fwren-field.fwren-lp-left .fwren-field__inner,
.fwren-lp-right .fwren-field__inner, .fwren-field.fwren-lp-right .fwren-field__inner { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; column-gap: 16px; align-items: start; }
.fwren-lp-left .fwren-field__inner > :not(.fwren-label), .fwren-lp-right .fwren-field__inner > :not(.fwren-label) { grid-column: 2; }
.fwren-lp-left .fwren-label, .fwren-lp-right .fwren-label { padding-top: 10px; }
.fwren-lp-right .fwren-label { text-align: right; }

/* Inputs */
.fwren-input,
.fwren-form input[type=text], .fwren-form input[type=email], .fwren-form input[type=url], .fwren-form input[type=tel],
.fwren-form input[type=number], .fwren-form input[type=password], .fwren-form input[type=date], .fwren-form input[type=time],
.fwren-form input[type=datetime-local], .fwren-form input[type=month], .fwren-form input[type=search], .fwren-form select, .fwren-form textarea {
	width: 100%; max-width: 100%; font: inherit; font-size: var(--fwren-font-size); color: var(--fwren-text);
	background: var(--fwren-input-bg); border: 1px solid var(--fwren-border); border-radius: var(--fwren-radius);
	padding: var(--fwren-input-pad); min-height: 44px; line-height: 1.4; margin: 0; box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.fwren-form textarea { min-height: 96px; resize: vertical; }
.fwren-form select:not([multiple]) { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.fwren-form select[multiple] { min-height: 110px; }
.fwren-input:focus, .fwren-form input:focus, .fwren-form select:focus, .fwren-form textarea:focus, .fwren-ss__control:focus {
	outline: none; border-color: var(--fwren-accent); box-shadow: 0 0 0 3px var(--fwren-accent-soft);
}
.fwren-form ::placeholder { color: #9ca3af; opacity: 1; }
.fwren-field.has-error .fwren-input, .fwren-field.has-error input:not([type=checkbox]):not([type=radio]), .fwren-field.has-error select, .fwren-field.has-error textarea, .fwren-field.has-error .fwren-ss__control, .fwren-field.has-error .fwren-upload__zone, .fwren-field.has-error .fwren-signature__pad { border-color: var(--fwren-error); }
.fwren-form input[readonly], .fwren-form textarea[readonly] { background: #f9fafb; }
.fwren-confirm { margin-top: 6px; }

.fwren-subfields { display: grid; gap: 12px; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.fwren-subfields--1 { --n: 1; } .fwren-subfields--2 { --n: 2; } .fwren-subfields--3 { --n: 3; }
.fwren-subfield--wide { grid-column: 1 / -1; }

.fwren-affix { display: flex; align-items: stretch; }
.fwren-affix .fwren-input { border-radius: 0; flex: 1; }
.fwren-affix > :first-child { border-top-left-radius: var(--fwren-radius); border-bottom-left-radius: var(--fwren-radius); }
.fwren-affix > :last-child { border-top-right-radius: var(--fwren-radius); border-bottom-right-radius: var(--fwren-radius); }
.fwren-affix__pre, .fwren-affix__suf { display: flex; align-items: center; padding: 0 12px; background: #f3f4f6; border: 1px solid var(--fwren-border); color: var(--fwren-muted); }
.fwren-affix__pre { border-right: 0; } .fwren-affix__suf { border-left: 0; }

.fwren-phone { display: flex; gap: 8px; }
.fwren-phone__code { flex: 0 0 auto; width: auto !important; max-width: 44%; }
.fwren-phone__number { flex: 1; }

/* Choices */
.fwren-choices { display: flex; flex-direction: column; gap: 8px; }
.fwren-choices--inline { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
.fwren-choices--col-2, .fwren-choices--col-3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.fwren-choices--col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fwren-choice { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; margin: 0; font-weight: 400; line-height: 1.45; }
.fwren-choice input { margin: 3px 0 0; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--fwren-accent); }
.fwren-choice input:disabled + .fwren-choice__label, .fwren-choice input:disabled ~ .fwren-choice__label { opacity: .5; }
.fwren-choices--buttons { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.fwren-choices--buttons .fwren-choice, .fwren-choices--cards .fwren-choice, .fwren-choices--images .fwren-choice { position: relative; border: 1px solid var(--fwren-border); border-radius: var(--fwren-radius); padding: 9px 16px; background: var(--fwren-input-bg); transition: border-color .15s, background .15s, box-shadow .15s; }
.fwren-choices--buttons .fwren-choice input, .fwren-choices--cards .fwren-choice input, .fwren-choices--images .fwren-choice input { position: absolute; opacity: 0; pointer-events: none; }
.fwren-choices--buttons .fwren-choice:has(input:checked), .fwren-choices--cards .fwren-choice:has(input:checked), .fwren-choices--images .fwren-choice:has(input:checked) { border-color: var(--fwren-accent); background: var(--fwren-accent-soft); box-shadow: 0 0 0 1px var(--fwren-accent) inset; }
.fwren-choices--buttons .fwren-choice:has(input:focus-visible), .fwren-choices--cards .fwren-choice:has(input:focus-visible), .fwren-choices--images .fwren-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--fwren-accent-soft); }
.fwren-choices--cards, .fwren-choices--images { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fwren-choices--cards .fwren-choice, .fwren-choices--images .fwren-choice { flex-direction: column; align-items: center; text-align: center; padding: 16px 12px; font-weight: 600; }
.fwren-choice__img img { display: block; width: 100%; max-height: 120px; object-fit: contain; margin-bottom: 8px; }
.fwren-other-input { margin-top: 6px; }
.fwren-consent { font-size: .95em; }
.fwren-terms-box { max-height: 160px; overflow: auto; border: 1px solid var(--fwren-border); border-radius: var(--fwren-radius); padding: 10px 14px; margin-bottom: 10px; font-size: .9em; background: #fafafa; }

/* Searchable select */
.fwren-ss { position: relative; }
.fwren-ss__native { position: absolute !important; opacity: 0; pointer-events: none; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
.fwren-ss__control { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; cursor: pointer; min-height: 44px; padding-right: 38px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.fwren-ss__ph { color: #9ca3af; }
.fwren-ss__chip { display: inline-flex; align-items: center; gap: 4px; background: var(--fwren-accent-soft); color: var(--fwren-text); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: .9em; }
.fwren-ss__chip button { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; color: inherit; }
.fwren-ss__drop { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--fwren-border); border-radius: var(--fwren-radius); box-shadow: 0 12px 28px rgba(0,0,0,.12); padding: 8px; color: #111827; }
.fwren-ss__search { margin-bottom: 6px !important; min-height: 38px !important; }
.fwren-ss__list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.fwren-ss__opt { padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.fwren-ss__opt:hover, .fwren-ss__opt.is-active { background: #f3f4f6; }
.fwren-ss__opt.is-selected { background: var(--fwren-accent-soft); font-weight: 600; }
.fwren-ss__opt.is-disabled { opacity: .45; cursor: not-allowed; }
.fwren-ss__none { padding: 8px 10px; color: var(--fwren-muted); }

/* Rating, NPS, range, grid, ranking */
.fwren-rating { --fwren-rating-on: #f59e0b; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.fwren-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fwren-rating label { font-size: 30px; line-height: 1; color: #d1d5db; cursor: pointer; transition: color .1s, transform .1s; }
.fwren-rating label:hover, .fwren-rating label:hover ~ label, .fwren-rating input:checked ~ label { color: var(--fwren-rating-on); }
.fwren-rating input:focus-visible + label { outline: 2px solid var(--fwren-accent); outline-offset: 2px; border-radius: 4px; }
.fwren-rating__hint { font-size: .85em; color: var(--fwren-muted); min-height: 1.2em; }
.fwren-nps__scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.fwren-nps__item { position: relative; margin: 0; }
.fwren-nps__item input { position: absolute; opacity: 0; }
.fwren-nps__item span { display: flex; align-items: center; justify-content: center; height: 42px; border: 1px solid var(--fwren-border); border-radius: 6px; cursor: pointer; font-weight: 600; background: var(--fwren-input-bg); }
.fwren-nps__item input:checked + span { background: var(--fwren-accent); border-color: var(--fwren-accent); color: #fff; }
.fwren-nps__item input:focus-visible + span { box-shadow: 0 0 0 3px var(--fwren-accent-soft); }
.fwren-nps__labels { display: flex; justify-content: space-between; font-size: .85em; color: var(--fwren-muted); margin-top: 6px; }
.fwren-range { display: flex; align-items: center; gap: 14px; }
.fwren-range__input { flex: 1; accent-color: var(--fwren-accent); min-height: 0 !important; padding: 0 !important; border: 0 !important; }
.fwren-range__value { min-width: 56px; text-align: right; font-weight: 700; }
.fwren-grid-wrap { overflow-x: auto; }
.fwren-grid { width: 100%; border-collapse: collapse; font-size: .95em; }
.fwren-grid th, .fwren-grid td { padding: 9px 8px; text-align: center; border-bottom: 1px solid #eef0f3; }
.fwren-grid tbody th { text-align: left; font-weight: 500; }
.fwren-grid thead th { font-weight: 600; font-size: .85em; color: var(--fwren-muted); }
.fwren-grid input { accent-color: var(--fwren-accent); width: 18px; height: 18px; }
.fwren-ranking { list-style: none; margin: 0; padding: 0; counter-reset: rank; display: grid; gap: 6px; }
.fwren-ranking__item { counter-increment: rank; display: flex; align-items: center; gap: 10px; border: 1px solid var(--fwren-border); border-radius: var(--fwren-radius); padding: 9px 12px; background: var(--fwren-input-bg); cursor: grab; user-select: none; }
.fwren-ranking__item::before { content: counter(rank); font-weight: 700; color: var(--fwren-accent); min-width: 18px; }
.fwren-ranking__item.is-dragging { opacity: .5; }
.fwren-ranking__handle { color: var(--fwren-muted); letter-spacing: -2px; }
.fwren-ranking__label { flex: 1; }
.fwren-ranking__move button { border: 1px solid var(--fwren-border); background: #fff; border-radius: 4px; width: 26px; height: 26px; cursor: pointer; margin-left: 4px; }

/* Calculation */
.fwren-calc-output { font-size: 1.9em; font-weight: 800; color: var(--fwren-accent); letter-spacing: -.01em; }

/* Upload */
.fwren-upload__zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 2px dashed var(--fwren-border); border-radius: var(--fwren-radius); padding: 22px 16px; cursor: pointer; background: #fafafa; transition: border-color .15s, background .15s; margin: 0; }
.fwren-upload__zone:hover, .fwren-upload__zone.is-over { border-color: var(--fwren-accent); background: var(--fwren-accent-soft); }
.fwren-upload__icon { color: var(--fwren-accent); }
.fwren-upload__text { font-weight: 600; }
.fwren-upload__hint { font-size: .8em; color: var(--fwren-muted); }
.fwren-upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fwren-upload__zone:focus-within { box-shadow: 0 0 0 3px var(--fwren-accent-soft); }
.fwren-upload__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.fwren-upload__item { display: flex; align-items: center; gap: 10px; border: 1px solid #eef0f3; border-radius: 6px; padding: 6px 10px; font-size: .9em; }
.fwren-upload__thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }
.fwren-upload__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwren-upload__bar { width: 80px; height: 5px; background: #eef0f3; border-radius: 3px; overflow: hidden; }
.fwren-upload__bar span { display: block; height: 100%; width: 0; background: var(--fwren-accent); transition: width .2s; }
.fwren-upload__item.is-done .fwren-upload__bar { display: none; }
.fwren-upload__item.is-done::after { content: "✓"; color: var(--fwren-success); font-weight: 700; }
.fwren-upload__remove { border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--fwren-muted); }

/* Signature */
.fwren-signature { position: relative; }
.fwren-signature__pad { display: block; width: 100%; border: 1px solid var(--fwren-border); border-radius: var(--fwren-radius); background: #fff; touch-action: none; cursor: crosshair; }
.fwren-signature__clear { position: absolute; right: 8px; top: 8px; border: 1px solid var(--fwren-border); background: #fff; border-radius: 4px; padding: 2px 10px; font-size: .8em; cursor: pointer; }

/* Password */
.fwren-strength { height: 18px; font-size: .8em; margin-top: 4px; color: var(--fwren-muted); }
.fwren-strength[data-level=weak] span { color: var(--fwren-error); }
.fwren-strength[data-level=medium] span { color: #d97706; }
.fwren-strength[data-level=strong] span { color: var(--fwren-success); }
.fwren-counter { text-align: right; font-size: .8em; color: var(--fwren-muted); margin-top: 3px; }

/* Repeater */
.fwren-repeater__row { position: relative; border: 1px solid #eef0f3; border-radius: var(--fwren-radius); padding: 14px 40px 14px 14px; margin-bottom: 10px; }
.fwren-repeater__remove { position: absolute; top: 8px; right: 8px; border: 0; background: #f3f4f6; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }
.fwren-repeater__remove:disabled { opacity: .3; cursor: default; }
.fwren-repeater__add { border: 1px dashed var(--fwren-accent); background: transparent; color: var(--fwren-accent); padding: 8px 14px; border-radius: var(--fwren-radius); cursor: pointer; font-weight: 600; }
.fwren-repeater__add:disabled { opacity: .4; cursor: default; }

/* Section / HTML */
.fwren-section { padding-top: 6px; }
.fwren-section.has-divider { border-bottom: 1px solid #e5e7eb; padding-bottom: 10px; }
.fwren-section__title { margin: 0 0 4px; }
.fwren-section__desc { color: var(--fwren-muted); }
.fwren-section__desc p { margin: 0; }

/* Buttons */
.fwren-actions { display: flex; }
.fwren-btn-align-center .fwren-actions { justify-content: center; }
.fwren-btn-align-right .fwren-actions { justify-content: flex-end; }
.fwren-btn-align-justify .fwren-btn { width: 100%; }
.fwren-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: var(--fwren-font-size); color: #fff; background: var(--fwren-accent); border: 1px solid var(--fwren-accent); border-radius: var(--fwren-radius); padding: 12px 26px; cursor: pointer; line-height: 1.2; transition: filter .15s, transform .05s, background .15s; text-decoration: none; min-height: 46px; }
.fwren-btn:hover { filter: brightness(1.08); }
.fwren-btn:active { transform: translateY(1px); }
.fwren-btn:focus-visible { outline: 3px solid var(--fwren-accent-soft); outline-offset: 2px; }
.fwren-btn:disabled { opacity: .65; cursor: progress; }
.fwren-btn--secondary { background: transparent; color: var(--fwren-text); border-color: var(--fwren-border); }
.fwren-btn svg, .fwren-btn i { width: 1em; height: 1em; }
.fwren-form.is-submitting .fwren-submit .fwren-btn__text::after { content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 9px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: fwren-spin .7s linear infinite; }
@keyframes fwren-spin { to { transform: rotate(360deg); } }

/* Steps */
.fwren-progress { margin-bottom: 20px; }
.fwren-progress__meta { display: flex; justify-content: space-between; font-size: .85em; color: var(--fwren-muted); margin-bottom: 6px; }
.fwren-progress__title { font-weight: 600; color: var(--fwren-text); }
.fwren-progress__bar { height: 6px; background: #eef0f3; border-radius: 3px; overflow: hidden; }
.fwren-progress__bar span { display: block; height: 100%; background: var(--fwren-accent); transition: width .3s ease; }
.fwren-progress-steps { display: flex; list-style: none; margin: 0 0 22px; padding: 0; gap: 8px; counter-reset: s; }
.fwren-progress-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .85em; color: var(--fwren-muted); position: relative; }
.fwren-progress-steps__num { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--fwren-border); font-weight: 700; flex: 0 0 28px; background: var(--fwren-bg); }
.fwren-progress-steps li.is-active { color: var(--fwren-text); font-weight: 600; }
.fwren-progress-steps li.is-active .fwren-progress-steps__num { border-color: var(--fwren-accent); color: var(--fwren-accent); }
.fwren-progress-steps li.is-done .fwren-progress-steps__num { background: var(--fwren-accent); border-color: var(--fwren-accent); color: #fff; }
.fwren-step__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: var(--fwren-gap); }
.fwren-step__nav .fwren-next { margin-left: auto; }
.fwren-step:not(:last-of-type) .fwren-step__nav:empty { display: none; }

/* Notices */
.fwren-notice { border-radius: var(--fwren-radius); padding: 12px 16px; margin: 0 0 16px; border: 1px solid; font-size: .95em; }
.fwren-notice--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.fwren-notice--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.fwren-notice--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.fwren-notice p:last-child { margin-bottom: 0; }
.fwren-confirmation { animation: fwren-in .3s ease; }
@keyframes fwren-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fwren-draft-link { display: flex; gap: 8px; margin-top: 8px; }
.fwren-draft-link input { flex: 1; }

/* Captcha */
.fwren-captcha { margin: 4px 0 14px; }

/* Floating labels (field label placement: floating) */
.fwren-lp-floating .fwren-field--text, .fwren-lp-floating .fwren-field--email,
.fwren-lp-floating .fwren-field--url, .fwren-lp-floating .fwren-field--number,
.fwren-lp-floating .fwren-field--textarea, .fwren-lp-floating .fwren-field--password { position: relative; }
.fwren-lp-floating .fwren-field--text .fwren-label, .fwren-lp-floating .fwren-field--email .fwren-label, .fwren-lp-floating .fwren-field--url .fwren-label,
.fwren-lp-floating .fwren-field--number .fwren-label, .fwren-lp-floating .fwren-field--textarea .fwren-label, .fwren-lp-floating .fwren-field--password .fwren-label {
	position: absolute; left: 12px; top: 11px; margin: 0; padding: 0 4px; background: var(--fwren-input-bg); font-weight: 400; color: var(--fwren-muted); pointer-events: none; transition: all .15s ease; z-index: 1; line-height: 1.4;
}
.fwren-lp-floating .fwren-field:focus-within .fwren-label,
.fwren-lp-floating .fwren-field:has(input:not(:placeholder-shown)) .fwren-label,
.fwren-lp-floating .fwren-field:has(textarea:not(:placeholder-shown)) .fwren-label {
	top: -8px; font-size: .75em; color: var(--fwren-accent); font-weight: 600;
}
.fwren-lp-floating .fwren-field .fwren-input::placeholder { color: transparent; }


/* Conversational */
.fwren-conversational .fwren-fields > .fwren-col:not(.is-current) { display: none !important; }
.fwren-conversational .fwren-fields > .fwren-col.is-current { animation: fwren-in .35s ease; font-size: 1.12em; }
.fwren-conversational .fwren-label { font-size: 1.35em; font-weight: 700; margin-bottom: 12px; }
.fwren-conv-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.fwren-conv-progress { flex: 1; height: 4px; background: #eef0f3; border-radius: 2px; overflow: hidden; order: 3; }
.fwren-conv-progress span { display: block; height: 100%; background: var(--fwren-accent); transition: width .3s; }
.fwren-conv-ok small { font-weight: 400; opacity: .8; font-size: .75em; }
.fwren-conv-arrows button { border: 1px solid var(--fwren-border); background: var(--fwren-bg); width: 36px; height: 36px; border-radius: 6px; cursor: pointer; }
.fwren-conv-start { text-align: center; padding: 40px 16px; }
.fwren-conv-start h2 { margin-top: 0; }

/* Notices outside forms */
.fwren-embed-placeholder { padding: 24px; border: 1px dashed #c3c4c7; text-align: center; color: #50575e; }

/* Responsive */
@media (max-width: 640px) {
	.fwren-col-75, .fwren-col-66, .fwren-col-50, .fwren-col-33, .fwren-col-25 { flex-basis: 100%; }
	.fwren-columns.fwren-stack-yes, .fwren-columns { flex-direction: column; }
	.fwren-columns > .fwren-column { width: 100%; flex-basis: auto !important; max-width: 100% !important; }
	.fwren-subfields { grid-template-columns: 1fr; }
	.fwren-choices--col-2, .fwren-choices--col-3 { grid-template-columns: 1fr; }
	.fwren-lp-left .fwren-field__inner, .fwren-lp-right .fwren-field__inner { display: block; }
	.fwren-nps__scale { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.fwren-progress-steps__title { display: none; }
	.fwren-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.fwren-wrap *, .fwren-wrap *::after { animation: none !important; transition: none !important; }
}

/* BS23 Container (rows / inner containers) inside forms */
.fwren-fields { --fwrenbc-container-padding: 0px; --fwrenbc-widgets-spacing: var(--fwren-gap); }
.fwren-fields > .fwrenbc-econ { flex: 0 1 100%; max-width: 100%; }
.fwrenbc-econ > .fwren-col, .fwrenbc-econ-inner > .fwren-col { flex: var(--container-widget-flex-grow, 0) 1 auto; width: var(--container-widget-width, 100%); max-width: 100%; }
.fwrenbc-econ > .fwren-col-75, .fwrenbc-econ-inner > .fwren-col-75 { width: calc(75% - var(--column-gap, 20px) * .25); flex-grow: 0; }
.fwrenbc-econ > .fwren-col-66, .fwrenbc-econ-inner > .fwren-col-66 { width: calc(66.666% - var(--column-gap, 20px) * .334); flex-grow: 0; }
.fwrenbc-econ > .fwren-col-50, .fwrenbc-econ-inner > .fwren-col-50 { width: calc(50% - var(--column-gap, 20px) * .5); flex-grow: 0; }
.fwrenbc-econ > .fwren-col-33, .fwrenbc-econ-inner > .fwren-col-33 { width: calc(33.333% - var(--column-gap, 20px) * .667); flex-grow: 0; }
.fwrenbc-econ > .fwren-col-25, .fwrenbc-econ-inner > .fwren-col-25 { width: calc(25% - var(--column-gap, 20px) * .75); flex-grow: 0; }
@media (max-width: 640px) {
	.fwrenbc-econ > .fwren-col, .fwrenbc-econ-inner > .fwren-col { width: 100%; }
}

/* Switch */
.fwren-toggle { --fwren-toggle-on: var(--fwren-accent); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 400; margin: 0; }
.fwren-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fwren-toggle__track { position: relative; width: 44px; height: 24px; border-radius: 24px; background: #d1d5db; transition: background .15s; flex: 0 0 44px; }
.fwren-toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.fwren-toggle input:checked + .fwren-toggle__track { background: var(--fwren-toggle-on); }
.fwren-toggle input:checked + .fwren-toggle__track::after { transform: translateX(20px); }
.fwren-toggle input:focus-visible + .fwren-toggle__track { box-shadow: 0 0 0 3px var(--fwren-accent-soft); }

/* Toggle select (segmented) */
.fwren-choices--toggle { display: inline-flex; flex-direction: row; flex-wrap: wrap; gap: 0; border: 1px solid var(--fwren-border); border-radius: var(--fwren-radius); padding: 3px; background: #f3f4f6; }
.fwren-choices--toggle-full { display: flex; }
.fwren-choices--toggle-full .fwren-choice { flex: 1; justify-content: center; }
.fwren-choices--toggle .fwren-choice { position: relative; padding: 7px 16px; border-radius: calc(var(--fwren-radius) - 2px); font-weight: 600; color: var(--fwren-muted); align-items: center; }
.fwren-choices--toggle .fwren-choice input { position: absolute; opacity: 0; pointer-events: none; }
.fwren-choices--toggle .fwren-choice:has(input:checked) { background: #fff; color: var(--fwren-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.fwren-choices--toggle .fwren-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--fwren-accent-soft); }

/* Like / dislike */
.fwren-like { display: inline-flex; gap: 8px; }
.fwren-like__btn { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--fwren-border); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; color: var(--fwren-muted); background: var(--fwren-input-bg); margin: 0; transition: all .15s; }
.fwren-like__btn input { position: absolute; opacity: 0; pointer-events: none; }
.fwren-like__btn--like:has(input:checked) { color: #047857; border-color: #10b981; background: #ecfdf5; }
.fwren-like__btn--dislike:has(input:checked) { color: #b91c1c; border-color: #f87171; background: #fef2f2; }
.fwren-like__btn:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--fwren-accent-soft); }

/* Rich text */
.fwren-rte { border: 1px solid var(--fwren-border); border-radius: var(--fwren-radius); background: var(--fwren-input-bg); overflow: hidden; }
.fwren-rte:focus-within { border-color: var(--fwren-accent); box-shadow: 0 0 0 3px var(--fwren-accent-soft); }
.fwren-rte__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--fwren-border); background: #f9fafb; }
.fwren-rte__bar button { border: 0; background: none; min-width: 30px; height: 28px; border-radius: 4px; cursor: pointer; font-weight: 700; color: var(--fwren-text); }
.fwren-rte__bar button:hover { background: #e5e7eb; }
.fwren-rte__bar button[data-cmd=italic] { font-style: italic; }
.fwren-rte__bar button[data-cmd=underline] { text-decoration: underline; }
.fwren-rte .fwren-rte__area { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: auto; max-height: 420px; }
.fwren-rte__area:empty::before { content: attr(data-placeholder); color: #9ca3af; }
.fwren-rte__area ul, .fwren-rte__area ol { margin: 0 0 0 1.4em; padding: 0; }
.fwren-rte.is-over { border-color: var(--fwren-error); }
.fwren-field.has-error .fwren-rte { border-color: var(--fwren-error); }

/* Map */
.fwren-map__bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fwren-map__search { flex: 1 1 200px; }
.fwren-map__bar .fwren-btn { min-height: 44px; padding: 8px 14px; }
.fwren-map { width: 100%; border: 1px solid var(--fwren-border); border-radius: var(--fwren-radius); overflow: hidden; z-index: 0; }
.fwren-map--editor { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 12px, #e5e7eb 12px, #e5e7eb 24px); color: #4b5563; }
.fwren-map__picked { font-size: .85em; color: var(--fwren-muted); margin-top: 6px; min-height: 1.2em; }
.fwren-field.has-error .fwren-map { border-color: var(--fwren-error); }

/* Simple captcha */
.fwren-scaptcha { display: flex; align-items: center; gap: 12px; }
.fwren-scaptcha__q { font-weight: 700; font-size: 1.05em; white-space: nowrap; padding: 9px 14px; background: #f3f4f6; border-radius: var(--fwren-radius); letter-spacing: .04em; }
.fwren-scaptcha__a { max-width: 180px; }

/* Summary */
.fwren-summary { border: 1px solid var(--fwren-border); border-radius: var(--fwren-radius); padding: 16px 18px; background: #f9fafb; }
.fwren-summary__title { margin: 0 0 10px; font-size: 1em; }
.fwren-summary__list { display: grid; grid-template-columns: minmax(120px, 35%) 1fr; gap: 6px 14px; margin: 0; }
.fwren-summary__list dt { color: var(--fwren-muted); font-weight: 600; }
.fwren-summary__list dd { margin: 0; word-break: break-word; }
.fwren-summary__list:empty::before { content: "—"; color: var(--fwren-muted); }
@media (max-width: 640px) { .fwren-summary__list { grid-template-columns: 1fr; } .fwren-summary__list dd { margin-bottom: 6px; } }


/* ======================================================================
 * Design layer – global colours / typography, refined controls
 * ==================================================================== */
.fwren-form-title, .fwren-section__title, .fwren-conv-start h2, .fwren-summary__title, .fwren-preview-title {
	font-family: var(--fwren-heading-font); font-weight: var(--fwren-heading-weight); color: var(--fwren-heading); letter-spacing: -.01em;
}
.fwren-section__title { font-size: 1.2em; margin-bottom: 2px; }
.fwren-section { padding-top: 8px; }
.fwren-section.has-divider { border-bottom: 1px solid var(--fwren-border); padding-bottom: 12px; }
.fwren-section__desc { color: var(--fwren-muted); }

/* Labels & help */
.fwren-label { font-family: var(--fwren-label-font); font-weight: var(--fwren-label-weight); font-size: .93em; color: var(--fwren-heading); margin-bottom: 7px; letter-spacing: -.003em; }
.fwren-req { color: var(--fwren-accent); font-weight: 700; }
.fwren-sublabel { color: var(--fwren-muted); font-size: .82em; font-weight: 500; }
.fwren-help { color: var(--fwren-muted); font-size: .84em; margin-top: 6px; }
.fwren-error { display: flex; align-items: center; gap: 6px; font-size: .84em; font-weight: 500; margin-top: 6px; }
.fwren-error::before { content: "!"; flex: 0 0 16px; height: 16px; border-radius: 50%; background: var(--fwren-error); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Inputs */
.fwren-input,
.fwren-form input[type=text], .fwren-form input[type=email], .fwren-form input[type=url], .fwren-form input[type=tel],
.fwren-form input[type=number], .fwren-form input[type=password], .fwren-form input[type=date], .fwren-form input[type=time],
.fwren-form input[type=datetime-local], .fwren-form input[type=month], .fwren-form input[type=search], .fwren-form select, .fwren-form textarea {
	font-family: var(--fwren-font); border: 1.5px solid var(--fwren-border); border-radius: var(--fwren-radius); min-height: 48px;
	background-color: var(--fwren-input-bg); box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.fwren-input:hover, .fwren-form input:not([type=checkbox]):not([type=radio]):not([type=range]):hover, .fwren-form select:hover, .fwren-form textarea:hover, .fwren-ss__control:hover { border-color: var(--fwren-border-hover); }
.fwren-input:focus, .fwren-form input:focus, .fwren-form select:focus, .fwren-form textarea:focus, .fwren-ss__control:focus, .fwren-ss.is-open .fwren-ss__control {
	border-color: var(--fwren-accent); box-shadow: 0 0 0 4px var(--fwren-ring); outline: none;
}
.fwren-form ::placeholder { color: var(--fwren-muted); opacity: .62; }
.fwren-form input[readonly], .fwren-form textarea[readonly] { background-color: var(--fwren-soft); }
.fwren-field.has-error .fwren-input:focus, .fwren-field.has-error input:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.fwren-affix__pre, .fwren-affix__suf { background: var(--fwren-soft); border: 1.5px solid var(--fwren-border); color: var(--fwren-muted); font-weight: 600; }

/* Radio & checkbox */
.fwren-choice input[type=radio], .fwren-choice input[type=checkbox], .fwren-consent input[type=checkbox], .fwren-grid input {
	-webkit-appearance: none; appearance: none; width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; border: 1.5px solid var(--fwren-border-hover);
	background: #fff center / 12px no-repeat; border-radius: 6px; cursor: pointer; transition: all .15s ease; position: relative;
}
.fwren-choice input[type=radio], .fwren-grid input[type=radio] { border-radius: 50%; }
.fwren-choice input:hover, .fwren-grid input:hover { border-color: var(--fwren-accent); }
.fwren-choice input:checked, .fwren-grid input:checked { background-color: var(--fwren-accent); border-color: var(--fwren-accent); }
.fwren-choice input[type=checkbox]:checked, .fwren-grid input[type=checkbox]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E"); }
.fwren-choice input[type=radio]:checked, .fwren-grid input[type=radio]:checked { box-shadow: inset 0 0 0 4px #fff; }
.fwren-choice input:focus-visible, .fwren-grid input:focus-visible { box-shadow: 0 0 0 4px var(--fwren-ring); }
.fwren-choice input[type=radio]:checked:focus-visible { box-shadow: inset 0 0 0 4px #fff, 0 0 0 4px var(--fwren-ring); }
.fwren-choice { gap: 10px; }
.fwren-choices { gap: 10px; }

/* Buttons / cards / image choices */
.fwren-choices--buttons .fwren-choice, .fwren-choices--cards .fwren-choice, .fwren-choices--images .fwren-choice {
	border: 1.5px solid var(--fwren-border); border-radius: var(--fwren-radius); background: var(--fwren-input-bg); padding: 10px 18px; font-weight: 500;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .15s, background-color .15s, box-shadow .15s, transform .1s;
}
.fwren-choices--buttons .fwren-choice:hover, .fwren-choices--cards .fwren-choice:hover, .fwren-choices--images .fwren-choice:hover { border-color: var(--fwren-border-hover); }
.fwren-choices--buttons .fwren-choice:has(input:checked), .fwren-choices--cards .fwren-choice:has(input:checked), .fwren-choices--images .fwren-choice:has(input:checked) {
	border-color: var(--fwren-accent); background: var(--fwren-accent-soft); color: var(--fwren-heading); box-shadow: 0 0 0 1px var(--fwren-accent) inset;
}
.fwren-choices--cards .fwren-choice, .fwren-choices--images .fwren-choice { padding: 18px 14px; font-weight: 600; position: relative; }
.fwren-choices--cards .fwren-choice:has(input:checked)::after, .fwren-choices--images .fwren-choice:has(input:checked)::after {
	content: ""; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--fwren-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.fwren-choices--toggle { background: var(--fwren-soft); border: 1.5px solid var(--fwren-border); }
.fwren-choices--toggle .fwren-choice:has(input:checked) { color: var(--fwren-accent); }

/* Searchable select chips / dropdown */
.fwren-ss__chip { background: var(--fwren-accent-soft); color: var(--fwren-heading); font-weight: 500; }
.fwren-ss__drop { border-radius: var(--fwren-radius); border-color: var(--fwren-border); box-shadow: 0 16px 36px -8px rgba(15, 23, 42, .18); }
.fwren-ss__opt.is-selected { background: var(--fwren-accent-soft); color: var(--fwren-accent); }

/* Buttons */
.fwren-btn {
	font-family: var(--fwren-btn-font); font-weight: var(--fwren-btn-weight); text-transform: var(--fwren-btn-transform); letter-spacing: var(--fwren-btn-spacing);
	background: var(--fwren-accent); border: 1.5px solid var(--fwren-accent); border-radius: var(--fwren-radius); padding: 13px 28px; min-height: 50px;
	box-shadow: 0 8px 20px -10px var(--fwren-accent), 0 1px 2px rgba(15, 23, 42, .08); transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.fwren-btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 24px -10px var(--fwren-accent), 0 1px 2px rgba(15, 23, 42, .08); }
.fwren-btn:active { transform: translateY(0); }
.fwren-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--fwren-ring); }
.fwren-btn--secondary { background: #fff; color: var(--fwren-heading); border-color: var(--fwren-border); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.fwren-btn--secondary:hover { border-color: var(--fwren-border-hover); filter: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.fwren-submit .fwren-btn__text::after { content: "→"; margin-left: .45em; transition: transform .15s; display: inline-block; }
.fwren-submit:hover .fwren-btn__text::after { transform: translateX(3px); }
.fwren-form.is-submitting .fwren-submit .fwren-btn__text::after { content: ""; }
.fwren-actions { margin-top: 4px; }

/* Steps */
.fwren-progress { margin-bottom: 26px; }
.fwren-progress__meta { font-size: .84em; }
.fwren-progress__title { font-family: var(--fwren-heading-font); color: var(--fwren-heading); }
.fwren-progress__bar { height: 8px; border-radius: 99px; background: var(--fwren-soft); box-shadow: inset 0 0 0 1px var(--fwren-border); }
.fwren-progress__bar span { border-radius: 99px; background: linear-gradient(90deg, var(--fwren-accent), var(--fwren-highlight)); }
.fwren-progress-steps { margin-bottom: 28px; }
.fwren-progress-steps li { gap: 10px; }
.fwren-progress-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--fwren-border); border-radius: 2px; margin-left: 4px; }
.fwren-progress-steps li.is-done:not(:last-child)::after { background: var(--fwren-accent); }
.fwren-progress-steps__num { width: 32px; height: 32px; flex: 0 0 32px; border-width: 2px; border-color: var(--fwren-border); color: var(--fwren-muted); font-family: var(--fwren-heading-font); }
.fwren-progress-steps li.is-active .fwren-progress-steps__num { border-color: var(--fwren-accent); color: var(--fwren-accent); box-shadow: 0 0 0 4px var(--fwren-ring); }
.fwren-progress-steps li.is-done .fwren-progress-steps__num { background: var(--fwren-accent); border-color: var(--fwren-accent); color: #fff; }
.fwren-step__nav { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--fwren-border); }

/* Notices & confirmation */
.fwren-notice { border-radius: var(--fwren-radius); padding: 14px 18px; border-width: 1px; }
.fwren-notice--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.fwren-confirmation.fwren-notice--success, .fwren-confirmation { position: relative; text-align: center; padding: 34px 26px 28px; border-radius: calc(var(--fwren-radius) + 4px); background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; font-size: 1.02em; }
.fwren-confirmation::before { content: ""; display: block; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 26px no-repeat; box-shadow: 0 0 0 8px rgba(22, 163, 74, .12); }
.fwren-confirmation p { margin: 0 0 .5em; }
.fwren-confirmation p:last-child { margin-bottom: 0; }

/* Uploads, signature, range, rating, NPS, calc, summary */
.fwren-upload__zone { border: 1.5px dashed var(--fwren-border-hover); border-radius: var(--fwren-radius); background: var(--fwren-soft); padding: 26px 16px; }
.fwren-upload__zone:hover, .fwren-upload__zone.is-over { border-color: var(--fwren-accent); background: var(--fwren-accent-soft); }
.fwren-upload__icon { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); margin-bottom: 4px; }
.fwren-upload__text { font-family: var(--fwren-label-font); color: var(--fwren-heading); }
.fwren-upload__item { border-color: var(--fwren-border); border-radius: 8px; background: #fff; }
.fwren-signature__pad { border: 1.5px solid var(--fwren-border); border-radius: var(--fwren-radius); background: #fff linear-gradient(transparent calc(100% - 38px), var(--fwren-border) calc(100% - 38px), var(--fwren-border) calc(100% - 37px), transparent calc(100% - 37px)); }
.fwren-range__input { accent-color: var(--fwren-accent); }
.fwren-range__value { font-family: var(--fwren-heading-font); color: var(--fwren-accent); }
.fwren-nps__item span { border: 1.5px solid var(--fwren-border); border-radius: 8px; font-family: var(--fwren-heading-font); transition: all .12s; }
.fwren-nps__item span:hover { border-color: var(--fwren-accent); color: var(--fwren-accent); }
.fwren-calc-output { font-family: var(--fwren-heading-font); color: var(--fwren-accent); font-size: 2em; letter-spacing: -.02em; }
.fwren-field--calculation .fwren-field__inner { background: var(--fwren-soft); border: 1px solid var(--fwren-border); border-radius: var(--fwren-radius); padding: 14px 18px; }
.fwren-summary { background: var(--fwren-soft); border-color: var(--fwren-border); border-radius: var(--fwren-radius); }
.fwren-terms-box { background: var(--fwren-soft); border-color: var(--fwren-border); }
.fwren-scaptcha__q { background: var(--fwren-soft); border: 1.5px solid var(--fwren-border); font-family: var(--fwren-heading-font); }
.fwren-ranking__item { border: 1.5px solid var(--fwren-border); border-radius: var(--fwren-radius); }
.fwren-ranking__item::before { color: var(--fwren-accent); font-family: var(--fwren-heading-font); }
.fwren-repeater__row { border-color: var(--fwren-border); background: #fff; border-radius: var(--fwren-radius); }
.fwren-repeater__add { border-radius: var(--fwren-radius); }
.fwren-grid th, .fwren-grid td { border-color: var(--fwren-border); }
.fwren-grid tbody tr:hover { background: var(--fwren-soft); }
.fwren-like__btn { border-width: 1.5px; }
.fwren-rte { border-width: 1.5px; }
.fwren-rte__bar { background: var(--fwren-soft); }
.fwren-map { border: 1.5px solid var(--fwren-border); }

/* Phone: code picker + number stay inside the column at any width. */
.fwren-phone { min-width: 0; }
.fwren-phone__code { flex: 0 1 auto; min-width: 0; max-width: 46%; }
.fwren-phone__number { flex: 1 1 0; min-width: 0; }

/* Button / card / image / toggle choices hide the native input completely (no layout space). */
.fwren-choices--buttons .fwren-choice input[type], .fwren-choices--cards .fwren-choice input[type],
.fwren-choices--images .fwren-choice input[type], .fwren-choices--toggle .fwren-choice input[type] {
	position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; flex: none;
}
.fwren-choices--cards .fwren-choice, .fwren-choices--images .fwren-choice { justify-content: center; min-height: 72px; }
@media (max-width: 640px) {
	.fwren-choices--cards, .fwren-choices--images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.fwren-choices--cards .fwren-choice, .fwren-choices--images .fwren-choice { min-height: 60px; padding: 14px 10px; }
}

/* ==================================================================
 * Template design kit (.fwrenx-*): headlines, chips and perk lists used by
 * the designed templates inside HTML blocks. Colours follow Global Styles.
 * ================================================================== */
.fwrenx-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fwrenx-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; background: var(--fwren-accent-soft, rgba(79, 70, 229, .1)); color: var(--fwren-accent, #4f46e5); }
.fwrenx-title { margin: 0 !important; padding: 0; font-family: var(--fwren-heading-font, inherit); font-weight: var(--fwren-heading-weight, 700); font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; letter-spacing: -.02em; color: var(--fwren-heading, #0f172a); }
.fwrenx-text { margin: 0 !important; font-size: 15.5px; line-height: 1.6; color: var(--fwren-muted, #64748b); max-width: 560px; }
.fwrenx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0 !important; padding: 0 !important; list-style: none !important; }
.fwrenx-chips li { margin: 0 !important; padding: 6px 12px 6px 28px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2; position: relative; background: var(--fwren-accent-soft, rgba(79, 70, 229, .1)); color: var(--fwren-accent, #4f46e5); }
.fwrenx-chips li::before, .fwrenx-perks li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(-45deg); }
.fwrenx-perks { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 0 !important; padding: 0 !important; list-style: none !important; }
.fwrenx-perks li { position: relative; margin: 0 !important; padding: 0 0 0 34px; font-size: 15px; line-height: 1.5; color: var(--fwren-heading, #0f172a); }
.fwrenx-perks li::before { left: 7px; top: 11px; transform: rotate(-45deg); }
.fwrenx-perks li::after { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--fwren-accent-soft, rgba(79, 70, 229, .12)); z-index: -1; }
.fwrenx-perks li { z-index: 0; }
.fwrenx-note { margin: 0 !important; font-size: 12.5px; line-height: 1.5; color: var(--fwren-muted, #64748b); }

/* On gradient panels (Global Styles primary → accent). */
.fwrenx-on-dark .fwrenx-eyebrow, .fwrenx-on-dark .fwrenx-chips li { background: rgba(255, 255, 255, .18); color: #fff; }
.fwrenx-on-dark .fwrenx-title { color: #fff; }
.fwrenx-on-dark .fwrenx-text { color: rgba(255, 255, 255, .86); }
.fwrenx-perks.fwrenx-on-dark li { color: #fff; }
.fwrenx-perks.fwrenx-on-dark li::after { background: rgba(255, 255, 255, .2); }

/* Results inside a tinted panel read as the answer. */
.fwren-calc-output { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
	.fwrenx-title { font-size: 24px; }
	.fwrenx-perks { margin-top: 16px !important; }
}
