/* Basvify Process Steps — structural styles.
   Colors, typography and spacing are controlled per-widget from the
   Elementor editor via CSS custom properties on the widget wrapper.

   Connector line: a single SVG path confined to its own fixed-height
   box that sits ABOVE the card row. It never overlaps step text,
   because it lives in a separate box the cards can never enter. */

.bvps-process {
	--bvps-primary: #0A4D8C;
	--bvps-secondary: #0E8C61;
	--bvps-node-bg: #FFFFFF;
	--bvps-node-border: #D9E4EE;
	--bvps-icon-color: #0A4D8C;
	--bvps-icon-hover-color: #0E8C61;
	--bvps-number-text: #FFFFFF;
	--bvps-title-color: #0B2033;
	--bvps-desc-color: #5C7286;
	--bvps-line-color: #D9E4EE;
	--bvps-node-size: 64px;
	--bvps-icon-size: 26px;
	--bvps-border-width: 2px;
	--bvps-gap: 10px;
	--bvps-card-width: 200px;
	--bvps-gradient: linear-gradient(90deg, var(--bvps-primary) 0%, var(--bvps-secondary) 100%);

	position: relative;
	box-sizing: border-box;
}
.bvps-process *,
.bvps-process *::before,
.bvps-process *::after { box-sizing: border-box; }

.bvps-track-wrap { position: relative; padding-top: 8px; }

/* ---------- connector box: fixed height = node size, sits above cards ---------- */
.bvps-line-svg {
	position: absolute;
	top: 0;
	left: calc(var(--bvps-node-size) / 2);
	right: calc(var(--bvps-node-size) / 2);
	height: var(--bvps-node-size);
	z-index: 0;
	pointer-events: none;
}
.bvps-line-svg svg { display: block; width: 100%; height: 100%; }
.bvps-line-bg {
	fill: none;
	stroke: var(--bvps-line-color);
	stroke-width: 2px;
	stroke-linecap: round;
	stroke-dasharray: 1 7;
	vector-effect: non-scaling-stroke;
}
.bvps-line-fill {
	fill: none;
	stroke-width: 2.5px;
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	vector-effect: non-scaling-stroke;
}
.bvps-process.bvps-animate .bvps-line-fill {
	animation: bvps-draw 1.8s ease-out .2s forwards;
}
@keyframes bvps-draw { to { stroke-dashoffset: 0; } }

/* ---------- track / steps ---------- */
.bvps-track {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--bvps-gap);
	padding-bottom: 8px;
}

.bvps-step {
	position: relative;
	z-index: 1;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 10px;
	text-align: center;
}

.bvps-node {
	position: relative;
	z-index: 2;
	width: var(--bvps-node-size);
	height: var(--bvps-node-size);
	border-radius: 50%;
	background: var(--bvps-node-bg);
	border: var(--bvps-border-width) solid var(--bvps-node-border);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
	transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
	box-shadow: 0 1px 2px rgba(11, 32, 51, .05);
	flex-shrink: 0;
}
.bvps-node .bvps-icon,
.bvps-node svg,
.bvps-node i {
	width: var(--bvps-icon-size);
	height: var(--bvps-icon-size);
	font-size: var(--bvps-icon-size);
	line-height: 1;
	color: var(--bvps-icon-color);
	stroke: var(--bvps-icon-color);
	fill: none;
	transition: color .35s ease, stroke .35s ease;
}
.bvps-node .bvps-icon svg { width: 100%; height: 100%; }

.bvps-num {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--bvps-gradient);
	color: var(--bvps-number-text);
	font-size: 11.5px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 8px rgba(10, 77, 140, .35);
}

.bvps-step:hover .bvps-node {
	border-color: transparent;
	transform: translateY(-6px);
	box-shadow: 0 14px 28px -10px rgba(10, 77, 140, .35);
}
.bvps-step:hover .bvps-node::before {
	content: "";
	position: absolute;
	inset: calc(-1 * var(--bvps-border-width));
	border-radius: 50%;
	padding: var(--bvps-border-width);
	background: var(--bvps-gradient);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}
.bvps-step:hover .bvps-node .bvps-icon,
.bvps-step:hover .bvps-node svg,
.bvps-step:hover .bvps-node i {
	color: var(--bvps-icon-hover-color);
	stroke: var(--bvps-icon-hover-color);
}

.bvps-card { max-width: var(--bvps-card-width); margin: 0 auto; }
.bvps-card h3 {
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 8px;
	color: var(--bvps-title-color);
}
.bvps-card p {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--bvps-desc-color);
	margin: 0;
}

/* ---------- Vertical list layout ---------- */
.bvps-layout-vertical .bvps-line-svg { display: none; }
.bvps-layout-vertical .bvps-track { flex-direction: column; }
.bvps-layout-vertical .bvps-step {
	flex-direction: row;
	align-items: flex-start;
	max-width: 620px;
	width: 100%;
	margin: 0 auto;
	padding: 0 0 34px;
	text-align: left;
	gap: 20px;
}
.bvps-layout-vertical .bvps-step::before {
	content: "";
	position: absolute;
	left: calc(var(--bvps-node-size) / 2 - 1px);
	top: var(--bvps-node-size);
	bottom: 0;
	width: 2px;
	background: repeating-linear-gradient(180deg, var(--bvps-line-color) 0 8px, transparent 8px 14px);
}
.bvps-layout-vertical .bvps-step:last-child::before { display: none; }
.bvps-layout-vertical .bvps-node { margin-bottom: 0; }
.bvps-layout-vertical .bvps-card { text-align: left; max-width: none; margin: 0; }

/* ---------- Responsive: fold horizontal layouts into a vertical list ---------- */
@media (max-width: 1280px) and (min-width: 981px) {
	.bvps-process:not(.bvps-layout-vertical) {
		--bvps-node-size: 56px;
		--bvps-icon-size: 22px;
	}
	.bvps-process:not(.bvps-layout-vertical) .bvps-card { --bvps-card-width: 170px; }
	.bvps-process:not(.bvps-layout-vertical) .bvps-card h3 { font-size: 14px; }
	.bvps-process:not(.bvps-layout-vertical) .bvps-card p { font-size: 12.5px; }
}

@media (max-width: 980px) {
	.bvps-process:not(.bvps-layout-vertical) .bvps-line-svg { display: none; }
	.bvps-process:not(.bvps-layout-vertical) .bvps-track { flex-direction: column; gap: 0; }
	.bvps-process:not(.bvps-layout-vertical) .bvps-step {
		flex-direction: row;
		align-items: flex-start;
		max-width: 520px;
		margin: 0 auto;
		padding: 0 0 34px;
		text-align: left;
		gap: 20px;
	}
	.bvps-process:not(.bvps-layout-vertical) .bvps-step::before {
		content: "";
		position: absolute;
		left: calc(var(--bvps-node-size) / 2 - 1px);
		top: var(--bvps-node-size);
		bottom: 0;
		width: 2px;
		background: repeating-linear-gradient(180deg, var(--bvps-line-color) 0 8px, transparent 8px 14px);
	}
	.bvps-process:not(.bvps-layout-vertical) .bvps-step:last-child::before { display: none; }
	.bvps-process:not(.bvps-layout-vertical) .bvps-node { margin-bottom: 0; }
	.bvps-process:not(.bvps-layout-vertical) .bvps-card { text-align: left; max-width: none; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.bvps-line-fill { animation: none !important; stroke-dashoffset: 0 !important; }
	.bvps-node { transition: none !important; }
}
