/* Tokens — правьте под сайт в одном месте. Значения ниже сняты с живого сайта
   true-art-school.ru (wp-content/themes/artschool + trueartschool plugin CSS):
   accent #f28963 (--wp--preset--color--accent), текст #111111 (--wp--preset--color--contrast),
   приглушённый #636363 (--wp--preset--color--contrast-2), фон карточек #ffffff,
   радиус кнопок/карточек 15px (встречается 45+ раз в разметке сайта),
   тень 0 15px 25px rgba(0,0,0,.1) (доминирующая тень сайта),
   шрифт заголовков Mulish/700 (h1–h6 сайта), шрифт текста Inter. */
#als-popup-root {
	--survey-accent: #f28963;
	--survey-accent-hover: #ce7454;
	--survey-bg: #ffffff;
	--survey-text: #111111;
	--survey-muted: #636363;
	--survey-radius: 15px;
	--survey-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
	--survey-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--survey-font-heading: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.als-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.6);
	font-family: var(--survey-font);
	color: var(--survey-text);
}

.als-card {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--survey-bg);
	border-radius: var(--survey-radius);
	box-shadow: var(--survey-shadow);
	padding: 32px 28px;
	box-sizing: border-box;
}

.als-close {
	position: absolute;
	top: 10px;
	right: 14px;
	z-index: 1;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 32px;
	line-height: 1;
	color: var(--survey-muted);
	cursor: pointer;
}
.als-close:hover,
.als-close:focus { color: var(--survey-text); }

.als-logo {
	text-align: center;
	margin-bottom: 18px;
}
.als-logo img { max-height: 44px; width: auto; }

.als-heading {
	font-family: var(--survey-font-heading);
	font-weight: 700;
	font-size: 21px;
	line-height: 1.3;
	text-align: center;
	margin: 0 0 20px;
	padding: 0 24px; /* keep clear of the × in the top-right corner */
}

.als-intro-text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--survey-text);
	margin: 0 0 14px;
}

.als-progress {
	font-size: 13px;
	color: var(--survey-muted);
	margin-bottom: 8px;
}
.als-progressbar {
	height: 4px;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 18px;
}
.als-progressbar-fill {
	height: 100%;
	background: var(--survey-accent);
	transition: width 0.25s ease;
}

.als-question {
	font-family: var(--survey-font-heading);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.35;
	margin: 0 0 18px;
}

.als-options { display: flex; flex-direction: column; gap: 10px; }
.als-option {
	text-align: left;
	padding: 14px 16px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: var(--survey-radius);
	background: #fff;
	color: var(--survey-text);
	font-size: 15px;
	line-height: 1.35;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.als-option:hover,
.als-option:focus { border-color: var(--survey-accent); }
.als-option.is-selected {
	border-color: var(--survey-accent);
	background: rgba(0, 0, 0, 0.04);
}

.als-back {
	margin-top: 16px;
	border: 0;
	background: transparent;
	color: var(--survey-muted);
	cursor: pointer;
	font-size: 14px;
	padding: 6px 0;
}
.als-back:hover { color: var(--survey-text); }

.als-form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.als-lead-intro { color: var(--survey-muted); margin: 0 0 8px; line-height: 1.4; }
.als-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: var(--survey-radius);
	font-size: 15px;
}
.als-input:focus { outline: none; border-color: var(--survey-accent); }

/* honeypot — off-screen, not display:none (bots skip display:none) */
.als-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px; opacity: 0;
}

.als-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
	color: var(--survey-muted);
	line-height: 1.4;
}
.als-consent a { color: var(--survey-accent); }

.als-error { color: #c0392b; font-size: 14px; min-height: 1em; }

.als-submit {
	margin-top: 4px;
	padding: 14px 20px;
	border: 0;
	border-radius: var(--survey-radius);
	background: var(--survey-accent);
	color: #fff;
	font-size: 15px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease;
}
.als-submit:hover { background: var(--survey-accent-hover); }
.als-submit:disabled { opacity: 0.6; cursor: default; }

.als-result-level {
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--survey-muted);
	margin-bottom: 6px;
}
.als-result-title {
	font-family: var(--survey-font-heading);
	font-weight: 700;
	font-size: 24px;
	margin: 0 0 12px;
}
.als-result-desc { font-size: 16px; line-height: 1.5; margin: 0 0 14px; }
.als-result-footer {
	font-size: 13px;
	color: var(--survey-muted);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding-top: 12px;
	margin: 0 0 16px;
}
.als-thanks { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

@media (max-width: 560px) {
	.als-card { padding: 26px 18px; border-radius: 10px; }
	.als-question { font-size: 18px; }
	.als-result-title { font-size: 21px; }
}
