/* ==========================================================================
   The Next Fifty Test — scoped styles
   Loaded inline by the page's "Next Fifty — styles & behaviour" HTML widget.
   Every selector is namespaced with .nft- so nothing else on the site is
   affected. Brand tokens come from the GDI palette + the Next50 logo plum.
   ========================================================================== */

/* Elementor's frontend CSS sets scroll-behavior: smooth globally, which makes
   every programmatic scroll frame animate again (slow start, then a lurch).
   This page drives its own scrolling, so let the browser apply it instantly. */
html {
	scroll-behavior: auto !important;
}

/* ---------- Section backgrounds ----------
   Elementor emits these from the container settings too, but the rendered
   gradient is unreliable across its 4.x CSS builds; pin them here so the
   page never falls back to a white band.
   -------------------------------------------------------------------------- */
.e-con.nft-test-section {
	background-color: #0d1426 !important;
	background-image: linear-gradient(135deg, #0d1426 0%, #2a0b22 100%) !important;
}
.e-con.nft-closing {
	background-color: #b61b92 !important;
	background-image: linear-gradient(120deg, #b61b92 0%, #ff1379 100%) !important;
}

/* ---------- Hero decoration ---------- */
.nft-hero {
	position: relative;
	overflow: hidden;
}
.nft-hero::before,
.nft-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}
.nft-hero::before {
	width: 620px;
	height: 620px;
	right: -180px;
	top: -240px;
	background: radial-gradient(circle, rgba(255, 19, 121, 0.55) 0%, rgba(255, 19, 121, 0) 68%);
}
.nft-hero::after {
	width: 460px;
	height: 460px;
	left: -180px;
	bottom: -220px;
	background: radial-gradient(circle, rgba(143, 255, 13, 0.22) 0%, rgba(143, 255, 13, 0) 70%);
}
.nft-hero > .e-con-inner {
	position: relative;
	z-index: 1;
}

.nft-hero-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border-radius: 20px;
	padding: 30px 26px;
	box-shadow: 0 22px 50px rgba(20, 0, 14, 0.35);
}
.nft-hero-logo img {
	display: block;
	width: 100%;
	max-width: 205px;
	height: auto;
}

.nft-hero-tag {
	display: inline-flex;
	align-self: flex-start;
	width: max-content;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #b5f5c8;
}

/* ---------- Criteria cards ---------- */
.nft-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nft-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 22px 46px rgba(13, 20, 38, 0.14);
}
.nft-card-num {
	display: inline-flex;
	align-self: flex-start;
	width: max-content;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #8fff0d;
	color: #2a3a00;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

/* ---------- Scorecard ---------- */
/* A real table, not Elementor flex rows, so the header always shares its
   columns with the cells. The Hello Elementor reset.css styles bare <table>
   with grey 1px borders, 15px cell padding and zebra rows, so everything the
   theme adds has to be cleared before the brand styling goes on. */
.nft-scorecard-card {
	background: #ffffff;
	border: 1px solid #e6e8f0;
	border-radius: 16px;
	padding: 22px 28px 26px;
}
.nft-scorecard-card .nft-scoretable,
.nft-scorecard-card .nft-scoretable thead,
.nft-scorecard-card .nft-scoretable tbody,
.nft-scorecard-card .nft-scoretable tr,
.nft-scorecard-card .nft-scoretable th,
.nft-scorecard-card .nft-scoretable td {
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
}
.nft-scorecard-card .nft-scoretable {
	width: 100% !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	font-size: 16px !important;
}
.nft-scorecard-card .nft-scoretable tbody > tr:nth-child(odd) > th,
.nft-scorecard-card .nft-scoretable tbody > tr:nth-child(odd) > td,
.nft-scorecard-card .nft-scoretable tbody tr:hover > th,
.nft-scorecard-card .nft-scoretable tbody tr:hover > td {
	background: transparent !important;
}
.nft-scorecard-card .nft-scoretable thead th {
	padding: 0 0 12px !important;
	border-bottom: 1px solid #e6e8f0 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.4 !important;
	color: #8a90a6 !important;
	text-align: left;
	vertical-align: bottom;
}
.nft-scorecard-card .nft-scoretable thead th:first-child {
	width: 34%;
	padding-right: 24px !important;
}
.nft-scorecard-card .nft-scoretable tbody th {
	padding: 16px 24px 16px 0 !important;
	border-bottom: 1px solid #e6e8f0 !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 24px !important;
	color: #41022c !important;
	text-align: left;
	vertical-align: top;
}
.nft-scorecard-card .nft-scoretable tbody td {
	padding: 16px 0 !important;
	border-bottom: 1px solid #e6e8f0 !important;
	font-size: 16px !important;
	line-height: 24px !important;
	color: #3a3f52 !important;
	vertical-align: top;
}
.nft-scorecard-card .nft-scoretable tbody tr:last-child th,
.nft-scorecard-card .nft-scoretable tbody tr:last-child td {
	border-bottom: none !important;
	padding-bottom: 4px !important;
}
.nft-sc-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
	padding: 18px 26px;
	border-radius: 14px;
	background: #41022c;
}
.nft-sc-total-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #ff9dc4;
}
.nft-sc-total-value {
	font-size: 30px;
	font-weight: 700;
	line-height: 34px;
	color: #ffffff;
}
@media (max-width: 767px) {
	.nft-scorecard-card {
		padding: 18px 20px 20px;
	}
	.nft-scorecard-card .nft-scoretable thead {
		display: none;
	}
	.nft-scorecard-card .nft-scoretable,
	.nft-scorecard-card .nft-scoretable tbody,
	.nft-scorecard-card .nft-scoretable tr,
	.nft-scorecard-card .nft-scoretable tbody th,
	.nft-scorecard-card .nft-scoretable tbody td {
		display: block;
		width: 100%;
	}
	.nft-scorecard-card .nft-scoretable tbody th {
		padding: 16px 0 2px !important;
		border-bottom: none !important;
		font-size: 16px !important;
	}
	.nft-scorecard-card .nft-scoretable tbody td {
		padding: 0 0 14px !important;
		border-bottom: 1px solid #e6e8f0 !important;
		font-size: 15px !important;
		line-height: 23px !important;
	}
	.nft-scorecard-card .nft-scoretable tbody tr:last-child td {
		border-bottom: none !important;
	}
	.nft-sc-total {
		padding: 16px 18px;
	}
	.nft-sc-total-value {
		font-size: 24px;
	}
}

.nft-sc-note {
	background: #f7f7fa;
	border-left: 3px solid #ff1379;
	border-radius: 0 12px 12px 0;
	padding: 20px 22px;
}
.nft-sc-note p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #4b5060;
}

/* ---------- Test form shell ---------- */
.nft-form-card {
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.38);
}

/* Kill Elementor's default field spacing; the page controls rhythm.
   !important because Elementor's per-element rules outrank a two-class selector. */
.nft-form .elementor-field-group {
	margin-bottom: 0 !important;
}
.nft-form .elementor-field-group-field-nft-hp,
.nft-form .elementor-field-group-nft_hp {
	display: none !important;
}

/* Question intro blocks (HTML fields) */
.nft-form .elementor-field-type-html {
	padding: 0;
	margin: 0;
}
.nft-q-head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 28px 0 12px;
}
.nft-q-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin-top: 1px;
	padding: 5px 9px;
	border-radius: 999px;
	background: #41022c;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
}
.nft-q-text {
	display: block;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: #0d1426;
}
.nft-q-help {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #7c8298;
}
.nft-form .elementor-field-group-title {
	margin-bottom: 26px !important;
}
.nft-form .elementor-field-group-type {
	margin-bottom: 12px !important;
}
.nft-form .elementor-field-group-q1,
.nft-form .elementor-field-group-q2,
.nft-form .elementor-field-group-q3 {
	margin-bottom: 0 !important;
}
.nft-form .elementor-field-group-title .elementor-field-label,
.nft-form .elementor-field-group-type .elementor-field-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6a6f84;
	margin-bottom: 8px;
}

/* Title input. Elementor emits its own element-scoped field CSS, so the visual
   properties need !important to win. */
.nft-form .elementor-field-textual {
	background: #f7f7fa !important;
	border: 2px solid #e6e8f0 !important;
	border-radius: 12px;
	padding: 15px 18px;
	font-size: 17px;
	color: #0d1426 !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.nft-form .elementor-field-textual::placeholder {
	color: #9aa0b4 !important;
}
.nft-form .elementor-field-textual:focus {
	background: #ffffff !important;
	border-color: #b61b92 !important;
	box-shadow: 0 0 0 4px rgba(182, 27, 146, 0.12) !important;
	outline: none;
}

/* Radio groups → cards */
.nft-form .elementor-field-subgroup {
	display: flex !important;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
}
.nft-form .elementor-field-type-radio .elementor-field-subgroup .elementor-field-option {
	flex: 1 1 0 !important;
	min-width: 0;
	display: block !important;
	margin: 0;
	padding: 0 !important;
	position: relative;
}
.nft-form .elementor-field-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.nft-form .elementor-field-type-radio .elementor-field-subgroup .elementor-field-option label {
	display: flex !important;
	width: 100% !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	border: 2px solid #e6e8f0 !important;
	border-radius: 12px;
	background: #ffffff !important;
	font-size: 16px;
	font-weight: 700;
	color: #3a3f52 !important;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease,
		box-shadow 0.18s ease, transform 0.18s ease;
	-webkit-tap-highlight-color: transparent;
}
.nft-form .elementor-field-option label:hover {
	border-color: #b0b4c6;
	transform: translateY(-1px);
}
.nft-form .elementor-field-option input[type="radio"]:focus-visible + label {
	outline: 3px solid #0b2ece;
	outline-offset: 2px;
}

/* Yes */
.nft-form .elementor-field-subgroup.nft-q .elementor-field-option:nth-child(1) input:checked + label {
	background: #f2ffda !important;
	border-color: #8fff0d !important;
	color: #2a3a00 !important;
	box-shadow: 0 6px 18px rgba(143, 255, 13, 0.28);
}
.nft-form .elementor-field-subgroup.nft-q .elementor-field-option:nth-child(1) input:checked + label::before {
	content: "✓";
	font-size: 15px;
	font-weight: 700;
}
/* No */
.nft-form .elementor-field-subgroup.nft-q .elementor-field-option:nth-child(2) input:checked + label {
	background: #f3f3f7 !important;
	border-color: #7c8298 !important;
	color: #0d1426 !important;
}
.nft-form .elementor-field-subgroup.nft-q .elementor-field-option:nth-child(2) input:checked + label::before {
	content: "×";
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

/* Type selector → pills */
.nft-form .elementor-field-subgroup.nft-type {
	gap: 8px;
}
.nft-form .elementor-field-type-radio .elementor-field-subgroup.nft-type .elementor-field-option {
	flex: 0 0 auto !important;
}
.nft-form .elementor-field-type-radio .elementor-field-subgroup.nft-type .elementor-field-option label {
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
}
.nft-form .elementor-field-subgroup.nft-type .elementor-field-option input:checked + label {
	background: #41022c !important;
	border-color: #41022c !important;
	color: #ffffff !important;
	transform: none;
	box-shadow: none;
}
.nft-form .elementor-field-subgroup.nft-type .elementor-field-option input:checked + label::before {
	content: none;
}

/* Submit */
.nft-form .elementor-field-type-submit {
	margin-top: 26px;
}
.nft-form .elementor-field-type-submit button {
	width: 100%;
	border: 0;
	border-radius: 12px;
	padding: 18px 24px;
	background: #ff1379;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease;
}
.nft-form .elementor-field-type-submit button:hover {
	background: #e00e69;
	transform: translateY(-1px);
}
.nft-form .elementor-field-type-submit button[disabled] {
	opacity: 0.6;
	transform: none;
}

/* Elementor inline messages */
.nft-form .elementor-message {
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 15px;
	margin-top: 16px;
}
.nft-form .elementor-message-success {
	background: #f2ffda;
	color: #2a3a00;
	border: 1px solid #8fff0d;
}
.nft-form .elementor-message-danger {
	background: #fff0f6;
	color: #b3125a;
	border: 1px solid #ff1379;
}
.nft-form-card.nft-done .elementor-message-success {
	display: none;
}

/* ---------- Result panel ---------- */
/* The score and verdict must use the brand typeface, not the inherited body font. */
.nft-result,
.nft-result * {
	font-family: "Gantari", sans-serif !important;
}

.nft-result {
	background: linear-gradient(135deg, #41022c 0%, #b61b92 100%);
	border-radius: 18px;
	padding: 34px 32px;
	color: #ffffff;
	margin-top: 10px;
	animation: nft-in 0.45s ease both;
	outline: none;
}
.nft-result[hidden] {
	display: none;
}
.nft-result__score {
	font-size: 58px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
}
.nft-result__verdict {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	margin-top: 10px;
}
.nft-result__verdict.nft-pass {
	color: #8fff0d;
}
.nft-result__copy {
	font-size: 16px;
	line-height: 1.6;
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.88);
}
.nft-result__missing {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
}
.nft-result__missing li {
	position: relative;
	padding-left: 18px;
	margin-top: 4px;
}
.nft-result__missing li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ff1379;
}
.nft-result__meta {
	margin-top: 16px;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.7);
}
.nft-result__again {
	margin-top: 22px;
	border: 0;
	border-radius: 999px;
	padding: 14px 26px;
	background: #ffffff;
	color: #41022c;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}
.nft-result__again:hover {
	background: #8fff0d;
	color: #2a3a00;
}
@keyframes nft-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.nft-form .elementor-field-option label {
		padding: 14px 12px;
		font-size: 15px;
	}
	.nft-result {
		padding: 26px 22px;
	}
	.nft-result__score {
		font-size: 44px;
	}
	.nft-result__verdict {
		font-size: 20px;
	}
}

/* ---------- Shared text blocks ---------- */
.nft-hero-tag p {
	margin: 0;
}
.nft-emph {
	padding-left: 22px;
	border-left: 3px solid #ff1379;
}
.nft-emph p {
	margin: 0;
}
/* The visible question text lives in the HTML field above each radio group;
   keep the real <label> for screen readers only. */
.nft-form .elementor-field-group-q1 .elementor-field-label,
.nft-form .elementor-field-group-q2 .elementor-field-label,
.nft-form .elementor-field-group-q3 .elementor-field-label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
