/**
 * Cursive Arrow Steps — frontend styles
 * All selectors use the unique `cas-` prefix.
 */

.cas-steps {
	--cas-circle-size: 150px;
	--cas-badge-bg: #a01563;
	--cas-badge-hover: #2060a8;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
}

.cas-steps *,
.cas-steps *::before,
.cas-steps *::after {
	box-sizing: border-box;
}

.cas-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1 1 0;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.cas-step__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cas-step__circle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	border-style: solid;
	border-radius: 50%;
	background-color: #f5f5f5;
	border-color: #578b8d;
	border-width: 2px;
}

.cas-step__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: #1a1a2e;
}

.cas-step__icon i,
.cas-step__icon svg {
	display: block;
	line-height: 1;
}

.cas-step__badge {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	color: #fff;
	z-index: 2;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	background-color: var(--cas-badge-bg);
	transition: background-color 0.25s ease, color 0.25s ease;
}

.cas-step:hover .cas-step__badge,
.cas-step:focus-within .cas-step__badge {
	background-color: var(--cas-badge-hover);
}

.cas-step__content {
	width: 100%;
}

.cas-step__title {
	margin: 0;
	padding: 0;
	font-weight: 700;
	line-height: 1.25;
	color: #1b2a4a;
}

.cas-step__description {
	margin: 0;
	padding: 0;
	line-height: 1.5;
	color: #8a8a8a;
}

/* Hand-drawn cursive connector arrows */
.cas-arrow {
	--cas-arrow-offset-y: 0px;
	--cas-arrow-height: 56px;
	flex: 0 0 auto;
	align-self: flex-start;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Center arrow against the circle, then apply optional offset */
	margin-top: calc((var(--cas-circle-size) - var(--cas-arrow-height)) / 2 + var(--cas-arrow-offset-y));
	color: #c5c5c5;
	pointer-events: none;
	z-index: 0;
	transform-origin: center center;
}

.cas-arrow__svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.cas-arrow__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cas-arrow--custom .cas-arrow__svg {
	width: 100%;
	height: 100%;
}

.cas-arrow__path {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cas-arrow__head {
	fill: currentColor;
}

/* Curve up (default path orientation) */
.cas-arrow--up {
	transform: none;
}

/* Curve down — flip vertically to match alternating layout */
.cas-arrow--down {
	transform: scaleY(-1);
}

/* Fallback stack when no inline breakpoint style is present */
@media (max-width: 767px) {
	.cas-steps--stack-mobile {
		flex-direction: column;
		align-items: center;
	}

	.cas-steps--stack-mobile .cas-arrow {
		display: none;
	}

	.cas-steps--stack-mobile .cas-step {
		width: 100%;
		max-width: 100%;
	}
}
