/* RW Process Steps — wave layout (wide) + stacked colored cards (narrow) */

.rw-steps {
	--rw-c: #1f6b80;
	--rw-line: #1f6b80;
	--rw-track: #e3ebee;
	--rw-dot: #f26b5b;
	--rw-line-w: 4px;
	--rw-drop: 130px;
	--rw-size: 86px;
	--rw-textw: 210px;
	--rw-marker: 30px;
	--rw-icon-size: 15px;
	--rw-icon-y: 0px;
	--rw-marker-bg: #fff;
	--rw-numc: #fff;
	--rw-htc: #fff;
	--rw-title: #1c1c21;
	--rw-desc: #8c8c92;
	--rw-vtext: #fff;
	--rw-vnum: rgba(255, 255, 255, 0.55);
	--rw-vm: 46px;
	--rw-vmarker-bg: #fff;
	--rw-rail: #c9d2d6;
	--rw-radius: 18px;
	--rw-vgap: 22px;
	--rw-draw: 2.2s;
	--rw-flow: 1.2s;
	--rw-rev: 0.7s;
	--rw-stagger: 0.15s;
	--rw-len: 3000;
	--rw-halo: rgba(0, 0, 0, 0.06);
	--rw-halo-size: 12px;
	--rw-pulse: 2.6s;
	--rw-pulse-to: 20px;
	--rw-ease: ease-in-out;
	--rw-draw-delay: 0s;
	--rw-rd: 24px;
	--rw-dot-gap: 28px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

@supports (color: color-mix(in srgb, red 10%, transparent)) {
	.rw-steps .rw-step {
		--rw-halo: color-mix(in srgb, var(--rw-c) 14%, transparent);
	}
}

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

.rw-steps__empty {
	padding: 24px;
	text-align: center;
	border: 1px dashed #c9d2d6;
	color: #8c8c92;
}

.rw-steps__track {
	position: relative;
	padding: 20px 0 10px;
}

/* ------------------------------------------------------------------
 * Wave (wide layout)
 * ---------------------------------------------------------------- */
.rw-steps__wave {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
	z-index: 0;
}

.rw-steps__wave path {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rw-steps__wave-bg {
	stroke: var(--rw-track);
	stroke-width: var(--rw-track-w, calc(var(--rw-line-w) * 3.5));
}

.rw-steps__wave-line {
	stroke: var(--rw-line);
	stroke-width: var(--rw-line-w);
}

.rw-steps__wave-dots {
	stroke: var(--rw-dot);
	stroke-width: var(--rw-dot-w, calc(var(--rw-line-w) + 1px));
	stroke-dasharray: 0 var(--rw-dot-gap);
}

.rw-steps--no-wave .rw-steps__wave,
.rw-steps--no-track .rw-steps__wave-bg,
.rw-steps--no-dots .rw-steps__wave-dots {
	display: none;
}

.rw-steps__items {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(var(--rw-count, 5), minmax(0, 1fr));
	column-gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rw-steps .rw-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 0 8px;
	text-align: center;
	list-style: none;
}

.rw-steps .rw-step::marker {
	content: "";
}

.rw-steps .rw-step--even {
	margin-top: var(--rw-drop);
}

.rw-steps .rw-step__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: var(--rw-size);
	height: var(--rw-size);
	margin-top: 12px;
	border-radius: 50%;
	background: var(--rw-c);
	color: var(--rw-numc);
	font-size: calc(var(--rw-size) * 0.28);
	font-weight: 500;
	line-height: 1;
	box-shadow: 0 0 0 var(--rw-halo-size) var(--rw-halo);
	transition: transform 0.25s ease;
}

.rw-steps .rw-step__rail {
	display: none;
}

.rw-steps .rw-step__marker {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: var(--rw-marker);
	height: var(--rw-marker);
	margin-top: 22px;
	border-radius: 50%;
	background: var(--rw-marker-bg);
	color: var(--rw-icon, var(--rw-c));
	font-size: var(--rw-icon-size);
	line-height: 1;
}

.rw-steps .rw-step__marker > i,
.rw-steps .rw-step__marker > svg {
	display: block;
	transform: translateY(var(--rw-icon-y));
}

.rw-steps .rw-step__marker svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.rw-steps .rw-step__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
}

.rw-steps .rw-step__dot {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

/* icons off: keep the marker as an invisible anchor so the wave still passes through */
.rw-steps--no-icon:not(.is-vertical) .rw-step__marker {
	visibility: hidden;
}

.rw-steps--no-num:not(.is-vertical) .rw-step__badge {
	display: none;
}

.rw-steps.rw-steps--no-halo-ring:not(.is-vertical) .rw-step__badge {
	box-shadow: none;
	animation: none;
}

.rw-steps .rw-step__body {
	max-width: var(--rw-textw);
	margin-top: 14px;
}

.rw-steps .rw-step__label {
	display: none;
}

.rw-steps:not(.is-vertical) .rw-step__label {
	display: none !important;
}

.rw-steps .rw-step__title {
	margin: 0 0 8px;
	padding: 0;
	color: var(--rw-title);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

.rw-steps .rw-step__desc {
	margin: 0;
	padding: 0;
	color: var(--rw-desc);
	font-size: 15px;
	line-height: 1.7;
}

.rw-steps .rw-step__outcome {
	display: none;
	margin: 10px 0 0;
	color: var(--rw-desc);
	font-size: 13px;
	line-height: 1.5;
}

.rw-steps--outcome-desktop:not(.is-vertical) .rw-step__outcome {
	display: block;
}

/* soft glow behind text so the wave never cuts through letters */
.rw-steps--halo:not(.is-vertical) .rw-step__title,
.rw-steps--halo:not(.is-vertical) .rw-step__desc,
.rw-steps--halo:not(.is-vertical) .rw-step__outcome {
	text-shadow:
		0 0 3px var(--rw-htc),
		0 0 6px var(--rw-htc),
		0 0 10px var(--rw-htc),
		0 0 14px var(--rw-htc);
}

/* ------------------------------------------------------------------
 * Stacked colored cards (narrow layout) — class set by JS from widget width
 * ---------------------------------------------------------------- */
.rw-steps.is-vertical .rw-steps__wave {
	display: none;
}

.rw-steps.is-vertical .rw-steps__track {
	padding: 6px 0;
}

.rw-steps.is-vertical .rw-steps__items {
	display: flex;
	flex-direction: column;
	gap: var(--rw-vgap);
}

.rw-steps.is-vertical .rw-step,
.rw-steps.is-vertical .rw-step--even {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	column-gap: 14px;
	align-items: start;
	margin-top: 0;
	padding: 0;
	text-align: left;
}

/* rail dot (ring in the card color) */
.rw-steps.is-vertical .rw-step__rail {
	position: relative;
	z-index: 2;
	display: block;
	grid-column: 1;
	grid-row: 1;
	justify-self: center;
	width: 14px;
	height: 14px;
	margin-top: calc(18px + var(--rw-vm) / 2 - 7px);
	border: 3px solid var(--rw-card);
	border-radius: 50%;
	background: #fff;
}

/* dotted line from this dot down to the next one */
.rw-steps.is-vertical .rw-step:not(:last-child)::after {
	content: "";
	position: absolute;
	z-index: 1;
	left: 13px;
	width: 2px;
	top: calc(18px + var(--rw-vm) / 2);
	bottom: calc(-1 * (var(--rw-vgap) + 18px + var(--rw-vm) / 2));
	background-image: linear-gradient(to bottom, var(--rw-rail) 0 6px, transparent 6px 12px);
	background-size: 2px 12px;
	background-repeat: repeat-y;
}

.rw-steps--no-rail.is-vertical .rw-step__rail,
.rw-steps--no-rail.is-vertical .rw-step::after {
	display: none;
}

/* white icon circle, top-left inside the card */
.rw-steps.is-vertical .rw-step__marker {
	position: absolute;
	z-index: 3;
	left: calc(28px + 14px + 16px);
	top: 18px;
	width: var(--rw-vm);
	height: var(--rw-vm);
	margin: 0;
	background: var(--rw-vmarker-bg);
	color: var(--rw-vicon, var(--rw-card));
	font-size: calc(var(--rw-vm) * 0.4);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.rw-steps.is-vertical .rw-step__marker > i,
.rw-steps.is-vertical .rw-step__marker > svg {
	transform: none;
}

.rw-steps--no-icon.is-vertical .rw-step__marker {
	display: none;
}

/* big number next to the icon circle — own space, never over the text */
.rw-steps.is-vertical .rw-step__badge {
	position: absolute;
	z-index: 3;
	left: calc(28px + 14px + 16px + var(--rw-vm) + 12px);
	top: 18px;
	width: auto;
	height: var(--rw-vm);
	margin: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	animation: none;
	color: var(--rw-vnum);
	font-size: calc(var(--rw-vm) * 0.85);
	font-weight: 700;
	line-height: var(--rw-vm);
	pointer-events: none;
}

.rw-steps--no-icon.is-vertical .rw-step__badge {
	left: calc(28px + 14px + 16px);
}

.rw-steps.is-vertical .rw-step__body {
	grid-column: 2;
	grid-row: 1;
	max-width: none;
	margin: 0;
	padding: calc(18px + var(--rw-vm) + 14px) 22px 22px;
	border-radius: var(--rw-radius);
	background: var(--rw-card);
	color: var(--rw-vtext);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.rw-steps--no-head.is-vertical .rw-step__body {
	padding-top: 22px;
}

.rw-steps.is-vertical .rw-step__label {
	display: block;
	margin: 0 0 4px;
	color: var(--rw-vtext);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.85;
}

.rw-steps.is-vertical .rw-step__title,
.rw-steps.is-vertical .rw-step__desc,
.rw-steps.is-vertical .rw-step__outcome {
	color: var(--rw-vtext);
	text-shadow: none;
}

.rw-steps.is-vertical .rw-step__title {
	margin-bottom: 8px;
}

.rw-steps.is-vertical .rw-step__desc {
	opacity: 0.92;
	line-height: 1.6;
}

.rw-steps.is-vertical .rw-step__outcome {
	display: block;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.28);
	opacity: 0.9;
}

.rw-steps--no-outcome-s.is-vertical .rw-step__outcome {
	display: none;
}

/* ------------------------------------------------------------------
 * Animations (all optional — switched on/off from the widget)
 * ---------------------------------------------------------------- */

/* 1. wave draws itself (the line stays hidden until the animation starts, so no stray
 *    round cap shows at the first marker) */
.rw-steps--anim-draw.is-ready .rw-steps__wave-bg,
.rw-steps--anim-draw.is-ready .rw-steps__wave-line {
	stroke-dasharray: var(--rw-len);
	stroke-dashoffset: var(--rw-len);
	opacity: 0;
	transition:
		stroke-dashoffset var(--rw-draw) var(--rw-ease) var(--rw-draw-delay),
		opacity 0.01s linear var(--rw-draw-delay);
}

.rw-steps--anim-draw.is-ready.is-in .rw-steps__wave-bg,
.rw-steps--anim-draw.is-ready.is-in .rw-steps__wave-line {
	stroke-dashoffset: 0;
	opacity: 1;
}

.rw-steps--anim-draw.is-ready .rw-steps__wave-dots {
	opacity: 0;
	transition: opacity 0.6s ease calc(var(--rw-draw) + var(--rw-draw-delay));
}

.rw-steps--anim-draw.is-ready.is-in .rw-steps__wave-dots {
	opacity: 1;
}

/* 2. dots travel along the line / down the dotted rail */
@keyframes rwps-dots {
	from {
		stroke-dashoffset: 0px;
	}

	to {
		stroke-dashoffset: calc(var(--rw-dot-gap) * -1);
	}
}

@keyframes rwps-rail {
	to {
		background-position: 0 12px;
	}
}

.rw-steps--anim-flow .rw-steps__wave-dots {
	animation: rwps-dots var(--rw-flow) linear infinite;
}

.rw-steps--anim-flow.is-vertical .rw-step:not(:last-child)::after {
	animation: rwps-rail var(--rw-flow) linear infinite;
}

/* 3. pulsing glow around the circles */
@keyframes rwps-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 var(--rw-halo-size) var(--rw-halo);
	}
	50% {
		box-shadow: 0 0 0 var(--rw-pulse-to) transparent;
	}
}

.rw-steps--anim-pulse:not(.is-vertical) .rw-step__badge {
	animation: rwps-pulse var(--rw-pulse) ease-in-out infinite;
	animation-delay: calc(var(--rw-i, 0) * 0.25s);
}

/* 4. steps fade in one after another */
.rw-steps--anim-reveal.is-ready .rw-step {
	opacity: 0;
	transform: translate(var(--rw-rx, 0), var(--rw-ry, 0)) scale(var(--rw-rs, 1));
	transition: opacity var(--rw-rev) ease, transform var(--rw-rev) ease;
	transition-delay: calc(var(--rw-i, 0) * var(--rw-stagger));
}

.rw-steps--rev-up { --rw-ry: var(--rw-rd); }
.rw-steps--rev-down { --rw-ry: calc(var(--rw-rd) * -1); }
.rw-steps--rev-left { --rw-rx: var(--rw-rd); }
.rw-steps--rev-right { --rw-rx: calc(var(--rw-rd) * -1); }
.rw-steps--rev-zoom { --rw-rs: 0.85; }

.rw-steps--anim-reveal.is-ready.is-in .rw-step {
	opacity: 1;
	transform: none;
}

/* Animations are only switched off for visitors who ask for reduced motion
 * when "Respect reduced-motion setting" is turned on in the widget. */
@media (prefers-reduced-motion: reduce) {
	.rw-steps--respect-motion *,
	.rw-steps--respect-motion *::before,
	.rw-steps--respect-motion *::after {
		animation: none !important;
		transition: none !important;
	}

	.rw-steps--respect-motion.is-ready .rw-step {
		opacity: 1 !important;
		transform: none !important;
	}

	.rw-steps--respect-motion.is-ready .rw-steps__wave-bg,
	.rw-steps--respect-motion.is-ready .rw-steps__wave-line {
		stroke-dashoffset: 0 !important;
		opacity: 1 !important;
	}

	.rw-steps--respect-motion.is-ready .rw-steps__wave-dots {
		opacity: 1 !important;
	}
}
