.am9-funnel-wrap {
	--am9-primary: #6c4cf1;
	--am9-text-on-primary: #ffffff;
	--am9-bg: #ffffff;
	--am9-heading: #222222;
	--am9-font: inherit;
	--am9-radius: 8px;

	max-width: 560px;
	margin: 0 auto;
	font-family: var(--am9-font);
	background: var(--am9-bg);
	border-radius: calc(var(--am9-radius) * 1.5);
}

.am9-funnel-stage {
	position: relative;
	min-height: 260px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.am9-step {
	width: 100%;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	text-align: center;
	padding: 32px 24px;
	box-sizing: border-box;
}

.am9-step.am9-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Audio stage */
.am9-audio-visual {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
	height: 56px;
	align-items: center;
}

.am9-audio-visual > div {
	display: none;
}

.am9-audio-visual[data-icon="bars"] .am9-icon-bars { display: flex; }
.am9-audio-visual[data-icon="pulse"] .am9-icon-pulse { display: flex; }
.am9-audio-visual[data-icon="wave"] .am9-icon-wave { display: flex; }
.am9-audio-visual[data-icon="dots"] .am9-icon-dots { display: flex; }
.am9-audio-visual[data-icon="none"] > div { display: none !important; }

/* Bars icon */
.am9-icon-bars {
	gap: 6px;
	align-items: flex-end;
	height: 48px;
}

.am9-icon-bars span {
	display: block;
	width: 6px;
	background: var(--am9-primary);
	border-radius: 3px;
	animation: am9-bar-bounce 1.1s ease-in-out infinite;
}

.am9-icon-bars span:nth-child(1) { height: 16px; animation-delay: 0s; }
.am9-icon-bars span:nth-child(2) { height: 32px; animation-delay: 0.15s; }
.am9-icon-bars span:nth-child(3) { height: 48px; animation-delay: 0.3s; }
.am9-icon-bars span:nth-child(4) { height: 28px; animation-delay: 0.45s; }
.am9-icon-bars span:nth-child(5) { height: 18px; animation-delay: 0.6s; }

@keyframes am9-bar-bounce {
	0%, 100% { transform: scaleY(0.4); }
	50% { transform: scaleY(1); }
}

/* Pulse icon */
.am9-icon-pulse {
	align-items: center;
	justify-content: center;
}

.am9-icon-pulse span {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--am9-primary);
	position: relative;
	display: inline-block;
}

.am9-icon-pulse span::before,
.am9-icon-pulse span::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--am9-primary);
	opacity: 0.6;
	animation: am9-pulse-ring 1.6s ease-out infinite;
}

.am9-icon-pulse span::after {
	animation-delay: 0.5s;
}

@keyframes am9-pulse-ring {
	0% { transform: scale(1); opacity: 0.6; }
	100% { transform: scale(2.4); opacity: 0; }
}

/* Wave icon */
.am9-icon-wave {
	gap: 4px;
	align-items: center;
	height: 40px;
}

.am9-icon-wave span {
	display: block;
	width: 4px;
	height: 18px;
	background: var(--am9-primary);
	border-radius: 2px;
	animation: am9-wave-move 1s ease-in-out infinite;
}

.am9-icon-wave span:nth-child(2) { animation-delay: 0.2s; }
.am9-icon-wave span:nth-child(3) { animation-delay: 0.3s; }
.am9-icon-wave span:nth-child(4) { animation-delay: 0.4s; }
.am9-icon-wave span:nth-child(5) { animation-delay: 0.5s; }
.am9-icon-wave span:nth-child(6) { animation-delay: 0.6s; }

@keyframes am9-wave-move {
	0%, 100% { height: 10px; }
	50% { height: 36px; }
}

/* Dots icon */
.am9-icon-dots {
	gap: 8px;
	align-items: center;
}

.am9-icon-dots span {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--am9-primary);
	animation: am9-dot-jump 1.2s ease-in-out infinite;
}

.am9-icon-dots span:nth-child(2) { animation-delay: 0.15s; }
.am9-icon-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes am9-dot-jump {
	0%, 80%, 100% { transform: translateY(0); }
	40% { transform: translateY(-14px); }
}

.am9-audio-caption,
.am9-video-caption {
	font-size: 15px;
	color: #555;
	margin-top: 8px;
}

.am9-audio-unmute,
.am9-video-unmute {
	margin-top: 16px;
	padding: 10px 20px;
	background: var(--am9-primary);
	color: var(--am9-text-on-primary) !important;
	border: none;
	border-radius: var(--am9-radius);
	cursor: pointer;
	font-size: 14px;
}

/* Video stage */
.am9-video-holder {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #000;
	border-radius: var(--am9-radius);
	overflow: hidden;
}

.am9-video-holder video,
.am9-video-holder iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.am9-video-playpause {
	position: absolute;
	bottom: 14px;
	left: 14px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: background 0.2s ease;
}

.am9-video-playpause:hover {
	background: rgba(0, 0, 0, 0.75);
}

.am9-video-sound {
	position: absolute;
	bottom: 14px;
	right: 14px;
	padding: 8px 14px;
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 13px;
	z-index: 2;
	transition: background 0.2s ease;
	white-space: nowrap;
}

.am9-video-sound:hover {
	background: rgba(0, 0, 0, 0.75);
}

.am9-video-sound.am9-sound-on {
	background: var(--am9-primary);
}

/* Form stage */
.am9-form-fields {
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-align: left;
	margin-bottom: 20px;
}

.am9-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--am9-heading);
}

.am9-field input,
.am9-field select,
.am9-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: var(--am9-radius);
	font-size: 14px;
	box-sizing: border-box;
	font-family: var(--am9-font);
}

.am9-field textarea {
	min-height: 80px;
	resize: vertical;
}

.am9-form-submit {
	width: 100%;
	padding: 12px 20px;
	background: var(--am9-primary);
	color: var(--am9-text-on-primary) !important;
	border: none;
	border-radius: var(--am9-radius);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.2s ease;
	font-family: var(--am9-font);
}

.am9-form-submit:hover {
	filter: brightness(0.9);
}

.am9-form-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* CTA stage */
.am9-cta-text {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 20px;
	color: var(--am9-heading);
}

.am9-cta-button {
	display: inline-block;
	padding: 14px 32px;
	background: var(--am9-primary);
	color: var(--am9-text-on-primary) !important;
	text-decoration: none;
	border-radius: var(--am9-radius);
	font-weight: 600;
	font-size: 16px;
	transition: filter 0.2s ease;
	font-family: var(--am9-font);
}

.am9-cta-button:hover,
.am9-cta-button:focus,
.am9-cta-button:active,
.am9-cta-button:visited {
	filter: brightness(0.9);
	color: var(--am9-text-on-primary) !important;
}
