/* Prenotazione Corso — tutto namespaced .vsp- per non collidere col tema/altri widget. */

.vsp-wrap {
	--vsp-color: #7A1B54;
	--vsp-color-hover: #a61f4a;
	position: relative;
}

.vsp-intro {
	text-align: center;
	margin-bottom: 20px;
	font-size: 16px;
}

.vsp-buttons {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

.vsp-btn {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: 15px 30px;
	border: 2px solid var(--vsp-color);
	background: var(--vsp-color);
	color: #fff !important;
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
	border-radius: 5px;
	cursor: pointer;
	transition: .3s all;
}

.vsp-btn:hover {
	background: var(--vsp-color-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(139, 26, 60, .3);
}

.vsp-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

/* ---------- overlay + modale ---------- */

.vsp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .7);
	z-index: 9998;
}

body.vsp-locked {
	overflow: hidden;
}

.vsp-flow {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 40px;
	border-radius: 10px;
	max-width: 620px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 9999;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
	text-align: left;
}

.vsp-flow[hidden],
.vsp-overlay[hidden] {
	display: none;
}

.vsp-flow h3 {
	text-align: center;
	color: var(--vsp-color, #7A1B54);
	font-size: 26px;
	margin: 10px 0 25px;
}

.vsp-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	border-radius: 50%;
	font-size: 30px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	transition: .3s all;
}

.vsp-close:hover {
	background: #f5f5f5;
	color: #333;
}

/* ---------- step ---------- */

.vsp-step {
	position: relative;
	margin: 0 0 25px 15px;
	padding-left: 30px;
	border-left: 3px solid #e0e0e0;
	transition: .3s all;
}

.vsp-step.is-active {
	border-left-color: var(--vsp-color, #7A1B54);
}

.vsp-step.is-done {
	border-left-color: #4CAF50;
}

.vsp-step-head {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 12px;
}

.vsp-step-num {
	position: absolute;
	left: -18px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e0e0e0;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	border-radius: 50%;
	transition: .3s all;
}

.vsp-step.is-active .vsp-step-num {
	background: var(--vsp-color, #7A1B54);
	transform: scale(1.1);
}

.vsp-step.is-done .vsp-step-num {
	background: #4CAF50;
}

.vsp-step-title {
	font-size: 18px;
	font-weight: 500;
	color: #333;
}

.vsp-step.is-active .vsp-step-title {
	color: var(--vsp-color, #7A1B54);
}

.vsp-step-body {
	display: none;
	animation: vsp-fade .3s ease;
}

.vsp-step.is-active .vsp-step-body {
	display: block;
}

.vsp-step-body p {
	font-size: 16px;
}

@keyframes vsp-fade {
	from { opacity: 0; transform: translateY(-10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- coordinate bancarie ---------- */

.vsp-bank {
	background: #f8f8f8;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 20px;
}

.vsp-bank p {
	margin: 10px 0;
	font-size: 15px;
	word-break: break-word;
}

.vsp-bank strong {
	color: var(--vsp-color, #7A1B54);
}

.vsp-importo {
	margin-bottom: 15px;
}

.vsp-next {
	display: block;
	margin: 20px auto 0;
	padding: 15px 30px;
	background: var(--vsp-color, #7A1B54);
	color: #fff;
	border: 0;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
	transition: .3s all;
}

.vsp-next:hover {
	background: var(--vsp-color-hover, #a61f4a);
	transform: translateY(-2px);
}

/* ---------- form ---------- */

.vsp-form label {
	display: block;
	margin-bottom: 14px;
	font-size: 14px;
	color: #444;
}

.vsp-row {
	display: flex;
	gap: 14px;
}

.vsp-row label {
	flex: 1 1 0;
	min-width: 0;
}

.vsp-form input[type="text"],
.vsp-form input[type="email"],
.vsp-form input[type="tel"],
.vsp-form textarea {
	width: 100%;
	margin-top: 5px;
	padding: 10px;
	border: 0;
	border-bottom: 1px solid #ccc;
	border-radius: 0;
	background: #fff;
	font-size: 15px;
}

.vsp-form input:focus,
.vsp-form textarea:focus {
	outline: none;
	border-bottom-color: var(--vsp-color, #7A1B54);
	box-shadow: 0 8px 10px -4px rgba(0, 0, 0, .1);
}

.vsp-form input[type="file"] {
	display: block;
	margin-top: 8px;
	font-size: 14px;
}

.vsp-file small {
	color: #888;
	font-weight: 400;
}

.vsp-check {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	margin: 18px 0;
	font-size: 13px;
	line-height: 1.4;
}

.vsp-check input {
	margin-top: 2px;
	flex: 0 0 auto;
}

/* honeypot: fuori schermo, invisibile ai bot che leggono solo display:none */
.vsp-hp {
	position: absolute !important;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.vsp-submit {
	position: relative;
	width: 100%;
	padding: 15px 20px;
	background: var(--vsp-color, #7A1B54);
	color: #fff;
	border: 0;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: .3s all;
}

.vsp-submit:hover:not(:disabled) {
	background: var(--vsp-color-hover, #a61f4a);
}

.vsp-submit:disabled {
	opacity: .65;
	cursor: not-allowed;
}

.vsp-spinner {
	display: none;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: vsp-spin .7s linear infinite;
}

.vsp-submit.is-loading .vsp-spinner {
	display: inline-block;
}

@keyframes vsp-spin {
	to { transform: rotate(360deg); }
}

.vsp-message {
	margin-top: 12px;
	font-size: 14px;
}

.vsp-message.is-ko {
	color: #c62828;
}

.vsp-message.is-ok {
	color: #2e7d32;
}

/* ---------- mobile ---------- */

@media (max-width: 768px) {
	.vsp-flow {
		padding: 30px 20px;
		width: 95%;
	}

	.vsp-buttons {
		flex-direction: column;
		align-items: center;
		gap: 15px;
	}

	.vsp-btn {
		width: 100%;
		max-width: 320px;
		justify-content: center;
	}

	.vsp-row {
		flex-direction: column;
		gap: 0;
	}
}
