/**
 * Connected Steps Widget for Elementor
 * All selectors are scoped to the widget to avoid theme/plugin collisions.
 */

.drcs-connected-steps {
	--drcs-number-size: 64px;
	--drcs-ring-width: 8px;
	--drcs-ring-color: #f4f6f8;
	--drcs-number-background-color: #d0af69;
	--drcs-number-gradient-start: #d6ba7a;
	--drcs-number-gradient-end: #caa968;
	--drcs-number-gradient-angle: 135deg;
	box-sizing: border-box;
	position: relative;
	width: 100%;
	padding: 26px 24px 32px;
	color: #17243d;
	background-color: #f4f6f8;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.drcs-connected-steps,
.drcs-connected-steps *,
.drcs-connected-steps *::before,
.drcs-connected-steps *::after {
	box-sizing: border-box;
}

.drcs-connected-steps__inner {
	position: relative;
	width: 100%;
	max-width: 1216px;
	margin-right: auto;
	margin-left: auto;
}

.drcs-connected-steps__header {
	width: 100%;
	max-width: 672px;
	margin: 0 auto 64px;
	text-align: center;
}

.drcs-connected-steps__eyebrow {
	margin: 0;
	color: #b08a36;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.drcs-connected-steps__heading {
	margin: 12px 0 0;
	padding: 0;
	color: #1f2b4c;
	font-family: Barlow, Inter, sans-serif;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.drcs-connected-steps__description {
	margin: 14px 0 0;
	color: #6b7280;
}

.drcs-connected-steps__description > :first-child,
.drcs-steps__description > :first-child {
	margin-top: 0;
}

.drcs-connected-steps__description > :last-child,
.drcs-steps__description > :last-child {
	margin-bottom: 0;
}

.drcs-steps {
	position: relative;
	width: 100%;
}

.drcs-steps__connector {
	position: absolute;
	z-index: 0;
	top: calc(var(--drcs-number-size) / 2);
	right: 16%;
	left: 16%;
	display: block;
	height: 0;
	border-top-color: #c4a462;
	border-top-style: dashed;
	border-top-width: 2px;
	opacity: 0.5;
	pointer-events: none;
}

.drcs-steps__list {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 48px;
	row-gap: 48px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.drcs-steps__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 0;
	text-align: center;
	transition-property: transform, background-color, border-color, box-shadow;
	transition-duration: 250ms;
	transition-timing-function: ease;
}

.drcs-steps__number {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--drcs-number-size);
	height: var(--drcs-number-size);
	margin: 0;
	padding: 0;
	overflow-wrap: anywhere;
	color: #111b35;
	background-color: transparent;
	background-image: linear-gradient(var(--drcs-number-gradient-angle), var(--drcs-number-gradient-start), var(--drcs-number-gradient-end));
	border-radius: 50%;
	box-shadow: 0 0 0 var(--drcs-ring-width) var(--drcs-ring-color);
	font-family: "Barlow Condensed", Barlow, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

.drcs-steps__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	max-width: 100%;
	margin: 24px 0 0;
	padding: 0;
	color: #1d2b49;
	font-size: 28px;
	line-height: 1;
	transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.drcs-steps__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	flex: 0 0 1em;
}

.drcs-steps__icon i {
	display: block;
	width: 1em;
	line-height: 1;
}

.drcs-steps__title {
	margin: 16px 0 0;
	padding: 0;
	overflow-wrap: anywhere;
	color: #1f2b4c;
	font-family: Barlow, Inter, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.drcs-steps__title-link {
	color: inherit;
	text-decoration: none;
	transition: color 180ms ease;
}

.drcs-steps__title-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.drcs-steps__description {
	width: 100%;
	max-width: 320px;
	margin: 12px 0 0;
	padding: 0;
	overflow-wrap: anywhere;
	color: #72747e;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
}

.drcs-steps__description p {
	margin-top: 0;
	margin-bottom: 0;
}

.drcs-steps__description a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

@media (max-width: 1024px) {
	.drcs-connected-steps {
		padding: 32px 20px;
	}

	.drcs-steps__connector {
		display: none;
	}

	.drcs-steps__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 32px;
		row-gap: 44px;
	}
}

@media (max-width: 767px) {
	.drcs-connected-steps {
		padding: 32px 16px;
	}

	.drcs-connected-steps__header {
		margin-bottom: 44px;
	}

	.drcs-connected-steps__heading {
		font-size: 30px;
	}

	.drcs-steps__list {
		grid-template-columns: minmax(0, 1fr);
		column-gap: 0;
		row-gap: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.drcs-connected-steps .drcs-steps__item,
	.drcs-connected-steps .drcs-steps__icon,
	.drcs-connected-steps .drcs-steps__title-link {
		transition-duration: 0.01ms !important;
	}
}
