/* Priem template — scoped styles (also inlined by priem.php) */

.fm-form-wrap.fm-form-wrap--priem,
.fm-form-wrap .fm-form.fm-template-priem {
	--fm-priem-border: #d4d4d4;
	--fm-priem-border-focus: #999;
	--fm-priem-placeholder: #9e9e9e;
	--fm-priem-text: #222;
	--fm-priem-muted: #666;
	--fm-priem-btn: #000;
	--fm-priem-btn-hover: #222;
	width: 100%;
	max-width: none;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
}

.fm-form-wrap--priem .fm-priem,
.fm-form.fm-template-priem .fm-priem {
	width: 100%;
}

.fm-form-wrap--priem .fm-fields--priem,
.fm-form.fm-template-priem .fm-fields--priem {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0;
}

.fm-form-wrap--priem .fm-fields--priem .fm-field,
.fm-form.fm-template-priem .fm-fields--priem .fm-field {
	flex: 0 0 100%;
	max-width: 100%;
	margin: 0 0 12px;
	gap: 0;
	padding: 0;
}

.fm-form-wrap--priem .fm-fields--priem .fm-field--consent,
.fm-form.fm-template-priem .fm-fields--priem .fm-field--consent {
	margin: 4px 0 20px;
}

.fm-form-wrap--priem .fm-fields--priem .fm-field--submit,
.fm-form.fm-template-priem .fm-fields--priem .fm-field--submit {
	margin: 0;
}

.fm-form-wrap--priem .fm-label,
.fm-form-wrap--priem .fm-help,
.fm-form-wrap--priem .fm-required,
.fm-form.fm-template-priem .fm-label,
.fm-form.fm-template-priem .fm-help,
.fm-form.fm-template-priem .fm-required {
	display: none !important;
}

.fm-form-wrap--priem input.fm-control,
.fm-form-wrap--priem select.fm-control,
.fm-form-wrap--priem textarea.fm-control,
.fm-form.fm-template-priem input.fm-control,
.fm-form.fm-template-priem select.fm-control,
.fm-form.fm-template-priem textarea.fm-control {
	width: 100%;
	box-sizing: border-box;
	height: auto;
	min-height: 48px;
	padding: 13px 16px;
	border: 1px solid var(--fm-priem-border) !important;
	border-radius: 6px !important;
	background: #fff !important;
	box-shadow: none !important;
	font-size: 16px !important;
	line-height: 1.35 !important;
	color: var(--fm-priem-text) !important;
	-webkit-appearance: none;
	appearance: none;
}

.fm-form-wrap--priem textarea.fm-control,
.fm-form.fm-template-priem textarea.fm-control {
	min-height: 96px;
	resize: vertical;
}

.fm-form-wrap--priem input.fm-control::placeholder,
.fm-form-wrap--priem textarea.fm-control::placeholder,
.fm-form.fm-template-priem input.fm-control::placeholder,
.fm-form.fm-template-priem textarea.fm-control::placeholder {
	color: var(--fm-priem-placeholder);
	opacity: 1;
}

.fm-form-wrap--priem input.fm-control:focus,
.fm-form-wrap--priem select.fm-control:focus,
.fm-form-wrap--priem textarea.fm-control:focus,
.fm-form.fm-template-priem input.fm-control:focus,
.fm-form.fm-template-priem select.fm-control:focus,
.fm-form.fm-template-priem textarea.fm-control:focus {
	outline: none;
	border-color: var(--fm-priem-border-focus) !important;
	box-shadow: none !important;
}

.fm-form-wrap--priem .fm-priem__consent,
.fm-form.fm-template-priem .fm-priem__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: var(--fm-priem-muted);
	font-size: 13px;
	line-height: 1.45;
	font-weight: 400;
	cursor: pointer;
}

.fm-form-wrap--priem .fm-priem__consent-input,
.fm-form.fm-template-priem .fm-priem__consent-input {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	border: 1px solid var(--fm-priem-border);
	border-radius: 3px;
	accent-color: var(--fm-priem-btn);
	cursor: pointer;
}

.fm-form-wrap--priem .fm-priem__consent-text,
.fm-form.fm-template-priem .fm-priem__consent-text {
	flex: 1 1 auto;
	min-width: 0;
}

.fm-form-wrap--priem .fm-priem__consent-text a,
.fm-form.fm-template-priem .fm-priem__consent-text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fm-form-wrap--priem button.fm-priem__submit,
.fm-form.fm-template-priem button.fm-priem__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 14px 24px;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--fm-priem-btn) !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 600;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.fm-form-wrap--priem button.fm-priem__submit:hover,
.fm-form.fm-template-priem button.fm-priem__submit:hover {
	background: var(--fm-priem-btn-hover) !important;
	opacity: 1;
}

.fm-form-wrap--priem button.fm-priem__submit:disabled,
.fm-form.fm-template-priem button.fm-priem__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.fm-form-wrap--priem .fm-messages,
.fm-form.fm-template-priem .fm-messages {
	margin-top: 16px;
}

.fm-form-wrap--priem .fm-field-error,
.fm-form.fm-template-priem .fm-field-error {
	margin-top: 6px;
	font-size: 13px;
}
