/* Modal do Quiz Auditivo — fiel ao design aprovado (lp_html/index.html). */

.pse-quiz-overlay {
	position: fixed;
	inset: 0;
	background: rgba(6, 41, 77, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 100000;
	font-family: 'DM Sans', sans-serif;
}
.pse-quiz-overlay[hidden] { display: none; }

.pse-quiz-modal {
	background: #fff;
	border-radius: 20px;
	max-width: 620px;
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	padding: 44px 44px 36px;
	position: relative;
	box-shadow: 0 20px 60px rgba(6, 41, 77, 0.35);
}

.pse-quiz-fechar {
	position: absolute;
	top: 18px;
	right: 20px;
	width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	color: #06294D;
	cursor: pointer;
	border-radius: 50%;
}
.pse-quiz-fechar:hover { background: #F5F6F8; }

.pse-quiz-label {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	color: #0B5ED7;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.pse-quiz-barra {
	height: 8px;
	background: #EAF2FC;
	border-radius: 50px;
	overflow: hidden;
	margin-bottom: 32px;
}
.pse-quiz-fill {
	height: 100%;
	width: 12%;
	background: #0B5ED7;
	border-radius: 50px;
	transition: width .4s ease;
}

.pse-quiz-modal h3 {
	font-family: 'Cormorant Garamond', serif;
	color: #06294D;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.12;
	margin: 0 0 26px;
}

.pse-quiz-opcoes {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 32px;
}
.pse-quiz-opcao {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	font-weight: 500;
	text-align: left;
	padding: 18px 24px;
	border-radius: 14px;
	border: 2px solid #EAF2FC;
	background: #fff;
	color: #06294D;
	cursor: pointer;
	transition: all .18s ease;
	min-height: 48px;
}
.pse-quiz-opcao:hover,
.pse-quiz-opcao.ativa {
	border-color: #0B5ED7;
	background: #EAF2FC;
}

.pse-quiz-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.pse-quiz-voltar,
.pse-quiz-voltar-form {
	background: none;
	border: none;
	color: #6b7683;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	cursor: pointer;
	text-decoration: underline;
	padding: 8px 0;
}
.pse-quiz-voltar:hover,
.pse-quiz-voltar-form:hover { color: #06294D; }
.pse-quiz-voltar.oculto { visibility: hidden; }

.pse-quiz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: 'DM Sans', sans-serif;
	font-weight: 700;
	font-size: 18px;
	padding: 16px 36px;
	border-radius: 50px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all .2s ease;
	min-height: 48px;
	background: #0B5ED7;
	color: #fff;
}
.pse-quiz-btn:hover { background: #06294D; color: #fff; }

/* Formulário final */
.pse-quiz-intro {
	color: #3c4650;
	font-size: 17px;
	line-height: 1.6;
	margin: 0 0 24px;
}
.pse-quiz-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.pse-quiz-form input[type="text"],
.pse-quiz-form input[type="email"],
.pse-quiz-form input[type="tel"] {
	font-family: 'DM Sans', sans-serif;
	font-size: 17px;
	padding: 15px 18px;
	border-radius: 12px;
	border: 2px solid #EAF2FC;
	background: #fff;
	color: #262A2E;
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
}
.pse-quiz-form input:focus {
	border-color: #0B5ED7;
	outline: none;
}
.pse-quiz-consent {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	color: #6b7683;
	cursor: pointer;
}
.pse-quiz-consent input {
	width: 20px;
	height: 20px;
	accent-color: #0B5ED7;
	flex-shrink: 0;
}
.pse-quiz-consent a {
	color: #0B5ED7;
	text-decoration: underline;
}
.pse-quiz-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}
.pse-quiz-erro {
	color: #b3261e;
	font-size: 15px;
	line-height: 1.5;
	min-height: 1em;
}

/* Conclusão */
.pse-quiz-done {
	text-align: center;
	padding: 12px 0;
}
.pse-quiz-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #3C9A5F;
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	margin: 0 auto 22px;
}
.pse-quiz-done h3 { margin-bottom: 14px; }
.pse-quiz-done-texto p {
	color: #3c4650;
	font-size: 17px;
	line-height: 1.6;
	margin: 0 0 8px;
}
.pse-quiz-done .pse-quiz-btn { margin-top: 22px; }

/* Bloqueia o scroll da página com o modal aberto */
body.pse-quiz-aberto { overflow: hidden; }

/* ------------------------------------------------------------------
   Blindagem contra estilos globais do tema/kit.
   O reset.css do Hello Elementor pinta qualquer <button> de rosa (#c36)
   e o Global Kit aplica border-radius:50px/padding a todos os botões —
   ambos com especificidade maior que uma classe simples. As regras
   abaixo usam o ID do overlay para garantir o design aprovado (lp_html).
   ------------------------------------------------------------------ */
#pse-quiz-overlay .pse-quiz-fechar,
#pse-quiz-overlay .pse-quiz-fechar:hover,
#pse-quiz-overlay .pse-quiz-fechar:focus {
	background: transparent;
	border: none;
	color: #06294D;
	font-size: 30px;
	font-weight: 400;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
}
#pse-quiz-overlay .pse-quiz-fechar:hover { background: #F5F6F8; }

#pse-quiz-overlay .pse-quiz-opcao,
#pse-quiz-overlay .pse-quiz-opcao:focus {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	font-weight: 500;
	text-align: left;
	padding: 18px 24px;
	border-radius: 14px;
	border: 2px solid #EAF2FC;
	background: #fff;
	color: #06294D;
}
#pse-quiz-overlay .pse-quiz-opcao:hover,
#pse-quiz-overlay .pse-quiz-opcao.ativa,
#pse-quiz-overlay .pse-quiz-opcao.ativa:focus {
	border-color: #0B5ED7;
	background: #EAF2FC;
	color: #06294D;
}

#pse-quiz-overlay .pse-quiz-voltar,
#pse-quiz-overlay .pse-quiz-voltar-form,
#pse-quiz-overlay .pse-quiz-voltar:focus,
#pse-quiz-overlay .pse-quiz-voltar-form:focus {
	background: none;
	border: none;
	color: #6b7683;
	font-size: 16px;
	font-weight: 400;
	padding: 8px 0;
	border-radius: 0;
	text-decoration: underline;
}
#pse-quiz-overlay .pse-quiz-voltar:hover,
#pse-quiz-overlay .pse-quiz-voltar-form:hover {
	background: none;
	color: #06294D;
}

#pse-quiz-overlay .pse-quiz-btn,
#pse-quiz-overlay .pse-quiz-btn:focus {
	font-size: 18px;
	font-weight: 700;
	padding: 16px 36px;
	border-radius: 50px;
	border: 2px solid transparent;
	background: #0B5ED7;
	color: #fff;
}
#pse-quiz-overlay .pse-quiz-btn:hover {
	background: #06294D;
	color: #fff;
}

@media (max-width: 600px) {
	.pse-quiz-modal { padding: 38px 24px 28px; }
	.pse-quiz-modal h3 { font-size: 23px; }
	.pse-quiz-btn { width: 100%; }
	.pse-quiz-foot { flex-wrap: wrap; }
}
