@import url('variables.css');

/* progress bar */
.form-steps {
    background-color: #f5f5f5;
	border-bottom: 1px solid #e4edf0;
	height: 80px;
	position: relative;
}

.progressbar-container {
	width: 100%;
	position: absolute;
	z-index: 1;
	bottom: -42px;
}

.progressbar {
	counter-reset: step;
	align-items: center;
	justify-content: center;
	display: flex;
	list-style: none;
}

.progressbar li {
	float: left;
	position: relative;
	width: calc(100% / 3);
	max-width: 200px;
	position: relative;
	text-align: center;
}

.progressbar li:before {
	content: counter(step);
	counter-increment: step;
	width: 30px;
	height: 30px;
	border: 2px solid #bebebe;
	display: block;
	margin: 0 auto 10px auto;
	border-radius: 50%;
	line-height: 24px;
	background: white;
	color: #bebebe;
	text-align: center;
	font-weight: bold;
}

.progressbar li:after {
	content: '';
	position: absolute;
	width: 100%;
	height: 5px;
	background: #bebebe;
	bottom: 22px;
	left: 50%;
	z-index: -1;
}

.progressbar li span {
    color: #3d3d3d;
}

.progressbar > li:not(.current) span {
	opacity: .59;
}

.progressbar li:last-child:after {
	content: none;
}

.progressbar li.current:before {
	border-color: var(--leadingColor-5);
	background: var(--leadingColor-5) !important;
	color: white
}

.progressbar li.current span {
    color: var(--leadingColor-5);
    font-weight: bold;
}

.progressbar li.completed:after {
	background: var(--leadingColor-5) !important;
}

.progressbar li.completed:before {
	border-color: var(--leadingColor-5);
	background: var(--leadingColor-5) !important;
	color: white
}

@media (max-width: 700px) {
	.progressbar li span {
		/* display: none; */
		content: " ";
	}

	.progressbar li.current span {
		display: block;
	}

	.progressbar span {
		position: absolute;
		bottom: 44px;
		width: max-content;
		left: 50%;
		text-align: center;
		transform: translateX(-50%);
		font-size: 12px;
		max-width: 90px;
	}
}

@media (min-width: 700px) {
	.progressbar span {
		position: absolute;
		bottom: 50px;
		width: max-content;
		left: 50%;
		text-align: center;
		transform: translateX(-50%);
		font-size: 14px;
	}
}