/* Motoraduno Noleggio – Configuratore Preventivi
   Tutti gli stili scoped sotto .mrn-wrap */

.mrn-wrap {
	max-width: 920px;
	margin: 0 auto;
	font-family: inherit;
}

.mrn-preview-banner {
	background: #fff8e5;
	border: 1px solid #f0d48a;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-size: 13px;
	color: #7a5d00;
	line-height: 1.5;
}

.mrn-wrap *,
.mrn-wrap *::before,
.mrn-wrap *::after {
	box-sizing: border-box;
}

.mrn-fieldset {
	border: none;
	padding: 0;
	margin: 0 0 24px;
}

.mrn-legend {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
	margin-bottom: 10px;
	padding: 0;
}

/* Step 1 – Mezzi */
.mrn-step-intro {
	font-size: 14px;
	color: #666;
	margin: 0 0 14px;
	line-height: 1.5;
}

.mrn-steps-hidden {
	display: none;
}

.mrn-vehicle-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.mrn-v-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #ddd;
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
	text-align: left;
	background: #fff;
	overflow: hidden;
}

.mrn-v-card:hover {
	border-color: #0F6E56;
	box-shadow: 0 6px 20px rgba(15, 110, 86, 0.12);
	transform: translateY(-2px);
}

.mrn-v-card.mrn-selected {
	border: 2px solid #0F6E56;
	box-shadow: 0 8px 24px rgba(15, 110, 86, 0.18);
}

.mrn-v-card:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.35);
}

.mrn-v-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #eef2f0;
	overflow: hidden;
}

.mrn-v-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mrn-v-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f0faf6 0%, #e8f0ed 100%);
}

.mrn-v-card-badge {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: #0F6E56;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mrn-v-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.mrn-v-emoji {
	font-size: 48px;
	line-height: 1;
}

.mrn-v-title {
	font-size: 18px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

.mrn-v-sub {
	font-size: 13px;
	color: #0F6E56;
	font-weight: 600;
	margin-top: 2px;
}

.mrn-v-features {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	flex: 1;
}

.mrn-v-features li {
	position: relative;
	padding-left: 16px;
	font-size: 13px;
	color: #555;
	line-height: 1.45;
	margin-bottom: 4px;
}

.mrn-v-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #0F6E56;
	font-size: 11px;
	font-weight: 700;
	top: 1px;
}

.mrn-v-select-hint {
	display: block;
	margin-top: 12px;
	font-size: 12px;
	font-weight: 600;
	color: #0F6E56;
	text-align: right;
}

.mrn-v-card.mrn-selected .mrn-v-select-hint::after {
	content: ' selezionato';
}

.mrn-selected-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #f0faf6;
	border: 1px solid #5DCAA5;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.mrn-selected-label {
	font-size: 12px;
	color: #666;
	display: block;
}

.mrn-selected-info strong {
	font-size: 15px;
	color: #0F6E56;
}

.mrn-btn-change {
	background: #fff;
	border: 1px solid #0F6E56;
	color: #0F6E56;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s, color 0.2s;
}

.mrn-btn-change:hover {
	background: #0F6E56;
	color: #fff;
}

/* Campi e date */
.mrn-date-row,
.mrn-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.mrn-field-group {
	display: flex;
	flex-direction: column;
}

.mrn-field-group.mrn-full {
	grid-column: 1 / -1;
}

.mrn-field-group label {
	font-size: 13px;
	font-weight: 500;
	color: #444;
	margin-bottom: 5px;
}

.mrn-wrap input[type="text"],
.mrn-wrap input[type="email"],
.mrn-wrap input[type="tel"],
.mrn-wrap input[type="date"],
.mrn-wrap textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 7px;
	font-size: 15px;
	font-family: inherit;
	color: #222;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.mrn-wrap input:focus,
.mrn-wrap textarea:focus {
	outline: none;
	border-color: #0F6E56;
	box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.15);
}

.mrn-wrap textarea {
	resize: vertical;
	min-height: 80px;
}

/* Step 3 – Extra */
.mrn-extra-wrap {
	margin-bottom: 8px;
}

.mrn-extra-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.2s;
}

.mrn-extra-item:hover {
	border-color: #bbb;
}

.mrn-extra-check {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 140px;
	min-width: 0;
	margin: 0;
	cursor: pointer;
}

.mrn-extra-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: #0F6E56;
	cursor: pointer;
	margin: 0;
}

.mrn-extra-text {
	font-size: 14px;
	color: #333;
	line-height: 1.3;
}

.mrn-extra-badge {
	font-size: 12px;
	font-weight: 600;
	color: #0F6E56;
	background: #f0faf6;
	padding: 3px 8px;
	border-radius: 20px;
	white-space: nowrap;
	flex-shrink: 0;
	margin-left: auto;
}

.mrn-extra-qty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 4px 10px;
	background: #f8f8f8;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
}

.mrn-extra-qty[hidden] {
	display: none !important;
}

.mrn-extra-qty-label {
	font-size: 12px;
	color: #666;
	margin: 0;
	white-space: nowrap;
	cursor: default;
}

.mrn-extra-qty-input {
	width: 48px;
	padding: 4px 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	text-align: center;
	background: #fff;
}

.mrn-extra-qty-input:focus {
	outline: none;
	border-color: #0F6E56;
	box-shadow: 0 0 0 2px rgba(15, 110, 86, 0.15);
}

/* Box preventivo */
.mrn-price-box {
	background: #f5f5f3;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 24px;
}

.mrn-price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #555;
	padding: 5px 0;
}

.mrn-price-total {
	border-top: 1px solid #ddd;
	margin-top: 8px;
	padding-top: 12px;
	font-weight: 600;
	color: #222;
}

.mrn-price-totale {
	font-size: 24px;
	font-weight: 700;
	color: #0F6E56;
}

.mrn-price-note {
	font-size: 12px;
	color: #888;
	margin: 10px 0 0;
	line-height: 1.4;
}

/* Errori */
.mrn-error {
	color: #c0392b;
	font-size: 13px;
	margin: 6px 0 0;
	display: none;
	line-height: 1.4;
}

.mrn-error.mrn-visible {
	display: block;
}

.mrn-server-error.mrn-visible {
	background: #fdf0ef;
	border: 1px solid #e8b4b0;
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 12px;
}

/* Privacy */
.mrn-privacy-consent {
	background: #f9f9f7;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 14px;
	margin-bottom: 16px;
}

.mrn-privacy-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #444;
	line-height: 1.5;
	cursor: pointer;
}

.mrn-privacy-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
	accent-color: #0F6E56;
	cursor: pointer;
}

.mrn-privacy-label a {
	color: #0F6E56;
	text-decoration: underline;
}

.mrn-privacy-label a:hover {
	color: #0c5c48;
}

/* Bottone submit */
.mrn-btn-submit {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: #0F6E56;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s;
}

.mrn-btn-submit:hover:not(:disabled) {
	background: #0c5c48;
}

.mrn-btn-submit:disabled {
	background: #aaa;
	cursor: not-allowed;
}

/* Footer note */
.mrn-footer-note {
	font-size: 12px;
	color: #888;
	text-align: center;
	margin-top: 14px;
	line-height: 1.5;
}

.mrn-footer-note a {
	color: #0F6E56;
	text-decoration: none;
}

.mrn-footer-note a:hover {
	text-decoration: underline;
}

/* Schermata successo */
.mrn-success {
	background: #f0faf6;
	border: 2px solid #5DCAA5;
	border-radius: 12px;
	padding: 28px 24px;
	text-align: center;
}

.mrn-success-icon {
	font-size: 40px;
	color: #0F6E56;
	line-height: 1;
	margin-bottom: 10px;
}

.mrn-success-title {
	font-size: 20px;
	font-weight: 700;
	color: #0F6E56;
	margin: 0 0 12px;
}

.mrn-success-text {
	font-size: 14px;
	color: #444;
	line-height: 1.6;
	margin: 0 0 10px;
}

.mrn-success-text a {
	color: #0F6E56;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 540px) {
	.mrn-vehicle-grid,
	.mrn-date-row,
	.mrn-fields {
		grid-template-columns: 1fr;
	}

	.mrn-field-group.mrn-full {
		grid-column: 1;
	}
}
