.ucf-form {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.ucf-form * {
	box-sizing: border-box;
}

.ucf-field {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.ucf-label {
	display: block;
}

.ucf-input,
.ucf-textarea {
	width: 100%;
	font-family: inherit;
	transition: border-color 0.2s ease;
}

.ucf-textarea {
	resize: vertical;
}

/* Honeypot: nascosto agli utenti reali, visibile ai bot che leggono il DOM senza CSS */
.ucf-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.ucf-field-privacy .ucf-privacy-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.ucf-privacy-checkbox {
	margin-top: 3px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.ucf-privacy-text a {
	font-weight: 600;
}

.ucf-submit-wrap {
	display: flex;
}

.ucf-submit {
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease;
	font-family: inherit;
}

.ucf-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ucf-response {
	display: none;
	padding: 10px 14px;
	border-left: 3px solid transparent;
	font-family: inherit;
}

.ucf-response.ucf-visible {
	display: block;
}

.ucf-field.ucf-field-error .ucf-input,
.ucf-field.ucf-field-error .ucf-textarea {
	border-color: #B3261E !important;
}

.ucf-field-error-text {
	color: #B3261E;
	font-size: 12px;
	margin-top: 4px;
}
