/* Exit-intent survey */
.ai-gen-exit-survey {
	position: fixed;
	inset: 0;
	z-index: 100060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #0f172a;
}

.ai-gen-exit-survey[hidden] {
	display: none !important;
}

.ai-gen-exit-survey__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(2px);
}

.ai-gen-exit-survey__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 440px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
	padding: 28px 24px 22px;
	box-sizing: border-box;
}

.ai-gen-exit-survey__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px 8px;
}

.ai-gen-exit-survey__close:hover {
	color: #0f172a;
}

.ai-gen-exit-survey__title {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
}

.ai-gen-exit-survey__lead {
	margin: 0 0 18px;
	font-size: 0.95rem;
	color: #64748b;
	line-height: 1.5;
}

.ai-gen-exit-survey__options {
	border: 0;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ai-gen-exit-survey__option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	cursor: pointer;
	font-size: 0.92rem;
	line-height: 1.4;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ai-gen-exit-survey__option:hover,
.ai-gen-exit-survey__option:has(input:checked) {
	border-color: #2563eb;
	background: #f8fafc;
}

.ai-gen-exit-survey__option input {
	margin-top: 2px;
	accent-color: #2563eb;
}

.ai-gen-exit-survey__other {
	display: block;
	margin-bottom: 16px;
}

.ai-gen-exit-survey__other[hidden] {
	display: none !important;
}

.ai-gen-exit-survey__other-label {
	display: block;
	font-size: 0.85rem;
	color: #64748b;
	margin-bottom: 6px;
}

.ai-gen-exit-survey__other textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 12px;
	font: inherit;
	resize: vertical;
	min-height: 72px;
}

.ai-gen-exit-survey__actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.ai-gen-exit-survey__submit {
	appearance: none;
	border: 0;
	background: #2563eb;
	color: #fff;
	font-weight: 600;
	font-size: 0.92rem;
	padding: 11px 18px;
	border-radius: 10px;
	cursor: pointer;
}

.ai-gen-exit-survey__submit:hover {
	background: #1d4ed8;
}

.ai-gen-exit-survey__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.ai-gen-exit-survey__skip {
	appearance: none;
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 0.9rem;
	cursor: pointer;
	padding: 8px 10px;
}

.ai-gen-exit-survey__skip:hover {
	color: #0f172a;
}

.ai-gen-exit-survey__thanks {
	margin: 8px 0 0;
	font-size: 1rem;
	font-weight: 600;
	color: #059669;
	text-align: center;
}

.ai-gen-exit-survey__form[hidden],
.ai-gen-exit-survey__thanks[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

html.ai-gen-exit-survey-lock,
html.ai-gen-exit-survey-lock body {
	overflow: hidden;
}

@media (max-width: 480px) {
	.ai-gen-exit-survey__panel {
		padding: 24px 18px 18px;
	}
}
