.lp-exit-survey {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	width: 380px;
	max-width: calc(100vw - 48px);
	padding: 24px;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 14px;
	box-shadow: 0 18px 40px -8px rgba(15, 23, 42, 0.28), 0 6px 16px -4px rgba(15, 23, 42, 0.12);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
	color: #1f2937;
	line-height: 1.5;
	box-sizing: border-box;
	transform: translateY(40px) scale(0.96);
	opacity: 0;
}

.lp-exit-survey *,
.lp-exit-survey *::before,
.lp-exit-survey *::after {
	box-sizing: border-box;
}

.lp-exit-survey--hidden {
	display: none !important;
}

.lp-exit-survey--visible {
	animation:
		lp-exit-survey-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
		lp-exit-survey-glow 1.4s ease-in-out 0.5s 2;
}

@keyframes lp-exit-survey-pop-in {
	0% {
		transform: translateY(40px) scale(0.96);
		opacity: 0;
	}
	60% {
		transform: translateY(-4px) scale(1.02);
		opacity: 1;
	}
	100% {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

@keyframes lp-exit-survey-glow {
	0%, 100% {
		box-shadow: 0 18px 40px -8px rgba(15, 23, 42, 0.28), 0 6px 16px -4px rgba(15, 23, 42, 0.12);
	}
	50% {
		box-shadow: 0 18px 40px -8px rgba(37, 99, 235, 0.45), 0 6px 22px -4px rgba(37, 99, 235, 0.28);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lp-exit-survey--visible {
		animation: none;
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

.lp-exit-survey__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: none;
	color: #9ca3af;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.15s ease, color 0.15s ease;
}

.lp-exit-survey__close:hover,
.lp-exit-survey__close:focus {
	background: #f3f4f6;
	color: #1f2937;
	outline: none;
}

.lp-exit-survey__title {
	margin: 0 0 6px 0;
	padding-right: 32px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: #0f172a;
}

.lp-exit-survey__subtitle {
	margin: 0 0 16px 0;
	font-size: 14px;
	color: #475569;
}

.lp-exit-survey__form {
	display: block;
}

.lp-exit-survey__option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 10px;
	margin: 0 -10px;
	border-radius: 8px;
	font-size: 14px;
	color: #1f2937;
	cursor: pointer;
	transition: background 0.12s ease;
}

.lp-exit-survey__option:hover {
	background: #f8fafc;
}

.lp-exit-survey__option input[type="radio"] {
	margin: 3px 0 0 0;
	flex-shrink: 0;
	accent-color: #2563eb;
}

.lp-exit-survey__option span {
	flex: 1;
	line-height: 1.4;
}

.lp-exit-survey__other-text {
	display: block;
	width: 100%;
	margin: 10px 0 0 0;
	padding: 8px 10px;
	font-size: 13px;
	font-family: inherit;
	color: #1f2937;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	resize: vertical;
}

.lp-exit-survey__other-text:focus {
	border-color: #2563eb;
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.lp-exit-survey__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
}

.lp-exit-survey__dismiss {
	background: transparent;
	border: none;
	padding: 6px 4px;
	font-size: 13px;
	color: #6b7280;
	cursor: pointer;
	border-radius: 6px;
}

.lp-exit-survey__dismiss:hover,
.lp-exit-survey__dismiss:focus {
	color: #1f2937;
	text-decoration: underline;
	outline: none;
}

.lp-exit-survey__submit {
	flex-shrink: 0;
	padding: 9px 16px;
	background: #2563eb;
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid #2563eb;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.lp-exit-survey__submit:hover:not(:disabled),
.lp-exit-survey__submit:focus:not(:disabled) {
	background: #1d4ed8;
	border-color: #1d4ed8;
	outline: none;
}

.lp-exit-survey__submit:focus-visible {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.lp-exit-survey__submit:disabled {
	background: #cbd5e1;
	border-color: #cbd5e1;
	color: #ffffff;
	cursor: not-allowed;
}

.lp-exit-survey__success {
	margin: 12px 0 0 0;
	text-align: center;
}

.lp-exit-survey__success-text {
	margin: 0 0 14px 0;
	padding: 10px 12px;
	background: #ecfdf5;
	color: #065f46;
	font-size: 13px;
	border-radius: 8px;
}

.lp-exit-survey__cta {
	display: inline-block;
	padding: 10px 20px;
	background: #2563eb;
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid #2563eb;
	border-radius: 8px;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.lp-exit-survey__cta:hover,
.lp-exit-survey__cta:focus {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #ffffff;
	text-decoration: none;
	outline: none;
}

.lp-exit-survey__cta:focus-visible {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.lp-exit-survey__error {
	margin: 10px 0 0 0;
	padding: 10px 12px;
	background: #fef2f2;
	color: #991b1b;
	font-size: 13px;
	border-radius: 8px;
}

@media (max-width: 480px) {
	.lp-exit-survey {
		left: 16px;
		right: 16px;
		bottom: 16px;
		width: auto;
		padding: 20px;
	}
}
