.nma-f-form-wrapper {
	max-width: 600px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 1.5em;
}

.nma-f-form-wrapper * {
	box-sizing: border-box;
}

.nma-f-form-notice {
	padding: 12px 16px;
	margin-bottom: 1em;
	border-radius: 4px;
	font-size: 0.95em;
}

.nma-f-form-notice-success {
	background: #e6f6ea;
	color: #1e5631;
	border: 1px solid #b7e4c7;
}

.nma-f-form-notice-error {
	background: #fdecea;
	color: #7a1c1c;
	border: 1px solid #f5c2c0;
}

.nma-f-form .nma-f-field {
	margin-bottom: 1.1em;
}

.nma-f-form .nma-f-field label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
}

.nma-f-form .nma-f-checkbox-group-label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
}

.nma-f-form input[type="text"],
.nma-f-form input[type="email"],
.nma-f-form input[type="tel"],
.nma-f-form input[type="number"],
.nma-f-form input[type="date"],
.nma-f-form select,
.nma-f-form textarea {
	width: 100%;
	padding: 0.6em 0.75em;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 1em;
	box-sizing: border-box;
	background: #fff;
}

.nma-f-form textarea {
	min-height: 120px;
	resize: vertical;
}

.nma-f-form .nma-f-tel-intl {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	max-width: 100%;
}

.nma-f-form .nma-f-tel-intl .nma-f-tel-country {
	flex: 1 1 140px;
	width: auto;
	min-width: 0;
	max-width: 100%;
}

.nma-f-form .nma-f-tel-intl .nma-f-tel-number {
	flex: 2 1 160px;
	min-width: 0;
	max-width: 100%;
}

.nma-f-form .nma-f-choice {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	margin-right: 1em;
	font-weight: normal;
}

.nma-f-form .nma-f-choice input {
	width: auto;
}

/*
 * No decorative styling here on purpose: the submit button's look comes
 * entirely from the "Classe CSS bottone" setting (default "btn btn--primary"),
 * so it inherits the theme's real button styles instead of fighting them.
 * Only the functional disabled-state feedback stays plugin-side.
 */
.nma-f-form .nma-f-submit-button:disabled {
	opacity: 0.5;
	filter: grayscale(1);
	cursor: not-allowed;
	pointer-events: none;
}

.nma-f-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	width: 0;
	overflow: hidden;
}

.nma-f-form .nma-f-field-invalid input,
.nma-f-form .nma-f-field-invalid select,
.nma-f-form .nma-f-field-invalid textarea {
	border-color: #c0392b;
}

.nma-f-form .nma-f-counter {
	display: block;
	font-size: 0.85em;
	opacity: 0.75;
	margin-top: 0.25em;
}

.nma-f-form .nma-f-field-forbidden input {
	border: 3px solid #ff4444;
	opacity: 0.8;
}
