/* Easy Português — estilos do site (header, menu, footer, utilitários).
   Fonte única: plugin. O tema carrega só o mínimo (tokens + base). */

:root {
	--ep-forest:       #022F2A;
	--ep-forest-deep:  #01211D;
	--ep-forest-mid:   #1F503F;
	--ep-forest-brand: #009C3B;
	--ep-paper:        #FFF6D6;
	--ep-paper-soft:   #FFFBEB;
	--ep-paper-deep:   #F7EBBC;
	--ep-sun:          #FFDF00;
	--ep-sun-soft:     #FFE74D;
	--ep-brblue:       #002776;
	--ep-brblue-soft:  #1D4ED8;
	--ep-radius:       10px;
}

/* Tipografia */
body {
	font-family: 'Space Grotesk', sans-serif;
	color: var(--ep-forest-deep);
	background-color: var(--ep-paper-soft);
}

/* Faixas rotacionadas (marquee) não podem gerar scroll horizontal */
html,
body {
	overflow-x: clip;
}

h1, h2, h3, h4,
.ep-font-display {
	font-family: 'Bricolage Grotesque', sans-serif;
	letter-spacing: -0.02em;
}

/* Utilitários .ep-btn/.ep-eyebrow/::selection: fonte única é o frontend.css,
   carregado depois deste arquivo — não redefinir aqui para evitar guerra de cascata. */

/* 3. Header — sticky no fluxo nas páginas internas; pill flutuante fixa só na home */
.ep-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	pointer-events: none;
}

body.ep-is-home .ep-header {
	position: fixed;
	left: 0;
	right: 0;
}

body.admin-bar .ep-header {
	top: 32px;
}

.ep-header__pill {
	pointer-events: auto;
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	max-width: 64rem;
	margin: 12px auto;
	padding: 8px 8px 8px 20px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(1, 33, 29, .08);
	transition: box-shadow .3s ease, max-width .3s ease, margin .3s ease, border-radius .3s ease, padding .3s ease;
}

.ep-header.is-scrolled .ep-header__pill {
	box-shadow: 0 12px 40px -8px rgba(1, 33, 29, .22);
}

/* Páginas internas: header padrão (reto, largura total) antes do scroll; vira pill ao rolar */
body:not(.ep-is-home) .ep-header__pill {
	max-width: none;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	border-bottom: 1px solid rgba(2, 47, 42, .08);
	padding: 10px 24px;
}

body:not(.ep-is-home) .ep-header.is-scrolled .ep-header__pill {
	max-width: 64rem;
	margin: 12px auto;
	border-radius: 999px;
	box-shadow: 0 12px 40px -8px rgba(1, 33, 29, .22);
	border-bottom-color: transparent;
	padding: 8px 8px 8px 20px;
}

.ep-header__brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	flex-shrink: 0;
}

.ep-header__logo {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.ep-header__wordmark {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
	color: var(--ep-forest-deep);
}

.ep-nav {
	margin-left: auto;
}

.ep-menu {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ep-menu a {
	display: block;
	color: var(--ep-forest);
	font-weight: 500;
	font-size: .95rem;
	text-decoration: none;
	transition: color .2s ease;
}

.ep-menu a:hover,
.ep-menu a:focus-visible,
.ep-menu .current-menu-item > a {
	color: var(--ep-forest-brand);
}

/* Dropdown desktop (submenu) */
.ep-menu .menu-item-has-children {
	position: relative;
}

.ep-menu .menu-item-has-children > a {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ep-menu .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .2s ease;
	flex-shrink: 0;
}

.ep-menu .menu-item-has-children:hover > a::after,
.ep-menu .menu-item-has-children:focus-within > a::after {
	transform: rotate(225deg) translateY(-1px);
}

.ep-menu .sub-menu {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	transform: translate(-50%, 8px);
	min-width: 220px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px -20px rgba(1, 33, 29, .28);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 100;
}

/* Ponte invisível para não perder o hover entre o link e o dropdown */
.ep-menu .sub-menu::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 0;
	right: 0;
	height: 14px;
}

.ep-menu .menu-item-has-children:hover > .sub-menu,
.ep-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.ep-menu .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: .9rem;
	white-space: nowrap;
}

.ep-menu .sub-menu a:hover,
.ep-menu .sub-menu a:focus-visible {
	background: rgba(2, 47, 42, .06);
	color: var(--ep-forest-brand);
}

/* Mega dropdown — itens com imagem destacada da página */
@media (min-width: 900px) {
	.ep-menu .menu-item-has-children:has(.sub-menu--mega) {
		position: static;
	}

	.ep-menu .sub-menu:has(.ep-menu__thumb) {
		left: 50%;
		right: auto;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 12px;
		width: calc(100vw - 24px);
		min-width: 0;
		padding: 20px;
		border-radius: 24px;
	}

	.ep-menu .sub-menu .ep-menu__thumb {
		display: block;
		margin-bottom: 8px;
	}

	.ep-menu .sub-menu .ep-menu__thumb img {
		display: block;
		width: 100%;
		height: auto;
		max-height: 220px;
		object-fit: contain;
		background: rgba(2, 47, 42, .04);
		border-radius: 12px;
	}

	.ep-menu .sub-menu:has(.ep-menu__thumb) a {
		white-space: normal;
		font-weight: 600;
	}
}

@media (max-width: 899px) {
	.ep-menu .sub-menu .ep-menu__thumb img {
		display: block;
		width: 44px;
		height: 44px;
		object-fit: contain;
		background: rgba(2, 47, 42, .04);
		border-radius: 10px;
	}

	.ep-menu .sub-menu li a:has(.ep-menu__thumb) {
		display: flex;
		align-items: center;
		gap: 10px;
	}
}

/* CTA clonado dentro do painel mobile (via JS) */
.ep-nav .ep-nav__cta {
	display: none;
}

.ep-header .ep-header__cta {
	padding: .65rem 1.4rem;
	font-size: .78rem;
	flex-shrink: 0;
}

/* GTranslate — bandeiras de idioma no menu */
.ep-menu__gtranslate {
	display: flex;
	align-items: center;
}

@media (min-width: 900px) {
	.ep-menu > .ep-menu__gtranslate {
		flex: 1;
		justify-content: center;
	}

	.ep-menu__gtranslate .gt_switcher-wrapper {
		display: flex;
		align-items: center;
		gap: 6px;
	}

	.ep-menu__gtranslate .glink,
	.ep-menu__gtranslate .gt_current-lang,
	.ep-menu__gtranslate .gt_current-lang a {
		display: inline-flex;
		align-items: center;
		gap: 4px;
	}

	.ep-menu__gtranslate img {
		display: inline-block;
		width: 22px;
		height: auto;
		border-radius: 3px;
	}
}

@media (max-width: 899px) {
	.ep-menu > .ep-menu__gtranslate {
		order: -1;
		justify-content: center;
		padding: 14px 10px 18px;
		border-bottom: 1px solid rgba(2, 47, 42, .1);
		margin: 0 0 8px;
	}

	.ep-menu__gtranslate .gt_switcher-wrapper,
	.ep-menu__gtranslate .gt_switcher,
	.ep-menu__gtranslate .gtranslate_wrapper,
	.ep-menu__gtranslate .gtranslate_wrapper > * {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		gap: 10px;
		vertical-align: middle;
	}

	.ep-menu__gtranslate .gt_switcher-wrapper > *,
	.ep-menu__gtranslate .gtranslate_wrapper > * {
		flex: 0 0 auto;
	}

	.ep-menu__gtranslate img {
		display: inline-block;
		width: 28px;
		height: auto;
		border-radius: 4px;
	}
}

/* Hambúrguer (só visível em mobile) */
.ep-header .ep-header__toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	background-color: transparent;
	border: 1px solid rgba(2, 47, 42, .15);
	border-radius: 50%;
	cursor: pointer;
	flex-shrink: 0;
}

.ep-header__toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--ep-forest-deep);
	transition: transform .25s ease, opacity .25s ease;
}

.ep-header__toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.ep-header__toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.ep-header__toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* 4. Footer */
.ep-footer {
	position: relative;
	overflow: hidden;
	background: var(--ep-forest-deep);
	color: var(--ep-paper);
	padding: 4rem 1.5rem 2.5rem;
	text-align: center;
}

/* Grain sutil */
.ep-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: .05;
	pointer-events: none;
}

.ep-footer__inner {
	position: relative;
	z-index: 1;
	max-width: 64rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.ep-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
}

.ep-footer__logo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.ep-footer__wordmark {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: -0.02em;
	color: var(--ep-paper);
}

.ep-footer__tagline {
	margin: 0;
	color: rgba(255, 246, 214, .7);
	font-size: 1rem;
}

.ep-footer__email {
	color: var(--ep-paper);
	text-decoration: none;
	font-weight: 500;
	transition: color .2s ease;
}

.ep-footer__email:hover,
.ep-footer__email:focus-visible {
	color: var(--ep-sun);
}

.ep-footer__social {
	display: flex;
	gap: .75rem;
	list-style: none;
	margin: .5rem 0 0;
	padding: 0;
}

.ep-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 246, 214, .25);
	color: var(--ep-paper);
	transition: border-color .25s ease, background .25s ease, color .25s ease;
}

.ep-footer__social a:hover,
.ep-footer__social a:focus-visible {
	border-color: rgba(255, 246, 214, .6);
	background: rgba(255, 246, 214, .05);
	color: var(--ep-sun);
}

.ep-footer__social svg {
	width: 20px;
	height: 20px;
	display: block;
}

.ep-footer__copy {
	margin: 1.5rem 0 0;
	font-size: .8rem;
	color: rgba(255, 246, 214, .5);
}

.ep-footer__credit {
	margin: .5rem 0 0;
	font-size: .72rem;
	color: rgba(255, 246, 214, .38);
}

.ep-footer__credit a {
	color: rgba(255, 246, 214, .55);
	text-decoration: none;
	border-bottom: 1px dotted rgba(255, 246, 214, .3);
	transition: color .2s ease;
}

.ep-footer__credit a:hover,
.ep-footer__credit a:focus-visible {
	color: rgba(255, 246, 214, .9);
}

/* 5. Responsividade */
@media (max-width: 899px) {
	.ep-header__pill {
		margin: 12px;
		gap: .75rem;
		padding-left: 16px;
	}

	body:not(.ep-is-home) .ep-header__pill {
		margin: 0;
		border-radius: 0;
		padding: 10px 16px;
	}

	body:not(.ep-is-home) .ep-header.is-scrolled .ep-header__pill {
		margin: 12px;
		border-radius: 999px;
		padding: 8px 8px 8px 16px;
	}

	.ep-header .ep-header__toggle {
		display: flex;
		margin-left: auto;
		position: relative;
		z-index: 1001;
	}

	.ep-header .ep-header__toggle[aria-expanded="true"] {
		background: #e63946;
		border-color: #e63946;
	}

	.ep-header .ep-header__toggle[aria-expanded="true"] span {
		background: #ffffff;
	}

	.ep-nav__close {
		display: none !important;
	}

	.ep-nav {
		position: fixed;
		inset: 0;
		background: #fff;
		border-radius: 0;
		box-shadow: none;
		display: none;
		overflow-y: auto;
		padding: 90px 20px 28px;
		z-index: 999;
	}

	.ep-nav.is-open {
		display: block;
	}

	.ep-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ep-menu a {
		padding: 12px 10px;
		font-size: 1rem;
	}

	/* Submenu embutido no painel mobile */
	.ep-menu .menu-item-has-children > a::after {
		display: none;
	}

	.ep-menu .sub-menu,
	.ep-menu .menu-item-has-children:hover > .sub-menu,
	.ep-menu .menu-item-has-children:focus-within > .sub-menu {
		position: static;
		display: block;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
		padding: 0;
		margin: 0 0 6px 12px;
		background: transparent;
		border-radius: 0;
		box-shadow: none;
		border-left: 2px solid rgba(2, 47, 42, .12);
	}

	.ep-menu .sub-menu::before {
		display: none;
	}

	.ep-menu .sub-menu a {
		padding: 10px 12px;
		font-size: .92rem;
		white-space: normal;
		color: rgba(2, 47, 42, .75);
	}

	/* Dropdown no mobile começa contraído */
	.ep-menu .menu-item-has-children.is-collapsed > .sub-menu {
		display: none;
	}

	.ep-menu .menu-item-has-children > a {
		position: relative;
		padding-right: 34px;
	}

	.ep-menu .menu-item-has-children > a::after {
		display: block;
		position: absolute;
		right: 10px;
		top: 50%;
		margin-top: -4px;
		transform: rotate(45deg);
		transition: transform .25s ease;
	}

	.ep-menu .menu-item-has-children.is-collapsed > a::after {
		transform: rotate(-135deg);
	}

	/* Esconde itens de quiz no menu mobile */
	.ep-menu a[href*="quiz-de-nivel"],
	.ep-menu a[href*="teste-de-nivel"] {
		display: none !important;
	}

	.ep-nav .ep-nav__cta {
		display: block;
		margin: 12px 4px 4px;
		text-align: center;
	}

	.ep-header .ep-header__cta {
		margin-left: auto;
	}
}

@media (max-width: 480px) {
	.ep-header__wordmark {
		font-size: .95rem;
	}

	.ep-header .ep-header__cta {
		display: none;
	}
}

@media (max-width: 782px) {
	body.admin-bar .ep-header {
		top: 46px;
	}
}

/* 6. Modal do quiz */
.ep-quiz-modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(1, 33, 29, .72);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s;
}

.ep-quiz-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.ep-quiz-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(960px, 100%);
	height: min(88vh, 920px);
	background: var(--ep-paper-soft);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 40px 100px -20px rgba(1, 33, 29, .6);
	transform: translateY(40px) scale(.96);
	opacity: 0;
	transition: transform .35s cubic-bezier(.22, 1.2, .36, 1), opacity .3s ease;
}

.ep-quiz-modal.is-open .ep-quiz-modal__dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.ep-quiz-modal__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding: 14px 14px 14px 24px;
	background: var(--ep-forest-deep);
	border-bottom: 1px solid rgba(255, 246, 214, .12);
}

.ep-quiz-modal__title {
	justify-self: start;
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	text-transform: capitalize;
	color: var(--ep-paper);
}

/* Cronômetro estilo relógio, centralizado na barra */
.ep-quiz-modal__timer {
	justify-self: center;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 18px;
	border-radius: 999px;
	background: rgba(255, 223, 0, .12);
	border: 1px solid rgba(255, 223, 0, .35);
	color: var(--ep-sun);
	font-weight: 700;
	font-size: .95rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: .1em;
}

.ep-quiz-modal__timer svg {
	width: 16px;
	height: 16px;
	display: block;
}

.ep-quiz-modal__close {
	justify-self: end;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(255, 246, 214, .25);
	border-radius: 50%;
	background: transparent;
	color: var(--ep-paper);
	cursor: pointer;
	transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.ep-quiz-modal__close svg {
	width: 16px;
	height: 16px;
	display: block;
}

.ep-quiz-modal__close:hover,
.ep-quiz-modal__close:focus-visible {
	background: var(--ep-sun);
	border-color: var(--ep-sun);
	color: var(--ep-forest-deep);
	transform: rotate(90deg);
}

.ep-quiz-modal__content {
	flex: 1;
	overflow-y: auto;
	padding: 32px;
	background: var(--ep-paper-soft);
}

/* Efeito de parabéns ao finalizar o quiz */
.ep-quiz-modal__congrats {
	position: absolute;
	inset: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(1, 33, 29, .94);
	backdrop-filter: blur(6px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .4s ease;
}

.ep-quiz-modal__congrats.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.ep-quiz-modal__congrats-box {
	text-align: center;
	padding: 24px;
	transform: translateY(24px) scale(.9);
	transition: transform .5s cubic-bezier(.22, 1.2, .36, 1);
}

.ep-quiz-modal__congrats.is-visible .ep-quiz-modal__congrats-box {
	transform: translateY(0) scale(1);
}

.ep-quiz-modal__congrats-emoji {
	display: block;
	font-size: 4.5rem;
	margin: 0 0 18px;
	animation: ep-congrats-bounce 1.2s ease-in-out infinite;
}

@keyframes ep-congrats-bounce {
	0%, 100% { transform: translateY(0) rotate(-6deg); }
	50% { transform: translateY(-14px) rotate(6deg); }
}

.ep-quiz-modal__congrats-title {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: clamp(2rem, 6vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ep-sun);
	margin: 0 0 10px;
}

.ep-quiz-modal__congrats-text {
	color: rgba(255, 246, 214, .9);
	font-size: 1.1rem;
	margin: 0;
}

.ep-quiz-modal__congrats-confetti {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.ep-quiz-modal__congrats-confetti span {
	position: absolute;
	top: -16px;
	width: 10px;
	height: 16px;
	border-radius: 2px;
	opacity: 0;
}

.ep-quiz-modal__congrats.is-visible .ep-quiz-modal__congrats-confetti span {
	opacity: 1;
	animation: ep-confetti-fall linear forwards;
}

.ep-quiz-modal__congrats-confetti span:nth-child(1)  { left: 4%;  background: var(--ep-sun);      animation-duration: 2.3s; animation-delay: 0s; }
.ep-quiz-modal__congrats-confetti span:nth-child(2)  { left: 12%; background: var(--ep-forest-brand); animation-duration: 2.8s; animation-delay: .25s; }
.ep-quiz-modal__congrats-confetti span:nth-child(3)  { left: 20%; background: var(--ep-brblue-soft); animation-duration: 2.1s; animation-delay: .1s; }
.ep-quiz-modal__congrats-confetti span:nth-child(4)  { left: 28%; background: var(--ep-sun);      animation-duration: 2.9s; animation-delay: .4s; }
.ep-quiz-modal__congrats-confetti span:nth-child(5)  { left: 36%; background: var(--ep-forest-brand); animation-duration: 2.2s; animation-delay: .15s; }
.ep-quiz-modal__congrats-confetti span:nth-child(6)  { left: 44%; background: var(--ep-brblue-soft); animation-duration: 2.7s; animation-delay: .3s; }
.ep-quiz-modal__congrats-confetti span:nth-child(7)  { left: 52%; background: var(--ep-sun);      animation-duration: 2.4s; animation-delay: .05s; }
.ep-quiz-modal__congrats-confetti span:nth-child(8)  { left: 60%; background: var(--ep-forest-brand); animation-duration: 2.6s; animation-delay: .35s; }
.ep-quiz-modal__congrats-confetti span:nth-child(9)  { left: 68%; background: var(--ep-brblue-soft); animation-duration: 2.5s; animation-delay: .2s; }
.ep-quiz-modal__congrats-confetti span:nth-child(10) { left: 76%; background: var(--ep-sun);      animation-duration: 2.2s; animation-delay: .45s; }
.ep-quiz-modal__congrats-confetti span:nth-child(11) { left: 84%; background: var(--ep-forest-brand); animation-duration: 2.8s; animation-delay: .1s; }
.ep-quiz-modal__congrats-confetti span:nth-child(12) { left: 92%; background: var(--ep-brblue-soft); animation-duration: 2.4s; animation-delay: .3s; }
.ep-quiz-modal__congrats-confetti span:nth-child(13) { left: 97%; background: var(--ep-sun);      animation-duration: 2.6s; animation-delay: .15s; }
.ep-quiz-modal__congrats-confetti span:nth-child(14) { left: 8%;  background: var(--ep-brblue-soft); animation-duration: 2.9s; animation-delay: .5s; }

@keyframes ep-confetti-fall {
	0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
	80%  { opacity: 1; }
	100% { transform: translateY(120vh) rotate(720deg); opacity: 0; }
}

/* Cronômetro verde quando o quiz termina */
.ep-quiz-modal__timer.is-done {
	background: rgba(0, 156, 59, .18);
	border-color: rgba(0, 156, 59, .45);
	color: #7ee2a8;
}

@media (max-width: 640px) {
	.ep-quiz-modal {
		padding: 12px;
	}

	.ep-quiz-modal__dialog {
		height: 92vh;
		border-radius: 20px;
	}
}

/* 6.1 Estilos do Quiz (QSM) dentro do modal — mesmo wrapper usado na página dedicada */
.questionario-nivel .qsm-quiz-container.qsm-quiz-container-1.qmn_quiz_container.mlw_qmn_quiz.quiz_theme_default {
	padding-left: 8px;
	padding-right: 8px;
}

@media screen and (min-width: 1024px) {
	.questionario-nivel .qsm-quiz-container.qsm-quiz-container-1.qmn_quiz_container.mlw_qmn_quiz.quiz_theme_default {
		padding-left: 15% !important;
		padding-right: 15% !important;
	}
}

.questionario-nivel img.qsm-multiple-choice-img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 220px !important;
	object-fit: contain !important;
	border: solid 1px #aaaaaa !important;
	border-radius: 15px !important;
	padding: 10px !important;
}

/* Opções com imagem sempre em 2 colunas */
.questionario-nivel .qmn_radio_answers:has(.qmn_image_option) {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 14px !important;
}

.questionario-nivel .qmn_radio_answers .qmn_image_option {
	width: 100% !important;
	margin: 0 !important;
}

.questionario-nivel .qmn_image_option label.qsm-input-label {
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
}

@media (max-width: 640px) {
	.questionario-nivel img.qsm-multiple-choice-img {
		max-height: 150px !important;
	}
}

.questionario-nivel img.qsm-multiple-choice-img:hover {
	background: #acc1b2;
}

/* Zoom da imagem do quiz (hover no desktop, toque no mobile) */
.ep-quiz-zoom {
	position: fixed;
	inset: 0;
	z-index: 3000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: transparent;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s;
	pointer-events: none;
}

.ep-quiz-zoom.is-open {
	opacity: 1;
	visibility: visible;
}

.ep-quiz-zoom.is-locked {
	pointer-events: auto;
	background: rgba(1, 33, 29, .65);
	backdrop-filter: blur(6px);
}

.ep-quiz-zoom__img {
	position: absolute;
	left: var(--ep-qz-x, 50%);
	top: var(--ep-qz-y, 50%);
	transform: translate(-50%, -50%);
	width: 380px;
	height: 380px;
	object-fit: contain;
	border-radius: 16px;
	background: #fff;
	padding: 12px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
	transition: left .08s linear, top .08s linear;
}

@media (max-width: 768px) {
	.ep-quiz-zoom__img {
		position: relative;
		left: auto;
		top: auto;
		transform: none;
		width: auto;
		height: auto;
		max-width: 92vw;
		max-height: 90vh;
		padding: 16px;
		box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7);
	}
}

.questionario-nivel .qsm-quiz-container input[type=checkbox],
.questionario-nivel .qsm-quiz-container input[type=radio] {
	vertical-align: text-top !important;
	margin-top: 5px;
	transform: scale(1.6);
	margin-right: 10px !important;
}

.questionario-nivel label.qsm-input-label {
	font-size: 18px !important;
	font-family: montserrat;
	color: #4a754e;
	font-weight: 600 !important;
}

.questionario-nivel .quiz_section .qmn_image_option {
	height: unset !important;
}

@media screen and (min-width: 920px) {
	.questionario-nivel .quiz_section .qmn_image_option {
		width: unset !important;
	}
}

.questionario-nivel .quiz_section.qsm-question-wrapper {
	border: solid 1px #ccc;
	border-radius: 15px;
	padding: 25px;
	margin-top: 20px;
	margin-bottom: 20px;
}

/* 8. Botão flutuante do WhatsApp */
.ep-whatsapp-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 1500;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .65);
	transition: transform .25s ease, box-shadow .25s ease;
}

.ep-whatsapp-float::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(37, 211, 102, .8);
	animation: ep-wa-ping 2.4s ease-out infinite;
	pointer-events: none;
}

@keyframes ep-wa-ping {
	0% { transform: scale(1); opacity: .9; }
	100% { transform: scale(1.6); opacity: 0; }
}

.ep-whatsapp-float:hover {
	transform: scale(1.08);
	box-shadow: 0 20px 44px -8px rgba(37, 211, 102, .75);
	color: #fff;
}

.ep-whatsapp-float svg {
	width: 30px;
	height: 30px;
	display: block;
}

.ep-whatsapp-float__tooltip {
	position: absolute;
	right: calc(100% + 14px);
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--ep-forest-deep);
	font-size: .85rem;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 12px 30px -10px rgba(1, 33, 29, .3);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}

.ep-whatsapp-float:hover .ep-whatsapp-float__tooltip,
.ep-whatsapp-float:focus-visible .ep-whatsapp-float__tooltip {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

@media (max-width: 640px) {
	.ep-whatsapp-float {
		right: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}

	.ep-whatsapp-float svg {
		width: 26px;
		height: 26px;
	}

	.ep-whatsapp-float__tooltip {
		display: none;
	}
}

/* 7. Acessibilidade — reduzir movimento */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
