:root {
	--survey-primary: #159447;
	--survey-secondary: #091936;
	--survey-font: #091936;
	--survey-line: rgba(9, 25, 54, 0.12);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--survey-font);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 46%, #ffffff 100%),
		linear-gradient(135deg, rgba(21, 148, 71, 0.18) 0%, rgba(9, 25, 54, 0.1) 100%);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

.take-body {
	min-height: 100vh;
}

.take-shell {
	width: min(100% - 32px, 780px);
	margin: 0 auto;
	padding: 42px 0 58px;
}

.take-hero {
	display: grid;
	gap: 16px;
	padding: 28px 0 22px;
}

.take-workspace-logo {
	display: block;
	width: 160px;
	height: 80px;
	margin: 0 0 14px;
	object-fit: cover;
	border-radius: 6px;
}

.take-hero p {
	margin: 0 0 12px;
	color: var(--survey-primary);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.take-hero h1,
.take-message h1 {
	margin: 0;
	color: var(--survey-secondary);
	font-size: clamp(32px, 7vw, 54px);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: 0;
	overflow-wrap: break-word;
}

.take-description {
	max-width: 660px;
	margin-top: 18px;
	color: var(--survey-font);
	font-size: 18px;
	font-weight: 650;
	line-height: 1.7;
	opacity: 0.86;
}

.take-panel {
	border: 1px solid var(--survey-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 24px 60px rgba(9, 25, 54, 0.13);
}

.take-form {
	display: grid;
	gap: 0;
	padding: 4px 28px 28px;
}

.take-question {
	padding: 28px 0;
	border-bottom: 1px solid var(--survey-line);
}

.take-question.has-error {
	border-bottom-color: rgba(155, 28, 28, 0.28);
}

.take-question-heading {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	margin-bottom: 18px;
}

.take-question-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--survey-primary);
	color: #ffffff;
	font-size: 14px;
	font-weight: 900;
}

.take-question h2 {
	margin: 1px 0 0;
	color: var(--survey-secondary);
	font-size: 21px;
	font-weight: 900;
	line-height: 1.3;
	overflow-wrap: break-word;
}

.required-label {
	display: inline-flex;
	margin-top: 8px;
	color: var(--survey-primary);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.take-question p {
	margin: 8px 0 0;
	color: var(--survey-font);
	font-size: 14px;
	font-weight: 650;
	opacity: 0.72;
}

.take-question-error {
	display: none;
	margin: -4px 0 16px 48px;
	padding: 10px 12px;
	border: 1px solid #ffd2d2;
	border-radius: 8px;
	background: #fff4f4;
	color: #9b1c1c;
	font-size: 13px;
	font-weight: 850;
}

.take-question-error.is-visible {
	display: block;
}

.take-input {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 13px 14px;
	border: 1px solid var(--survey-line);
	border-radius: 8px;
	background: #ffffff;
	color: var(--survey-font);
	font: inherit;
	font-weight: 700;
	outline: none;
	resize: vertical;
}

.take-input:focus {
	border-color: var(--survey-primary);
	box-shadow: 0 0 0 3px rgba(21, 148, 71, 0.15);
}

.number-scale {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--number-scale-count, 10), minmax(0, 1fr));
	gap: 0;
	padding: 12px 2px 0;
}

.number-scale::before {
	content: "";
	position: absolute;
	top: 28px;
	right: 18px;
	left: 18px;
	height: 3px;
	border-radius: 999px;
	background: rgba(9, 25, 54, 0.14);
}

.number-choice,
.star-choice,
.choice-row {
	cursor: pointer;
}

.number-choice input,
.star-choice input,
.choice-row input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.number-choice span {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0 auto;
	border: 2px solid rgba(9, 25, 54, 0.16);
	border-radius: 50%;
	background: #ffffff;
	color: var(--survey-secondary);
	font-size: 14px;
	font-weight: 900;
	transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.number-choice input:checked + span,
.choice-row input:checked + span {
	border-color: var(--survey-primary);
	background: var(--survey-primary);
	color: #ffffff;
}

.number-choice input:focus + span,
.star-choice input:focus + span,
.choice-row input:focus + span {
	box-shadow: 0 0 0 3px rgba(21, 148, 71, 0.16);
}

.number-choice:hover span,
.choice-row:hover span {
	transform: translateY(-1px);
}

.star-rating {
	display: flex;
	gap: 8px;
}

.star-choice span {
	display: block;
	color: #c9d3df;
	font-size: 36px;
	line-height: 1;
	transition: color 150ms ease, transform 150ms ease;
}

.star-choice span::before {
	content: "\2605";
}

.star-choice.is-selected span,
.star-choice:hover span {
	color: var(--survey-primary);
	transform: translateY(-1px);
}

.rating-scale {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 9px;
	color: var(--survey-font);
	font-size: 12px;
	font-weight: 800;
	opacity: 0.68;
}

.choice-list {
	display: grid;
	gap: 10px;
}

.choice-limit {
	margin: -4px 0 12px;
	color: var(--survey-font);
	font-size: 13px;
	font-weight: 800;
	opacity: 0.68;
}

.choice-row span {
	display: block;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--survey-line);
	border-radius: 8px;
	background: #ffffff;
	color: var(--survey-font);
	font-weight: 850;
	overflow-wrap: break-word;
	transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.take-actions {
	padding-top: 26px;
}

.take-actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 8px;
	background: var(--survey-primary);
	box-shadow: 0 14px 26px rgba(9, 25, 54, 0.16);
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-weight: 900;
}

.take-actions button:disabled {
	cursor: wait;
	opacity: 0.7;
}

.take-alert {
	display: none;
	margin: 24px 0 0;
	padding: 12px 14px;
	border: 1px solid #ffd2d2;
	border-radius: 8px;
	background: #fff4f4;
	color: #9b1c1c;
	font-size: 14px;
	font-weight: 800;
}

.take-alert.is-visible {
	display: block;
}

.take-message {
	padding: 44px 28px;
	text-align: center;
}

.take-message-logo {
	display: inline-block;
}

.take-message-logo:focus {
	outline: 3px solid rgba(21, 148, 71, 0.28);
	outline-offset: 6px;
}

.take-message img {
	width: 152px;
	height: auto;
	margin-bottom: 28px;
}

.take-message p {
	max-width: 460px;
	margin: 14px auto 0;
	color: var(--survey-font);
	font-size: 17px;
	font-weight: 700;
	opacity: 0.76;
}

.take-message-actions {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.take-message-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 20px;
	border-radius: 8px;
	background: var(--survey-primary);
	box-shadow: 0 14px 26px rgba(9, 25, 54, 0.14);
	color: #ffffff;
	font-weight: 900;
	text-decoration: none;
}

.take-message-actions a:hover,
.take-message-actions a:focus {
	color: #ffffff;
	text-decoration: none;
	filter: brightness(0.96);
}

.embed-body {
	min-height: auto;
	background: #ffffff;
}

.embed-shell {
	width: 100%;
	margin: 0;
	padding: 0;
}

.embed-intro {
	padding: 22px 22px 8px;
}

.embed-intro h1 {
	margin: 0;
	padding-right: 34px;
	color: var(--survey-secondary);
	font-size: 22px;
	font-weight: 900;
	line-height: 1.18;
	overflow-wrap: break-word;
}

.embed-description {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.55;
}

.embed-form {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0 22px 22px;
}

.embed-progress {
	margin: 0 -22px 0;
	padding: 12px 22px;
	border-top: 1px solid var(--survey-line);
	border-bottom: 1px solid var(--survey-line);
	background: rgba(9, 25, 54, 0.03);
	color: var(--survey-primary);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.embed-question {
	min-height: 260px;
	padding: 22px 0 20px;
	border-bottom: 0;
}

.embed-question .take-question-heading {
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 12px;
	margin-bottom: 16px;
}

.embed-question .take-question-number {
	width: 30px;
	height: 30px;
	font-size: 13px;
}

.embed-question h2 {
	font-size: 19px;
	line-height: 1.28;
}

.embed-question .take-question-error {
	margin-left: 42px;
}

.embed-actions {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid var(--survey-line);
}

.embed-actions button {
	flex: 0 1 154px;
	width: auto;
	min-width: 112px;
	height: 46px;
	min-height: 46px;
	padding: 0 12px;
	line-height: 1.15;
	box-shadow: none;
	white-space: nowrap;
}

.embed-actions .embed-secondary-button {
	border: 1px solid var(--survey-line);
	background: #ffffff;
	color: var(--survey-secondary);
}

.embed-powered-by {
	margin-top: 10px;
	color: var(--survey-font);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	text-align: right;
	opacity: 0.42;
}

.embed-powered-by a {
	color: inherit;
	text-decoration: none;
}

.embed-message {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 34px 24px;
}

.embed-message h1 {
	font-size: 28px;
}

.embed-message p {
	font-size: 15px;
}

[hidden] {
	display: none !important;
}

@media (max-width: 700px) {
	.take-shell {
		width: min(100% - 24px, 780px);
		padding-top: 24px;
	}

	.take-workspace-logo {
		width: 70px;
		height: 35px;
	}

	.take-hero h1,
	.take-message h1 {
		font-size: 34px;
	}

	.take-description {
		font-size: 16px;
	}

	.take-form {
		padding: 2px 18px 22px;
	}

	.take-question {
		padding: 24px 0;
	}

	.take-question-heading {
		grid-template-columns: 30px minmax(0, 1fr);
		gap: 12px;
	}

	.take-question-number {
		width: 30px;
		height: 30px;
	}

	.take-question h2 {
		font-size: 18px;
	}

	.take-question-error {
		margin-left: 42px;
	}

	.number-choice span {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}

	.embed-intro {
		padding: 20px 18px 8px;
	}

	.embed-form {
		padding: 0 18px 18px;
	}

	.embed-progress {
		margin-right: -18px;
		margin-left: -18px;
		padding-right: 18px;
		padding-left: 18px;
	}

	.embed-actions {
		flex-wrap: wrap;
		justify-content: stretch;
	}

	.embed-actions button {
		flex: 1 1 136px;
	}
}

@media (max-width: 420px) {
	.number-scale::before {
		right: 14px;
		left: 14px;
	}
}
