/* ── Steps Widget ─────────────────────────────────────────────────────────── */

.cf-steps {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
}

/* Each step grows to fill equal width */
.cf-step {
	flex: 1;
	min-width: 0;
	display: flex;
}

.cf-step__card {
	background: #ffffff;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* ── Icon ────────────────────────────────────────────────────────────────── */

.cf-step__icon {
	display: block;
	margin-bottom: 0.75rem;
	line-height: 0;
	color: #181075;
}

.cf-step__icon svg {
	display: block;
	width: 40px;
	height: 40px;
	fill: currentColor;
}

/* ── Step number ─────────────────────────────────────────────────────────── */

.cf-step__number {
	display: block;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #2050ce;
	margin-bottom: 0.4rem;
	line-height: 1;
}

/* ── Heading ─────────────────────────────────────────────────────────────── */

.cf-step__heading {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.5rem;
}

/* ── Description ─────────────────────────────────────────────────────────── */

.cf-step__desc {
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 0;
	opacity: 0.75;
}

/* ── Connector arrow ─────────────────────────────────────────────────────── */

.cf-steps__connector {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0 0.5rem;
	color: #181075;
}

.cf-steps__connector svg {
	display: block;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

/* ── Mobile — stack vertically ───────────────────────────────────────────── */

@media (max-width: 639px) {
	.cf-steps {
		flex-direction: column;
		flex-wrap: wrap;
	}

	.cf-step {
		flex: none;
		width: 100%;
	}

	.cf-steps__connector {
		padding: 0.25rem 0;
	}

	.cf-steps__connector svg {
		transform: rotate(90deg);
	}
}

/* ── Tablet — allow wrap if too many steps ───────────────────────────────── */

@media (min-width: 640px) and (max-width: 1023px) {
	.cf-steps {
		flex-wrap: wrap;
		gap: 1rem;
	}

	.cf-step {
		flex: 1 1 calc(50% - 3rem);
	}

	.cf-steps__connector {
		display: none; /* hide arrows when wrapped */
	}
}
