/*!
 * SA Linked Form Fields for Elementor
 * Seo Analytic Dev Team · https://seo-analytic.co.il | https://aeo-analytic.co.il
 */
.salf-field-group {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.salf-label {
	display: block;
}

.salf-required-mark {
	margin-inline-start: 3px;
}

.salf-field {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	font-family: inherit;
	background-color: #fff;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

textarea.salf-field {
	resize: vertical;
	min-height: 0;
}

/* Select */
.salf-select-wrap {
	position: relative;
	width: 100%;
}

.salf-select-wrap select.salf-field {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-inline-end: 2.4em;
	cursor: pointer;
}

.salf-select-wrap:not(.salf-multiple)::after {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-end: 1em;
	width: .45em;
	height: .45em;
	border-right: 2px solid var(--salf-arrow-color, currentColor);
	border-bottom: 2px solid var(--salf-arrow-color, currentColor);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

/* Radio / checkbox / acceptance */
.salf-subgroup {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.salf-subgroup.salf-inline {
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 20px;
}

.salf-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.salf-option .salf-choice {
	width: auto;
	margin: 0;
	flex: 0 0 auto;
}

/* Errors (mirrored from Elementor) */
.salf-error-msg {
	display: none;
	margin-top: 6px;
	font-size: .85em;
	color: #d72b3f;
}

.salf-field-group.salf-has-error .salf-error-msg:not(:empty) {
	display: block;
}

/* Original field inside the Elementor form */
.elementor-form .salf-original-hidden {
	display: none !important;
}

.elementor-form .salf-original-linked {
	opacity: .35;
}

/* Editor helper */
.salf-editor-notice {
	padding: 12px 14px;
	border: 1px dashed #93003c;
	border-radius: 8px;
	background: #fff5f8;
	color: #3f444b;
	font-size: 13px;
	line-height: 1.5;
}

.salf-editor-notice code {
	background: #fde5ee;
	padding: 0 4px;
	border-radius: 3px;
}
