/**
 * How it works — Stepper (React Bits port)
 * Brand: CashCom teal #78DED4 / navy #003E52
 * Auto-advances; pause on hover/focus.
 */

body.ccp-magic-bento {
	--ccp-stepper-accent: #78ded4;
	--ccp-stepper-accent-rgb: 120, 222, 212;
	--ccp-stepper-navy: #003e52;
	--ccp-stepper-muted: rgba(255, 255, 255, 0.55);
}

.ccp-stepper-section {
	width: 100%;
	max-width: 1100px;
	margin: 3rem auto 2rem;
	padding: 0 1.25rem;
	box-sizing: border-box;
}

/* Match Elementor section headings / body copy on this page
 * Spend & Send / Pay For… → DIN Next 60/37, weight 500, tracking -1px
 * Intro text → DIN Next 18/15/16, weight 400
 */
body.ccp-magic-bento .ccp-stepper-section__title {
	margin: 0 0 0.35em;
	text-align: center;
	font-family: "DIN Next", Sans-serif !important;
	font-size: 60px !important;
	font-weight: 500 !important;
	line-height: 1.2em !important;
	letter-spacing: -1px !important;
	color: #fff !important;
	text-shadow:
		0 2px 16px rgba(0, 30, 40, 0.7),
		0 0 48px rgba(0, 62, 82, 0.45);
}

body.ccp-magic-bento .ccp-stepper-section__lead {
	margin: 0 auto 50px;
	max-width: 42rem;
	text-align: center;
	font-family: "DIN Next", Sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	letter-spacing: normal !important;
	color: rgba(255, 255, 255, 0.85) !important;
}

@media (max-width: 1024px) {
	body.ccp-magic-bento .ccp-stepper-section__title {
		font-size: 37px !important;
	}

	body.ccp-magic-bento .ccp-stepper-section__lead {
		margin-bottom: 50px;
		font-size: 15px !important;
	}
}

@media (max-width: 767px) {
	body.ccp-magic-bento .ccp-stepper-section__lead {
		margin-bottom: 30px;
		font-size: 16px !important;
	}
}

.ccp-stepper {
	margin: 0 auto;
	width: 100%;
	max-width: 42rem;
	border-radius: 1.75rem;
	border: 1px solid rgba(120, 222, 212, 0.28);
	background: rgba(0, 62, 82, 0.45);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow:
		0 20px 40px rgba(0, 0, 0, 0.28),
		0 0 32px rgba(120, 222, 212, 0.08);
	overflow: hidden;
}

.ccp-stepper__indicators {
	display: flex;
	width: 100%;
	align-items: center;
	padding: 2.25rem 2.5rem 1rem;
	box-sizing: border-box;
}

/* Hit-target button — fully reset so Elementor can't inflate step 1 */
body.ccp-magic-bento .ccp-stepper__indicator {
	all: unset;
	box-sizing: border-box !important;
	position: relative !important;
	flex: 0 0 2.75rem !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2.75rem !important;
	min-width: 2.75rem !important;
	max-width: 2.75rem !important;
	height: 2.75rem !important;
	min-height: 2.75rem !important;
	max-height: 2.75rem !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: inherit !important;
	font: inherit !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer !important;
	overflow: visible !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

/* Fixed circle face — size never depends on button UA/Elementor styles */
body.ccp-magic-bento .ccp-stepper__face {
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2.75rem !important;
	height: 2.75rem !important;
	min-width: 2.75rem !important;
	min-height: 2.75rem !important;
	max-width: 2.75rem !important;
	max-height: 2.75rem !important;
	aspect-ratio: 1 / 1;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 50% !important;
	background: rgba(0, 30, 40, 0.9) !important;
	color: rgba(255, 255, 255, 0.85) !important;
	font-family: "DIN Next", Sans-serif !important;
	font-weight: 700 !important;
	font-size: 1.05rem !important;
	line-height: 1 !important;
	transition:
		background 0.3s ease,
		color 0.3s ease,
		border-color 0.3s ease,
		box-shadow 0.3s ease;
}

body.ccp-magic-bento .ccp-stepper__indicator .ccp-stepper__number {
	display: block !important;
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: 1 !important;
	opacity: 1 !important;
}

body.ccp-magic-bento .ccp-stepper__indicator.is-active .ccp-stepper__face {
	background: var(--ccp-stepper-accent) !important;
	border-color: var(--ccp-stepper-accent) !important;
	color: var(--ccp-stepper-navy) !important;
	box-shadow: 0 0 0 4px rgba(120, 222, 212, 0.28);
}

body.ccp-magic-bento .ccp-stepper__indicator.is-complete .ccp-stepper__face {
	background: var(--ccp-stepper-accent) !important;
	border-color: var(--ccp-stepper-accent) !important;
	color: var(--ccp-stepper-navy) !important;
}

body.ccp-magic-bento .ccp-stepper__indicator:focus-visible .ccp-stepper__face {
	outline: 2px solid var(--ccp-stepper-accent);
	outline-offset: 3px;
}

body.ccp-magic-bento .ccp-stepper__check {
	height: 1rem !important;
	width: 1rem !important;
	display: block !important;
	stroke: currentColor !important;
	color: inherit !important;
}

.ccp-stepper__connector {
	position: relative;
	margin: 0 0.75rem;
	height: 0.2rem;
	flex: 1;
	overflow: hidden;
	border-radius: 0.25rem;
	background: rgba(255, 255, 255, 0.18);
}

.ccp-stepper__connector-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0;
	background: var(--ccp-stepper-accent);
	transition: width 0.4s ease;
}

.ccp-stepper__connector.is-complete .ccp-stepper__connector-fill {
	width: 100%;
}

.ccp-stepper__timer {
	height: 3px;
	margin: 1rem 2.5rem 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.ccp-stepper__timer-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(
		90deg,
		rgba(120, 222, 212, 0.35),
		var(--ccp-stepper-accent)
	);
	transform-origin: left center;
}

.ccp-stepper.is-paused .ccp-stepper__timer-bar {
	animation-play-state: paused;
}

.ccp-stepper__timer-bar.is-running {
	animation: ccp-stepper-timer linear forwards;
}

@keyframes ccp-stepper-timer {
	from {
		width: 0%;
	}
	to {
		width: 100%;
	}
}

.ccp-stepper__viewport {
	position: relative;
	overflow: hidden;
	min-height: 7.5rem;
}

.ccp-stepper__panel {
	padding: 1.75rem 2.5rem 0.75rem;
	box-sizing: border-box;
	color: #fff;
}

.ccp-stepper__panel[hidden] {
	display: none;
}

.ccp-stepper__panel.is-entering-next,
.ccp-stepper__panel.is-entering-prev,
.ccp-stepper__panel.is-leaving-next,
.ccp-stepper__panel.is-leaving-prev {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
}

.ccp-stepper__panel.is-entering-next {
	animation: ccp-step-in-next 0.4s ease both;
}

.ccp-stepper__panel.is-entering-prev {
	animation: ccp-step-in-prev 0.4s ease both;
}

.ccp-stepper__panel.is-leaving-next {
	animation: ccp-step-out-next 0.4s ease both;
}

.ccp-stepper__panel.is-leaving-prev {
	animation: ccp-step-out-prev 0.4s ease both;
}

@keyframes ccp-step-in-next {
	from {
		opacity: 0;
		transform: translateX(40%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes ccp-step-in-prev {
	from {
		opacity: 0;
		transform: translateX(-40%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes ccp-step-out-next {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(-30%);
	}
}

@keyframes ccp-step-out-prev {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(30%);
	}
}

body.ccp-magic-bento .ccp-stepper__panel h3 {
	margin: 0 0 0.65rem;
	font-family: "DIN Next", Sans-serif !important;
	font-size: 1.85rem !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.5px;
	color: #fff !important;
	text-shadow:
		0 2px 16px rgba(0, 30, 40, 0.7),
		0 0 48px rgba(0, 62, 82, 0.45);
}

body.ccp-magic-bento .ccp-stepper__panel p {
	margin: 0;
	font-family: "DIN Next", Sans-serif !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.85) !important;
}

@media (max-width: 1024px) {
	body.ccp-magic-bento .ccp-stepper__panel p {
		font-size: 17px !important;
	}
}

@media (max-width: 767px) {
	body.ccp-magic-bento .ccp-stepper__panel p {
		font-size: 16px !important;
	}

	body.ccp-magic-bento .ccp-stepper__panel h3 {
		font-size: 1.45rem !important;
	}
}

.ccp-stepper__footer {
	padding: 2rem 2.5rem 2.25rem;
}

.ccp-stepper__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.ccp-stepper__nav.is-first {
	justify-content: flex-end;
}

body.ccp-magic-bento .ccp-stepper__back {
	border: none !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: rgba(255, 255, 255, 0.65) !important;
	padding: 0.45rem 0.65rem !important;
	border-radius: 0.35rem !important;
	cursor: pointer;
	font-size: 1.05rem !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	min-height: 0 !important;
	transition: color 0.25s ease;
}

body.ccp-magic-bento .ccp-stepper__back:hover {
	color: #fff !important;
}

body.ccp-magic-bento .ccp-stepper__back[hidden] {
	display: none !important;
}

body.ccp-magic-bento .ccp-stepper__next {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: none !important;
	border-radius: 9999px !important;
	background: var(--ccp-stepper-accent) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--ccp-stepper-navy) !important;
	font-weight: 600 !important;
	font-size: 1.05rem !important;
	letter-spacing: -0.02em;
	padding: 0.7rem 1.45rem !important;
	min-height: 0 !important;
	cursor: pointer;
	transition: filter 0.25s ease, transform 0.2s ease;
}

body.ccp-magic-bento .ccp-stepper__next:hover {
	filter: brightness(1.06);
	color: var(--ccp-stepper-navy) !important;
}

body.ccp-magic-bento .ccp-stepper__next:active {
	transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
	.ccp-stepper__timer-bar.is-running,
	.ccp-stepper__panel.is-entering-next,
	.ccp-stepper__panel.is-entering-prev,
	.ccp-stepper__panel.is-leaving-next,
	.ccp-stepper__panel.is-leaving-prev {
		animation: none !important;
	}

	.ccp-stepper__connector-fill {
		transition: none;
	}
}

@media (max-width: 640px) {
	.ccp-stepper-section {
		margin: 2rem auto 1.5rem;
	}

	.ccp-stepper {
		max-width: none;
	}
}
