/* GTM Growth Quiz — step form styles */

.gtm-quiz-page {
	margin: 0;
}

.gtm-quiz {
	--gtm-bg-start: #1a1e4d;
	--gtm-bg-end: #2b2f78;
	--gtm-accent: #e2542f;
	--gtm-card-bg: rgba(255, 255, 255, 0.06);
	--gtm-card-bg-hover: rgba(255, 255, 255, 0.1);
	--gtm-card-border: rgba(255, 255, 255, 0.16);
	--gtm-text: #ffffff;
	--gtm-text-muted: rgba(226, 229, 255, 0.68);

	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	margin-top: -100px;
	justify-content: center;
	padding: 150px 24px 24px 50px;
	background: linear-gradient(155deg, var(--gtm-bg-start), var(--gtm-bg-end));
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.gtm-quiz *,
.gtm-quiz *::before,
.gtm-quiz *::after {
	box-sizing: border-box;
}

.gtm-quiz__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		repeating-linear-gradient(35deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 120px),
		repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 160px);
	opacity: 0.5;
}

.gtm-quiz__shell {
	position: relative;
	width: 100%;
	max-width: 880px;
}

.gtm-quiz__progress-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gtm-text-muted);
}

.gtm-quiz__progress-track {
	position: relative;
	height: 4px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.14);
	overflow: hidden;
	margin-bottom: 40px;
}

.gtm-quiz__progress-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0%;
	background: var(--gtm-accent);
	border-radius: 4px;
	transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.gtm-quiz__form {
	position: relative;
}

.gtm-quiz__step {
	display: none;
	opacity: 0;
}

.gtm-quiz__step.is-active {
	display: block;
	opacity: 1;
}

.gtm-quiz__step.is-entering-forward {
	animation: gtmSlideInForward 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gtm-quiz__step.is-entering-back {
	animation: gtmSlideInBack 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gtm-quiz__step.is-leaving-forward {
	animation: gtmSlideOutForward 0.35s ease forwards;
}

.gtm-quiz__step.is-leaving-back {
	animation: gtmSlideOutBack 0.35s ease forwards;
}

@keyframes gtmSlideInForward {
	from { opacity: 0; transform: translateX(36px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes gtmSlideInBack {
	from { opacity: 0; transform: translateX(-36px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes gtmSlideOutForward {
	from { opacity: 1; transform: translateX(0); }
	to   { opacity: 0; transform: translateX(-36px); }
}
@keyframes gtmSlideOutBack {
	from { opacity: 1; transform: translateX(0); }
	to   { opacity: 0; transform: translateX(36px); }
}

.gtm-quiz__title {
	color: var(--gtm-text);
	font-size: clamp(28px, 4.2vw, 44px);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 16px;
}

.gtm-quiz__title--center {
	text-align: center;
}

.gtm-quiz__subtitle {
	color: var(--gtm-text-muted);
	font-size: 17px;
	margin: 0 0 32px;
}

.gtm-quiz__subtitle--center {
	text-align: center;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.gtm-quiz__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (max-width: 640px) {
	.gtm-quiz__grid {
		grid-template-columns: 1fr;
	}
}

.gtm-quiz__card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 22px;
	background: var(--gtm-card-bg);
	border: 1px solid var(--gtm-card-border);
	border-radius: 14px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.gtm-quiz__card:hover {
	background: var(--gtm-card-bg-hover);
	transform: translateY(-1px);
}

.gtm-quiz__card:has(.gtm-quiz__input:checked) {
	border-color: var(--gtm-accent);
	background: rgba(226, 84, 47, 0.14);
}

.gtm-quiz__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.gtm-quiz__icon {
	font-size: 26px;
	line-height: 1;
	flex: none;
}

.gtm-quiz__label {
	color: var(--gtm-text);
	font-size: 16px;
	font-weight: 700;
}

.gtm-quiz__errors {
	min-height: 20px;
	color: #ffb4a3;
	font-size: 13px;
	margin-top: 12px;
}

.gtm-quiz__back {
	margin-top: 28px;
	background: none;
	border: none;
	color: var(--gtm-text-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 0;
}

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

/* Result / lead capture step */

.gtm-quiz__step--result {
	text-align: left;
}

.gtm-quiz__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	border: 1px solid rgba(226, 84, 47, 0.5);
	border-radius: 999px;
	color: var(--gtm-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 auto 20px;
	display: flex;
	width: fit-content;
}

.gtm-quiz__panel {
	background: var(--gtm-card-bg);
	border: 1px solid var(--gtm-card-border);
	border-radius: 14px;
	padding: 22px 24px;
	margin-bottom: 20px;
}

.gtm-quiz__panel-label {
	color: var(--gtm-text-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 14px;
}

.gtm-quiz__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gtm-quiz__pill {
	padding: 8px 18px;
	border: 1px solid var(--gtm-card-border);
	border-radius: 999px;
	color: var(--gtm-text);
	font-size: 14px;
	font-weight: 700;
}

.gtm-quiz__panel--lock {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.gtm-quiz__lock {
	font-size: 22px;
	flex: none;
}

.gtm-quiz__lock-title {
	color: var(--gtm-text);
	font-weight: 700;
	font-size: 16px;
	margin: 0 0 6px;
}

.gtm-quiz__lock-text {
	color: var(--gtm-text-muted);
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.gtm-quiz__field {
	margin-bottom: 16px;
}

.gtm-quiz__text-input {
	width: 100%;
	padding: 16px 18px;
	background: var(--gtm-card-bg);
	border: 1px solid var(--gtm-card-border);
	border-radius: 12px;
	color: var(--gtm-text);
	font-size: 15px;
	transition: border-color 0.2s ease;
}

.gtm-quiz__text-input::placeholder {
	color: var(--gtm-text-muted);
}

.gtm-quiz__text-input:focus {
	outline: none;
	border-color: var(--gtm-accent);
}

.gtm-quiz__text-input.parsley-error {
	border-color: #ff6b5c;
}

.gtm-quiz__field ul.parsley-errors-list {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	color: #ffb4a3;
	font-size: 13px;
}

.gtm-quiz__submit {
	position: relative;
	width: 100%;
	padding: 18px;
	background: var(--gtm-accent);
	border: none;
	border-radius: 12px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.2s ease, transform 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.gtm-quiz__submit:hover {
	filter: brightness(1.08);
}

.gtm-quiz__submit:active {
	transform: translateY(1px);
}

.gtm-quiz__submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.gtm-quiz__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: gtmSpin 0.7s linear infinite;
}

.gtm-quiz__submit.is-loading .gtm-quiz__spinner {
	display: inline-block;
}

.gtm-quiz__submit.is-loading .gtm-quiz__submit-text {
	opacity: 0.7;
}

@keyframes gtmSpin {
	to { transform: rotate(360deg); }
}

.gtm-quiz__status {
	margin-top: 14px;
	font-size: 14px;
	text-align: center;
	min-height: 20px;
}

.gtm-quiz__status.is-success {
	color: #7ee2a8;
}

.gtm-quiz__status.is-error {
	color: #ffb4a3;
}

.gtm-quiz__thankyou {
	text-align: center;
	padding: 20px 0;
	animation: gtmSlideInForward 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gtm-quiz__thankyou[hidden] {
	display: none;
}

.gtm-quiz__thankyou-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: rgba(126, 226, 168, 0.16);
	border: 1px solid rgba(126, 226, 168, 0.4);
	color: #7ee2a8;
	font-size: 28px;
}
