/*
 * Kvíz, eredményoldal és presale – a BeA.I Theme tokenjeivel (--beai-*), SPS meleg stílus.
 * Mobil az elsődleges.
 */

/* A kvíz- és eredményoldalakon nincs szükség az alsó kvíz-sávra */
.beai-quiz-page .wp-block-buttons.beai-mobile-bar {
	display: none !important;
}

.beai-quiz-page .beai-footer {
	padding-bottom: 40px !important;
}

/* ------------------------------------------------------------------
 * Kvíz
 * ------------------------------------------------------------------ */

:is(.beai-landing, .editor-styles-wrapper) .beai-quiz-wrap {
	max-width: 640px;
	margin: 28px auto 0 !important;
}

@media (min-width: 1024px) {
	:is(.beai-landing, .editor-styles-wrapper) .beai-quiz-wrap {
		margin-top: 64px !important;
	}
}

.beai-quiz {
	box-sizing: border-box;
	padding: 28px 20px;
	background: var(--beai-surface);
	border: 1px solid var(--beai-border);
	border-radius: var(--beai-card-radius);
	box-shadow: var(--beai-glow);
}

@media (min-width: 768px) {
	.beai-quiz {
		padding: 44px 48px;
	}
}

.beai-quiz__screen {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.beai-quiz__screen[hidden] {
	display: none;
}

.beai-quiz__screen > * {
	margin: 0;
}

.beai-motion .beai-quiz__screen.is-active {
	animation: beai-quiz-in 0.35s ease-out;
}

@keyframes beai-quiz-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.beai-quiz__eyebrow {
	font-size: 11px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--beai-eyebrow);
}

.beai-quiz__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: calc(var(--beai-h1) * 0.8);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -1px;
	outline: none;
}

.beai-quiz__text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--beai-text-muted);
}

.beai-quiz__primary,
.beai-presale__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 54px;
	padding: 15px 26px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--beai-button-text);
	background: var(--beai-button-bg);
	border: 0;
	border-radius: var(--beai-button-radius);
	box-shadow: var(--beai-button-shadow);
	cursor: pointer;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.beai-quiz__primary:hover,
.beai-presale__button:hover {
	color: var(--beai-button-text);
	filter: brightness(1.08);
}

.beai-quiz__primary:disabled {
	opacity: 0.6;
	cursor: wait;
}

@media (min-width: 768px) {
	.beai-quiz__primary {
		width: auto;
		align-self: flex-start;
	}
}

/* Felső sor: Back + haladásjelző */
.beai-quiz__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	min-height: 44px;
}

.beai-quiz__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0;
	font: inherit;
	font-size: 14px;
	color: var(--beai-text-subtle);
	background: none;
	border: 0;
	cursor: pointer;
}

.beai-quiz__back::before {
	content: "←";
}

.beai-quiz__back:hover {
	color: var(--beai-text);
}

.beai-quiz__progress {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	color: var(--beai-accent);
}

.beai-quiz__bar {
	height: 4px;
	margin-top: -8px !important;
	overflow: hidden;
	background: var(--beai-border);
	border-radius: 4px;
}

.beai-quiz__bar span {
	display: block;
	height: 100%;
	background: var(--beai-accent);
	border-radius: 4px;
}

.beai-quiz__question {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	outline: none;
}

@media (min-width: 768px) {
	.beai-quiz__question {
		font-size: 26px;
	}
}

/* Válaszgombok */
.beai-quiz__answers {
	display: grid;
	gap: 10px;
}

.beai-quiz__answer {
	box-sizing: border-box;
	width: 100%;
	min-height: 56px;
	padding: 15px 18px;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
	color: var(--beai-text);
	background: var(--beai-surface-2);
	border: 1px solid var(--beai-border);
	border-radius: 14px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.beai-quiz__answer:hover {
	border-color: var(--beai-border-strong);
	transform: translateY(-1px);
}

.beai-quiz__answer[aria-pressed="true"] {
	background: var(--beai-icon-bg, var(--beai-surface-2));
	border-color: var(--beai-accent);
}

/* Email-kapu */
.beai-quiz__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

.beai-quiz__form > * {
	margin: 0;
}

.beai-quiz__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.beai-quiz__field label {
	font-size: 14px;
	font-weight: 600;
}

.beai-quiz__field input {
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	padding: 0 16px;
	font: inherit;
	font-size: 16px;
	color: var(--beai-text);
	background: var(--beai-surface-2);
	border: 1px solid var(--beai-border-strong);
	border-radius: 12px;
}

.beai-quiz__field input:focus {
	border-color: var(--beai-accent);
	outline: 2px solid var(--beai-focus);
	outline-offset: 1px;
}

.beai-quiz__field input[aria-invalid="true"] {
	border-color: #A3361B;
}

.beai-quiz__error {
	font-size: 14px;
	color: #A3361B;
}

.beai-quiz__error:empty {
	display: none;
}

.beai-quiz__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.beai-quiz__micro,
.beai-quiz__privacy {
	font-size: 13px;
	line-height: 1.55;
	color: var(--beai-text-subtle);
}

.beai-quiz__privacy a {
	color: var(--beai-link);
}

@media (min-width: 768px) {
	.beai-quiz__form .beai-quiz__primary {
		align-self: stretch;
	}
}

/* ------------------------------------------------------------------
 * Eredményoldal
 * ------------------------------------------------------------------ */

:is(.beai-landing, .editor-styles-wrapper) .beai-result {
	max-width: 720px;
	margin: 36px auto 0 !important;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

:is(.beai-landing, .editor-styles-wrapper) .beai-result > *,
.beai-result :is(.beai-result__stop, .beai-result__why, .beai-next-card) > * {
	margin: 0;
}

@media (min-width: 1024px) {
	:is(.beai-landing, .editor-styles-wrapper) .beai-result {
		margin-top: 64px !important;
		gap: 32px;
	}
}

.beai-result .is-style-eyebrow {
	margin-bottom: -12px !important;
}

.beai-result__title {
	font-size: calc(var(--beai-h1) * 0.9);
	line-height: 1.08;
	letter-spacing: -1px;
}

.beai-result__label {
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--beai-accent);
}

.beai-result__stop,
.beai-result__why,
.beai-next-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* „What's stopping you” – kiemelt mondat cetlin */
.beai-result__stop {
	position: relative;
	padding: 22px 22px 22px 40px;
	background: var(--beai-surface-2);
	border: 1px solid var(--beai-border);
	border-radius: 8px;
	box-shadow: var(--beai-glow);
}

.beai-result__stop::before {
	content: "";
	position: absolute;
	left: 22px;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--beai-margin-line, var(--beai-border-strong));
}

.beai-result__stoptext {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
}

.beai-result__why p {
	font-size: 16px;
	line-height: 1.75;
	color: var(--beai-text-muted);
}

/* „Your one next step” – kiemelt kártya */
.beai-next-card {
	padding: 24px 22px;
	background: var(--beai-surface);
	border: 1px solid var(--beai-border-strong);
	border-radius: var(--beai-card-radius);
	box-shadow: var(--beai-button-shadow-sm);
	outline: none;
}

.beai-next-card p {
	font-size: 17px;
	line-height: 1.65;
}

.beai-next-card strong {
	color: var(--beai-accent);
}

@media (min-width: 768px) {
	.beai-result__stop {
		padding: 28px 32px 28px 56px;
	}

	.beai-result__stop::before {
		left: 32px;
	}

	.beai-result__stoptext {
		font-size: 24px;
	}

	.beai-result__why p {
		font-size: 17px;
	}

	.beai-next-card {
		padding: 30px 32px;
	}
}

.beai-result__other {
	text-align: center;
	font-size: 15px;
}

.beai-result__other a {
	color: var(--beai-link);
}

/* ------------------------------------------------------------------
 * Presale
 * ------------------------------------------------------------------ */

.beai-presale {
	display: flex;
	flex-direction: column;
	gap: 18px;
	scroll-margin-top: 24px;
}

.beai-presale > * {
	margin: 0;
}

.beai-presale__card {
	display: grid;
	gap: 24px;
	padding: 28px 22px;
	background: var(--beai-final-bg, var(--beai-surface));
	border: 1px solid var(--beai-border);
	border-radius: 24px;
	box-shadow: var(--beai-glow);
}

.beai-presale__card[hidden] {
	display: none;
}

.beai-presale__cover {
	margin: 0 auto;
	width: 190px;
}

.beai-presale__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 26px 50px rgba(90, 62, 20, 0.25), 0 3px 8px rgba(90, 62, 20, 0.1);
	transform: rotate(-3deg);
}

.beai-presale__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.beai-presale__body > * {
	margin: 0;
}

.beai-presale__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
}

.beai-presale__text,
.beai-presale__plus {
	font-size: 16px;
	line-height: 1.65;
	color: var(--beai-text-muted);
}

.beai-presale__plus strong {
	color: var(--beai-text);
}

.beai-presale__price {
	margin-top: 4px !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 34px;
	font-weight: 600;
	line-height: 1;
	color: var(--beai-accent);
}

.beai-presale__under {
	font-size: 13px;
	text-align: center;
	color: var(--beai-text-subtle);
}

.beai-presale__notnow {
	align-self: center;
	min-height: 44px;
	padding: 0 8px;
	font: inherit;
	font-size: 14px;
	color: var(--beai-text-subtle);
	text-decoration: underline;
	text-underline-offset: 3px;
	background: none;
	border: 0;
	cursor: pointer;
}

.beai-presale__notnow:hover {
	color: var(--beai-text);
}

.beai-presale__madeby {
	padding-top: 18px;
	border-top: 1px solid var(--beai-border);
	font-size: 14px;
	line-height: 1.65;
	font-style: italic;
	color: var(--beai-text-muted);
}

@media (min-width: 768px) {
	.beai-presale__card {
		grid-template-columns: 220px minmax(0, 1fr);
		align-items: start;
		gap: 36px;
		padding: 40px;
	}

	.beai-presale__cover {
		width: 100%;
		margin-top: 8px;
	}

	.beai-presale__title {
		font-size: 26px;
	}

	.beai-presale__button {
		align-self: flex-start;
		width: auto;
	}

	.beai-presale__under,
	.beai-presale__notnow {
		text-align: left;
		align-self: flex-start;
		padding-left: 0;
	}
}

/* ------------------------------------------------------------------
 * Köszönőoldal (/kit-thank-you/)
 * ------------------------------------------------------------------ */

:is(.beai-landing, .editor-styles-wrapper) .beai-ty-wrap {
	max-width: 880px;
	margin: 32px auto 0 !important;
}

@media (min-width: 1024px) {
	:is(.beai-landing, .editor-styles-wrapper) .beai-ty-wrap {
		margin-top: 64px !important;
	}
}

.beai-ty {
	display: grid;
	gap: 28px;
}

.beai-ty__cover {
	width: 180px;
	margin: 0 auto;
}

.beai-ty__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 26px 50px rgba(90, 62, 20, 0.25), 0 3px 8px rgba(90, 62, 20, 0.1);
	transform: rotate(-3deg);
}

.beai-ty__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.beai-ty__body > * {
	margin: 0;
}

.beai-ty__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: calc(var(--beai-h1) * 0.8);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -1px;
}

.beai-ty__text {
	font-size: 17px;
	line-height: 1.65;
	color: var(--beai-text-muted);
}

.beai-ty__type {
	padding: 12px 16px;
	font-weight: 600;
	color: var(--beai-accent);
	background: var(--beai-icon-bg, var(--beai-surface-2));
	border-radius: 12px;
}

.beai-ty__download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 54px;
	padding: 15px 26px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	color: var(--beai-button-text);
	background: var(--beai-button-bg);
	border-radius: var(--beai-button-radius);
	box-shadow: var(--beai-button-shadow);
}

.beai-ty__download:hover {
	color: var(--beai-button-text);
	filter: brightness(1.08);
}

.beai-ty__sent {
	font-size: 14px;
	color: var(--beai-text-subtle);
}

.beai-ty__account {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px !important;
	padding: 22px;
	background: var(--beai-surface);
	border: 1px solid var(--beai-border);
	border-radius: var(--beai-card-radius);
	box-shadow: var(--beai-glow);
}

.beai-ty__account p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--beai-text-muted);
}

.beai-ty__account strong {
	color: var(--beai-text);
}

.beai-ty__secondary {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	margin-top: 6px;
	padding: 0 20px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: var(--beai-button-secondary-text);
	background: var(--beai-button-secondary-bg);
	border: 1px solid var(--beai-button-secondary-border);
	border-radius: var(--beai-button-radius);
}

.beai-ty__help {
	font-size: 14px;
	color: var(--beai-text-subtle);
}

.beai-ty__help a {
	color: var(--beai-link);
}

@media (min-width: 768px) {
	.beai-ty {
		grid-template-columns: 240px minmax(0, 1fr);
		align-items: start;
		gap: 48px;
	}

	.beai-ty__cover {
		width: 100%;
		margin-top: 8px;
	}

	.beai-ty__download {
		width: auto;
		align-self: flex-start;
	}
}
