/* ==========================================================================
   Royal Step Flow – Process Steps Widget (10 Modern Visual Styles)
   ========================================================================== */

/* ── CSS Variables & Wrapper ────────────────────────────────────────────── */
.royal-stepflow-wrapper {
	--rsf-accent: #3b82f6;
	--rsf-accent-2: #8b5cf6;
	--rsf-completed: #10b981;
	--rsf-icon-size: 56px;
	--rsf-connector-size: 2px;
	--rsf-connector-color: #cbd5e1;
	--rsf-connector-active: var(--rsf-accent, #3b82f6);
	--rsf-connector-vheight: 30px;
	--rsf-gap: 0px;
	--rsf-icon-bg: #eff6ff;
	--rsf-icon-bg-active: var(--rsf-accent, #3b82f6);
	--rsf-icon-color: var(--rsf-accent, #3b82f6);
	--rsf-icon-color-active: #ffffff;
	--rsf-title-color: #0f172a;
	--rsf-title-color-active: var(--rsf-title-color, #0f172a);
	--rsf-desc-color: #64748b;
	--rsf-badge-bg: #eff6ff;
	--rsf-badge-color: var(--rsf-accent, #3b82f6);
	--rsf-link-color: var(--rsf-accent, #3b82f6);
	--rsf-watermark-color: rgba(59, 130, 246, 0.09);

	display: flex;
	align-items: flex-start;
	flex-wrap: nowrap;
	gap: var(--rsf-gap, 0px);
	position: relative;
}

/* ── Step Item ──────────────────────────────────────────────────────────── */
.royal-step-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	position: relative;
	text-align: center;
	min-width: 0;
	box-sizing: border-box;
}

.royal-stepflow-wrapper.is-interactive .royal-step-item {
	cursor: pointer;
}

.royal-stepflow-wrapper.is-interactive .royal-step-item:focus-visible {
	outline: 2px solid var(--rsf-step-accent, var(--rsf-accent, #3b82f6));
	outline-offset: 4px;
}

/* ── Alignment Overrides ────────────────────────────────────────────────── */
.royal-stepflow-wrapper.align-left:not(.direction-vertical) .royal-step-item {
	align-items: flex-start;
	text-align: left;
}

.royal-stepflow-wrapper.align-center:not(.direction-vertical) .royal-step-item {
	align-items: center;
	text-align: center;
}

.royal-stepflow-wrapper.align-right:not(.direction-vertical) .royal-step-item {
	align-items: flex-end;
	text-align: right;
}

.royal-stepflow-wrapper.direction-vertical.align-center .royal-step-content {
	text-align: center;
}

.royal-stepflow-wrapper.direction-vertical.align-right .royal-step-content {
	text-align: right;
}

/* ── Icon Box ───────────────────────────────────────────────────────────── */
.royal-step-icon-box {
	width: var(--rsf-icon-size, 56px);
	height: var(--rsf-icon-size, 56px);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--rsf-icon-bg, #eff6ff);
	color: var(--rsf-step-accent, var(--rsf-icon-color, #3b82f6));
	margin-bottom: 16px;
	font-size: 20px;
	font-weight: 700;
	flex-shrink: 0;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	position: relative;
	z-index: 1;
}

.royal-step-icon-box svg {
	fill: currentColor;
}

.royal-step-icon-box:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 18px rgba(59, 130, 246, 0.24);
}

/* Active & Completed icon states */
.royal-step-item.is-active .royal-step-icon-box {
	background: var(--rsf-step-accent, var(--rsf-icon-bg-active, #3b82f6));
	color: var(--rsf-icon-color-active, #ffffff);
	box-shadow: 0 6px 18px rgba(59, 130, 246, 0.28);
}

.royal-step-item.is-completed .royal-step-icon-box {
	background: var(--rsf-step-accent, var(--rsf-completed, #10b981));
	color: var(--rsf-icon-color-active, #ffffff);
}

/* ── Icon Shapes ────────────────────────────────────────────────────────── */
.royal-step-icon-box.icon-shape-square {
	border-radius: 4px;
}

.royal-step-icon-box.icon-shape-rounded {
	border-radius: 14px;
}

.royal-step-icon-box.icon-shape-diamond {
	border-radius: 6px;
	transform: rotate(45deg);
}

.royal-step-icon-box.icon-shape-diamond .royal-diamond-inner,
.royal-step-icon-box.icon-shape-diamond .royal-step-number,
.royal-step-icon-box.icon-shape-diamond i,
.royal-step-icon-box.icon-shape-diamond svg {
	transform: rotate(-45deg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.royal-step-icon-box.icon-shape-diamond:hover {
	transform: rotate(45deg) scale(1.06);
}

/* ── Step Content, Badge & Link ─────────────────────────────────────────── */
.royal-step-content {
	padding: 0 8px;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.royal-step-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--rsf-badge-bg, #eff6ff);
	color: var(--rsf-step-accent, var(--rsf-badge-color, #3b82f6));
	margin-bottom: 8px;
}

.royal-step-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--rsf-title-color, #0f172a);
	margin: 0 0 8px;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.royal-step-item.is-active .royal-step-title {
	color: var(--rsf-title-color-active, var(--rsf-title-color, #0f172a));
}

.royal-step-title-link {
	color: inherit;
	text-decoration: none;
}

.royal-step-title-link:hover {
	color: var(--rsf-step-accent, var(--rsf-accent, #3b82f6));
}

.royal-step-description {
	font-size: 14px;
	color: var(--rsf-desc-color, #64748b);
	margin: 0;
	line-height: 1.6;
}

.royal-step-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rsf-step-accent, var(--rsf-link-color, #3b82f6));
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.royal-step-link::after {
	content: '→';
	transition: transform 0.2s ease;
}

.royal-step-link:hover::after {
	transform: translateX(3px);
}

/* ── Connector (Horizontal) ─────────────────────────────────────────────── */
.royal-stepflow-wrapper:not(.direction-vertical) .royal-step-connector {
	flex: 0.45 1 20px;
	height: var(--rsf-connector-size, 2px);
	background: var(--rsf-connector-color, #cbd5e1);
	margin-top: calc(var(--rsf-icon-size, 56px) / 2);
	transform: translateY(-50%);
	min-width: 20px;
	align-self: flex-start;
	transition: background-color 0.3s ease;
}

.royal-stepflow-wrapper:not(.direction-vertical) .royal-step-connector.is-active-connector {
	background: var(--rsf-connector-active, var(--rsf-accent, #3b82f6));
}

/* Connector Styles (Horizontal) */
.royal-stepflow-wrapper.connector-dashed:not(.direction-vertical) .royal-step-connector {
	background: repeating-linear-gradient(
		90deg,
		var(--rsf-connector-color, #cbd5e1) 0px,
		var(--rsf-connector-color, #cbd5e1) 8px,
		transparent 8px,
		transparent 16px
	);
}

.royal-stepflow-wrapper.connector-dashed:not(.direction-vertical) .royal-step-connector.is-active-connector {
	background: repeating-linear-gradient(
		90deg,
		var(--rsf-connector-active, var(--rsf-accent, #3b82f6)) 0px,
		var(--rsf-connector-active, var(--rsf-accent, #3b82f6)) 8px,
		transparent 8px,
		transparent 16px
	);
}

.royal-stepflow-wrapper.connector-dotted:not(.direction-vertical) .royal-step-connector {
	background: repeating-linear-gradient(
		90deg,
		var(--rsf-connector-color, #cbd5e1) 0px,
		var(--rsf-connector-color, #cbd5e1) 3px,
		transparent 3px,
		transparent 10px
	);
}

.royal-stepflow-wrapper.connector-dotted:not(.direction-vertical) .royal-step-connector.is-active-connector {
	background: repeating-linear-gradient(
		90deg,
		var(--rsf-connector-active, var(--rsf-accent, #3b82f6)) 0px,
		var(--rsf-connector-active, var(--rsf-accent, #3b82f6)) 3px,
		transparent 3px,
		transparent 10px
	);
}

@keyframes rsf-flow-x {
	from { background-position: 0 0; }
	to   { background-position: 32px 0; }
}

@keyframes rsf-flow-y {
	from { background-position: 0 0; }
	to   { background-position: 0 32px; }
}

.royal-stepflow-wrapper.connector-animated:not(.direction-vertical).connector-dashed .royal-step-connector,
.royal-stepflow-wrapper.connector-animated:not(.direction-vertical).connector-dotted .royal-step-connector {
	background-size: 32px 100%;
	animation: rsf-flow-x 1.4s linear infinite;
}

.royal-stepflow-wrapper.connector-arrow:not(.direction-vertical) .royal-step-connector {
	background: none;
	height: auto;
	display: flex;
	align-items: center;
}

.royal-stepflow-wrapper.connector-arrow:not(.direction-vertical) .royal-step-connector::before {
	content: '';
	display: block;
	flex: 1;
	height: var(--rsf-connector-size, 2px);
	background: var(--rsf-connector-color, #cbd5e1);
}

.royal-stepflow-wrapper.connector-arrow:not(.direction-vertical) .royal-step-connector::after {
	content: '';
	display: block;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 10px solid var(--rsf-connector-color, #cbd5e1);
	flex-shrink: 0;
}

.royal-stepflow-wrapper.connector-arrow:not(.direction-vertical) .royal-step-connector.is-active-connector::before {
	background: var(--rsf-connector-active, var(--rsf-accent, #3b82f6));
}

.royal-stepflow-wrapper.connector-arrow:not(.direction-vertical) .royal-step-connector.is-active-connector::after {
	border-left-color: var(--rsf-connector-active, var(--rsf-accent, #3b82f6));
}

/* ── Vertical Layout ────────────────────────────────────────────────────── */
.royal-stepflow-wrapper.direction-vertical {
	flex-direction: column;
}

.royal-stepflow-wrapper.direction-vertical .royal-step-item {
	flex-direction: row;
	align-items: flex-start;
	gap: 20px;
	text-align: left;
	flex: none;
	width: 100%;
}

.royal-stepflow-wrapper.direction-vertical .royal-step-icon-box {
	margin-bottom: 0;
	flex-shrink: 0;
}

.royal-stepflow-wrapper.direction-vertical .royal-step-content {
	padding: 0;
}

.royal-stepflow-wrapper.direction-vertical .royal-step-connector {
	width: var(--rsf-connector-size, 2px);
	height: var(--rsf-connector-vheight, 30px);
	background: var(--rsf-connector-color, #cbd5e1);
	margin-left: calc(var(--rsf-icon-size, 56px) / 2);
	transform: translateX(-50%);
	align-self: flex-start;
	flex: none;
	transition: background-color 0.3s ease;
}

.royal-stepflow-wrapper.direction-vertical .royal-step-connector.is-active-connector {
	background: var(--rsf-connector-active, var(--rsf-accent, #3b82f6));
}

.royal-stepflow-wrapper.direction-vertical.connector-dashed .royal-step-connector {
	background: repeating-linear-gradient(
		180deg,
		var(--rsf-connector-color, #cbd5e1) 0px,
		var(--rsf-connector-color, #cbd5e1) 8px,
		transparent 8px,
		transparent 16px
	);
}

.royal-stepflow-wrapper.direction-vertical.connector-dashed .royal-step-connector.is-active-connector {
	background: repeating-linear-gradient(
		180deg,
		var(--rsf-connector-active, var(--rsf-accent, #3b82f6)) 0px,
		var(--rsf-connector-active, var(--rsf-accent, #3b82f6)) 8px,
		transparent 8px,
		transparent 16px
	);
}

.royal-stepflow-wrapper.direction-vertical.connector-dotted .royal-step-connector {
	background: repeating-linear-gradient(
		180deg,
		var(--rsf-connector-color, #cbd5e1) 0px,
		var(--rsf-connector-color, #cbd5e1) 3px,
		transparent 3px,
		transparent 10px
	);
}

.royal-stepflow-wrapper.direction-vertical.connector-dotted .royal-step-connector.is-active-connector {
	background: repeating-linear-gradient(
		180deg,
		var(--rsf-connector-active, var(--rsf-accent, #3b82f6)) 0px,
		var(--rsf-connector-active, var(--rsf-accent, #3b82f6)) 3px,
		transparent 3px,
		transparent 10px
	);
}

.royal-stepflow-wrapper.connector-animated.direction-vertical.connector-dashed .royal-step-connector,
.royal-stepflow-wrapper.connector-animated.direction-vertical.connector-dotted .royal-step-connector {
	background-size: 100% 32px;
	animation: rsf-flow-y 1.4s linear infinite;
}

.royal-stepflow-wrapper.direction-vertical.connector-arrow .royal-step-connector {
	background: none;
	width: auto;
	height: var(--rsf-connector-vheight, 30px);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.royal-stepflow-wrapper.direction-vertical.connector-arrow .royal-step-connector::before {
	content: '';
	display: block;
	flex: 1;
	width: var(--rsf-connector-size, 2px);
	background: var(--rsf-connector-color, #cbd5e1);
}

.royal-stepflow-wrapper.direction-vertical.connector-arrow .royal-step-connector::after {
	content: '';
	display: block;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 10px solid var(--rsf-connector-color, #cbd5e1);
	flex-shrink: 0;
}

.royal-stepflow-wrapper.direction-vertical.connector-arrow .royal-step-connector.is-active-connector::before {
	background: var(--rsf-connector-active, var(--rsf-accent, #3b82f6));
}

.royal-stepflow-wrapper.direction-vertical.connector-arrow .royal-step-connector.is-active-connector::after {
	border-top-color: var(--rsf-connector-active, var(--rsf-accent, #3b82f6));
}

/* ==========================================================================
   STYLE 2: Elevated Cards
   ========================================================================== */
.royal-stepflow-wrapper.style-style2 {
	align-items: stretch;
	--rsf-gap: 12px;
}

.royal-stepflow-wrapper.style-style2 .royal-step-item {
	background: var(--rsf-card-bg, #ffffff);
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 28px 22px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
	transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.royal-stepflow-wrapper.style-style2 .royal-step-item.is-active {
	background: var(--rsf-card-bg-active, var(--rsf-card-bg, #ffffff));
	border-color: var(--rsf-card-border-active, var(--rsf-step-accent, var(--rsf-accent, #3b82f6)));
	box-shadow: 0 12px 28px rgba(59, 130, 246, 0.14);
}

.royal-stepflow-wrapper.style-style2 .royal-step-item:not(.royal-animate):hover,
.royal-stepflow-wrapper.style-style2 .royal-step-item.royal-animate.animated:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.royal-stepflow-wrapper.style-style2:not(.direction-vertical) .royal-step-connector {
	flex: 0.25 1 16px;
	min-width: 16px;
	align-self: center;
	margin-top: 0;
	transform: none;
}

.royal-stepflow-wrapper.style-style2.direction-vertical .royal-step-connector {
	margin-left: 50%;
}

/* ==========================================================================
   STYLE 3: Floating Top Badge
   ========================================================================== */
.royal-stepflow-wrapper.style-style3 {
	align-items: stretch;
	padding-top: calc(var(--rsf-icon-size, 56px) / 2);
	--rsf-gap: 12px;
}

.royal-stepflow-wrapper.style-style3 .royal-step-item {
	background: var(--rsf-card-bg, #ffffff);
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 0 22px 26px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
	transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.royal-stepflow-wrapper.style-style3 .royal-step-icon-box {
	margin-top: calc(var(--rsf-icon-size, 56px) / -2);
	border: 4px solid #ffffff;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.royal-stepflow-wrapper.style-style3 .royal-step-item.is-active {
	background: var(--rsf-card-bg-active, var(--rsf-card-bg, #ffffff));
	border-color: var(--rsf-card-border-active, var(--rsf-step-accent, var(--rsf-accent, #3b82f6)));
}

.royal-stepflow-wrapper.style-style3:not(.direction-vertical) .royal-step-connector {
	flex: 0.25 1 16px;
	min-width: 16px;
	margin-top: 0;
	transform: translateY(-50%);
}

.royal-stepflow-wrapper.style-style3.direction-vertical {
	padding-top: 0;
	padding-left: calc(var(--rsf-icon-size, 56px) / 2);
}

.royal-stepflow-wrapper.style-style3.direction-vertical .royal-step-item {
	padding: 22px 24px 22px 0;
}

.royal-stepflow-wrapper.style-style3.direction-vertical .royal-step-icon-box {
	margin-top: 0;
	margin-left: calc(var(--rsf-icon-size, 56px) / -2);
}

.royal-stepflow-wrapper.style-style3.direction-vertical .royal-step-connector {
	margin-left: 0;
}

/* ==========================================================================
   STYLE 4: Watermark Number Cards
   ========================================================================== */
.royal-stepflow-wrapper.style-style4 {
	align-items: stretch;
	--rsf-gap: 12px;
}

.royal-stepflow-wrapper.style-style4 .royal-step-item {
	background: var(--rsf-card-bg, #ffffff);
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 26px 24px;
	align-items: flex-start;
	text-align: left;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
	transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.royal-stepflow-wrapper.style-style4 .royal-step-watermark {
	position: absolute;
	top: 14px;
	right: 20px;
	font-size: 56px;
	font-weight: 800;
	line-height: 1;
	color: var(--rsf-watermark-color, rgba(59, 130, 246, 0.09));
	pointer-events: none;
	user-select: none;
	letter-spacing: -0.04em;
}

.royal-stepflow-wrapper.style-style4 .royal-step-item.is-active {
	background: var(--rsf-card-bg-active, var(--rsf-card-bg, #ffffff));
	border-color: var(--rsf-card-border-active, var(--rsf-step-accent, var(--rsf-accent, #3b82f6)));
	box-shadow: 0 12px 26px rgba(59, 130, 246, 0.12);
}

.royal-stepflow-wrapper.style-style4 .royal-step-content {
	padding: 0;
}

.royal-stepflow-wrapper.style-style4:not(.direction-vertical) .royal-step-connector {
	flex: 0.25 1 16px;
	min-width: 16px;
	align-self: center;
	margin-top: 0;
	transform: none;
}

.royal-stepflow-wrapper.style-style4.direction-vertical .royal-step-connector {
	margin-left: 50%;
}

/* ==========================================================================
   STYLE 5: Outlined Ring & Progress Glow
   ========================================================================== */
.royal-stepflow-wrapper.style-style5 .royal-step-icon-box {
	background: var(--rsf-icon-bg, #ffffff);
	border: 2px solid #cbd5e1;
	color: var(--rsf-step-accent, var(--rsf-icon-color, #475569));
	box-shadow: 0 0 0 6px rgba(203, 213, 225, 0.2);
}

.royal-stepflow-wrapper.style-style5 .royal-step-item.is-active .royal-step-icon-box {
	background: var(--rsf-step-accent, var(--rsf-icon-bg-active, #3b82f6));
	border-color: var(--rsf-step-accent, var(--rsf-icon-bg-active, #3b82f6));
	color: var(--rsf-icon-color-active, #ffffff);
	box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2), 0 8px 20px rgba(59, 130, 246, 0.26);
}

.royal-stepflow-wrapper.style-style5 .royal-step-item.is-completed .royal-step-icon-box {
	background: var(--rsf-step-accent, var(--rsf-completed, #10b981));
	border-color: var(--rsf-step-accent, var(--rsf-completed, #10b981));
	color: var(--rsf-icon-color-active, #ffffff);
	box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.18);
}

/* ==========================================================================
   STYLE 6: Dark Tech Glassmorphism
   ========================================================================== */
.royal-stepflow-wrapper.style-style6 {
	--rsf-title-color: #f8fafc;
	--rsf-title-color-active: #ffffff;
	--rsf-desc-color: #94a3b8;
	--rsf-icon-bg: rgba(59, 130, 246, 0.16);
	--rsf-icon-color: #60a5fa;
	--rsf-badge-bg: rgba(59, 130, 246, 0.18);
	--rsf-badge-color: #93c5fd;
	--rsf-connector-color: rgba(148, 163, 184, 0.35);
	--rsf-gap: 12px;
	align-items: stretch;
}

.royal-stepflow-wrapper.style-style6 .royal-step-item {
	background: var(--rsf-card-bg, linear-gradient(145deg, #0f172a 0%, #1e293b 100%));
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 16px;
	padding: 28px 22px;
	box-shadow: 0 12px 32px rgba(2, 6, 23, 0.26);
	transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.royal-stepflow-wrapper.style-style6 .royal-step-icon-box {
	border: 1px solid rgba(96, 165, 250, 0.35);
}

.royal-stepflow-wrapper.style-style6 .royal-step-item.is-active {
	background: var(--rsf-card-bg-active, linear-gradient(145deg, #172554 0%, #1e293b 100%));
	border-color: var(--rsf-card-border-active, var(--rsf-step-accent, var(--rsf-accent, #3b82f6)));
	box-shadow: 0 14px 34px rgba(59, 130, 246, 0.28);
}

.royal-stepflow-wrapper.style-style6 .royal-step-item.is-active .royal-step-icon-box {
	background: linear-gradient(135deg, var(--rsf-step-accent, var(--rsf-accent, #3b82f6)), var(--rsf-accent-2, #8b5cf6));
	border-color: transparent;
}

.royal-stepflow-wrapper.style-style6:not(.direction-vertical) .royal-step-connector {
	flex: 0.25 1 16px;
	min-width: 16px;
	align-self: center;
	margin-top: 0;
	transform: none;
}

.royal-stepflow-wrapper.style-style6.direction-vertical .royal-step-connector {
	margin-left: 50%;
}

/* ==========================================================================
   STYLE 7: Gradient Accent Bar Cards
   ========================================================================== */
.royal-stepflow-wrapper.style-style7 {
	align-items: stretch;
	--rsf-gap: 12px;
}

.royal-stepflow-wrapper.style-style7 .royal-step-item {
	background: var(--rsf-card-bg, #ffffff);
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 32px 22px 26px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
	transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.royal-stepflow-wrapper.style-style7 .royal-step-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--rsf-step-accent, var(--rsf-accent, #3b82f6)), var(--rsf-accent-2, #8b5cf6));
	opacity: 0.35;
	transition: opacity 0.3s ease;
}

.royal-stepflow-wrapper.style-style7 .royal-step-item.is-active::before,
.royal-stepflow-wrapper.style-style7 .royal-step-item:hover::before {
	opacity: 1;
}

.royal-stepflow-wrapper.style-style7 .royal-step-item.is-active {
	background: var(--rsf-card-bg-active, var(--rsf-card-bg, #ffffff));
	border-color: var(--rsf-card-border-active, #cbd5e1);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.royal-stepflow-wrapper.style-style7 .royal-step-item.is-active .royal-step-icon-box {
	background: linear-gradient(135deg, var(--rsf-step-accent, var(--rsf-accent, #3b82f6)), var(--rsf-accent-2, #8b5cf6));
}

.royal-stepflow-wrapper.style-style7:not(.direction-vertical) .royal-step-connector {
	flex: 0.25 1 16px;
	min-width: 16px;
	align-self: center;
	margin-top: 0;
	transform: none;
}

.royal-stepflow-wrapper.style-style7.direction-vertical .royal-step-connector {
	margin-left: 50%;
}

/* ==========================================================================
   STYLE 8: Alternating Zigzag Flow
   ========================================================================== */
.royal-stepflow-wrapper.style-style8:not(.direction-vertical) .royal-step-item {
	background: var(--rsf-card-bg, #ffffff);
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px 20px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.royal-stepflow-wrapper.style-style8:not(.direction-vertical) .royal-step-item.step-odd {
	margin-top: 40px;
}

.royal-stepflow-wrapper.style-style8:not(.direction-vertical) .royal-step-item.is-active {
	background: var(--rsf-card-bg-active, var(--rsf-card-bg, #ffffff));
	border-color: var(--rsf-card-border-active, var(--rsf-step-accent, var(--rsf-accent, #3b82f6)));
}

.royal-stepflow-wrapper.style-style8:not(.direction-vertical) .royal-step-connector {
	flex: 0.28 1 18px;
	min-width: 18px;
	margin-top: 52px;
}

/* Vertical Zigzag Timeline on Desktop */
@media (min-width: 768px) {
	.royal-stepflow-wrapper.style-style8.direction-vertical {
		position: relative;
		gap: 24px;
	}

	.royal-stepflow-wrapper.style-style8.direction-vertical::before {
		content: '';
		position: absolute;
		top: 24px;
		bottom: 24px;
		left: 50%;
		transform: translateX(-50%);
		width: var(--rsf-connector-size, 2px);
		background: var(--rsf-connector-color, #cbd5e1);
	}

	.royal-stepflow-wrapper.style-style8.direction-vertical.connector-none::before {
		display: none;
	}

	.royal-stepflow-wrapper.style-style8.direction-vertical .royal-step-connector {
		display: none;
	}

	.royal-stepflow-wrapper.style-style8.direction-vertical .royal-step-item {
		width: calc(50% - 28px);
		background: var(--rsf-card-bg, #ffffff);
		border: 1px solid #e2e8f0;
		border-radius: 16px;
		padding: 22px;
		box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
	}

	.royal-stepflow-wrapper.style-style8.direction-vertical .royal-step-item.step-even {
		align-self: flex-start;
	}

	.royal-stepflow-wrapper.style-style8.direction-vertical .royal-step-item.step-odd {
		align-self: flex-end;
	}

	.royal-stepflow-wrapper.style-style8.direction-vertical .royal-step-item.is-active {
		background: var(--rsf-card-bg-active, var(--rsf-card-bg, #ffffff));
		border-color: var(--rsf-card-border-active, var(--rsf-step-accent, var(--rsf-accent, #3b82f6)));
	}
}

/* ==========================================================================
   STYLE 9: Compact Inline Pill Steps
   ========================================================================== */
.royal-stepflow-wrapper.style-style9 {
	align-items: stretch;
	--rsf-gap: 10px;
}

.royal-stepflow-wrapper.style-style9 .royal-step-item {
	flex-direction: row;
	align-items: center;
	text-align: left;
	gap: 14px;
	background: var(--rsf-card-bg, #f8fafc);
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 16px 18px;
	transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.royal-stepflow-wrapper.style-style9 .royal-step-icon-box {
	margin-bottom: 0;
}

.royal-stepflow-wrapper.style-style9 .royal-step-content {
	padding: 0;
}

.royal-stepflow-wrapper.style-style9 .royal-step-item.is-active {
	background: var(--rsf-card-bg-active, #ffffff);
	border-color: var(--rsf-card-border-active, var(--rsf-step-accent, var(--rsf-accent, #3b82f6)));
	box-shadow: 0 8px 22px rgba(59, 130, 246, 0.12);
}

.royal-stepflow-wrapper.style-style9:not(.direction-vertical) .royal-step-connector {
	flex: 0.22 1 14px;
	min-width: 14px;
	align-self: center;
	margin-top: 0;
	transform: none;
}

.royal-stepflow-wrapper.style-style9.direction-vertical .royal-step-connector {
	margin-left: calc(18px + var(--rsf-icon-size, 56px) / 2);
}

/* ==========================================================================
   STYLE 10: Interactive Progress Stepper
   ========================================================================== */
.royal-stepflow-wrapper.style-style10 {
	align-items: stretch;
	--rsf-gap: 10px;
}

.royal-stepflow-wrapper.style-style10 .royal-step-item {
	background: var(--rsf-card-bg, #ffffff);
	border: 1.5px solid #e2e8f0;
	border-radius: 16px;
	padding: 26px 20px;
	transition: opacity 0.5s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.royal-stepflow-wrapper.style-style10 .royal-step-item.is-active {
	background: var(--rsf-card-bg-active, #f8fbff);
	border-color: var(--rsf-card-border-active, var(--rsf-step-accent, var(--rsf-accent, #3b82f6)));
	box-shadow: 0 12px 30px rgba(59, 130, 246, 0.16);
}

.royal-stepflow-wrapper.style-style10 .royal-step-item.is-completed {
	border-color: rgba(16, 185, 129, 0.45);
}

.royal-stepflow-wrapper.style-style10:not(.direction-vertical) .royal-step-connector {
	flex: 0.28 1 16px;
	min-width: 16px;
	align-self: center;
	margin-top: 0;
	transform: none;
}

.royal-stepflow-wrapper.style-style10.direction-vertical .royal-step-connector {
	margin-left: 50%;
}

/* ── Scroll Animation ───────────────────────────────────────────────────── */
.royal-step-item.royal-animate {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.royal-step-item.royal-animate.animated {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.royal-step-item.royal-animate {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.royal-stepflow-wrapper.connector-animated .royal-step-connector {
		animation: none;
	}
}

/* Delay per index handled inline via JS, fallback base transitions */
.royal-step-item.royal-animate:nth-child(1)  { transition-delay: 0.00s; }
.royal-step-item.royal-animate:nth-child(3)  { transition-delay: 0.15s; }
.royal-step-item.royal-animate:nth-child(5)  { transition-delay: 0.30s; }
.royal-step-item.royal-animate:nth-child(7)  { transition-delay: 0.45s; }
.royal-step-item.royal-animate:nth-child(9)  { transition-delay: 0.60s; }
.royal-step-item.royal-animate:nth-child(11) { transition-delay: 0.75s; }

/* ── Responsive (Mobile <= 767px) ───────────────────────────────────────── */
@media (max-width: 767px) {
	.royal-stepflow-wrapper:not(.direction-vertical) {
		flex-direction: column;
	}

	.royal-stepflow-wrapper:not(.direction-vertical) .royal-step-item {
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
		text-align: left;
		flex: none;
		width: 100%;
	}

	.royal-stepflow-wrapper:not(.direction-vertical) .royal-step-icon-box {
		margin-bottom: 0;
		flex-shrink: 0;
	}

	.royal-stepflow-wrapper:not(.direction-vertical) .royal-step-content {
		padding: 0;
	}

	.royal-stepflow-wrapper.style-style3:not(.direction-vertical) {
		padding-top: 0;
		padding-left: calc(var(--rsf-icon-size, 56px) / 2);
	}

	.royal-stepflow-wrapper.style-style3:not(.direction-vertical) .royal-step-item {
		padding: 20px 20px 20px 0;
	}

	.royal-stepflow-wrapper.style-style3:not(.direction-vertical) .royal-step-icon-box {
		margin-top: 0;
		margin-left: calc(var(--rsf-icon-size, 56px) / -2);
	}

	.royal-stepflow-wrapper.style-style8:not(.direction-vertical) .royal-step-item.step-odd {
		margin-top: 0;
	}

	.royal-stepflow-wrapper:not(.direction-vertical) .royal-step-connector {
		width: var(--rsf-connector-size, 2px);
		height: 24px;
		flex: none;
		margin-left: calc(var(--rsf-icon-size, 56px) / 2);
		margin-top: 0;
		transform: translateX(-50%);
		align-self: flex-start;
	}

	.royal-stepflow-wrapper.style-style2:not(.direction-vertical) .royal-step-connector,
	.royal-stepflow-wrapper.style-style4:not(.direction-vertical) .royal-step-connector,
	.royal-stepflow-wrapper.style-style6:not(.direction-vertical) .royal-step-connector,
	.royal-stepflow-wrapper.style-style7:not(.direction-vertical) .royal-step-connector,
	.royal-stepflow-wrapper.style-style8:not(.direction-vertical) .royal-step-connector,
	.royal-stepflow-wrapper.style-style10:not(.direction-vertical) .royal-step-connector {
		margin-left: 50%;
	}

	.royal-stepflow-wrapper.style-style9:not(.direction-vertical) .royal-step-connector {
		margin-left: calc(18px + var(--rsf-icon-size, 56px) / 2);
	}

	.royal-stepflow-wrapper.style-style3:not(.direction-vertical) .royal-step-connector {
		margin-left: 0;
	}

	.royal-stepflow-wrapper.connector-dashed:not(.direction-vertical) .royal-step-connector {
		background: repeating-linear-gradient(
			180deg,
			var(--rsf-connector-color, #cbd5e1) 0px,
			var(--rsf-connector-color, #cbd5e1) 8px,
			transparent 8px,
			transparent 16px
		);
	}

	.royal-stepflow-wrapper.connector-dashed:not(.direction-vertical) .royal-step-connector.is-active-connector {
		background: repeating-linear-gradient(
			180deg,
			var(--rsf-connector-active, var(--rsf-accent, #3b82f6)) 0px,
			var(--rsf-connector-active, var(--rsf-accent, #3b82f6)) 8px,
			transparent 8px,
			transparent 16px
		);
	}

	.royal-stepflow-wrapper.connector-dotted:not(.direction-vertical) .royal-step-connector {
		background: repeating-linear-gradient(
			180deg,
			var(--rsf-connector-color, #cbd5e1) 0px,
			var(--rsf-connector-color, #cbd5e1) 3px,
			transparent 3px,
			transparent 10px
		);
	}

	.royal-stepflow-wrapper.connector-dotted:not(.direction-vertical) .royal-step-connector.is-active-connector {
		background: repeating-linear-gradient(
			180deg,
			var(--rsf-connector-active, var(--rsf-accent, #3b82f6)) 0px,
			var(--rsf-connector-active, var(--rsf-accent, #3b82f6)) 3px,
			transparent 3px,
			transparent 10px
		);
	}

	.royal-stepflow-wrapper.connector-arrow:not(.direction-vertical) .royal-step-connector {
		background: none;
		width: auto;
		height: 24px;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.royal-stepflow-wrapper.connector-arrow:not(.direction-vertical) .royal-step-connector::before {
		content: '';
		display: block;
		flex: 1;
		width: var(--rsf-connector-size, 2px);
		height: auto;
		background: var(--rsf-connector-color, #cbd5e1);
	}

	.royal-stepflow-wrapper.connector-arrow:not(.direction-vertical) .royal-step-connector::after {
		content: '';
		display: block;
		border-top: 10px solid var(--rsf-connector-color, #cbd5e1);
		border-left: 6px solid transparent;
		border-right: 6px solid transparent;
		border-bottom: 0;
		flex-shrink: 0;
	}

	.royal-stepflow-wrapper.connector-arrow:not(.direction-vertical) .royal-step-connector.is-active-connector::before {
		background: var(--rsf-connector-active, var(--rsf-accent, #3b82f6));
	}

	.royal-stepflow-wrapper.connector-arrow:not(.direction-vertical) .royal-step-connector.is-active-connector::after {
		border-top-color: var(--rsf-connector-active, var(--rsf-accent, #3b82f6));
	}
}
