/* ======================================
   La Cart – Form RENTRI (Plugin CSS)
   ====================================== */

.lc-rf-wrap {
	font-family: inherit;
	margin: 40px auto;
}

.lc-rf-wrap h2 {
	margin: 32px 0 16px;
	font-size: 22px;
	font-weight: 600;
	color: #1f1f1f;
}

.lc-rf-wrap fieldset {
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 20px;
	background: #fafafa;
}

.lc-rf-wrap legend {
	font-weight: 600;
	padding: 0 8px;
	color: #2b2b2b;
}

.lc-rf-wrap label {
	font-size: 14px;
	color: #333;
}

.lc-rf-wrap input[type="text"],
.lc-rf-wrap input[type="email"],
.lc-rf-wrap input[type="number"],
.lc-rf-wrap input[type="date"],
.lc-rf-wrap textarea {
	width: 100%;
	padding: 10px 12px;
	margin-top: 6px;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	font-size: 14px;
	background-color: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lc-rf-wrap textarea {
	resize: vertical;
}

.lc-rf-wrap input:focus,
.lc-rf-wrap textarea:focus {
	outline: none;
	border-color: #4caf50;
	box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.25);
}

.lc-rf-wrap input[type="checkbox"],
.lc-rf-wrap input[type="radio"] {
	accent-color: #4caf50;
	cursor: pointer;
}

.lc-rf-wrap fieldset label input[type="radio"] {
	margin-right: 6px;
}

.lc-rf-wrap > form > div,
.lc-rf-wrap fieldset > div {
	margin-bottom: 14px;
}

.lc-rf-wrap button[type="submit"] {
	background-color: #4caf50;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.lc-rf-wrap button[type="submit"]:hover {
	background-color: #43a047;
}

.lc-rf-wrap button[type="submit"]:active {
	transform: translateY(1px);
}

#lc-rf-status {
	font-size: 14px;
	margin-left: 12px;
	color: #333;
}

@media (max-width: 768px) {
	.lc-rf-wrap {
		padding: 0 16px;
	}

	.lc-rf-wrap h2 {
		font-size: 20px;
	}
}

/* ===== Layout a 2 colonne (desktop) ===== */

.lc-rf-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* Mobile: una colonna */
@media (max-width: 768px) {
	.lc-rf-row-2 {
		grid-template-columns: 1fr;
	}
}

.lc-rf-row-2 label {
	display: flex;
	flex-direction: column;
}

/* ===== Forza layout a 2 colonne (compatibile Elementor) ===== */

/* ===== Riga a 2 colonne (50% reali) ===== */

.lc-rf-row-2 {
	display: flex !important;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
}

/* Ogni campo = 50% */
.lc-rf-row-2 > .lc-rf-field {
	flex: 0 0 calc(50% - 8px);
	max-width: calc(50% - 8px);
	box-sizing: border-box;
}

/* Mobile: una colonna */
@media (max-width: 768px) {
	.lc-rf-row-2 {
		flex-direction: column !important;
	}

	.lc-rf-row-2 > .lc-rf-field {
		max-width: 100%;
	}
}

.lc-rf-field {
	display: flex;
	flex-direction: column;
}

/* Help text */
.lc-rf-help {
	font-size: 11px;
	color: #555;
	margin: 4px 0 6px;
	line-height: 1;
	font-weight: bold;
}

/* Placeholder invisibile per allineamento */
.lc-rf-help--placeholder {
	visibility: hidden;
}

/* ===== Messaggio di successo submit ===== */

/* #lc-rf-status {
	display: block;
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: 6px;

	background-color: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #1b5e20;

	font-size: 15px;
	font-weight: 500;
} */

/* Icona check (solo via CSS, niente immagini) */
/* #lc-rf-status::before {
	content: "✔ ";
	font-weight: 700;
} */

/* ===== Status box (success / error) ===== */

#lc-rf-status {
	display: none; /* nascosto di default */
	margin-top: 20px;
	padding: 16px 18px 16px 44px;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.5;
	position: relative;
}

/* ===== SUCCESS ===== */
#lc-rf-status.is-success {
	display: block;
	background-color: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #1b5e20;
}

#lc-rf-status.is-success::before {
	content: "✔";
	position: absolute;
	left: 16px;
	top: 16px;
	font-size: 18px;
	font-weight: bold;
	color: #2e7d32;
}

/* ===== ERROR ===== */
#lc-rf-status.is-error {
	display: block;
	background-color: #fdecea;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

#lc-rf-status.is-error::before {
	content: "⚠";
	position: absolute;
	left: 16px;
	top: 16px;
	font-size: 18px;
	font-weight: bold;
	color: #c62828;
}