/* ABOUTME: Progress bar and step indicator styles for the booking wizard. */
/* ABOUTME: Horizontal scrollable on mobile (70vw per step), full row on desktop. */

/* Base: horizontal scrollable strip */
#form-progress {
	border-radius: 5px;
	background-color: white;
	align-self: flex-end;
	margin: 0;
	display: flex;
	flex-direction: row;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

#form-progress::-webkit-scrollbar {
	display: none;
}

/* Edge fade hints for scroll affordance (mobile only) */
#form-progress::before,
#form-progress::after {
	content: "";
	position: sticky;
	min-width: 20px;
	flex-shrink: 0;
	z-index: 10;
	pointer-events: none;
}

#form-progress::before {
	left: 0;
	background: linear-gradient(to right, white, transparent);
}

#form-progress::after {
	right: 0;
	background: linear-gradient(to left, white, transparent);
}

.progress-item {
	padding: 0.5rem;
	flex: 0 0 auto;
	min-width: 70vw;
	scroll-snap-align: center;
	text-align: center;
	justify-content: center;
	display: flex;
	align-items: center;
	position: relative;
	color: currentColor;
	background-color: var(--color-light-turquoise);
	padding-left: 34px;
	gap: 5px;
	font-weight: bold;
}

#form-progress .progress-item:first-child {
	padding-left: 15px;
}

/* Chevron separators */
.progress-item::after {
	content: "";
	aspect-ratio: 1;
	height: 45px;
	position: absolute;
	right: -17px;
	border-top: 4px solid #fff;
	border-right: 4px solid #fff;
	transform: rotate(45deg);
	overflow: hidden;
	width: 45px;
	z-index: 1;
}

.progress-icon img {
	max-width: 50px;
	max-height: 1.3rem;
	height: 100%;
	width: auto;
}

.progress-title {
	position: relative;
	z-index: 99;
	font-size: var(--step--1);
}

.progress-item:last-child::after {
	display: none;
}

.progress-item.current {
	color: currentColor;
	background-color: var(--color-regular-turquoise);
}

.progress-item.current::after {
	background-color: var(--color-regular-turquoise);
}

.progress-item.current span {
	font-size: 1.1rem;
	z-index: 2;
}

.progress-item.completed {
	color: currentColor;
	background-color: #e5f4f5;
}

.progress-item.completed::after {
	background-color: #e5f4f5;
}

.progress-step-count {
	display: block;
	font-size: var(--step--2);
	white-space: nowrap;
}

.progress-icon {
	display: flex;
	height: 1.3rem;
	flex-shrink: 0;
	align-items: center;
}


/* --- Desktop (>=1024px): no scroll, steps fill row --- */

@media screen and (min-width: 1024px) {
	#form-progress {
		overflow-x: visible;
		scroll-snap-type: none;
		justify-content: space-evenly;
	}

	/* Hide edge fade hints on desktop */
	#form-progress::before,
	#form-progress::after {
		display: none;
	}

	.progress-item {
		flex: 1 1 auto;
		min-width: max-content;
		scroll-snap-align: unset;
	}

	.progress-step-count {
		display: none;
	}
}
