/**
 * Steps / How it works — Lance Desk Elementor widget.
 */

.nm-steps {
	--nm-steps-cols: 3;
	--nm-steps-gap: 0px;
	--nm-steps-border: #d4af37;
	--nm-steps-bg: #0a1628;
	--nm-steps-divider: #d4af37;

	position: relative;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(var(--nm-steps-cols), minmax(0, 1fr));
	gap: var(--nm-steps-gap);
	padding: 28px 12px 20px;
	background-color: var(--nm-steps-bg);
	border: 1px solid var(--nm-steps-border);
	border-radius: 18px;
}

.nm-steps--no-ribbons {
	padding-top: 22px;
}

.nm-steps--no-ribbons .nm-steps__col {
	padding-top: 12px;
}

.nm-steps__col {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	padding: 8px 22px 28px;
	box-sizing: border-box;
	text-align: center;
}

.nm-steps__col:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 12px;
	right: 0;
	bottom: 18px;
	width: 1px;
	background-color: var(--nm-steps-divider);
	opacity: 0.85;
	pointer-events: none;
}

.nm-steps__ribbon {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 92%;
	min-height: 40px;
	margin: 0 auto 18px;
	padding: 10px 28px 8px;
	box-sizing: border-box;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	pointer-events: none;
}

.nm-steps__ribbon-text {
	--nm-ribbon-tx: 0px;
	--nm-ribbon-ty: 1px;

	position: relative;
	z-index: 1;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	transform: translate(var(--nm-ribbon-tx), var(--nm-ribbon-ty));
}

.nm-steps__title {
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	color: #fff;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.nm-steps__body {
	width: 100%;
	margin: 0 0 12px;
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.55;
	text-align: left;
}

.nm-steps__body p {
	margin: 0 0 0.75em;
}

.nm-steps__body p:last-child {
	margin-bottom: 0;
}

.nm-steps__list {
	--nm-steps-list-justify: flex-start;

	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	text-align: left;
}

.nm-steps__item {
	display: flex;
	align-items: flex-start;
	justify-content: var(--nm-steps-list-justify, flex-start);
	gap: 10px;
	margin: 0;
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.4;
}

.nm-steps__check {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-top: 0.15em;
	line-height: 0;
	color: #d4af37;
}

.nm-steps__check svg,
.nm-steps__check img,
.nm-steps__check i {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.nm-steps__after-list {
	width: 100%;
	margin: 0 0 14px;
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.55;
	text-align: left;
}

.nm-steps__accent {
	width: 100%;
	margin: 0 0 14px;
	color: var(--nm-step-accent, #7eb6ff);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
}

.nm-steps__cta {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 8px 0 0;
}

.nm-steps__cta .nm-btn {
	width: auto;
	min-width: 70%;
}

.nm-steps__image-wrap {
	--nm-step-img-w: 140px;
	--nm-step-img-x: 0px;
	--nm-step-img-y: 0px;
	--nm-step-img-align: flex-end;

	position: relative;
	z-index: 1;
	display: flex;
	justify-content: var(--nm-step-img-align);
	width: 100%;
	margin-top: auto;
	padding-top: 8px;
	pointer-events: none;
}

.nm-steps__image {
	display: block;
	width: var(--nm-step-img-w);
	max-width: 100%;
	height: auto;
	transform: translate(var(--nm-step-img-x), var(--nm-step-img-y));
}

.nm-steps__image img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 1024px) {
	.nm-steps {
		grid-template-columns: 1fr;
		padding: 24px 16px 16px;
	}

	.nm-steps__col {
		padding: 12px 8px 24px;
	}

	.nm-steps__col:not(:last-child)::after {
		top: auto;
		right: 12%;
		left: 12%;
		bottom: 0;
		width: auto;
		height: 1px;
	}
}
