.pttl-survey {
	--pttl-survey-accent: #6d28d9;
	--pttl-survey-surface: var(--bg-elev, #fff);
	--pttl-survey-surface-2: var(--bg-elev-2, #f6f7f9);
	--pttl-survey-border: var(--border, #d8dee8);
	--pttl-survey-border-soft: var(--border-soft, #e3e7ee);
	--pttl-survey-text: var(--text, #172033);
	--pttl-survey-muted: var(--text-muted, #526071);
	box-sizing: border-box;
	position: relative;
	max-width: 920px;
	margin: 34px auto;
	padding: clamp(20px, 4vw, 38px);
	border: 1px solid color-mix(in srgb, var(--pttl-survey-accent) 28%, var(--pttl-survey-border));
	border-radius: 18px;
	background: linear-gradient(145deg, color-mix(in srgb, var(--pttl-survey-accent) 7%, var(--pttl-survey-surface)), var(--pttl-survey-surface) 38%);
	box-shadow: 0 18px 45px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .025);
	color: var(--pttl-survey-text);
}

.pttl-survey [hidden] { display: none !important; }
.pttl-survey * { box-sizing: border-box; }
.pttl-survey__trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.pttl-survey__sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

.pttl-survey__preview-banner {
	margin: calc(clamp(20px, 4vw, 38px) * -1) calc(clamp(20px, 4vw, 38px) * -1) 24px;
	padding: 11px 16px;
	border-radius: 17px 17px 0 0;
	background: linear-gradient(90deg, #4c1d95, #6d28d9);
	color: #fff;
	font-size: 13px;
	font-weight: 850;
	letter-spacing: .025em;
	text-align: center;
}

.pttl-survey__eyebrow {
	display: inline-flex;
	margin-bottom: 10px;
	padding: 5px 10px;
	border: 1px solid color-mix(in srgb, var(--pttl-survey-accent) 34%, var(--pttl-survey-border));
	border-radius: 999px;
	background: color-mix(in srgb, var(--pttl-survey-accent) 15%, var(--pttl-survey-surface-2));
	color: color-mix(in srgb, var(--pttl-survey-accent) 58%, #fff);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .09em;
}

.pttl-survey__title {
	margin: 0;
	color: var(--pttl-survey-text);
	font-size: clamp(27px, 4vw, 42px);
	line-height: 1.13;
}

.pttl-survey__intro {
	max-width: 760px;
	margin-top: 13px;
	color: var(--pttl-survey-muted);
	font-size: 16px;
	line-height: 1.65;
}

.pttl-survey__intro p,
.pttl-survey__privacy p,
.pttl-survey__complete p { margin: 0; }

.pttl-survey__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 17px;
}

.pttl-survey__meta span {
	padding: 6px 10px;
	border: 1px solid var(--pttl-survey-border-soft);
	border-radius: 999px;
	background: var(--pttl-survey-surface-2);
	color: var(--pttl-survey-muted);
	font-size: 12px;
	font-weight: 700;
}

.pttl-survey__privacy {
	margin-top: 15px;
	padding: 12px 14px;
	border-left: 3px solid var(--pttl-survey-accent);
	border-radius: 0 8px 8px 0;
	background: color-mix(in srgb, var(--pttl-survey-accent) 7%, var(--pttl-survey-surface-2));
	color: var(--pttl-survey-muted);
	font-size: 13px;
	line-height: 1.55;
}

.pttl-survey__progress {
	margin: 29px 0 8px;
	padding-top: 20px;
	border-top: 1px solid var(--pttl-survey-border-soft);
}

.pttl-survey__progress-meta {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
	color: var(--pttl-survey-muted);
	font-size: 12px;
	font-weight: 700;
}

.pttl-survey__progress-meta strong { color: var(--pttl-survey-text); }

.pttl-survey__progress-track {
	height: 8px;
	overflow: hidden;
	border: 1px solid var(--pttl-survey-border-soft);
	border-radius: 999px;
	background: var(--pttl-survey-surface-2);
}

.pttl-survey__progress-track span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--pttl-survey-accent), color-mix(in srgb, var(--pttl-survey-accent) 66%, #60a5fa));
	transition: width .3s ease;
}

.pttl-survey__section { padding-top: 28px; }

.pttl-survey__section-heading {
	margin-bottom: 23px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--pttl-survey-border-soft);
}

.pttl-survey__section-kicker {
	display: block;
	margin-bottom: 5px;
	color: color-mix(in srgb, var(--pttl-survey-accent) 65%, var(--pttl-survey-text));
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.pttl-survey__section-heading h3 {
	margin: 0;
	color: var(--pttl-survey-text);
	font-size: clamp(23px, 3vw, 31px);
	line-height: 1.2;
}

.pttl-survey__section-heading p {
	margin: 8px 0 0;
	color: var(--pttl-survey-muted);
}

.pttl-survey__questions { display: grid; gap: 16px; }

.pttl-survey__question {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 13px;
	padding: 19px;
	border: 1px solid var(--pttl-survey-border);
	border-radius: 13px;
	background: var(--pttl-survey-surface-2);
	transition: border-color .18s, box-shadow .18s;
}

.pttl-survey__question:focus-within {
	border-color: color-mix(in srgb, var(--pttl-survey-accent) 62%, var(--pttl-survey-border));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pttl-survey-accent) 14%, transparent);
}

.pttl-survey__question.has-error {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}

.pttl-survey__question-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 28px;
	border-radius: 7px;
	background: color-mix(in srgb, var(--pttl-survey-accent) 15%, var(--pttl-survey-surface));
	color: color-mix(in srgb, var(--pttl-survey-accent) 66%, var(--pttl-survey-text));
	font-size: 11px;
	font-weight: 800;
}

.pttl-survey__question-content,
.pttl-survey__question fieldset { min-width: 0; }
.pttl-survey__question fieldset { margin: 0; padding: 0; border: 0; }

.pttl-survey__question-title {
	display: block;
	margin: 0 0 12px;
	padding: 0;
	color: var(--pttl-survey-text);
	font-size: 17px;
	font-weight: 750;
	line-height: 1.4;
}

.pttl-survey__required { margin-left: 4px; color: #ef4444; }

.pttl-survey__help {
	margin: -6px 0 12px;
	color: var(--pttl-survey-muted);
	font-size: 13px;
	line-height: 1.5;
}

.pttl-survey__options { display: grid; gap: 8px; }

.pttl-survey__option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 45px;
	padding: 10px 12px;
	border: 1px solid var(--pttl-survey-border-soft);
	border-radius: 9px;
	background: var(--pttl-survey-surface);
	color: var(--pttl-survey-text);
	cursor: pointer;
	transition: border-color .16s, background .16s, transform .16s;
}

.pttl-survey__option:hover {
	border-color: color-mix(in srgb, var(--pttl-survey-accent) 60%, var(--pttl-survey-border));
	background: color-mix(in srgb, var(--pttl-survey-accent) 6%, var(--pttl-survey-surface));
	transform: translateY(-1px);
}

.pttl-survey__option:has(input:checked) {
	border-color: color-mix(in srgb, var(--pttl-survey-accent) 70%, var(--pttl-survey-border));
	background: color-mix(in srgb, var(--pttl-survey-accent) 11%, var(--pttl-survey-surface));
}

.pttl-survey__option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pttl-survey__control {
	flex: 0 0 19px;
	width: 19px;
	height: 19px;
	border: 2px solid var(--pttl-survey-muted);
	border-radius: 50%;
	background: var(--pttl-survey-surface);
	box-shadow: inset 0 0 0 4px var(--pttl-survey-surface);
}

.pttl-survey__question--multiple .pttl-survey__control {
	border-radius: 5px;
	box-shadow: none;
}

.pttl-survey__option input:checked + .pttl-survey__control {
	border-color: var(--pttl-survey-accent);
	background: var(--pttl-survey-accent);
}

.pttl-survey__question--multiple .pttl-survey__option input:checked + .pttl-survey__control::after {
	display: block;
	width: 9px;
	height: 5px;
	margin: 4px 3px;
	border-bottom: 2px solid #fff;
	border-left: 2px solid #fff;
	content: "";
	transform: rotate(-45deg);
}

.pttl-survey__option input:focus-visible + .pttl-survey__control {
	outline: 3px solid color-mix(in srgb, var(--pttl-survey-accent) 32%, transparent);
	outline-offset: 3px;
}

.pttl-survey__options--scale {
	grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
}

.pttl-survey__options--scale .pttl-survey__option {
	justify-content: center;
	text-align: center;
}

.pttl-survey__scale-label {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	flex-direction: column;
	line-height: 1.05;
}

.pttl-survey__scale-label strong {
	color: var(--pttl-survey-text);
	font-size: 17px;
	font-weight: 750;
}

.pttl-survey__scale-label small {
	margin-top: 4px;
	color: var(--pttl-survey-muted);
	font-size: 11px;
	font-weight: 650;
	line-height: 1.15;
}

.pttl-survey select,
.pttl-survey textarea,
.pttl-survey input[type="text"],
.pttl-survey input[type="number"] {
	width: 100%;
	max-width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--pttl-survey-border);
	border-radius: 9px;
	background: var(--pttl-survey-surface);
	color: var(--pttl-survey-text);
	font: inherit;
}

.pttl-survey textarea { min-height: 120px; resize: vertical; }

.pttl-survey select:focus,
.pttl-survey textarea:focus,
.pttl-survey input[type="text"]:focus,
.pttl-survey input[type="number"]:focus {
	border-color: var(--pttl-survey-accent);
	outline: 3px solid color-mix(in srgb, var(--pttl-survey-accent) 18%, transparent);
}

.pttl-survey__matrix-wrap {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.pttl-survey__question--matrix_single .pttl-survey__question-content { overflow: hidden; }

.pttl-survey__matrix {
	width: 100%;
	min-width: 620px;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	color: var(--pttl-survey-text);
	font-size: 13px;
}

.pttl-survey__matrix th,
.pttl-survey__matrix td {
	padding: 12px;
	border-right: 1px solid var(--pttl-survey-border-soft);
	border-bottom: 1px solid var(--pttl-survey-border-soft);
	text-align: center;
}

.pttl-survey__matrix th:first-child { width: 34%; text-align: left; }
.pttl-survey__matrix thead th { font-weight: 800; line-height: 1.25; }
.pttl-survey__matrix tbody th {
	background: color-mix(in srgb, var(--pttl-survey-accent) 4%, var(--pttl-survey-surface));
	font-weight: 750;
	line-height: 1.35;
}
.pttl-survey__matrix tr:first-child th { border-top: 1px solid var(--pttl-survey-border-soft); }
.pttl-survey__matrix th:first-child,
.pttl-survey__matrix td:first-child { border-left: 1px solid var(--pttl-survey-border-soft); }
.pttl-survey__matrix td { height: 58px; padding: 0; }
.pttl-survey__matrix td label {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 58px;
	cursor: pointer;
}
.pttl-survey__matrix td label:hover { background: color-mix(in srgb, var(--pttl-survey-accent) 7%, transparent); }
.pttl-survey__matrix input { width: 20px; height: 20px; margin: 0; accent-color: var(--pttl-survey-accent); cursor: pointer; }
.pttl-survey__matrix input:focus-visible { outline: 3px solid color-mix(in srgb, var(--pttl-survey-accent) 30%, transparent); outline-offset: 3px; }

.pttl-survey__ranking { display: grid; gap: 9px; }
.pttl-survey__ranking label {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 96px;
	align-items: center;
	gap: 16px;
	min-height: 62px;
	padding: 8px 9px 8px 14px;
	border: 1px solid var(--pttl-survey-border-soft);
	border-radius: 11px;
	background: var(--pttl-survey-surface);
	transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.pttl-survey__ranking label > span {
	color: var(--pttl-survey-text);
	font-weight: 650;
	line-height: 1.4;
}
.pttl-survey__ranking label:hover {
	border-color: color-mix(in srgb, var(--pttl-survey-accent) 38%, var(--pttl-survey-border));
	background: color-mix(in srgb, var(--pttl-survey-accent) 4%, var(--pttl-survey-surface));
}
.pttl-survey__ranking label:focus-within {
	border-color: var(--pttl-survey-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pttl-survey-accent) 14%, transparent);
}
.pttl-survey .pttl-survey__ranking select {
	appearance: none;
	width: 96px;
	height: 46px;
	padding: 9px 38px 9px 14px;
	border: 1px solid var(--pttl-survey-border);
	border-radius: 10px;
	background-color: var(--pttl-survey-surface-2);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23526071' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	color: var(--pttl-survey-text);
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}
.pttl-survey .pttl-survey__ranking select:hover { border-color: color-mix(in srgb, var(--pttl-survey-accent) 55%, var(--pttl-survey-border)); }
.pttl-survey .pttl-survey__ranking select:focus {
	border-color: var(--pttl-survey-accent);
	outline: 0;
	box-shadow: inset 0 0 0 1px var(--pttl-survey-accent);
}

.pttl-survey__error {
	min-height: 18px;
	margin-top: 7px;
	color: #dc2626;
	font-size: 12px;
	font-weight: 700;
}

.pttl-survey__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--pttl-survey-border-soft);
}

.pttl-survey__button {
	appearance: none;
	min-width: 140px;
	padding: 12px 20px;
	border: 1px solid var(--pttl-survey-accent);
	border-radius: 9px;
	background: var(--pttl-survey-accent);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 7px 18px color-mix(in srgb, var(--pttl-survey-accent) 30%, transparent);
}

.pttl-survey__button:hover { filter: brightness(1.1); }
.pttl-survey__button:focus-visible { outline: 3px solid color-mix(in srgb, var(--pttl-survey-accent) 32%, transparent); outline-offset: 3px; }
.pttl-survey__button:disabled { opacity: .55; cursor: wait; }

.pttl-survey__button--secondary {
	margin-right: auto;
	border-color: var(--pttl-survey-border);
	background: var(--pttl-survey-surface-2);
	box-shadow: none;
	color: var(--pttl-survey-text);
}

.pttl-survey__message {
	min-height: 22px;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 700;
	text-align: right;
}
.pttl-survey__message.is-error { color: #dc2626; }
.pttl-survey__message.is-info { color: var(--pttl-survey-muted); }

.pttl-survey__complete {
	margin-top: 28px;
	padding: 30px;
	border: 1px solid color-mix(in srgb, #22c55e 40%, var(--pttl-survey-border));
	border-radius: 14px;
	background: color-mix(in srgb, #22c55e 8%, var(--pttl-survey-surface-2));
	text-align: center;
}
.pttl-survey__complete > span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 26px; font-weight: 900; }
.pttl-survey__complete h3 { margin: 12px 0 7px; color: var(--pttl-survey-text); }
.pttl-survey__complete div { color: var(--pttl-survey-muted); }
.pttl-survey__closed-message,
.pttl-survey__noscript { margin: 20px 0 0; padding: 13px 15px; border-radius: 9px; background: var(--pttl-survey-surface-2); color: var(--pttl-survey-muted); font-weight: 700; }

@supports not (color: color-mix(in srgb, #000, #fff)) {
	.pttl-survey { border-color: var(--pttl-survey-border); background: var(--pttl-survey-surface); }
	.pttl-survey__eyebrow,
	.pttl-survey__privacy,
	.pttl-survey__question-number { background: var(--pttl-survey-surface-2); color: #7c3aed; }
	.pttl-survey__option:hover,
	.pttl-survey__option:has(input:checked) { border-color: #7c3aed; }
	.pttl-survey__complete { border-color: #22c55e; background: var(--pttl-survey-surface-2); }
}

@media (max-width: 700px) {
	.pttl-survey { margin: 24px auto; padding: 20px 15px; border-radius: 13px; }
	.pttl-survey__question { grid-template-columns: 1fr; padding: 15px; }
	.pttl-survey__question-number { margin-bottom: -5px; }
	.pttl-survey__options--scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pttl-survey__actions { flex-wrap: wrap; }
	.pttl-survey__button { width: 100%; }
	.pttl-survey__button--secondary { order: 2; }
	.pttl-survey__ranking label { grid-template-columns: minmax(0, 1fr) 82px; gap: 10px; padding-left: 11px; }
	.pttl-survey .pttl-survey__ranking select { width: 82px; padding-right: 34px; padding-left: 12px; background-position: right 10px center; }
}

@media (prefers-reduced-motion: reduce) {
	.pttl-survey *,
	.pttl-survey *::before,
	.pttl-survey *::after { scroll-behavior: auto !important; transition: none !important; }
}
