.nsf-form-wrap {
	--nsf-border: #d8dee7;
	--nsf-text: #172033;
	--nsf-muted: #5e6878;
	--nsf-focus: #2563eb;
	--nsf-danger: #b42318;
	--nsf-success: #166534;
	box-sizing: border-box;
	max-width: 960px;
	margin: 24px auto;
	color: var(--nsf-text);
	font: inherit;
}

.nsf-form-wrap *,
.nsf-form-wrap *::before,
.nsf-form-wrap *::after {
	box-sizing: border-box;
}

.nsf-form-header {
	margin-bottom: 24px;
}

.nsf-form-header h2 {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.2;
}

.nsf-form-description,
.nsf-field-help,
.nsf-form-section p {
	color: var(--nsf-muted);
}

.nsf-form-fields {
	display: grid;
	gap: 20px;
}

.nsf-field-label {
	display: block;
	margin-bottom: 7px;
	font-weight: 650;
}

.nsf-field input[type="text"],
.nsf-field input[type="email"],
.nsf-field input[type="number"],
.nsf-field input[type="tel"],
.nsf-field input[type="url"],
.nsf-field input[type="date"],
.nsf-field input[type="datetime-local"],
.nsf-field textarea,
.nsf-field select {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #fff;
	color: var(--nsf-text);
	font: inherit;
}

.nsf-field textarea {
	min-height: 120px;
	resize: vertical;
}

.nsf-field select[multiple] {
	min-height: 132px;
	padding: 6px;
}

.nsf-field select[multiple] option {
	margin: 1px 0;
	padding: 8px 10px;
	border-radius: 5px;
	color: var(--nsf-text);
}

/* Keep selected choices visibly highlighted after the native list loses focus. */
.nsf-field select[multiple] option:checked,
.nsf-field select[multiple]:not(:focus) option:checked {
	background: var(--nsf-focus) linear-gradient(var(--nsf-focus), var(--nsf-focus));
	box-shadow: 0 0 0 100vmax var(--nsf-focus) inset;
	color: #fff;
	font-weight: 650;
	-webkit-text-fill-color: #fff;
}

.nsf-field input:focus,
.nsf-field textarea:focus,
.nsf-field select:focus {
	outline: 3px solid color-mix(in srgb, var(--nsf-focus) 22%, transparent);
	border-color: var(--nsf-focus);
}

.nsf-choice-group {
	display: grid;
	gap: 9px;
}

.nsf-choice {
	display: flex;
	align-items: flex-start;
	gap: 9px;
}

.nsf-choice input {
	margin-top: 0.25em;
}

.nsf-form-section {
	margin-top: 8px;
	padding-top: 18px;
	border-top: 1px solid var(--nsf-border);
}

.nsf-form-section h3 {
	margin: 0 0 6px;
}

.nsf-form-content {
	min-width: 0;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.nsf-form-content > :first-child {
	margin-top: 0;
}

.nsf-form-content > :last-child {
	margin-bottom: 0;
}

.nsf-form-content img {
	display: block;
	max-width: 100%;
	height: auto;
}

.nsf-form-content a {
	overflow-wrap: anywhere;
}

.nsf-form-content.nsf-content-style-info,
.nsf-form-content.nsf-content-style-warning,
.nsf-form-content.nsf-content-style-success,
.nsf-form-content.nsf-content-style-important {
	padding: 16px 18px;
	border: 1px solid var(--nsf-border);
	border-left-width: 5px;
	border-radius: 8px;
}

.nsf-form-content.nsf-content-style-info {
	border-color: #93c5fd;
	border-left-color: #2563eb;
	background: #eff6ff;
	color: #1e3a5f;
}

.nsf-form-content.nsf-content-style-warning {
	border-color: #f7cc72;
	border-left-color: #d97706;
	background: #fffbeb;
	color: #713f12;
}

.nsf-form-content.nsf-content-style-success {
	border-color: #86efac;
	border-left-color: #16a34a;
	background: #f0fdf4;
	color: #14532d;
}

.nsf-form-content.nsf-content-style-important {
	border-color: #c4b5fd;
	border-left-color: #6d28d9;
	background: #f5f3ff;
	color: #3b1d6e;
}

.nsf-field-help,
.nsf-field-error {
	margin: 7px 0 0;
}

.nsf-field-label-row {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 7px;
}

.nsf-field-label-row .nsf-field-label {
	margin-bottom: 0;
}

.nsf-field-help {
	color: var(--nsf-help-color, var(--nsf-muted));
	font-size: var(--nsf-help-font-size, 14px);
	font-weight: var(--nsf-help-font-weight, 400);
	line-height: var(--nsf-help-line-height, 1.5);
	text-align: var(--nsf-help-text-align, left);
}

.nsf-help-position-before .nsf-field > .nsf-field-help {
	margin: 0 0 8px;
}

.nsf-help-style-subtle .nsf-field > .nsf-field-help,
.nsf-help-style-accent .nsf-field > .nsf-field-help {
	padding: 10px 12px;
	border: 1px solid var(--nsf-border);
	border-radius: max(6px, calc(var(--nsf-radius, 10px) - 3px));
	background: var(--nsf-subtle);
}

.nsf-help-style-accent .nsf-field > .nsf-field-help {
	border-left: 3px solid var(--nsf-primary);
}

.nsf-help-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.nsf-help-tooltip-trigger {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 1px solid var(--nsf-border);
	border-radius: 999px;
	background: var(--nsf-subtle);
	color: var(--nsf-help-color, var(--nsf-muted));
	font-family: var(--nsf-font-family, inherit);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: help;
}

.nsf-help-tooltip-trigger:hover,
.nsf-help-tooltip-trigger:focus-visible {
	border-color: var(--nsf-focus);
	outline: 2px solid var(--nsf-focus);
	outline-offset: 2px;
}

.nsf-field-help-tooltip {
	position: absolute;
	z-index: 40;
	top: calc(100% + 8px);
	left: 0;
	width: max-content;
	max-width: min(340px, 80vw);
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--nsf-border);
	border-radius: max(6px, calc(var(--nsf-radius, 10px) - 3px));
	background: var(--nsf-surface, #fff);
	box-shadow: var(--nsf-shadow, 0 12px 30px rgba(15, 23, 42, 0.18));
	text-align: left;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.nsf-help-style-accent .nsf-field-help-tooltip {
	border-left: 3px solid var(--nsf-primary);
}

.nsf-help-tooltip:hover .nsf-field-help-tooltip,
.nsf-help-tooltip:focus-within .nsf-field-help-tooltip {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.nsf-help-position-focus .nsf-field > .nsf-field-help {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.nsf-help-position-focus .nsf-field:focus-within > .nsf-field-help,
.nsf-help-position-focus .nsf-field-has-error > .nsf-field-help {
	position: static;
	width: auto;
	height: auto;
	margin: 7px 0 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: normal;
}

.nsf-help-align-center .nsf-field-help { text-align: center; }
.nsf-help-align-right .nsf-field-help { text-align: right; }

.nsf-field-error,
.nsf-required {
	color: var(--nsf-danger);
}

.nsf-field-has-error input,
.nsf-field-has-error textarea,
.nsf-field-has-error select,
.nsf-field-has-error .nsf-choice-group {
	border-color: var(--nsf-danger);
}

.nsf-form-footer {
	margin-top: 26px;
}

.nsf-submit-button {
	min-height: 44px;
	padding: 10px 22px;
	border: 0;
	border-radius: 7px;
	background: #1d4ed8;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.nsf-submit-button:hover,
.nsf-submit-button:focus {
	background: #1e40af;
}

.nsf-notice {
	margin-bottom: 20px;
	padding: 13px 15px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #f8fafc;
}

.nsf-notice-success {
	border-color: #86efac;
	background: #f0fdf4;
	color: var(--nsf-success);
}

.nsf-notice-error {
	border-color: #fda29b;
	background: #fff5f4;
	color: var(--nsf-danger);
}

.nsf-notice-warning {
	border-color: #f7cc72;
	background: #fffbeb;
}

.nsf-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* Responsive layout containers */
.nsf-layout-container {
	min-width: 0;
}

.nsf-layout-container-header {
	margin-bottom: 14px;
}

.nsf-layout-container-header h3 {
	margin: 0 0 5px;
	font-size: 1.15em;
	line-height: 1.3;
}

.nsf-layout-container-header p {
	margin: 0;
	color: var(--nsf-muted);
}

.nsf-layout-grid {
	display: grid;
	grid-template-columns: repeat(var(--nsf-columns, 2), minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.nsf-layout-column {
	display: grid;
	min-width: 0;
	gap: 20px;
}

@media (max-width: 700px) {
	.nsf-layout-grid {
		grid-template-columns: 1fr;
	}
}

.nsf-field input[type="file"] {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #fff;
	color: var(--nsf-text);
	font: inherit;
}

.nsf-current-file {
	margin: 8px 0 0;
	font-size: 0.92em;
	color: var(--nsf-muted);
}

.nsf-form-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.nsf-save-draft-button {
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #fff;
	color: var(--nsf-text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.nsf-save-draft-button:hover,
.nsf-save-draft-button:focus {
	border-color: #94a3b8;
	background: #f8fafc;
}

.nsf-notice-info {
	border-color: #93c5fd;
	background: #eff6ff;
	color: #1e3a8a;
}

/* AJAX form feedback and loading states */
.nsf-form-messages:empty {
	display: none;
}

.nsf-form[aria-busy="true"] {
	cursor: progress;
}

.nsf-form button[type="submit"] {
	position: relative;
	transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.nsf-form button[type="submit"]:disabled {
	cursor: wait;
	opacity: 0.72;
}

.nsf-form button[type="submit"].is-loading {
	padding-right: 44px;
}

.nsf-form button[type="submit"].is-loading::after {
	position: absolute;
	top: 50%;
	right: 17px;
	width: 15px;
	height: 15px;
	margin-top: -8px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	content: "";
	animation: nsf-button-spin 0.75s linear infinite;
}

.nsf-form-messages .nsf-notice:focus {
	outline: 3px solid color-mix(in srgb, var(--nsf-focus) 24%, transparent);
	outline-offset: 2px;
}

@keyframes nsf-button-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nsf-form button[type="submit"] {
		transition: none;
	}

	.nsf-form button[type="submit"].is-loading::after {
		animation-duration: 1.5s;
	}
}

/* 1.08 protected and multi-file uploads */
.nsf-current-files {
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #f8fafc;
	font-size: 0.92em;
}

.nsf-current-files-label {
	margin: 0 0 6px;
	font-weight: 700;
	color: var(--nsf-text);
}

.nsf-current-files ul {
	margin: 0;
	padding-left: 20px;
}

.nsf-current-files li + li {
	margin-top: 6px;
}

.nsf-file-access {
	display: inline-block;
	margin-left: 7px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #475569;
	font-size: 0.78em;
	font-weight: 700;
	vertical-align: middle;
}

.nsf-remove-file {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	margin-left: 10px;
	color: #9f1239;
	font-size: 0.9em;
}

.nsf-remove-file-button {
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.nsf-remove-file-button:hover,
.nsf-remove-file-button:focus {
	color: #881337;
}

.nsf-remove-file-button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.nsf-file-removal-status {
	display: block;
	margin-top: 4px;
	color: #166534;
	font-size: 0.84em;
}

.nsf-file-removal-status:empty {
	display: none;
}

.nsf-file-removal-status.is-error {
	color: #9f1239;
}


.nsf-current-files > ul {
	list-style: none;
	padding-left: 0;
}

.nsf-current-files li {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.nsf-file-select {
	display: inline-flex;
	align-items: center;
	margin: 0;
	cursor: pointer;
}

.nsf-file-select input {
	width: 18px;
	height: 18px;
	margin: 0;
}


.nsf-file-select-all {
	display: inline-flex;
	gap: 7px;
	align-items: center;
	margin: 0;
	color: var(--nsf-text);
	font-size: 0.86em;
	font-weight: 700;
	cursor: pointer;
}

.nsf-file-select-all input {
	width: 18px;
	height: 18px;
	margin: 0;
}

.nsf-file-bulk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 8px;
	padding: 8px 0;
	border-top: 1px solid var(--nsf-border);
	border-bottom: 1px solid var(--nsf-border);
}

.nsf-file-bulk-actions[hidden] {
	display: none !important;
}

.nsf-file-selection-count {
	color: #475569;
	font-size: 0.86em;
}

.nsf-remove-selected-files {
	min-height: 34px;
	padding: 6px 10px;
	border: 1px solid #fecaca;
	border-radius: 6px;
	background: #fff;
	color: #9f1239;
	font: inherit;
	font-size: 0.86em;
	font-weight: 700;
	cursor: pointer;
}

.nsf-remove-selected-files:hover,
.nsf-remove-selected-files:focus {
	border-color: #fca5a5;
	background: #fff1f2;
	color: #881337;
}

.nsf-remove-selected-files:disabled {
	cursor: default;
	opacity: 0.55;
}

.nsf-file-bulk-status {
	flex-basis: 100%;
	margin: 0;
	color: #166534;
	font-size: 0.84em;
}

.nsf-file-bulk-status:empty {
	display: none;
}

.nsf-file-bulk-status.is-error {
	color: #9f1239;
}

/* 1.14 advanced fields and multi-step forms */
.nsf-field input[type="time"] {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #fff;
	color: var(--nsf-text);
	font: inherit;
}

.nsf-screen-reader-text,
.nsf-form-wrap .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.nsf-form-divider {
	height: 1px;
	margin: 4px 0;
	background: var(--nsf-border);
}

.nsf-affixed-input {
	display: flex;
	align-items: stretch;
	width: 100%;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #fff;
	overflow: hidden;
}

.nsf-affixed-input:focus-within {
	outline: 3px solid color-mix(in srgb, var(--nsf-focus) 22%, transparent);
	border-color: var(--nsf-focus);
}

.nsf-affixed-input > span {
	display: inline-flex;
	align-items: center;
	padding: 0 12px;
	background: #f1f5f9;
	color: var(--nsf-muted);
	font-weight: 650;
}

.nsf-affixed-input input[type="number"] {
	min-width: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
}

.nsf-range-control {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px 14px;
	align-items: center;
}

.nsf-range-control input[type="range"] {
	width: 100%;
	min-width: 0;
	accent-color: var(--nsf-focus);
}

.nsf-range-control output {
	min-width: 64px;
	padding: 5px 9px;
	border: 1px solid var(--nsf-border);
	border-radius: 6px;
	background: #f8fafc;
	font-weight: 700;
	text-align: center;
}

.nsf-range-bounds {
	display: flex;
	grid-column: 1 / -1;
	justify-content: space-between;
	color: var(--nsf-muted);
	font-size: 0.82em;
}

.nsf-color-control {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.nsf-color-control input[type="color"] {
	width: 58px;
	height: 44px;
	padding: 3px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #fff;
	cursor: pointer;
}

.nsf-color-control output {
	min-width: 110px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.nsf-color-clear,
.nsf-repeater-add,
.nsf-repeater-remove,
.nsf-repeat-group-remove,
.nsf-step-button,
.nsf-richtext-tool {
	min-height: 38px;
	padding: 7px 12px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #fff;
	color: var(--nsf-text);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.nsf-color-clear:hover,
.nsf-repeater-add:hover,
.nsf-repeater-remove:hover,
.nsf-repeat-group-remove:hover,
.nsf-step-button:hover,
.nsf-richtext-tool:hover {
	border-color: var(--nsf-focus);
	color: var(--nsf-focus);
}

.nsf-toggle-control {
	position: relative;
	display: inline-flex;
	gap: 10px;
	align-items: center;
	cursor: pointer;
}

.nsf-toggle-control > input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.nsf-toggle-track {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 28px;
	border: 1px solid var(--nsf-border);
	border-radius: 999px;
	background: #cbd5e1;
	transition: background 0.18s ease;
}

.nsf-toggle-track > span {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
	transition: transform 0.18s ease;
}

.nsf-toggle-control > input:checked + .nsf-toggle-track {
	background: var(--nsf-focus);
}

.nsf-toggle-control > input:checked + .nsf-toggle-track > span {
	transform: translateX(22px);
}

.nsf-toggle-control > input:focus-visible + .nsf-toggle-track {
	outline: 3px solid color-mix(in srgb, var(--nsf-focus) 22%, transparent);
	outline-offset: 2px;
}

.nsf-toggle-labels {
	display: inline-flex;
	gap: 6px;
	color: var(--nsf-muted);
	font-size: 0.92em;
}

.nsf-consent-control {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #f8fafc;
	cursor: pointer;
}

.nsf-consent-control input {
	margin-top: 0.2em;
}

.nsf-rating-group {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.nsf-rating-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.nsf-rating-group label {
	display: inline-grid;
	min-width: 44px;
	min-height: 44px;
	place-items: center;
	padding: 5px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #fff;
	color: #64748b;
	cursor: pointer;
}

.nsf-rating-group label span {
	font-size: 1.45em;
	line-height: 1;
}

.nsf-rating-group label small {
	font-size: 0.7em;
}

.nsf-rating-input:checked + label,
.nsf-rating-input:focus-visible + label {
	border-color: var(--nsf-focus);
	background: color-mix(in srgb, var(--nsf-focus) 10%, #fff);
	color: var(--nsf-focus);
}

.nsf-nps-options {
	display: grid;
	grid-template-columns: repeat(11, minmax(38px, 1fr));
	gap: 5px;
}

.nsf-nps-options label {
	position: relative;
}

.nsf-nps-options input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.nsf-nps-options span {
	display: grid;
	min-height: 42px;
	place-items: center;
	border: 1px solid var(--nsf-border);
	border-radius: 6px;
	background: var(--nsf-input-background, #fff);
	color: var(--nsf-input-text, var(--nsf-text));
	font-weight: 700;
	cursor: pointer;
}

.nsf-nps-options label:hover span {
	border-color: var(--nsf-focus);
}

.nsf-nps-options input:checked + span,
.nsf-nps-options input:focus-visible + span {
	border-color: var(--nsf-focus);
	background: var(--nsf-focus);
	color: #fff;
}

.nsf-nps-labels {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 7px;
	color: var(--nsf-muted);
	font-size: 0.84em;
}

.nsf-choice-grid-wrap {
	overflow-x: auto;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
}

.nsf-choice-grid {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
}

.nsf-choice-grid th,
.nsf-choice-grid td {
	padding: 10px;
	border-bottom: 1px solid var(--nsf-border);
	text-align: center;
}

.nsf-choice-grid th:first-child,
.nsf-choice-grid td:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	min-width: 160px;
	background: #fff;
	text-align: left;
}

.nsf-choice-grid thead th {
	background: #f8fafc;
	font-size: 0.88em;
}

.nsf-choice-grid tbody tr:last-child th,
.nsf-choice-grid tbody tr:last-child td {
	border-bottom: 0;
}

.nsf-repeater,
.nsf-repeater-items {
	display: grid;
	gap: 9px;
}

.nsf-repeater-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
}

.nsf-repeater-remove {
	min-width: 42px;
	padding-inline: 10px;
	color: var(--nsf-danger);
	font-size: 1.2em;
}

.nsf-repeater-add {
	justify-self: start;
}


.nsf-repeat-group,
.nsf-repeat-group-items {
	display: grid;
	gap: 12px;
}

.nsf-repeat-group-row {
	display: grid;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--nsf-border);
	border-radius: 9px;
	background: #f8fafc;
}

.nsf-repeat-group-row.is-used {
	background: #fff;
}

.nsf-repeat-group-row-header {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}

.nsf-repeat-group-row-header strong {
	font-size: 0.96em;
}

.nsf-repeat-group-remove {
	color: var(--nsf-danger);
}

.nsf-repeat-group-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 12px;
}

.nsf-repeat-group-subfield {
	grid-column: span var(--nsf-repeat-span, 12);
	min-width: 0;
}

.nsf-repeat-group-subfield > label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9em;
	font-weight: 650;
}

.nsf-repeat-group-subfield textarea {
	min-height: 92px;
}

.nsf-repeat-group-add {
	justify-self: start;
}

.nsf-richtext-editor {
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #fff;
	overflow: hidden;
}

.nsf-richtext-editor:focus-within {
	outline: 3px solid color-mix(in srgb, var(--nsf-focus) 22%, transparent);
	border-color: var(--nsf-focus);
}

.nsf-richtext-editor.is-disabled {
	background: #f8fafc;
	opacity: 0.88;
}

.nsf-richtext-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	padding: 8px;
	border-bottom: 1px solid var(--nsf-border);
	background: #f8fafc;
}

.nsf-richtext-tool-group {
	display: inline-flex;
	gap: 3px;
	align-items: center;
	padding-right: 6px;
	border-right: 1px solid var(--nsf-border);
}

.nsf-richtext-tool-group:last-of-type {
	padding-right: 0;
	border-right: 0;
}

.nsf-richtext-format,
.nsf-richtext-tool {
	min-height: 32px;
	border: 1px solid var(--nsf-border);
	border-radius: 6px;
	background: #fff;
	color: var(--nsf-text);
	font: inherit;
	font-size: 0.88em;
}

.nsf-richtext-format {
	min-width: 126px;
	padding: 4px 28px 4px 8px;
}

.nsf-richtext-tool {
	min-width: 32px;
	padding: 4px 8px;
	font-weight: 700;
	line-height: 1;
}

.nsf-richtext-tool-wide {
	min-width: auto;
	font-weight: 650;
}

.nsf-richtext-tool:hover:not(:disabled),
.nsf-richtext-format:hover:not(:disabled) {
	border-color: var(--nsf-focus);
	color: var(--nsf-focus);
}

.nsf-richtext-tool:focus-visible,
.nsf-richtext-format:focus-visible {
	outline: 2px solid var(--nsf-focus);
	outline-offset: 1px;
}

.nsf-richtext-tool.is-active {
	border-color: var(--nsf-focus);
	background: color-mix(in srgb, var(--nsf-focus) 12%, #fff);
	color: var(--nsf-focus);
}

.nsf-richtext-tool:disabled,
.nsf-richtext-format:disabled {
	cursor: not-allowed;
	opacity: 0.58;
}

.nsf-richtext-align-center {
	text-align: center;
}

.nsf-richtext-align-right {
	text-align: right;
}

.nsf-richtext-count {
	margin-left: auto;
	padding: 0 3px;
	color: var(--nsf-muted);
	font-size: 0.82em;
	white-space: nowrap;
}

.nsf-richtext-surface {
	min-height: 180px;
	padding: 13px 14px;
	outline: 0;
	line-height: 1.6;
	word-break: break-word;
}

.nsf-richtext-surface > :first-child {
	margin-top: 0;
}

.nsf-richtext-surface > :last-child {
	margin-bottom: 0;
}

.nsf-richtext-surface h2,
.nsf-richtext-surface h3,
.nsf-richtext-surface h4,
.nsf-richtext-surface p,
.nsf-richtext-surface ul,
.nsf-richtext-surface ol,
.nsf-richtext-surface blockquote,
.nsf-richtext-surface pre {
	margin: 0 0 0.8em;
}

.nsf-richtext-surface ul,
.nsf-richtext-surface ol {
	padding-left: 1.6em;
}

.nsf-richtext-surface blockquote {
	padding: 0.55em 0 0.55em 1em;
	border-left: 4px solid var(--nsf-border);
	color: var(--nsf-muted);
}

.nsf-richtext-surface pre {
	padding: 0.75em;
	border-radius: 6px;
	background: #f1f5f9;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	white-space: pre-wrap;
}

.nsf-richtext-surface a {
	color: var(--nsf-focus);
	text-decoration: underline;
}

.nsf-richtext-surface hr {
	margin: 1em 0;
	border: 0;
	border-top: 1px solid var(--nsf-border);
}

.nsf-richtext-editor.is-empty .nsf-richtext-surface::before {
	color: #94a3b8;
	content: attr(data-placeholder);
	pointer-events: none;
}

.nsf-richtext-editor.is-over-limit {
	border-color: var(--nsf-danger);
}

@media (max-width: 640px) {
	.nsf-richtext-toolbar {
		align-items: stretch;
	}

	.nsf-richtext-tool-group {
		padding-right: 0;
		border-right: 0;
	}

	.nsf-richtext-format {
		min-width: 118px;
	}

	.nsf-richtext-count {
		flex-basis: 100%;
		margin-left: 0;
		text-align: right;
	}
}

.nsf-step-progress,
.nsf-step-navigation {
	display: none;
}

.nsf-form.nsf-steps-ready .nsf-step-progress {
	display: block;
}

.nsf-form.nsf-steps-ready .nsf-form-step {
	display: none;
}

.nsf-form.nsf-steps-ready .nsf-form-step.is-active {
	display: block;
}

.nsf-form.nsf-steps-ready .nsf-step-navigation {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 24px;
}

.nsf-step-progress-status {
	margin-bottom: 8px;
	color: var(--nsf-muted);
	font-size: 0.9em;
	font-weight: 700;
}

.nsf-step-progress-track {
	height: 8px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
}

.nsf-step-progress-track > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--nsf-focus);
	transition: width 0.2s ease;
}

.nsf-step-progress-steps ol {
	display: grid;
	grid-template-columns: repeat(var(--nsf-step-count, 1), minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nsf-step-progress-steps li {
	display: grid;
	gap: 4px;
	justify-items: center;
	color: var(--nsf-muted);
	font-size: 0.8em;
	text-align: center;
}

.nsf-step-progress-steps li > span {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border: 1px solid var(--nsf-border);
	border-radius: 50%;
	background: #fff;
	font-weight: 750;
}

.nsf-step-progress-steps li.is-active > span,
.nsf-step-progress-steps li.is-complete > span {
	border-color: var(--nsf-focus);
	background: var(--nsf-focus);
	color: #fff;
}

.nsf-step-header {
	margin-bottom: 20px;
}

.nsf-step-header h3 {
	margin: 0 0 5px;
	font-size: 1.35em;
}

.nsf-step-header p {
	margin: 0;
	color: var(--nsf-muted);
}

.nsf-step-fields {
	display: grid;
	gap: 20px;
}

.nsf-step-next {
	margin-left: auto;
	border-color: var(--nsf-focus);
	background: var(--nsf-focus);
	color: #fff;
}

.nsf-step-next:hover {
	background: #1e40af;
	color: #fff;
}

.nsf-form [hidden] {
	display: none !important;
}

.nsf-field-has-error .nsf-richtext-editor,
.nsf-field-has-error .nsf-choice-grid-wrap,
.nsf-field-has-error .nsf-consent-control,
.nsf-field-has-error .nsf-toggle-track,
.nsf-field-has-error .nsf-color-control input[type="color"],
.nsf-field-has-error .nsf-repeat-group-row {
	border-color: var(--nsf-danger);
}

@media (max-width: 700px) {
	.nsf-nps-options {
		grid-template-columns: repeat(6, minmax(38px, 1fr));
	}

	.nsf-step-progress-steps strong {
		display: none;
	}

	.nsf-range-control {
		grid-template-columns: 1fr;
	}

	.nsf-range-control output {
		justify-self: start;
	}


	.nsf-repeat-group-subfield {
		grid-column: 1 / -1;
	}

	.nsf-repeat-group-row-header {
		align-items: flex-start;
	}
}

.nsf-locked-record-fields {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.nsf-locked-record-fields:disabled {
	opacity: 1;
}

.nsf-locked-record-fields:disabled input,
.nsf-locked-record-fields:disabled select,
.nsf-locked-record-fields:disabled textarea,
.nsf-locked-record-fields:disabled button {
	cursor: not-allowed;
}

.nsf-locked-record-fields a {
	pointer-events: auto;
}


/* 1.21 immediate standard-upload progress */
.nsf-standard-upload-queue {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.nsf-standard-upload-row {
	padding: 10px 12px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #f8fafc;
}

.nsf-standard-upload-head {
	display: flex;
	gap: 12px;
	align-items: baseline;
	justify-content: space-between;
	min-width: 0;
}

.nsf-standard-upload-head strong {
	overflow: hidden;
	color: var(--nsf-text);
	font-size: 0.92em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nsf-standard-upload-head span {
	flex: 0 0 auto;
	color: #64748b;
	font-size: 0.8em;
}

.nsf-standard-upload-row progress {
	display: block;
	width: 100%;
	height: 8px;
	margin: 8px 0 6px;
	accent-color: var(--nsf-focus);
}

.nsf-standard-upload-status {
	color: #475569;
	font-size: 0.84em;
}

.nsf-standard-upload-row.is-processing progress {
	opacity: 0.72;
}

.nsf-standard-upload-row.is-complete {
	border-color: #86efac;
	background: #f0fdf4;
}

.nsf-standard-upload-row.is-complete .nsf-standard-upload-status {
	color: #166534;
	font-weight: 700;
}

.nsf-standard-upload-row.is-error {
	border-color: #fca5a5;
	background: #fff1f2;
}

.nsf-standard-upload-row.is-error .nsf-standard-upload-status {
	color: #9f1239;
}

.nsf-standard-upload-dismiss {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.nsf-field[data-nsf-upload-method="standard"] input[type="file"]:disabled {
	cursor: wait;
	opacity: 0.7;
}


/* Storage-provider details are administrative metadata, not public form content. */
.nsf-form .nsf-file-access {
	display: none !important;
}

/* Shared North Star Forms confirmation dialog */
.nsf-dialog-backdrop {
	position: fixed;
	z-index: 1000000;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.48);
	opacity: 0;
	-webkit-backdrop-filter: blur(1px);
	backdrop-filter: blur(1px);
	transition: opacity 160ms ease;
}

.nsf-dialog-backdrop.is-visible {
	opacity: 1;
}

.nsf-dialog {
	box-sizing: border-box;
	width: min(100%, 460px);
	max-height: calc(100vh - 40px);
	overflow: auto;
	overscroll-behavior: contain;
	touch-action: pan-y;
	padding: 24px;
	border: 1px solid rgba(148, 163, 184, 0.5);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
	color: #172033;
	font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	transform: translateY(8px) scale(0.985);
	transition: transform 160ms ease;
}

.nsf-dialog-backdrop.is-visible .nsf-dialog {
	transform: translateY(0) scale(1);
}

.nsf-dialog:focus {
	outline: none;
}

.nsf-dialog-eyebrow {
	margin-bottom: 6px;
	color: #64748b;
	font-size: 0.75rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nsf-dialog-title {
	margin: 0;
	color: #172033;
	font-size: 1.25rem;
	font-weight: 750;
	line-height: 1.3;
}

.nsf-dialog-message {
	margin: 10px 0 0;
	color: #475569;
	font-size: 0.95rem;
}

.nsf-dialog-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 24px;
}

.nsf-dialog-button {
	min-height: 42px;
	padding: 9px 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.nsf-dialog-button:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.28);
	outline-offset: 2px;
}

.nsf-dialog-button-secondary {
	border-color: #cbd5e1;
	background: #fff;
	color: #334155;
}

.nsf-dialog-button-secondary:hover {
	background: #f8fafc;
}

.nsf-dialog-button-primary {
	background: #1d4ed8;
	color: #fff;
}

.nsf-dialog-button-primary:hover {
	background: #1e40af;
}

.nsf-dialog-button-danger {
	background: #b42318;
	color: #fff;
}

.nsf-dialog-button-danger:hover {
	background: #912018;
}

@media (max-width: 480px) {
	.nsf-dialog {
		padding: 20px;
	}

	.nsf-dialog-actions {
		flex-direction: column-reverse;
	}

	.nsf-dialog-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nsf-dialog-backdrop,
	.nsf-dialog {
		transition: none;
	}
}

/* Structured and advanced fields. */
.nsf-composite-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.nsf-composite-part {
	display: grid;
	min-width: 0;
	gap: 6px;
}

.nsf-composite-part > span,
.nsf-composite-part > .nsf-composite-label {
	color: var(--nsf-muted);
	font-size: 0.84rem;
	font-weight: 650;
}

.nsf-composite-label {
	display: block;
}

.nsf-composite-full {
	grid-column: 1 / -1;
}

.nsf-name-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nsf-name-parts-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nsf-name-parts-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nsf-name-parts-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nsf-name-prefix,
.nsf-name-first,
.nsf-name-middle,
.nsf-name-last,
.nsf-name-suffix {
	grid-column: auto;
}

.nsf-calculated-output {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #f8fafc;
	color: var(--nsf-text);
	font-size: 1.05rem;
	font-weight: 700;
}

.nsf-calculated-control.has-calculation-error .nsf-calculated-output {
	border-color: var(--nsf-danger);
	color: var(--nsf-danger);
}

.nsf-ranked-instruction {
	margin: 0 0 10px;
	color: var(--nsf-muted);
	font-size: 0.9rem;
}

.nsf-ranked-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: nsf-ranked;
}

.nsf-ranked-list [data-nsf-ranked-item] {
	display: grid;
	grid-template-columns: 34px 38px minmax(0, 1fr) auto;
	align-items: center;
	gap: 9px;
	min-height: 50px;
	padding: 7px 9px;
	border: 1px solid var(--nsf-border);
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.nsf-ranked-list [data-nsf-ranked-item].is-dragging {
	opacity: 0.55;
	border-color: var(--nsf-focus);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--nsf-focus) 16%, transparent);
}

.nsf-ranked-position {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: #eef2f7;
	font-weight: 750;
}

.nsf-ranked-handle,
.nsf-ranked-actions button {
	min-width: 34px;
	min-height: 34px;
	padding: 5px 8px;
	border: 1px solid var(--nsf-border);
	border-radius: 6px;
	background: #fff;
	color: var(--nsf-text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.nsf-ranked-handle {
	cursor: grab;
}

.nsf-ranked-handle:active {
	cursor: grabbing;
}

.nsf-ranked-actions {
	display: flex;
	gap: 5px;
}

.nsf-ranked-actions button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.nsf-ranked-handle:focus-visible,
.nsf-ranked-actions button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--nsf-focus) 22%, transparent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.nsf-ranked-list [data-nsf-ranked-item] {
		transition: none;
	}
}

.nsf-current-image {
	position: relative;
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
}

.nsf-current-image > .nsf-file-select {
	position: absolute;
	top: 4px;
	left: 4px;
	z-index: 1;
	padding: 3px;
	border-radius: 4px;
	background: rgb(255 255 255 / 88%);
}

.nsf-image-preview-link {
	display: block;
	grid-column: 1;
	grid-row: span 3;
}

.nsf-current-image > a:not(.nsf-image-preview-link) {
	grid-column: 2;
}

.nsf-current-image > .nsf-file-access,
.nsf-current-image > .nsf-remove-file {
	grid-column: 3;
}

.nsf-image-preview {
	display: block;
	width: 84px;
	height: 64px;
	border: 1px solid var(--nsf-border);
	border-radius: 7px;
	background: #f8fafc;
	object-fit: cover;
}

.nsf-local-image-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

@media (max-width: 640px) {
	.nsf-composite-grid,
	.nsf-name-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.nsf-composite-full,
	.nsf-name-prefix,
	.nsf-name-first,
	.nsf-name-middle,
	.nsf-name-last,
	.nsf-name-suffix {
		grid-column: 1;
	}

	.nsf-ranked-list [data-nsf-ranked-item] {
		grid-template-columns: 32px minmax(0, 1fr) auto;
	}

	.nsf-ranked-handle {
		display: none;
	}

	.nsf-current-image {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.nsf-current-image > .nsf-image-preview-link {
		grid-column: 1;
	}

	.nsf-current-image > a:not(.nsf-image-preview-link),
	.nsf-current-image > .nsf-remove-file,
	.nsf-current-image > .nsf-file-access {
		grid-column: 2;
	}

	.nsf-image-preview {
		width: 68px;
		height: 56px;
	}
}

/* 1.41 scoped public form design system */
.nsf-form-wrap {
	--nsf-form-background: #fff;
	--nsf-surface: #fff;
	--nsf-input-background: #fff;
	--nsf-input-text: #172033;
	--nsf-subtle: #f8fafc;
	--nsf-primary: #1d4ed8;
	--nsf-primary-hover: #1e40af;
	--nsf-primary-text: #fff;
	--nsf-outer-border: #e2e8f0;
	--nsf-radius: 10px;
	--nsf-field-spacing: 20px;
	--nsf-max-width: 960px;
	--nsf-form-padding: 28px;
	--nsf-font-size: 16px;
	--nsf-font-family: inherit;
	--nsf-shadow: 0 14px 42px rgba(15, 23, 42, 0.1);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) {
	isolation: isolate;
	width: min(100%, var(--nsf-max-width));
	max-width: var(--nsf-max-width);
	padding: var(--nsf-form-padding);
	border: 1px solid var(--nsf-outer-border);
	border-radius: calc(var(--nsf-radius) + 4px);
	background: var(--nsf-form-background);
	box-shadow: var(--nsf-shadow);
	color: var(--nsf-text);
	font-family: var(--nsf-font-family);
	font-size: var(--nsf-font-size);
	line-height: 1.5;
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-form,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-form-header,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-form-fields,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-layout-container,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-form-step {
	color: var(--nsf-text);
	font: inherit;
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-form-fields,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-layout-column,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-step-fields {
	gap: var(--nsf-field-spacing);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) h1,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) h2,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) h3,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) h4,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) h5,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) h6,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) p,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) label,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) legend,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) span,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) strong,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) small {
	font-family: inherit;
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-form-header h2,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-form-section h3,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-layout-container-header h3,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-step-header h3,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field-label,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-repeat-group-subfield-label,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-current-files-label {
	color: var(--nsf-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-form-description,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-form-section p,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-layout-container-header p,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-range-bounds,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-ranked-instruction,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-current-file,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-file-selection-count,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-richtext-count {
	color: var(--nsf-muted);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field-help {
	color: var(--nsf-help-color, var(--nsf-muted));
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field input[type="text"],
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field input[type="email"],
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field input[type="number"],
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field input[type="tel"],
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field input[type="url"],
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field input[type="date"],
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field input[type="time"],
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field input[type="datetime-local"],
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field input[type="file"],
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field textarea,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field select,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-richtext-format,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-composite-part input {
	border-color: var(--nsf-border);
	border-radius: var(--nsf-radius);
	background-color: var(--nsf-input-background);
	color: var(--nsf-input-text);
	box-shadow: none;
	font: inherit;
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field input::placeholder,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field textarea::placeholder {
	color: var(--nsf-muted);
	opacity: 0.82;
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field select option {
	background: var(--nsf-input-background);
	color: var(--nsf-input-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field input:focus,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field textarea:focus,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field select:focus,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-richtext-surface:focus {
	border-color: var(--nsf-focus);
	outline: 3px solid color-mix(in srgb, var(--nsf-focus) 22%, transparent);
	outline-offset: 0;
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) input[type="checkbox"],
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) input[type="radio"],
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) input[type="range"] {
	accent-color: var(--nsf-primary);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-choice,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-consent-control,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-toggle-control {
	color: var(--nsf-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-form-section,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-form-divider,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-file-bulk-actions {
	border-color: var(--nsf-border);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-affixed-input,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-current-files,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-repeat-group-row,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-repeater-row,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-ranked-list,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-calculated-control,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-image-preview,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-standard-upload-row {
	border-color: var(--nsf-border);
	border-radius: var(--nsf-radius);
	background: var(--nsf-subtle);
	color: var(--nsf-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-affixed-input > span,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-range-control output,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-calculated-output,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-file-access {
	border-color: var(--nsf-border);
	background: var(--nsf-subtle);
	color: var(--nsf-muted);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-choice-grid,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-choice-grid th,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-choice-grid td {
	border-color: var(--nsf-border);
	color: var(--nsf-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-choice-grid th {
	background: var(--nsf-subtle);
	color: var(--nsf-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-choice-grid td {
	background: var(--nsf-surface);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-richtext-editor {
	border-color: var(--nsf-border);
	border-radius: var(--nsf-radius);
	background: var(--nsf-input-background);
	color: var(--nsf-input-text);
	overflow: hidden;
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-richtext-toolbar {
	border-color: var(--nsf-border);
	background: var(--nsf-subtle);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-richtext-surface {
	background: var(--nsf-input-background);
	color: var(--nsf-input-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-richtext-tool,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-color-clear,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-repeater-add,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-repeater-remove,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-repeat-group-remove,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-step-button,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-save-draft-button,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-remove-selected-files {
	border-color: var(--nsf-border);
	border-radius: var(--nsf-radius);
	background: var(--nsf-surface);
	color: var(--nsf-text);
	box-shadow: none;
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-richtext-tool:hover,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-color-clear:hover,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-repeater-add:hover,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-repeat-group-remove:hover,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-step-button:hover,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-save-draft-button:hover {
	border-color: var(--nsf-primary);
	background: var(--nsf-subtle);
	color: var(--nsf-primary);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-submit-button,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-step-next,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-repeat-group-add {
	border: 1px solid var(--nsf-primary);
	border-radius: var(--nsf-radius);
	background: var(--nsf-primary);
	color: var(--nsf-primary-text);
	box-shadow: none;
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-submit-button:hover,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-submit-button:focus,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-step-next:hover,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-repeat-group-add:hover {
	border-color: var(--nsf-primary-hover);
	background: var(--nsf-primary-hover);
	color: var(--nsf-primary-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) a {
	color: var(--nsf-primary);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-required,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-field-error,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-remove-file,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-remove-file-button {
	color: var(--nsf-danger);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-notice {
	border-color: var(--nsf-border);
	border-radius: var(--nsf-radius);
	background: var(--nsf-subtle);
	color: var(--nsf-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-form-content:not(.nsf-content-style-info):not(.nsf-content-style-warning):not(.nsf-content-style-success):not(.nsf-content-style-important) {
	color: var(--nsf-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-toggle-track {
	border-color: var(--nsf-border);
	background: var(--nsf-border);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-toggle-control > input:checked + .nsf-toggle-track {
	background: var(--nsf-primary);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-rating-input + label,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-nps-options input + span,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-ranked-actions button {
	border-color: var(--nsf-border);
	background: var(--nsf-input-background);
	color: var(--nsf-input-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-rating-input:checked + label,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-nps-options input:checked + span,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-nps-options input:focus-visible + span {
	border-color: var(--nsf-primary);
	background: var(--nsf-primary);
	color: var(--nsf-primary-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-step-progress-track {
	background: var(--nsf-border);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-step-progress-track > span,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-step-progress-steps .is-current,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsf-step-progress-steps .is-complete {
	background: var(--nsf-primary);
	color: var(--nsf-primary-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) fieldset:disabled,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) button:disabled,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) input:disabled,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) select:disabled,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) textarea:disabled {
	opacity: 0.78;
}

@media (max-width: 700px) {
	.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) {
		padding: min(var(--nsf-form-padding), 20px);
		border-radius: var(--nsf-radius);
	}
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-inline-signature,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-inline-preview,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-inline-panel {
	border-color: var(--nsf-border);
	background: var(--nsf-subtle);
	color: var(--nsf-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-inline-copy strong,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-inline-grid label,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-inline-panel label {
	color: var(--nsf-text);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-inline-copy span,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-signature-message {
	color: var(--nsf-muted);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-signature-button,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-inline-method-tabs button.is-active {
	border-color: var(--nsf-primary);
	background: var(--nsf-primary);
	color: var(--nsf-primary-text) !important;
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-signature-button:hover,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-signature-button:focus {
	background: var(--nsf-primary-hover);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-signature-button.is-secondary,
.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-inline-method-tabs button {
	border-color: var(--nsf-border);
	background: var(--nsf-surface);
	color: var(--nsf-text) !important;
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-inline-preview {
	background: var(--nsf-input-background);
}

.nsf-form-wrap[data-nsf-theme]:not([data-nsf-theme="inherit"]) .nsfe-inline-preview span {
	color: var(--nsf-input-text);
}

/* Advanced field completion: enhanced choices, country controls, and review summaries. */
.nsf-choice-layout-vertical {
	grid-template-columns: minmax(0, 1fr);
}

.nsf-choice-layout-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: flex-start;
}

.nsf-choice-layout-inline .nsf-choice {
	width: auto;
	max-width: 100%;
}

.nsf-choice-layout-auto {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.nsf-choice-layout-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nsf-choice-layout-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nsf-choice-layout-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Legacy classes remain supported for existing forms and third-party integrations. */
.nsf-choice-group[class*="nsf-choice-columns-"] {
	grid-template-columns: repeat(var(--nsf-choice-columns, 1), minmax(0, 1fr));
}
.nsf-choice-columns-1 { --nsf-choice-columns: 1; }
.nsf-choice-columns-2 { --nsf-choice-columns: 2; }
.nsf-choice-columns-3 { --nsf-choice-columns: 3; }
.nsf-choice-columns-4 { --nsf-choice-columns: 4; }

.nsf-choice-card,
.nsf-choice-style-card .nsf-choice,
.nsf-choice-style-image .nsf-choice {
	position: relative;
	min-width: 0;
	padding: 12px;
	border: 1px solid var(--nsf-border);
	border-radius: var(--nsf-radius, 8px);
	background: var(--nsf-surface, #fff);
	cursor: pointer;
}

.nsf-choice-card.is-selected,
.nsf-choice-card:has(input:checked),
.nsf-choice-style-card .nsf-choice:has(input:checked),
.nsf-choice-style-image .nsf-choice:has(input:checked),
.nsf-choice-button:has(input:checked) {
	border-color: var(--nsf-primary, var(--nsf-focus));
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--nsf-primary, var(--nsf-focus)) 18%, transparent);
}

.nsf-choice-style-card .nsf-choice,
.nsf-choice-style-image .nsf-choice,
.nsf-choice-button {
	cursor: pointer;
}

.nsf-choice-button {
	position: relative;
	min-width: 0;
	padding: 9px 14px;
	border: 1px solid var(--nsf-border);
	border-radius: 999px;
	background: var(--nsf-surface, #fff);
	align-items: center;
}

.nsf-choice-button input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.nsf-choice-button:focus-within,
.nsf-choice-style-card .nsf-choice:focus-within,
.nsf-choice-style-image .nsf-choice:focus-within {
	outline: 3px solid color-mix(in srgb, var(--nsf-focus) 22%, transparent);
	outline-offset: 2px;
}

.nsf-choice-style-image .nsf-choice {
	display: grid;
	grid-template-columns: 1fr;
	align-content: start;
	text-align: center;
}

.nsf-choice-style-image .nsf-choice > input {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	margin: 0;
}

.nsf-choice-style-image .nsf-choice-image {
	width: 100%;
	height: auto;
	max-height: 180px;
	flex-basis: auto;
	border-radius: calc(var(--nsf-radius, 8px) * 0.75);
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

.nsf-choice-style-image .nsf-choice-icon {
	justify-self: center;
}

.nsf-choice-style-image .nsf-choice-copy {
	justify-items: center;
}

.nsf-choice-image {
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	border-radius: calc(var(--nsf-radius, 8px) * 0.75);
	object-fit: cover;
}

.nsf-choice-icon {
	display: inline-grid;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	place-items: center;
	border-radius: 999px;
	background: var(--nsf-subtle, #f4f6f8);
	font-size: 1.4rem;
}

.nsf-choice-copy {
	display: grid;
	min-width: 0;
	gap: 3px;
}

.nsf-choice-copy strong {
	font: inherit;
	font-weight: 650;
}

.nsf-choice-copy small {
	color: var(--nsf-muted);
	font-size: 0.84rem;
	line-height: 1.4;
}

.nsf-other-choice,
.nsf-email-confirmation-label {
	display: grid;
	margin-top: 10px;
	gap: 6px;
}

.nsf-other-choice > span,
.nsf-email-confirmation-label > span {
	color: var(--nsf-muted);
	font-size: 0.84rem;
	font-weight: 650;
}

.nsf-country-region-control {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.nsf-searchable-select {
	position: relative;
	width: 100%;
	min-width: 0;
}

.nsf-searchable-input {
	width: 100%;
	padding-inline-end: 44px !important;
}

.nsf-searchable-toggle {
	position: absolute;
	z-index: 2;
	inset-block-start: 1px;
	inset-inline-end: 1px;
	display: grid;
	place-items: center;
	width: 42px;
	height: calc(100% - 2px);
	min-height: 40px;
	padding: 0;
	border: 0 !important;
	border-inline-start: 1px solid var(--nsf-border) !important;
	border-radius: 0 var(--nsf-radius, 7px) var(--nsf-radius, 7px) 0 !important;
	background: transparent !important;
	color: var(--nsf-muted) !important;
	box-shadow: none !important;
	cursor: pointer;
}

.nsf-searchable-toggle > span {
	width: 0;
	height: 0;
	border-inline: 5px solid transparent;
	border-block-start: 6px solid currentColor;
	transition: transform 0.16s ease;
}

.nsf-searchable-select.is-open .nsf-searchable-toggle > span {
	transform: rotate(180deg);
}

.nsf-searchable-list {
	position: absolute;
	z-index: 1000;
	inset-block-start: calc(100% + 5px);
	inset-inline: 0;
	max-height: 260px;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--nsf-border);
	border-radius: var(--nsf-radius, 8px);
	background: var(--nsf-surface, #fff);
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
}

.nsf-searchable-option {
	display: block;
	width: 100%;
	min-height: 38px;
	padding: 8px 10px;
	border: 0 !important;
	border-radius: 6px !important;
	background: transparent !important;
	color: var(--nsf-text) !important;
	font: inherit;
	text-align: start;
	box-shadow: none !important;
	cursor: pointer;
}

.nsf-searchable-option:hover,
.nsf-searchable-option.is-active {
	background: var(--nsf-subtle, #eef2f7) !important;
}

.nsf-searchable-option[data-selected="1"]::after {
	float: right;
	margin-inline-start: 10px;
	content: "✓";
	font-weight: 700;
}

.nsf-searchable-empty {
	padding: 10px;
	color: var(--nsf-muted);
	font-size: 0.9rem;
}

.nsf-searchable-native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

.nsf-searchable-select.is-disabled {
	opacity: 0.72;
}

.nsf-address-autocomplete-field {
	position: relative;
	gap: 7px;
}

.nsf-address-autocomplete-input-wrap {
	position: relative;
	width: 100%;
	min-width: 0;
}

.nsf-address-autocomplete-help,
.nsf-address-autocomplete-status {
	display: block;
	color: var(--nsf-muted);
	font-size: 0.82rem;
	line-height: 1.45;
}

.nsf-address-autocomplete-status {
	margin-top: 2px;
}

.nsf-address-autocomplete-help[hidden],
.nsf-address-autocomplete-status[hidden] {
	display: none !important;
}

.nsf-address-suggestions {
	position: absolute;
	z-index: 1100;
	inset-block-start: calc(100% + 5px);
	inset-inline: 0;
	max-height: 280px;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--nsf-border);
	border-radius: var(--nsf-radius, 8px);
	background: var(--nsf-surface, #fff);
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.2);
}

.nsf-address-suggestions[hidden] {
	display: none !important;
}

.nsf-address-suggestion {
	display: block;
	width: 100%;
	min-height: 40px;
	padding: 9px 10px;
	border: 0 !important;
	border-radius: 6px !important;
	background: transparent !important;
	color: var(--nsf-text) !important;
	font: inherit;
	line-height: 1.35;
	text-align: start;
	box-shadow: none !important;
	cursor: pointer;
}

.nsf-address-suggestion:hover,
.nsf-address-suggestion.is-active {
	background: var(--nsf-subtle, #eef2f7) !important;
}

.nsf-address-autocomplete-unavailable .nsf-address-autocomplete-status {
	color: var(--nsf-muted);
}

.nsf-review-summary {
	border: 1px solid var(--nsf-border);
	border-radius: var(--nsf-radius, 8px);
	background: var(--nsf-subtle, #f6f8fa);
	overflow: hidden;
}

.nsf-review-items {
	display: grid;
}

.nsf-review-item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr) auto;
	gap: 14px;
	align-items: start;
	padding: 14px 16px;
	border-bottom: 1px solid var(--nsf-border);
}

.nsf-review-item:last-child { border-bottom: 0; }

.nsf-review-value {
	min-width: 0;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.nsf-review-edit {
	align-self: center;
	padding: 6px 10px;
	border: 1px solid var(--nsf-border);
	border-radius: var(--nsf-radius, 8px);
	background: var(--nsf-surface, #fff);
	color: var(--nsf-primary, inherit);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.nsf-review-edit:hover,
.nsf-review-edit:focus-visible {
	border-color: var(--nsf-primary, var(--nsf-focus));
	outline: 2px solid color-mix(in srgb, var(--nsf-primary, var(--nsf-focus)) 20%, transparent);
}

.nsf-review-images {
	display: flex;
	grid-column: 2 / -1;
	flex-wrap: wrap;
	gap: 8px;
}

.nsf-review-images img {
	width: 72px;
	height: 72px;
	border: 1px solid var(--nsf-border);
	border-radius: calc(var(--nsf-radius, 8px) * 0.75);
	object-fit: cover;
}

.nsf-review-empty {
	margin: 0;
	padding: 16px;
	color: var(--nsf-muted);
}


.nsf-review-style-list .nsf-review-item {
	grid-template-columns: minmax(0, 1fr) auto;
}

.nsf-review-style-list .nsf-review-value,
.nsf-review-style-list .nsf-review-images {
	grid-column: 1 / -1;
}

.nsf-review-style-table .nsf-review-item {
	grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr) auto;
}

.nsf-review-style-cards .nsf-review-items {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 12px;
}

.nsf-review-style-cards .nsf-review-item {
	grid-template-columns: 1fr auto;
	gap: 8px;
	border: 1px solid var(--nsf-border);
	border-radius: var(--nsf-radius, 8px);
	background: var(--nsf-surface, #fff);
}

.nsf-review-style-cards .nsf-review-value,
.nsf-review-style-cards .nsf-review-images {
	grid-column: 1 / -1;
}

.nsf-review-acknowledgment { margin-top: 12px; }

@media (max-width: 900px) {
	.nsf-choice-layout-columns-3,
	.nsf-choice-layout-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.nsf-choice-group[class*="nsf-choice-columns-"],
	.nsf-choice-layout-columns-2,
	.nsf-choice-layout-columns-3,
	.nsf-choice-layout-columns-4 { grid-template-columns: 1fr; }
	.nsf-choice-layout-inline { gap: 10px 14px; }
	.nsf-country-region-control { grid-template-columns: 1fr; }
	.nsf-review-item,
	.nsf-review-style-cards .nsf-review-item { grid-template-columns: 1fr; }
	.nsf-review-style-cards .nsf-review-items { grid-template-columns: 1fr; }
	.nsf-review-edit { justify-self: start; }
	.nsf-review-images { grid-column: 1; }
}

/* Searchable relationship field */
.nsf-relationship-control,
.nsf-relationship-picker {
	position: relative;
	width: 100%;
	min-width: 0;
}

.nsf-relationship-picker {
	display: grid;
	gap: 8px;
}

.nsf-relationship-selected {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.nsf-relationship-selected:empty {
	display: none;
}

.nsf-relationship-chip {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 34px;
	gap: 7px;
	padding: 5px 6px 5px 10px;
	border: 1px solid var(--nsf-border);
	border-radius: 999px;
	background: var(--nsf-subtle, #eef2f7);
	color: var(--nsf-text);
	font-size: 0.9rem;
	line-height: 1.25;
}

.nsf-relationship-chip > span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nsf-relationship-remove {
	display: grid !important;
	flex: 0 0 auto;
	place-items: center;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
	min-height: 24px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--nsf-muted) !important;
	font: inherit;
	font-size: 1.1rem !important;
	line-height: 1 !important;
	box-shadow: none !important;
	cursor: pointer;
}

.nsf-relationship-remove:hover,
.nsf-relationship-remove:focus-visible {
	background: color-mix(in srgb, var(--nsf-primary) 12%, transparent) !important;
	color: var(--nsf-primary) !important;
}

.nsf-relationship-search-wrap {
	position: relative;
}

.nsf-relationship-search {
	width: 100%;
}

.nsf-relationship-list {
	position: absolute;
	z-index: 1000;
	inset-block-start: calc(100% + 5px);
	inset-inline: 0;
	max-height: 280px;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--nsf-border);
	border-radius: var(--nsf-radius, 8px);
	background: var(--nsf-surface, #fff);
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
}

.nsf-relationship-option {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100% !important;
	min-height: 40px;
	gap: 12px;
	padding: 8px 10px !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: transparent !important;
	color: var(--nsf-text) !important;
	font: inherit;
	text-align: start;
	box-shadow: none !important;
	cursor: pointer;
}

.nsf-relationship-option:hover,
.nsf-relationship-option.is-active {
	background: var(--nsf-subtle, #eef2f7) !important;
}

.nsf-relationship-option[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.nsf-relationship-check {
	flex: 0 0 auto;
	color: var(--nsf-primary);
	font-weight: 750;
}

.nsf-relationship-empty {
	padding: 10px;
	color: var(--nsf-muted);
	font-size: 0.9rem;
}

.nsf-relationship-native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

/* Repeatable groups inside Review Summary retain row and field structure. */
.nsf-review-repeat-groups {
	display: grid;
	gap: 10px;
	min-width: 0;
	white-space: normal;
}

.nsf-review-repeat-row {
	display: grid;
	gap: 9px;
	padding: 12px;
	border: 1px solid var(--nsf-border);
	border-radius: calc(var(--nsf-radius, 8px) * 0.85);
	background: var(--nsf-surface, #fff);
}

.nsf-review-repeat-row-title {
	display: block;
	font-size: 0.95rem;
}

.nsf-review-repeat-fields {
	display: grid;
	grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
	gap: 6px 12px;
	margin: 0;
}

.nsf-review-repeat-fields dt,
.nsf-review-repeat-fields dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.nsf-review-repeat-fields dt {
	color: var(--nsf-muted);
	font-size: 0.88rem;
	font-weight: 650;
}

.nsf-review-repeat-fields dd {
	white-space: pre-line;
}

.nsf-review-style-list .nsf-review-item-repeat-group .nsf-review-repeat-groups,
.nsf-review-style-cards .nsf-review-item-repeat-group .nsf-review-repeat-groups {
	grid-column: 1 / -1;
}

@media (max-width: 700px) {
	.nsf-review-repeat-fields {
		grid-template-columns: 1fr;
		gap: 3px;
	}

	.nsf-review-repeat-fields dd + dt {
		margin-top: 7px;
	}
}

/* Choice capacity and availability */
.nsf-choice.is-unavailable {
	opacity: 0.68;
	cursor: not-allowed;
}

.nsf-choice.is-unavailable .nsf-choice-copy strong {
	text-decoration: none;
}

.nsf-choice-availability {
	display: block;
	font-weight: 600;
}

.nsf-choice[data-availability-status="full"] .nsf-choice-availability,
.nsf-choice[data-availability-status="closed"] .nsf-choice-availability,
.nsf-choice[data-availability-status="not_open"] .nsf-choice-availability,
.nsf-choice[data-availability-status="disabled"] .nsf-choice-availability {
	font-style: italic;
}

.nsf-searchable-option:disabled,
.nsf-relationship-option:disabled {
	cursor: not-allowed;
	opacity: 0.62;
}

/* Conditional logic */
.nsf-conditionally-hidden[hidden],
.nsf-field-hidden[hidden] {
	display: none !important;
}

.nsf-field.nsf-conditionally-disabled {
	opacity: 0.7;
}

.nsf-field.nsf-conditionally-disabled .nsf-field-label {
	cursor: default;
}

.nsf-form button.nsf-conditionally-hidden[hidden] {
	display: none !important;
}

/* 1.60 provider-neutral CAPTCHA security */
.nsf-captcha {
	flex-basis: 100%;
	width: 100%;
	margin: 0 0 8px;
}

.nsf-captcha[hidden] {
	display: none !important;
}

.nsf-captcha-widget {
	max-width: 100%;
	min-height: 65px;
	overflow-x: auto;
}

.nsf-captcha-error {
	margin: 8px 0 0;
	color: var(--nsf-danger);
	font-size: 0.92em;
}

.nsf-captcha-has-error .nsf-captcha-widget {
	padding: 8px;
	border: 1px solid var(--nsf-danger);
	border-radius: 7px;
}

.nsf-captcha-preview {
	min-height: 62px;
	padding: 18px;
	border: 1px dashed var(--nsf-border);
	border-radius: 7px;
	background: var(--nsf-subtle);
	color: var(--nsf-muted);
	text-align: center;
}

/* Accordion and tab layout sections */
.nsf-accordion,
.nsf-disclosure-tabs {
	min-width: 0;
	margin: 0 0 20px;
}

.nsf-accordion-panel,
.nsf-tab-panel {
	min-width: 0;
	border: 1px solid var(--nsf-border);
	background: var(--nsf-surface, #fff);
}

.nsf-accordion.is-connected .nsf-accordion-panel + .nsf-accordion-panel {
	border-top: 0;
}

.nsf-accordion.is-connected .nsf-accordion-panel:first-child {
	border-radius: var(--nsf-radius, 10px) var(--nsf-radius, 10px) 0 0;
}

.nsf-accordion.is-connected .nsf-accordion-panel:last-child {
	border-radius: 0 0 var(--nsf-radius, 10px) var(--nsf-radius, 10px);
}

.nsf-accordion:not(.is-connected) .nsf-accordion-panel,
.nsf-tab-panel {
	border-radius: var(--nsf-radius, 10px);
}

.nsf-accordion:not(.is-connected) .nsf-accordion-panel + .nsf-accordion-panel {
	margin-top: 12px;
}

.nsf-accordion-heading {
	margin: 0;
	font-size: inherit;
}

.nsf-accordion-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 50px;
	padding: 13px 16px;
	border: 0;
	background: transparent;
	color: var(--nsf-text);
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.nsf-accordion-button:hover,
.nsf-accordion-button:focus-visible,
.nsf-tab-button:hover,
.nsf-tab-button:focus-visible {
	background: rgba(37, 99, 235, .08);
	background: color-mix(in srgb, var(--nsf-primary) 8%, transparent);
	outline: 2px solid transparent;
}

.nsf-accordion-indicator {
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .18s ease;
	flex: 0 0 auto;
}

.nsf-accordion-button[aria-expanded="true"] .nsf-accordion-indicator {
	transform: rotate(225deg);
}

.nsf-accordion-content,
.nsf-tab-panel {
	padding: 16px;
}

.nsf-accordion-content {
	border-top: 1px solid var(--nsf-border);
}

.nsf-disclosure-description {
	margin: 0 0 14px;
	color: var(--nsf-muted);
}

.nsf-disclosure-fields {
	display: grid;
	gap: 20px;
	min-width: 0;
}

.nsf-tab-list {
	display: flex;
	gap: 4px;
	padding: 5px;
	overflow-x: auto;
	border: 1px solid var(--nsf-border);
	border-radius: var(--nsf-radius, 10px) var(--nsf-radius, 10px) 0 0;
	background: var(--nsf-subtle, #f8fafc);
	background: color-mix(in srgb, var(--nsf-surface, #fff) 92%, var(--nsf-primary) 8%);
}

.nsf-tab-button {
	flex: 0 0 auto;
	min-height: 42px;
	padding: 9px 14px;
	border: 0;
	border-radius: max(5px, calc(var(--nsf-radius, 10px) - 3px));
	background: transparent;
	color: var(--nsf-muted);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.nsf-tab-button.is-active {
	background: var(--nsf-surface, #fff);
	color: var(--nsf-primary);
	box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}

.nsf-disclosure-tabs.is-connected .nsf-tab-panel {
	border-top: 0;
	border-radius: 0 0 var(--nsf-radius, 10px) var(--nsf-radius, 10px);
}

@media (max-width: 600px) {
	.nsf-tab-list { scroll-snap-type: x proximity; }
	.nsf-tab-button { scroll-snap-align: start; }
	.nsf-accordion-content,
	.nsf-tab-panel { padding: 14px; }
}


/* 1.65 embedded presentation mode
 * Integrations can place a form inside an existing portal surface without
 * creating another outer card or constraining the available content width. */
.nsf-form-wrap.nsf-display-embedded {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.nsf-form-wrap.nsf-display-embedded[data-nsf-theme] {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.nsf-form-wrap.nsf-display-embedded .nsf-form-messages[hidden] {
	display: none !important;
}

/* 1.92 conversational presentation */
.nsf-form-wrap.nsf-presentation-conversational {
	--nsf-conversation-max-width: min(100%, 760px);
	width: var(--nsf-conversation-max-width);
}

.nsf-form-wrap.nsf-presentation-conversational .nsf-form-header {
	margin-bottom: clamp(20px, 4vw, 36px);
}

.nsf-form-wrap.nsf-presentation-conversational .nsf-form-steps {
	min-height: 260px;
}

.nsf-form-wrap.nsf-presentation-conversational .nsf-form-step.is-active {
	animation: nsf-conversation-enter 180ms ease-out;
}

.nsf-form-wrap.nsf-presentation-conversational .nsf-step-progress {
	margin-bottom: clamp(24px, 5vw, 42px);
}

.nsf-form-wrap.nsf-presentation-conversational .nsf-step-fields {
	gap: clamp(18px, 3vw, 28px);
}

.nsf-form-wrap.nsf-presentation-conversational .nsf-conversational-step-description {
	max-width: 62ch;
	margin: 0 0 clamp(18px, 3vw, 28px);
	color: var(--nsf-muted);
	font-size: 1.02em;
}

.nsf-form-wrap.nsf-presentation-conversational .nsf-step-fields > .nsf-field > .nsf-field-label,
.nsf-form-wrap.nsf-presentation-conversational .nsf-step-fields > .nsf-layout-container > .nsf-layout-container-header h3 {
	font-size: clamp(1.15rem, 2.4vw, 1.55rem);
	line-height: 1.3;
}

.nsf-form-wrap.nsf-presentation-conversational .nsf-step-navigation {
	margin-top: clamp(28px, 5vw, 48px);
}

.nsf-form-wrap.nsf-presentation-conversational .nsf-step-button,
.nsf-form-wrap.nsf-presentation-conversational .nsf-submit-button,
.nsf-form-wrap.nsf-presentation-conversational .nsf-save-button,
.nsf-form-wrap.nsf-presentation-conversational .nsf-conversational-start {
	min-height: 46px;
	padding: 10px 22px;
	font-size: 1rem;
	font-weight: 700;
}

.nsf-form-wrap.nsf-presentation-conversational .nsf-form-footer {
	margin-top: 28px;
}

.nsf-conversational-welcome {
	display: grid;
	gap: 18px;
	justify-items: start;
	min-height: 280px;
	align-content: center;
}

.nsf-conversational-welcome h3 {
	margin: 0;
	font-size: clamp(1.65rem, 4vw, 2.4rem);
	line-height: 1.15;
}

.nsf-conversational-welcome-copy {
	max-width: 62ch;
	color: var(--nsf-muted);
	font-size: 1.05em;
}

.nsf-conversational-welcome-copy > :first-child { margin-top: 0; }
.nsf-conversational-welcome-copy > :last-child { margin-bottom: 0; }

.nsf-conversational-start {
	border: 1px solid var(--nsf-primary);
	border-radius: var(--nsf-radius);
	background: var(--nsf-primary);
	color: var(--nsf-primary-text);
	cursor: pointer;
}

.nsf-conversational-start:hover,
.nsf-conversational-start:focus-visible {
	border-color: var(--nsf-primary-hover);
	background: var(--nsf-primary-hover);
	color: var(--nsf-primary-text);
}

.nsf-form-wrap.nsf-conversational-has-welcome form.nsf-form {
	display: none;
}

@keyframes nsf-conversation-enter {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.nsf-form-wrap.nsf-presentation-conversational .nsf-form-step.is-active {
		animation: none;
	}
}

@media (max-width: 700px) {
	.nsf-form-wrap.nsf-presentation-conversational .nsf-form-steps {
		min-height: 220px;
	}
	.nsf-form-wrap.nsf-presentation-conversational .nsf-step-navigation {
		align-items: stretch;
		flex-direction: column-reverse;
	}
	.nsf-form-wrap.nsf-presentation-conversational .nsf-step-button {
		width: 100%;
	}
}

.nsf-partial-save-status{display:inline-flex;align-items:center;min-height:1.5em;margin-left:auto;font-size:.82em;color:var(--nsf-muted,#64748b)}
.nsf-partial-save-status[data-state="saving"]{opacity:.8}
.nsf-partial-save-status[data-state="saved"]{color:var(--nsf-primary,#2563eb)}
.nsf-partial-save-status[data-state="error"]{color:#b45309}
