/**
 * Akasha Quiz Funnel — frontend styles.
 * Mobile-first, soft and calm. Neutral tokens so it inherits the site theme.
 */

.aqf {
	--aqf-max: 640px;
	--aqf-radius: 14px;
	--aqf-gap: 1rem;
	--aqf-fg: #2b2a29;
	--aqf-muted: #6b6660;
	--aqf-bg: #ffffff;
	--aqf-soft: #f6f3ee;
	--aqf-accent: #8a6f52;
	--aqf-accent-fg: #ffffff;
	--aqf-border: #e4ddd2;
	--aqf-error: #a3423a;

	max-width: var(--aqf-max);
	margin: 0 auto;
	padding: 1.25rem;
	color: var(--aqf-fg);
	font-size: 1.02rem;
	line-height: 1.65;
	box-sizing: border-box;
}

.aqf *,
.aqf *::before,
.aqf *::after {
	box-sizing: inherit;
}

.aqf-screen {
	animation: aqf-fade 0.25s ease;
}

@keyframes aqf-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.aqf-title {
	font-size: 1.5rem;
	margin: 0 0 0.5rem;
}

.aqf-subtitle {
	color: var(--aqf-muted);
	margin: 0 0 1rem;
}

.aqf-intro-text {
	margin: 0 0 1rem;
}

.aqf-time {
	color: var(--aqf-muted);
	font-size: 0.9rem;
	margin: 0 0 1.5rem;
}

/* Progress */
.aqf-progress {
	color: var(--aqf-muted);
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
	letter-spacing: 0.02em;
}

/* Question */
.aqf-question-text {
	font-size: 1.2rem;
	margin: 0 0 1rem;
}

.aqf-options {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.aqf-option {
	display: block;
}

.aqf-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.aqf-option-label {
	display: block;
	padding: 0.85rem 1rem;
	border: 1px solid var(--aqf-border);
	border-radius: var(--aqf-radius);
	background: var(--aqf-bg);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.aqf-option input:checked + .aqf-option-label {
	border-color: var(--aqf-accent);
	background: var(--aqf-soft);
}

.aqf-option input:focus-visible + .aqf-option-label {
	outline: 2px solid var(--aqf-accent);
	outline-offset: 2px;
}

/* Navigation */
.aqf-nav {
	display: flex;
	justify-content: space-between;
	gap: var(--aqf-gap);
}

/* Buttons */
.aqf-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: var(--aqf-radius);
	padding: 0.8rem 1.4rem;
	font-size: 1rem;
	cursor: pointer;
	transition: opacity 0.15s ease, background 0.15s ease;
}

.aqf-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.aqf-btn-primary {
	background: var(--aqf-accent);
	color: var(--aqf-accent-fg);
}

.aqf-btn-ghost {
	background: transparent;
	color: var(--aqf-muted);
	border-color: var(--aqf-border);
}

/* Form */
.aqf-form-ready {
	font-size: 1.2rem;
	margin: 0 0 0.5rem;
}

.aqf-form-lead {
	color: var(--aqf-muted);
	margin: 0 0 1.25rem;
}

.aqf-field {
	margin-bottom: 1rem;
}

.aqf-field > label {
	display: block;
	margin-bottom: 0.3rem;
}

.aqf-field input[type="text"],
.aqf-field input[type="email"] {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--aqf-border);
	border-radius: var(--aqf-radius);
	font-size: 1rem;
}

.aqf-req {
	color: var(--aqf-accent);
}

.aqf-consent label {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	cursor: pointer;
	font-size: 0.95rem;
	color: var(--aqf-muted);
}

.aqf-consent input {
	margin-top: 0.25rem;
	flex: 0 0 auto;
}

/* Honeypot: keep it out of view but present in the DOM. */
.aqf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.aqf-form-error {
	color: var(--aqf-error);
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

/* Result */
.aqf-result-lead {
	color: var(--aqf-muted);
	margin: 0 0 0.25rem;
}

.aqf-result-door {
	font-size: 1.5rem;
	margin: 0 0 1rem;
}

.aqf-result-body p {
	margin: 0 0 1rem;
}

@media (min-width: 600px) {
	.aqf-title { font-size: 1.8rem; }
}
