/**
 * Alkaloid Quiz – optimizat tabletă landscape
 */

/* Full-page când pagina conține shortcode-ul */
body.alkaloid-quiz-page {
	margin: 0;
	overflow: hidden;
	height: 100dvh;
	height: 100vh;
}

body.alkaloid-quiz-page #content,
body.alkaloid-quiz-page .site-main,
body.alkaloid-quiz-page .entry-content,
body.alkaloid-quiz-page .elementor-widget-shortcode {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
}

body.alkaloid-quiz-page #alkaloid-quiz-app {
	height: 100dvh;
	height: 100vh;
	width: 100%;
}

.aq-app {
	--aq-primary: #0076bc;
	--aq-primary-dark: #005f96;
	--aq-bg: #f4f7fa;
	--aq-panel-bg: #ffffff;
	--aq-text: #1a2b3c;
	--aq-muted: #5a6d7e;
	--aq-border: #d0dce6;
	--aq-radius: 8px;
	--aq-header-h: 72px;
	--aq-footer-h: 140px;

	box-sizing: border-box;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.45;
	color: var(--aq-text);
	background: var(--aq-bg);
	display: flex;
	flex-direction: column;
	height: 100dvh;
	height: 100vh;
	min-height: 100dvh;
	width: 100%;
	position: relative;
	overflow: hidden;
}

.aq-app *,
.aq-app *::before,
.aq-app *::after {
	box-sizing: border-box;
}

.aq-screen {
	display: flex;
	flex-direction: column;
	flex: 1;
	height: 100%;
	min-height: 0;
}

.aq-screen--hidden,
.aq-screen[hidden] {
	display: none !important;
}

/* --- Welcome (ecran 1) --- */
.aq-screen--welcome {
	background: transparent;
}

.aq-welcome {
	position: relative;
	flex: 1;
	width: 100%;
	height: 100%;
	min-height: 100dvh;
	min-height: 100vh;
	background-color: #eef2f6;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	overflow: hidden;
}

/* Logo-uri brand (ecran 1 + 2) */
.aq-brand-logos {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-shrink: 0;
}

.aq-welcome .aq-brand-logos {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	padding: clamp(1rem, 3vh, 2.5rem) clamp(1.25rem, 4vw, 3.5rem);
	pointer-events: none;
}

.aq-brand-logos__xifia {
	display: block;
	width: auto;
	height: auto;
	max-height: 90px;
	object-fit: contain;
	background: transparent;
}

.aq-brand-logos__alkaloid {
	display: block;
	width: auto;
	height: auto;
	max-height: 52px;
	object-fit: contain;
	background: transparent;
}

.aq-welcome__content {
	position: absolute;
	z-index: 2;
	top: 0;
	right: 0;
	bottom: 0;
	width: 60%;
	min-width: 280px;
	max-width: 670px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(5rem, 12vh, 7rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 6vh, 3rem) clamp(1rem, 3vw, 2rem);
	box-sizing: border-box;
}

.aq-welcome__headline {
	margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
	padding: 0;
	font-size: 46px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--aq-primary);
	letter-spacing: -0.01em;
}

.aq-welcome__headline-line {
	display: block;
}

.aq-welcome__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 0.85rem 1.75rem;
	min-width: 220px;
	border: none;
	border-radius: 6px;
	background: var(--aq-primary);
	color: #fff;
	font-family: inherit;
	font-size: clamp(0.875rem, 1.6vw, 1rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	box-shadow: 0 4px 14px rgba(0, 118, 188, 0.28);
}

.aq-welcome__cta:hover {
	background: var(--aq-primary-dark);
}

.aq-welcome__cta:active {
	transform: scale(0.98);
}

.aq-welcome__cta-label {
	line-height: 1;
}

.aq-welcome__cta-icon {
	width: 0;
	height: 0;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid #fff;
	flex-shrink: 0;
}

@media (max-width: 767px), (orientation: portrait) {
	.aq-welcome__content {
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		align-items: center;
		text-align: center;
		padding-top: clamp(6rem, 18vh, 8rem);
	}

	.aq-welcome__headline {
		text-align: center;
		font-size: clamp(1.5rem, 6vw, 46px);
	}
}

/* --- Consent (ecran 2) --- */
.aq-screen--consent {
	background: #fff;
}

.aq-consent-screen {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100dvh;
	min-height: 100vh;
	background: #fff;
}

.aq-consent-screen__scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: clamp(1rem, 2.5vh, 1.75rem) clamp(1.25rem, 4vw, 3rem) 1rem;
	-webkit-overflow-scrolling: touch;
}

.aq-consent-screen .aq-brand-logos {
	margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
}

.aq-consent-screen__title {
	margin: 0 auto clamp(1rem, 2.5vh, 1.5rem);
	max-width: 1100px;
	text-align: center;
	font-size: clamp(0.8125rem, 1.5vw, 1.125rem);
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--aq-primary);
}

.aq-consent__fields {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(0.5rem, 1.2vw, 0.85rem);
	max-width: 1100px;
	margin: 0 auto clamp(1rem, 2vh, 1.5rem);
}

.aq-consent-field input {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1.5px solid var(--aq-primary);
	border-radius: 8px;
	background: #fff;
	color: var(--aq-primary);
	font-family: inherit;
	font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
	font-weight: 500;
	text-align: center;
	outline: none;
	transition: box-shadow 0.15s ease;
}

.aq-consent-field input::placeholder {
	color: var(--aq-primary);
	opacity: 0.95;
}

.aq-consent-field input:focus {
	box-shadow: 0 0 0 3px rgba(0, 118, 188, 0.2);
}

.aq-consent-field.is-error input {
	border-color: #d32f2f;
	color: #d32f2f;
	background: #fff5f5;
}

.aq-consent-field.is-error input::placeholder {
	color: #d32f2f;
}

.aq-consent__intro {
	max-width: 1100px;
	margin: 0 auto clamp(1rem, 2vh, 1.25rem);
	color: var(--aq-primary);
	font-size: clamp(0.75rem, 1.1vw, 0.875rem);
	line-height: 1.45;
}

.aq-consent__intro-lead {
	margin: 0 0 0.5rem;
	font-weight: 700;
}

.aq-consent__intro-list {
	margin: 0;
	padding-left: 1.1rem;
}

.aq-consent__intro-list li {
	margin-bottom: 0.35rem;
}

.aq-consent__items {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 1100px;
	counter-reset: none;
}

.aq-consent-item {
	margin-bottom: clamp(0.75rem, 1.5vh, 1rem);
	color: var(--aq-primary);
}

.aq-consent-item__text {
	margin: 0 0 0.5rem;
	font-size: clamp(0.75rem, 1.05vw, 0.8125rem);
	line-height: 1.4;
}

.aq-consent-item__num {
	font-weight: 700;
	margin-right: 0.15rem;
}

.aq-consent-item__yn {
	display: flex;
	gap: 1.25rem;
	padding-left: 1.25rem;
}

.aq-consent-yn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
	font-weight: 700;
	color: var(--aq-primary);
	text-transform: uppercase;
	user-select: none;
}

.aq-consent-yn input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

/* Pătrat tip checkbox (input-ul rămâne radio) */
.aq-consent-yn__box {
	display: block;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid #1a1a1a;
	border-radius: 2px;
	background: #fff;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.aq-consent-yn__label {
	line-height: 1;
}

.aq-consent-yn input:checked + .aq-consent-yn__box {
	border-color: var(--aq-primary);
	background: var(--aq-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 10px;
}

.aq-consent-yn input:focus-visible + .aq-consent-yn__box {
	outline: 2px solid var(--aq-primary);
	outline-offset: 2px;
}

.aq-consent-item__yn.is-error .aq-consent-yn__box {
	border-color: #d32f2f;
}

.aq-consent-item__yn.is-error .aq-consent-yn__label {
	color: #d32f2f;
}

.aq-consent-item.is-error .aq-consent-item__text {
	color: #d32f2f;
}

.aq-consent-screen__footer {
	flex-shrink: 0;
	display: flex;
	justify-content: flex-end;
	padding: 0.75rem clamp(1.25rem, 4vw, 3rem) clamp(1rem, 2.5vh, 1.75rem);
	background: #fff;
	border-top: 1px solid rgba(0, 118, 188, 0.12);
}

.aq-consent-screen__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 0.85rem 2rem;
	border: none;
	border-radius: 6px;
	background: var(--aq-primary);
	color: #fff;
	font-family: inherit;
	font-size: clamp(0.875rem, 1.4vw, 1rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
	box-shadow: 0 4px 14px rgba(0, 118, 188, 0.25);
}

.aq-consent-screen__cta:hover {
	background: var(--aq-primary-dark);
}

.aq-consent-screen__cta:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.aq-consent-screen__cta-icon {
	width: 0;
	height: 0;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid #fff;
}

.aq-screen--consent .aq-error {
	max-width: 1100px;
	margin: 0.75rem auto 0;
	padding: 0.65rem 1rem;
	text-align: center;
	background: #ffebee;
	border: 1px solid #ef9a9a;
	border-radius: 6px;
	color: #c62828;
	font-weight: 600;
}

@media (max-width: 900px) {
	.aq-consent__fields {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.aq-consent__fields {
		grid-template-columns: 1fr;
	}
}

/* Header (results – legacy) */
.aq-header {
	flex: 0 0 var(--aq-header-h);
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 1.5rem;
	background: var(--aq-panel-bg);
	border-bottom: 1px solid var(--aq-border);
}

.aq-header__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.aq-logo {
	display: block;
	object-fit: contain;
}

/* Main layouts */
.aq-main {
	flex: 1;
	padding: 1rem 1.5rem;
	overflow: auto;
}

.aq-main--centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 1.5rem;
}

.aq-main--consent {
	max-width: 720px;
	margin: 0 auto;
}

/* --- Quiz (ecran 3) --- */
.aq-screen--quiz {
	background: #fff;
}

.aq-quiz-layout {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100dvh;
	min-height: 100vh;
	padding: clamp(0.65rem, 1.5vh, 1rem) clamp(0.75rem, 2vw, 1.25rem);
	gap: clamp(0.5rem, 1.2vh, 0.85rem);
	overflow: hidden;
}

.aq-quiz-box {
	border: 3px solid var(--aq-primary);
	border-radius: 20px;
	background: #fff;
}

.aq-quiz-top {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: 0.65rem 1.25rem;
	flex-shrink: 0;
}

.aq-quiz-top__logo {
	display: block;
	width: auto;
	object-fit: contain;
	background: transparent;
}

.aq-quiz-top__logo--xifia {
	max-height: 60px;
}

.aq-quiz-top__logo--alkaloid {
	max-height: 30px;
}

.aq-quiz-top__center {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.65rem 1rem;
	min-width: 0;
	text-align: center;
}

.aq-quiz-top__title {
	margin: 0;
	font-size: clamp(0.875rem, 1.5vw, 1.125rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--aq-primary);
	white-space: nowrap;
}

.aq-quiz-top__progress {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
}

.aq-quiz-top__progress-text {
	margin: 0;
	font-size: clamp(0.75rem, 1.1vw, 0.875rem);
	font-weight: 600;
	color: var(--aq-primary);
}

.aq-quiz-dots {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
}

.aq-quiz-dots li {
	display: inline-flex;
	align-items: center;
}

.aq-quiz-dots__line {
	display: block;
	width: clamp(14px, 2vw, 28px);
	height: 2px;
	background: #b2b2b2;
}

.aq-quiz-dots li.is-done .aq-quiz-dots__line,
.aq-quiz-dots li.is-active .aq-quiz-dots__line {
	background: var(--aq-primary);
}

.aq-quiz-dots__dot {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #b2b2b2;
	background: #fff;
	box-sizing: border-box;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.aq-quiz-dots li.is-active .aq-quiz-dots__dot,
.aq-quiz-dots li.is-done .aq-quiz-dots__dot {
	border-color: var(--aq-primary);
	background: var(--aq-primary);
}

.aq-quiz-main {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: 33% 67%;
	gap: clamp(0.5rem, 1.2vh, 0.85rem);
}

.aq-quiz-box--scenario,
.aq-quiz-box--question {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: clamp(0.85rem, 1.8vh, 1.25rem);
	overflow: hidden;
}

.aq-quiz-box__heading {
	margin: 0 0 0.75rem;
	font-size: clamp(0.875rem, 1.3vw, 1rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--aq-primary);
}

.aq-quiz-scenario {
	flex: 1;
	overflow-y: auto;
	line-height: 1.5;
	-webkit-overflow-scrolling: touch;
}

.aq-quiz-scenario .aq-scenario-body,
.aq-quiz-scenario .aq-scenario-body p {
	margin: 0 0 0.65rem;
	font-size: 16px;
	color: #6a6a6a;
}

.aq-quiz-scenario .aq-scenario-body strong {
	color: #0076bc;
	font-weight: 700;
}

.aq-quiz-scenario .aq-scenario-body ul,
.aq-quiz-scenario .aq-scenario-body ol {
	margin: 0 0 0.65rem;
	padding-left: 1.25rem;
}

.aq-quiz-scenario .aq-scenario-body li {
	margin-bottom: 0.35rem;
}

.aq-quiz-scenario .aq-scenario-body li:last-child {
	margin-bottom: 0;
}

.aq-quiz-q__dim {
	margin: 0;
	font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--aq-primary);
}

.aq-quiz-q__text {
	margin: 0.65rem 0 1rem;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--aq-primary);
}

.aq-quiz-options {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

/* Forțat peste stiluri temă / Elementor pe butoane */
#alkaloid-quiz-app .aq-quiz-options .aq-quiz-option {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: flex !important;
	align-items: center !important;
	gap: 0.75rem !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0.75rem 1rem !important;
	text-align: left !important;
	text-decoration: none !important;
	text-transform: none !important;
	box-shadow: none !important;
	outline: none !important;
	border: 2px solid #0076bc !important;
	border-radius: 20px !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	background-image: none !important;
	color: #0076bc !important;
	font-family: inherit !important;
	font-size: clamp(0.8125rem, 1.1vw, 0.9375rem) !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	cursor: pointer !important;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

#alkaloid-quiz-app .aq-quiz-options .aq-quiz-option:hover,
#alkaloid-quiz-app .aq-quiz-options .aq-quiz-option:focus-visible {
	border-color: #0076bc !important;
	background: rgba(0, 118, 188, 0.08) !important;
	background-color: rgba(0, 118, 188, 0.08) !important;
	color: #0076bc !important;
}

#alkaloid-quiz-app .aq-quiz-options .aq-quiz-option.is-selected,
#alkaloid-quiz-app .aq-quiz-options .aq-quiz-option.is-selected:hover {
	border-color: #0076bc !important;
	background: #0076bc !important;
	background-color: #0076bc !important;
	color: #ffffff !important;
}

#alkaloid-quiz-app .aq-quiz-options .aq-quiz-option__letter {
	flex-shrink: 0 !important;
	font-weight: 700 !important;
	font-size: 30px !important;
	line-height: 1 !important;
	min-width: 2rem !important;
	color: inherit !important;
}

#alkaloid-quiz-app .aq-quiz-options .aq-quiz-option__label {
	flex: 1 !important;
	font-size: 18px !important;
	color: #6a6a6a !important;
}

#alkaloid-quiz-app .aq-quiz-options .aq-quiz-option.is-selected .aq-quiz-option__letter,
#alkaloid-quiz-app .aq-quiz-options .aq-quiz-option.is-selected .aq-quiz-option__label {
	color: #ffffff !important;
}

.aq-quiz-q__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
	padding-top: 0.85rem;
	flex-shrink: 0;
}

.aq-quiz-q__cta,
.aq-feedback-modal__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 0.75rem 1.75rem;
	border: none;
	border-radius: 6px;
	background: var(--aq-primary);
	color: #fff;
	font-family: inherit;
	font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
	box-shadow: 0 4px 12px rgba(0, 118, 188, 0.25);
}

.aq-quiz-q__cta:hover:not(:disabled),
.aq-feedback-modal__cta:hover {
	background: var(--aq-primary-dark);
}

.aq-quiz-q__cta:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}

.aq-quiz-q__cta-icon {
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 10px solid #fff;
}

.aq-quiz-algorithm {
	flex-shrink: 0;
	padding: 0.85rem 1rem 1rem;
}

.aq-quiz-algorithm__title {
	margin: 0 0 0.75rem;
	text-align: center;
	font-size: 30px;
	font-weight: 700;
	text-transform: inherit;
	color: var(--aq-primary);
	line-height: 1.2;
}

.aq-quiz-algorithm__track {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0;
}

.aq-quiz-algorithm__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin: 0 clamp(4px, 0.6vw, 10px);
	align-self: center;
	margin-bottom: calc(18px * 1.15 + 0.35rem);
}

.aq-quiz-algorithm__arrow img {
	display: block;
	width: clamp(36px, 5vw, 66px);
	height: auto;
}

.aq-quiz-algorithm__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex-shrink: 0;
	max-width: 160px;
	opacity: 1;
}

.aq-quiz-algorithm__step.is-active .aq-quiz-algorithm__bubble {
	box-shadow: 0 0 0 3px rgba(0, 118, 188, 0.35);
}

.aq-quiz-algorithm__bubble {
	width: 77px;
	height: 77px;
	border-radius: 50%;
	background: var(--aq-step-color, var(--aq-primary));
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.aq-quiz-algorithm__d {
	color: #fff;
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
}

.aq-quiz-algorithm__label {
	margin-top: 0.35rem;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--aq-step-color, var(--aq-primary));
	max-width: 100%;
}

.aq-feedback-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.aq-feedback-modal[hidden] {
	display: none !important;
}

.aq-feedback-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 40, 70, 0.45);
}

.aq-feedback-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(520px, 100%);
	max-height: 80vh;
	overflow-y: auto;
	padding: 1.5rem 1.75rem;
	border: 3px solid var(--aq-primary);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.aq-feedback-modal__title {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--aq-primary);
}

.aq-feedback-modal__body {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--aq-text);
}

.aq-feedback-modal__cta {
	width: 100%;
}

body.aq-modal-open {
	overflow: hidden;
}

/* Dev navigare (?aq_dev=1) */
.aq-dev-nav {
	position: fixed;
	bottom: 12px;
	left: 12px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.5rem;
	border-radius: 8px;
	background: #1a1a1a;
	color: #fff;
	font-family: ui-monospace, monospace;
	font-size: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
	pointer-events: auto;
}

.aq-dev-nav__badge {
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	background: #ff9800;
	color: #000;
	font-weight: 700;
	font-size: 10px;
	letter-spacing: 0.05em;
}

.aq-dev-nav__status {
	min-width: 88px;
	text-align: center;
	opacity: 0.9;
}

.aq-dev-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 28px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.aq-dev-nav__btn:hover {
	background: rgba(255, 255, 255, 0.15);
}

.aq-dev-nav__case {
	max-width: 200px;
	height: 28px;
	padding: 0 0.35rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	background: #2a2a2a;
	color: #fff;
	font-family: inherit;
	font-size: 11px;
	cursor: pointer;
}

.aq-dev-nav__case:focus {
	outline: 2px solid #ff9800;
	outline-offset: 1px;
}

/* Buttons */
.aq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: var(--aq-radius);
	cursor: pointer;
	transition: opacity 0.15s, background 0.15s;
}

.aq-btn--primary {
	background: var(--aq-primary);
	color: #fff;
}

.aq-btn--primary:hover:not(:disabled) {
	background: var(--aq-primary-dark);
}

.aq-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.aq-section-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

.aq-results-title {
	font-size: 2rem;
	margin: 0;
	color: var(--aq-primary);
}

.aq-results-score {
	font-size: 1.25rem;
	font-weight: 600;
}

.aq-scenario-product {
	margin: 0 0 0.75rem;
	color: var(--aq-primary);
}

.aq-results-marketing {
	max-width: 560px;
	margin: 1rem auto 0;
	font-size: 0.9375rem;
	color: var(--aq-muted);
	line-height: 1.5;
}

.aq-error {
	color: #b00020;
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

.aq-error--hidden,
.aq-error[hidden] {
	display: none;
}

/* Tablet / telefon – layout quiz stack + scroll */
@media (max-width: 900px) {
	.aq-quiz-main {
		grid-template-columns: 1fr;
	}

	.aq-quiz-q__text {
		font-size: clamp(1.125rem, 4vw, 24px);
	}
}

@media (max-width: 768px) {
	body.alkaloid-quiz-page {
		overflow: auto;
		height: auto;
	}

	body.alkaloid-quiz-page #alkaloid-quiz-app,
	.aq-app.aq-screen--quiz,
	.aq-quiz-layout {
		height: auto;
		min-height: 100dvh;
		overflow: visible;
	}

	.aq-quiz-layout {
		padding: 0.5rem;
		gap: 0.5rem;
	}

	.aq-quiz-top {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			'xifia alkaloid'
			'center center';
		gap: 0.5rem;
		padding: 0.5rem 0.75rem;
	}

	.aq-quiz-top__logo--xifia {
		grid-area: xifia;
		justify-self: start;
		max-height: 44px;
	}

	.aq-quiz-top__logo--alkaloid {
		grid-area: alkaloid;
		justify-self: end;
		max-height: 26px;
	}

	.aq-quiz-top__center {
		grid-area: center;
		flex-direction: column;
		gap: 0.35rem;
	}

	.aq-quiz-top__title {
		font-size: 0.75rem;
		white-space: normal;
	}

	.aq-quiz-box--scenario,
	.aq-quiz-box--question {
		min-height: 180px;
		max-height: none;
	}

	.aq-quiz-q__text {
		font-size: 1.125rem;
	}

	#alkaloid-quiz-app .aq-quiz-options .aq-quiz-option__letter {
		font-size: 22px !important;
	}

	#alkaloid-quiz-app .aq-quiz-options .aq-quiz-option__label {
		font-size: 16px !important;
	}

	.aq-quiz-algorithm__title {
		font-size: 1.25rem;
	}

	.aq-quiz-algorithm__bubble {
		width: 52px;
		height: 52px;
	}

	.aq-quiz-algorithm__d {
		font-size: 1.125rem;
	}

	.aq-quiz-algorithm__label {
		font-size: 0.625rem;
	}

	.aq-quiz-algorithm__arrow img {
		width: 32px;
	}

	.aq-welcome__headline {
		font-size: clamp(1.35rem, 6vw, 2rem);
	}

	.aq-welcome__content {
		position: relative;
		width: 100%;
		max-width: none;
		padding: 5rem 1rem 2rem;
		align-items: center;
		text-align: center;
	}

	.aq-dev-nav {
		flex-wrap: wrap;
		max-width: calc(100vw - 24px);
	}
}

@media (max-width: 640px) {
	.aq-quiz-algorithm__track {
		flex-wrap: wrap;
		row-gap: 0.75rem;
		justify-content: center;
	}

	.aq-quiz-algorithm__arrow {
		margin-bottom: 0;
	}
}
