/* ==========================================================================
   FYFX Advanced Step Slider
   ========================================================================== */

.fyfx-advanced-step-slider {
	width: 100%;
	background: transparent;
}

/* --------------------------------------------------------------------------
   Image Slides
   -------------------------------------------------------------------------- */

.fyfx-step-images-wrapper {
	position: relative;
	width: 100%;
	height: 320px;
	overflow: hidden;
	border-radius: 16px;
	margin-bottom: 32px;
}

/*
 * Gradient border rendered as ::after on the wrapper itself.
 * border-radius: inherit correctly picks up the wrapper's radius,
 * so all four corners are fully covered — unlike putting this on a
 * child element where inherit walks up to a parent with no radius set.
 */
.fyfx-step-images-wrapper::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(180deg, #4C75E1 0%, #2151F2 100%);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: 1;
}

.fyfx-step-image-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.fyfx-step-image-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.fyfx-step-images-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Hide the now-redundant in-slide border div */
.fyfx-step-image-border {
	display: none;
}

/* --------------------------------------------------------------------------
   Step Navigator
   -------------------------------------------------------------------------- */

.fyfx-step-navigator {
	display: flex;
	align-items: flex-start;
	margin-bottom: 24px;
}

.fyfx-step-nav-item {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	outline: none;
}

.fyfx-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	padding: 10px 16px;
	background-color: #2250EF1A;
	border: 1px solid #FFFFFF33;
	border-radius: 8px;
	color: #A7ADBE;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.fyfx-step-name {
	font-size: 14px;
	color: #A7ADBE;
	white-space: nowrap;
	transition: color 0.3s ease;
}

/* Active + hover states for nav item */
.fyfx-step-nav-item.is-active .fyfx-step-number,
.fyfx-step-nav-item:hover .fyfx-step-number {
	background-color: #2250EF33;
	border-color: #2151F2;
	color: #005CFF;
}

.fyfx-step-nav-item.is-active .fyfx-step-name,
.fyfx-step-nav-item:hover .fyfx-step-name {
	color: #005CFF;
}

/* Connecting line between nav items */
.fyfx-step-connector {
	flex: 1;
	display: flex;
	align-items: center;
	/* vertically align with center of the step number badge */
	padding-top: 20px;
	padding-left: 8px;
	padding-right: 8px;
}

.fyfx-step-line {
	display: block;
	width: 100%;
	height: 1px;
	background: #FFFFFF1A;
	transition: background 0.4s ease, height 0.3s ease;
}

/* Active connector — gradient line */
.fyfx-step-connector.is-active .fyfx-step-line {
	background: linear-gradient(90deg, rgba(34, 80, 239, 0) 0%, #2250EF 50%, rgba(34, 80, 239, 0) 100%);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.fyfx-step-cards-wrapper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

/* On desktop the track is layout-transparent: card items become direct grid children */
.fyfx-step-cards-track {
	display: contents;
}

.fyfx-step-card-item {
	cursor: pointer;
}

.fyfx-step-card {
	padding: 20px;
	background-color: #2250EF1A;
	border: 1px solid #FFFFFF1A;
	border-radius: 12px;
	height: 100%;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.fyfx-step-card-item.is-active .fyfx-step-card,
.fyfx-step-card-item:hover .fyfx-step-card {
	background-color: #2250EF33;
	border-color: #2151F2;
}

.fyfx-step-card-title {
	font-size: 18px;
	font-weight: 600;
	color: #FFFFFF;
	margin-bottom: 8px;
	line-height: 1.3;
}

.fyfx-step-card-desc {
	font-size: 14px;
	color: #B2B2B2;
	line-height: 1.6;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Mobile Navigation Controls
   -------------------------------------------------------------------------- */

.fyfx-step-mobile-nav {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
}

.fyfx-step-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(34, 80, 239, 0.15);
	border: 1px solid rgba(34, 80, 239, 0.4);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.fyfx-step-btn:hover {
	background: rgba(34, 80, 239, 0.35);
	border-color: #2151F2;
}

.fyfx-step-dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fyfx-step-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	cursor: pointer;
	transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
}

.fyfx-step-dot.is-active {
	width: 24px;
	border-radius: 4px;
	background: #2151F2;
}

/* --------------------------------------------------------------------------
   Responsive — Mobile Carousel
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	/* Wrapper is the stationary clip box */
	.fyfx-advanced-step-slider .fyfx-step-cards-wrapper {
		display: block !important;
		overflow: hidden;
	}

	/* Track is the sliding flex row inside the clip box */
	.fyfx-advanced-step-slider .fyfx-step-cards-track {
		display: flex !important;
		transition: transform 0.35s ease;
		will-change: transform;
	}

	/* Card widths are set in px by JS to avoid % resolution issues on flex track */
	.fyfx-advanced-step-slider .fyfx-step-card-item {
		flex-shrink: 0;
		padding-right: 12px;
		box-sizing: border-box;
	}

	.fyfx-advanced-step-slider .fyfx-step-card-item:last-child {
		padding-right: 0;
	}

	/* Show mobile navigation */
	.fyfx-step-mobile-nav {
		display: flex;
	}

	/* Keep step names visible on mobile but allow wrapping */
	.fyfx-step-name {
		white-space: normal;
		font-size: 13px;
	}

	.fyfx-step-nav-item {
		min-width: 0;
	}

	.fyfx-step-connector {
		padding-top: 20px;
		padding-left: 4px;
		padding-right: 4px;
	}
}
