CS/**
 * Form Page Navigation — FireSight Pulse Toolkit
 *
 * Structural layout and sensible colour defaults.
 * Elementor-generated CSS (from widget style controls) overrides colours.
 */

/* ── Nav list ───────────────────────────────────────────────────────────────── */

.fspt-form-nav {
	display: flex;
	flex-direction: column;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* ── Nav item ───────────────────────────────────────────────────────────────── */

.fspt-nav-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 48px;
	position: relative;
	cursor: default;
	color: #86878d;
	font-family: "Montserrat Alternates", sans-serif;
	font-size: 16px;
	font-weight: 500;
}

/* Connector line leading to the next item */
.fspt-nav-item .img-box::after {
	content: '';
	position: absolute;
	left: 23px;
	top: 100%;
	width: 2px;
	height: 24px;
	background-color: #86878d;
}

.fspt-nav-item:last-child {
	padding-bottom: 0;
}

.fspt-nav-item:last-child .img-box::after {
	display: none;
}

.fspt-nav-item.fspt-active,
.fspt-nav-item.fspt-completed {
	cursor: pointer;
	color: #ffffff;
}

/* ── Badge container ────────────────────────────────────────────────────────── */

.fspt-form-nav .img-box {
	position: relative;
	width: 50px;
	height: 50px;
	flex-shrink: 0;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: center;
}

.fspt-form-nav .img-box svg {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

.fspt-form-nav .img-box svg path {
	fill: none;
	stroke-width: 0.922;
}

/* Completed step: hide the number so the background image shows cleanly. */
.fspt-nav-item.fspt-completed .fspt-nav-number {
	display: none;
}

/* Completed step: hide the SVG so the background image shows cleanly.
   Safe to use display:none here — getTotalLength() is cached in initNav()
   before any item ever reaches the completed state. */
.fspt-nav-item.fspt-completed .img-box svg {
	display: none;
}

/* ── Single path — strokeDasharray/Dashoffset driven by JS ──────────────────── */

.fspt-form-nav .fspt-path {
	stroke: #86878d;
	transition: stroke 0.25s ease;
}

.fspt-nav-item.fspt-active .fspt-path,
.fspt-nav-item.fspt-completed .fspt-path {
	stroke: #ffffff;
}

/* ── Number ─────────────────────────────────────────────────────────────────── */

.fspt-nav-number {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Montserrat Alternates", sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #88867e;
	pointer-events: none;
	line-height: 1;
}

.fspt-nav-item.fspt-active .fspt-nav-number,
.fspt-nav-item.fspt-completed .fspt-nav-number {
	color: #ffffff;
}

/* ── Label ──────────────────────────────────────────────────────────────────── */

.fspt-nav-label {
	color: #86878d;
	font-family: "Montserrat Alternates", sans-serif;
	font-size: 16px;
	line-height: 1.3;
	transition: color 0.25s ease;
}

.fspt-nav-item.fspt-active .fspt-nav-label,
.fspt-nav-item.fspt-completed .fspt-nav-label {
	color: #ffffff;
}

/* ── Hide WPForms built-in page indicator ───────────────────────────────────── */
/* Targeted inline <style> is output by the widget render() for the specific form */

/* ── Step Counter widget ─────────────────────────────────────────────────────── */

.fspt-step-counter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.fspt-step-title {
	font-family: "Montserrat Alternates", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.fspt-step-number {
	font-family: "Montserrat Alternates", sans-serif;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── Editor placeholder ─────────────────────────────────────────────────────── */

.fspt-nav-placeholder {
	padding: 16px;
	border: 1px dashed #ccc;
	text-align: center;
	color: #666;
	margin: 0;
}
