/* Form eventi estivi — estende gli stili di public.css (vpp-public) */

.vpp-evento-booking-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #2c3e50;
}

.vpp-evento-booking-wrap input[type="checkbox"] {
	accent-color: var(--vpp-accent, #2271b1);
}

/* Riepilogo evento */
.vpp-evento-meta-list {
	margin: 0;
}

.vpp-evento-meta-row {
	display: grid;
	grid-template-columns: 110px 1fr;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid #eef0f2;
}

.vpp-evento-meta-row:last-child {
	border-bottom: none;
}

.vpp-evento-meta-row dt {
	margin: 0;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}

.vpp-evento-meta-row dd {
	margin: 0;
	font-weight: 600;
}

.vpp-evento-booking-wrap .vpp-evento-meta.vpp-card-lite {
	background: #ffffff;
	border: 2px solid #e1e8ed;
	border-radius: 6px;
	padding: 25px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Numero persone (stepper) */
.vpp-evento-booking-wrap .vpp-evento-party-row {
	margin-bottom: 20px;
}

.vpp-evento-booking-wrap .vpp-evento-party-row .vpp-form-col {
	width: 100%;
	margin-right: 0;
}

.vpp-evento-party-stepper {
	display: flex;
	align-items: stretch;
	gap: 0;
	max-width: 220px;
}

.vpp-evento-party-step {
	flex: 0 0 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1;
	color: #374151;
	background: #ffffff;
	border: 2px solid #e1e8ed;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.vpp-evento-party-minus {
	border-radius: 4px 0 0 4px;
	border-right: none;
}

.vpp-evento-party-plus {
	border-radius: 0 4px 4px 0;
	border-left: none;
}

.vpp-evento-party-step:hover:not(:disabled) {
	border-color: var(--vpp-accent, #2271b1);
	background: var(--vpp-accent-light, #f0f6fc);
	color: #2c3e50;
}

.vpp-evento-party-step:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.vpp-evento-party-size-input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	box-sizing: border-box;
	padding: 11px 8px;
	border: 2px solid #e1e8ed;
	font-size: 14px;
	text-align: center;
	border-radius: 0 !important;
	font-weight: 600;
	background: #ffffff;
}

.vpp-evento-party-size-input:focus {
	outline: 1px solid var(--vpp-accent, #2271b1);
	outline-offset: 0;
	border-color: var(--vpp-accent, #2271b1);
	box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.15);
}

/* Partecipanti */
.vpp-evento-booking-wrap .vpp-participants-container {
	margin-top: 0;
}

.vpp-evento-booking-wrap .vpp-participant-item .vpp-billing-details .vpp-form-row:last-child {
	margin-bottom: 0;
}

/* Consensi — allineati al checkout standard */
.vpp-evento-booking-wrap .vpp-booking-declarations {
	margin-top: 24px;
	margin-bottom: 0;
	padding: 25px;
}

.vpp-evento-booking-wrap .vpp-booking-declarations .vpp-form-row.vpp-evento-consent-item {
	margin-bottom: 15px;
}

.vpp-evento-booking-wrap .vpp-booking-declarations .vpp-form-row.vpp-evento-consent-item:last-child {
	margin-bottom: 0;
}

.vpp-evento-booking-wrap .vpp-evento-consent-row {
	margin-bottom: 0;
}

.vpp-evento-booking-wrap .vpp-evento-consent-title {
	font-weight: 600;
	line-height: 1.4;
}

/* .vpp-checkbox-label span imposta display:block anche sull'asterisco annidato */
.vpp-evento-booking-wrap .vpp-checkbox-label .vpp-evento-consent-title .required {
	display: inline;
	white-space: nowrap;
}

.vpp-evento-booking-wrap .vpp-evento-consent-description {
	margin: 8px 0 0 28px;
	padding: 10px 12px;
	border: 2px solid #e1e8ed;
	border-radius: 4px;
	background: #f9fafb;
	font-size: 13px;
	line-height: 1.45;
	color: #666;
}

.vpp-evento-booking-wrap .vpp-evento-consent-description a {
	color: var(--vpp-accent, #2271b1);
	text-decoration: underline;
}

.vpp-evento-booking-wrap .vpp-evento-consent-description a:hover {
	color: var(--vpp-accent-dark, #135e96);
}

/* Invio e feedback */
.vpp-evento-submit {
	display: block;
	width: 100%;
	margin-top: 24px;
	box-sizing: border-box;
}

.vpp-evento-feedback {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 14px;
}

.vpp-evento-feedback.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.vpp-evento-feedback.is-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

/* Successo */
.vpp-evento-success-panel {
	text-align: center;
	padding: 28px 20px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 12px;
	color: #065f46;
}

.vpp-evento-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: #10b981;
	color: #fff;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
}

.vpp-evento-success-title {
	margin: 0 0 10px;
	font-size: 1.35rem;
	color: #047857;
}

.vpp-evento-success-message {
	margin: 0 0 8px;
	font-size: 1rem;
	line-height: 1.5;
}

.vpp-evento-success-booking {
	margin: 0 0 8px;
	font-size: 0.95rem;
	font-weight: 600;
}

.vpp-evento-success-hint {
	margin: 16px 0 0;
	font-size: 0.9rem;
	color: #047857;
}

.vpp-evento-booking-completed .vpp-evento-booking-content {
	display: none;
}

/* Sold out */
.vpp-evento-sold-out-banner {
	text-align: center;
	padding: 24px 16px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 12px;
	color: #991b1b;
}

.vpp-evento-sold-out-banner strong {
	display: block;
	font-size: 1.25rem;
	letter-spacing: 0.06em;
	margin-bottom: 8px;
}

.vpp-evento-seats-status.vpp-evento-sold-out {
	font-weight: 700;
	color: #b91c1c;
}

.vpp-optional {
	color: #666;
	font-weight: normal;
	font-size: 13px;
	font-style: italic;
}

.vpp-evento-booking-wrap .required {
	color: #dc2626;
}

.vpp-evento-alert {
	color: #991b1b;
}

@media (max-width: 640px) {
	.vpp-evento-booking-wrap .vpp-billing-details .vpp-form-row {
		flex-direction: column;
		gap: 0;
	}

	.vpp-evento-booking-wrap .vpp-billing-details .vpp-form-col {
		width: 100%;
		margin-right: 0;
	}
}
