.ccy-tech-quiz {
	--ccy-ink: #263238;
	--ccy-muted: #5f6f73;
	--ccy-line: #dfe7e5;
	--ccy-surface: #ffffff;
	--ccy-soft: #f5f8f7;
	--ccy-primary: #0b6f6a;
	--ccy-primary-dark: #075854;
	--ccy-accent: #d96c4b;
	color: var(--ccy-ink);
	font-family: inherit;
}

.ccy-tech-quiz--clean {
	--ccy-primary: #315f72;
	--ccy-primary-dark: #24495a;
	--ccy-accent: #7d8f3b;
	--ccy-soft: #f7f9fb;
}

.ccy-tech-quiz--contrast {
	--ccy-primary: #111827;
	--ccy-primary-dark: #000000;
	--ccy-accent: #c2410c;
	--ccy-soft: #f3f4f6;
}

.ccy-tech-quiz__cta,
.ccy-tech-quiz__button {
	align-items: center;
	background: var(--ccy-primary);
	border: 0;
	border-radius: 6px;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font-size: 16px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 46px;
	padding: 12px 20px;
	text-decoration: none;
	transition: background 160ms ease, transform 160ms ease;
}

.ccy-tech-quiz__cta:hover,
.ccy-tech-quiz__button:hover {
	background: var(--ccy-primary-dark);
	color: #ffffff;
	transform: translateY(-1px);
}

.ccy-tech-quiz__button:disabled {
	cursor: not-allowed;
	opacity: 0.48;
	transform: none;
}

.ccy-tech-quiz__button--ghost {
	background: #ffffff;
	border: 1px solid var(--ccy-line);
	color: var(--ccy-ink);
}

.ccy-tech-quiz__button--ghost:hover {
	background: var(--ccy-soft);
	color: var(--ccy-ink);
}

.ccy-tech-quiz__overlay {
	align-items: center;
	background: rgba(16, 24, 28, 0.66);
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 24px;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 999999;
}

.ccy-tech-quiz__inline {
	max-width: 760px;
	width: 100%;
}

.ccy-tech-quiz__panel {
	background: var(--ccy-surface);
	border-radius: 8px;
	box-shadow: 0 24px 80px rgba(10, 20, 24, 0.28);
	max-height: calc(100vh - 48px);
	max-width: 760px;
	overflow: auto;
	padding: 28px;
	position: relative;
	width: min(760px, 100%);
}

.ccy-tech-quiz__inline .ccy-tech-quiz__panel {
	border: 1px solid var(--ccy-line);
	box-shadow: none;
}

.ccy-tech-quiz__panel[data-animation="slide"] {
	animation: ccyQuizSlide 220ms ease-out;
}

.ccy-tech-quiz__panel[data-animation="fade"] {
	animation: ccyQuizFade 180ms ease-out;
}

.ccy-tech-quiz__close {
	background: transparent;
	border: 0;
	color: var(--ccy-muted);
	cursor: pointer;
	font-size: 24px;
	height: 40px;
	line-height: 1;
	position: absolute;
	right: 14px;
	top: 12px;
	width: 40px;
}

.ccy-tech-quiz__progress {
	margin-bottom: 22px;
	padding-right: 36px;
}

.ccy-tech-quiz__progress span {
	color: var(--ccy-muted);
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
}

.ccy-tech-quiz__progress div {
	background: var(--ccy-soft);
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}

.ccy-tech-quiz__progress i {
	background: var(--ccy-accent);
	display: block;
	height: 100%;
	transition: width 180ms ease;
}

.ccy-tech-quiz__card {
	min-height: 330px;
}

.ccy-tech-quiz__section {
	color: var(--ccy-primary);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.ccy-tech-quiz h2 {
	color: var(--ccy-ink);
	font-size: 28px;
	line-height: 1.18;
	margin: 0 0 22px;
}

.ccy-tech-quiz__options {
	display: grid;
	gap: 12px;
}

.ccy-tech-quiz__option {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--ccy-line);
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	font-size: 16px;
	font-weight: 650;
	gap: 12px;
	line-height: 1.35;
	padding: 14px 16px;
	transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.ccy-tech-quiz__option:hover,
.ccy-tech-quiz__option.is-selected {
	background: var(--ccy-soft);
	border-color: var(--ccy-primary);
	box-shadow: 0 0 0 3px rgba(11, 111, 106, 0.12);
}

.ccy-tech-quiz__option input {
	accent-color: var(--ccy-primary);
	flex: 0 0 auto;
	height: 18px;
	width: 18px;
}

.ccy-tech-quiz__controls {
	align-items: center;
	border-top: 1px solid var(--ccy-line);
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: 24px;
	padding-top: 18px;
}

.ccy-tech-quiz__result p {
	color: var(--ccy-muted);
	font-size: 17px;
	line-height: 1.55;
	margin: 0 0 18px;
}

.ccy-tech-quiz__email-form {
	display: grid;
	gap: 14px;
	margin-top: 22px;
}

.ccy-tech-quiz__email-form label {
	color: var(--ccy-ink);
	display: grid;
	font-size: 14px;
	font-weight: 800;
	gap: 7px;
}

.ccy-tech-quiz__email-form input {
	border: 1px solid var(--ccy-line);
	border-radius: 6px;
	font-size: 16px;
	min-height: 44px;
	padding: 9px 12px;
	width: 100%;
}

.ccy-tech-quiz__error {
	background: #fff1f0;
	border-left: 4px solid #c2410c;
	color: #7c2d12;
	margin: 0;
	padding: 10px 12px;
}

.ccy-tech-quiz__success,
.ccy-tech-quiz__note,
.ccy-tech-quiz__inline-feedback {
	background: var(--ccy-soft);
	border-left: 4px solid var(--ccy-accent);
	color: var(--ccy-ink) !important;
	padding: 12px 14px;
}

.ccy-tech-quiz__inline-feedback {
	margin-top: 16px;
}

.ccy-tech-quiz__inline-feedback p {
	margin: 0;
}

.ccy-tech-quiz__inline-feedback p + p {
	margin-top: 8px;
}

@keyframes ccyQuizSlide {
	from {
		opacity: 0;
		transform: translateX(28px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes ccyQuizFade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (max-width: 640px) {
	.ccy-tech-quiz__overlay {
		align-items: stretch;
		padding: 12px;
	}

	.ccy-tech-quiz__panel {
		max-height: calc(100vh - 24px);
		padding: 22px;
	}

	.ccy-tech-quiz h2 {
		font-size: 23px;
	}

	.ccy-tech-quiz__controls {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.ccy-tech-quiz__button,
	.ccy-tech-quiz__cta {
		width: 100%;
	}
}
