/*
 * Stile minimo del form "Contatta i vivai". La grafica definitiva si costruisce sostituendo
 * il template form/richiesta.php dal tema e aggiungendo il proprio CSS.
 */

.mvrv-form-wrap {
	--mvrv-accent: #e8590c;
	--mvrv-muted: #6b6b6b;
	--mvrv-border: #d0d0d0;
	--mvrv-error: #b32d2e;
	max-width: 760px;
}

.mvrv-form__section {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

.mvrv-form__section legend {
	font-weight: 600;
	font-size: 1.15em;
	margin-bottom: 12px;
}

.mvrv-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}

.mvrv-row > .mvrv-field {
	flex: 1 1 200px;
}

.mvrv-row > .mvrv-field--wide {
	flex: 3 1 300px;
}

.mvrv-row > .mvrv-field--small {
	flex: 0 1 120px;
}

.mvrv-field {
	margin-bottom: 14px;
}

.mvrv-field label {
	display: block;
	margin-bottom: 4px;
}

.mvrv-field input[type="text"],
.mvrv-field input[type="email"],
.mvrv-field input[type="tel"],
.mvrv-field input[type="date"],
.mvrv-field select,
.mvrv-field textarea {
	width: 100%;
	box-sizing: border-box;
}

.mvrv-field__help {
	margin: 4px 0 0;
	color: var(--mvrv-muted);
	font-size: 0.9em;
}

.mvrv-field__error {
	margin: 4px 0 0;
	color: var(--mvrv-error);
	font-size: 0.9em;
}

.mvrv-field--error input,
.mvrv-field--error select,
.mvrv-field--error textarea {
	border-color: var(--mvrv-error);
}

.mvrv-req {
	color: var(--mvrv-error);
}

.mvrv-choice label {
	display: block;
	margin-bottom: 6px;
}

.mvrv-autocomplete {
	position: relative;
}

.mvrv-suggestions {
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--mvrv-border);
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	max-height: 260px;
	overflow-y: auto;
}

.mvrv-suggestions li {
	padding: 8px 12px;
	cursor: pointer;
	font-size: 0.92em;
}

.mvrv-suggestions li:hover,
.mvrv-suggestions li:focus {
	background: #fff4e6;
	outline: none;
}

.mvrv-suggestions__empty {
	color: var(--mvrv-muted);
	cursor: default;
}

.mvrv-form__info {
	margin: 8px 0 20px;
	padding: 16px 20px;
	background: #f7f7f7;
	border-radius: 8px;
}

.mvrv-form__info h3 {
	margin-top: 0;
	font-size: 1em;
}

.mvrv-consent label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.mvrv-form__message {
	color: var(--mvrv-error);
}

.mvrv-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mvrv-done {
	padding: 24px;
	border: 1px solid var(--mvrv-border, #d0d0d0);
	border-radius: 8px;
}
