/* Original styles from the HTML file */
:root{--brand-color-primary:#4f46e5;--brand-color-accent:#db2777;--color-slate-50:#f8fafc}
html{scroll-padding-top:80px; scroll-behavior: smooth;}
body{font-family:'Plus Jakarta Sans',sans-serif;background-color:var(--color-slate-50);color:#475569}

.wizard-step-container{position:relative;}
.wizard-step{
	display: none; /* Hidden by default */
}
.wizard-step.active{
	display: block; /* Shown when active */
	animation: fadeIn .4s cubic-bezier(.22,1,.36,1);
}
.wizard-step.dashboard-mode{
	display: block;
	position:relative;
	margin-bottom:2.5rem; 
	border-top: 1px solid #e2e8f0; 
	padding-top: 2rem; 
	animation: fadeIn .5s
}
.wizard-step.dashboard-mode:first-child{border-top:none; padding-top:0;}

.option-card{display:block;transition:all .2s ease-in-out;position:relative;cursor:pointer; height: 100%;}
.option-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px -5px rgba(100,116,139,.1)}
.option-card input:checked+div{border-color:var(--brand-color-primary);background-color:#f0f4ff}
.option-card .check-icon{position:absolute;top:10px;right:10px;background:var(--brand-color-primary);color:#fff;border-radius:9999px;width:22px;height:22px;display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(.8);transition:all .2s}
.option-card input:checked~.check-icon{opacity:1;transform:scale(1)}
.progress-bar-fill{transition:width .5s cubic-bezier(.22,1,.36,1);background-image:linear-gradient(to right,#6366f1,#4f46e5)}
.custom-shadow{box-shadow:0 25px 50px -12px rgba(100,116,139,.12)}
@keyframes fadeIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.step-title{font-weight:800;font-size:1.6rem;color:#1e293b;margin-bottom:1.25rem;display:flex;align-items:center;gap:0.5rem;}
.step-number{background:#eef2ff;color:var(--brand-color-primary);border-radius:9999px;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;margin-right:10px;flex-shrink:0}
.step-number.expert{background:#1e293b;color:white;}
.glass{background:rgba(255,255,255,.7);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2)}
.modal-backdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgba(15,23,42,.6);opacity:0;pointer-events:none;transition:opacity .25s}
.modal-content{background:#fff;border-radius:14px;box-shadow:0 30px 60px -15px rgba(2,6,23,.35);padding:1.25rem;width:100%;max-width:880px;transform:scale(.96);transition:transform .25s}
@media(min-width:768px){.modal-content{padding:2rem}}
.modal-backdrop.active{opacity:1;pointer-events:auto}
.modal-backdrop.active .modal-content{transform:scale(1)}
button:active{transform:scale(.98)}
input[type=range]{-webkit-appearance:none;appearance:none;width:100%;background:transparent;cursor:pointer}
input[type=range]::-webkit-slider-runnable-track{height:8px;background:linear-gradient(to right,var(--brand-color-primary) 0%,var(--brand-color-primary) var(--value-percent,0%),#e2e8f0 var(--value-percent,0%),#e2e8f0 100%);border-radius:4px}
input[type=range]::-moz-range-track{height:8px;background:linear-gradient(to right,var(--brand-color-primary) 0%,var(--brand-color-primary) var(--value-percent,0%),#e2e8f0 var(--value-percent,0%),#e2e8f0 100%);border-radius:4px}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-8px;width:22px;height:22px;background:#fff;border:3px solid var(--brand-color-primary);border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.2);transition:transform .15s}
input[type=range]:active::-webkit-slider-thumb{transform:scale(1.08)}
input[type=range]::-moz-range-thumb{width:22px;height:22px;background:#fff;border:3px solid var(--brand-color-primary);border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.2)}
.badge{display:inline-flex;align-items:center;gap:.4rem;border-radius:9999px;padding:.25rem .6rem;font-weight:700;font-size:.72rem;white-space:nowrap}
.loader{width:18px;height:18px;border:2px solid #fff;border-bottom-color:transparent;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}
@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
.maintenance-card-body{ padding: 1.5rem; text-align: center; border: 2px solid #e2e8f0; border-radius: 0.75rem; background-color: white; height: 100%; display: flex; flex-direction: column; }
.maintenance-card-body ul { text-align: left; margin-top: 1rem; color: #475569; font-size: 0.9rem; flex-grow: 1; }
.maintenance-card-body ul li { display: flex; align-items: start; gap: 0.5rem; margin-bottom: 0.5rem; }
.maintenance-card-body ul li i { margin-top: 3px; color: #16a34a; flex-shrink: 0; }
input[type="radio"]:checked + .maintenance-card-body { border-color: var(--brand-color-primary); background-color: #f0f4ff; }
.input-field { display: block; width: 100%; padding: 0.65rem 0.75rem; background-color: white; border: 1px solid #cbd5e1; border-radius: 0.5rem; transition: all 0.2s; }
.input-field:focus { outline: none; border-color: var(--brand-color-primary); box-shadow: 0 0 0 2px #c7d2fe; }
.expert-toggle-label{cursor:pointer;user-select:none;display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-radius:9999px;background-color:#eef2ff;color:var(--brand-color-primary);font-weight:700;transition: all .2s;}
.expert-toggle-label:hover{background-color:#e0e7ff;}
.expert-toggle-label input{display:none}
.expert-toggle-label .toggle-switch{width:40px;height:22px;background:#cbd5e1;border-radius:9999px;position:relative;transition:background-color .2s}
.expert-toggle-label .toggle-switch::before{content:'';position:absolute;width:16px;height:16px;background:white;border-radius:50%;left:3px;top:3px;transition:transform .2s}
.expert-toggle-label input:checked + .toggle-switch{background-color:var(--brand-color-primary)}
.expert-toggle-label input:checked + .toggle-switch::before{transform:translateX(18px)}
.price-update-flash{animation:price-flash .7s ease-out}
@keyframes price-flash{0%{background-color:rgba(79,70,229,0.1)}100%{background-color:transparent}}
.restore-banner{background: #1e293b; color: white; padding: 1rem; border-radius: 0.5rem; margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: center; animation: fadeIn .5s;}
.summary-item{position:relative;}
.summary-item .tooltip,.profile-icon .tooltip,.benchmark .tooltip{visibility:hidden;opacity:0;position:absolute;bottom:110%;left:50%;transform:translateX(-50%);background:#1e293b;color:white;padding:.5rem .75rem;border-radius:.5rem;font-size:0.75rem;width:220px;text-align:center;transition:opacity .2s, visibility .2s;z-index:10;}
.summary-item:hover .tooltip,.profile-icon:hover .tooltip,.benchmark:hover .tooltip{visibility:visible;opacity:1;}
.step-title .help-tooltip-icon{position:relative;color:#94a3b8;cursor:help;}
.step-title .help-tooltip-icon .tooltip{bottom:120%;width:250px;font-weight:400;font-size:0.8rem;line-height:1.4;}
.step-title .help-tooltip-icon:hover .tooltip{visibility:visible;opacity:1;}
.badge-expert{background-color:#1e293b;color:white;font-size:0.65rem;padding:0.1rem 0.5rem;border-radius:0.25rem;}

.timeline {
	display: flex;
	flex-wrap: wrap; 
	gap: 1rem;    
	padding-top: 0.5rem;
}

.timeline-phase {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-grow: 1; 
	flex-basis: calc(50% - 0.5rem);
	min-width: 200px; 
}

.timeline-label {
	width: 100px; 
	font-weight: bold;
	text-align: right;
	font-size: 0.8rem;
	flex-shrink: 0;
}

.timeline-bar-container {
	flex-grow: 1;
	background: #e2e8f0;
	border-radius: 9999px;
	height: 20px;
	overflow: hidden;
}

.timeline-bar {
	background: var(--brand-color-primary);
	height: 100%;
	border-radius: 9999px;
	color: white;
	font-size: 0.7rem;
	font-weight: bold;
	text-align: right;
	padding-right: 0.5rem;
	white-space: nowrap;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.benchmark-dot{width:10px;height:10px;border-radius:50%;}
.service-card { background-size: cover; background-position: center; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1)); transition: background 0.3s; }
.service-card:hover::before { background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2)); }
.btn-glow{box-shadow: 0 0 15px rgba(79, 70, 229, 0); transition: box-shadow .3s;}
.btn-glow:hover{box-shadow: 0 0 25px rgba(79, 70, 229, 0.4);}
.review-slider-container { overflow: hidden; }
.review-slides { display: flex; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.review-slide { flex: 0 0 100%; }
.insight-box { animation: fadeIn 0.5s; }

/* NEW/IMPROVED STYLES FOR STEPPER */
.progress-stepper { display: flex; align-items: flex-start; width:100%;}
.stepper-item { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; }
.stepper-item-icon { 
	display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%;
	background-color: #e2e8f0; color: #94a3b8; 
	margin: 0 auto;
	border: 2px solid #e2e8f0;
	transition: all .4s;
	z-index: 2; /* Ensure icon is above the line */
}
.stepper-item::before {
	content: '';
	position: absolute;
	height: 2px;
	background-color: #e2e8f0;
	width: 100%;
	top: 15px;
	left: -50%;
	transition: background-color .4s;
	z-index: 1;
}
.stepper-item:first-child::before {
	content: none;
}
.stepper-item.completed .stepper-item-icon, .stepper-item.active .stepper-item-icon {
	background-color: #eef2ff;
	border-color: var(--brand-color-primary);
	color: var(--brand-color-primary);
}
.stepper-item.completed .stepper-item-icon {
	background-color: var(--brand-color-primary);
	color: white;
}
.stepper-item.completed::before {
	background-color: var(--brand-color-primary);
}
.stepper-item-label {
	font-size: 0.7rem; font-weight: 600; color: #94a3b8; margin-top: 0.5rem;
	transition: color .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	max-width: 100%;
}
.stepper-item.active .stepper-item-label, .stepper-item.completed .stepper-item-label { color: #334155; }

.toast-notification {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #1e293b; /* Blu scuro */
	color: white;
	padding: 12px 24px;
	border-radius: 9999px; /* Pill shape */
	box-shadow: 0 10px 25px -5px rgba(0,0,0,.2);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	z-index: 1000;
	opacity: 0;
	transform: translate(-50%, 20px);
	transition: opacity 0.4s, transform 0.4s cubic-bezier(.22,1,.36,1);
}

.toast-notification.show {
	opacity: 1;
	transform: translate(-50%, 0);
}

.benchmark-bar {
	width: 100%;
	height: 12px;
	background: linear-gradient(to right, #dcfce7, #a7f3d0, #fde68a, #fca5a5);
	border-radius: 9999px;
	position: relative;
	margin-top: 2.5rem;
}

.benchmark-indicator {
	position: absolute;
	top: -35px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.benchmark-indicator::after {
	content: '';
	width: 2px;
	height: 10px;
	background-color: #4f46e5;
}

.benchmark-indicator span {
	font-weight: bold;
	font-size: 0.9rem;
	color: #4f46e5;
	background-color: #eef2ff;
	padding: 2px 8px;
	border-radius: 6px;
	white-space: nowrap;
}

.benchmark-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.7rem;
	color: #64748b;
	margin-top: 8px;
	padding: 0 5px;
}

@media (max-width: 1023px) {
	#wizard-outer-container {
		padding: 1.5rem 1rem;
	}
	.main-flex-container {
		flex-direction: column;
	}
	#progress-stepper {
		overflow-x: auto;
		padding-bottom: 10px;
		-ms-overflow-style: none;
		scrollbar-width: none;
	}
	#progress-stepper::-webkit-scrollbar {
		display: none;
	}
	.stepper-item {
		flex-shrink: 0;
		min-width: 80px;
	}
}