/**
 * GlobalNetExpo Growth Audit - front-end styles.
 * Scoped under .gne-audit so the theme is never affected.
 */

.gne-audit {
	--gne-navy: #0a1128;
	--gne-navy-light: #15234b;
	--gne-navy-lighter: #1d2f5e;
	--gne-gold: #d4af37;
	--gne-gold-dark: #aa7c11;
	--gne-text: #ffffff;
	--gne-muted: #a0aec0;
	--gne-border: rgba(255, 255, 255, 0.1);
	--gne-danger: #f87171;

	max-width: 640px;
	margin: 0 auto;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.gne-audit *,
.gne-audit *::before,
.gne-audit *::after {
	box-sizing: inherit;
}

.gne-audit__shell {
	background: var(--gne-navy);
	color: var(--gne-text);
	padding: 40px;
	border-radius: 14px;
	border: 1px solid rgba(212, 175, 55, 0.2);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

/* Header ------------------------------------------------------------- */

.gne-audit__header {
	margin-bottom: 26px;
}

.gne-audit__title {
	margin: 0 0 6px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--gne-text);
}

.gne-audit__subtitle {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--gne-muted);
}

/* Progress ----------------------------------------------------------- */

.gne-audit__progress {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}

.gne-audit__progress-track {
	flex: 1;
	height: 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	overflow: hidden;
}

.gne-audit__progress-fill {
	height: 100%;
	width: 20%;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--gne-gold) 0%, var(--gne-gold-dark) 100%);
	transition: width 0.4s ease;
}

.gne-audit__progress-label {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gne-muted);
	white-space: nowrap;
}

/* Steps -------------------------------------------------------------- */

.gne-audit__step {
	display: none;
}

.gne-audit__step.is-active {
	display: block;
	animation: gneFadeIn 0.45s ease;
}

.gne-audit__step-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	color: var(--gne-gold);
}

.gne-audit__step-subtitle {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--gne-muted);
}

@keyframes gneFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Option cards ------------------------------------------------------- */

.gne-audit__options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 26px;
	padding: 0;
	border: 0;
}

.gne-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 46px 16px 18px;
	background: var(--gne-navy-light);
	border: 1px solid var(--gne-border);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.gne-option:hover {
	border-color: rgba(212, 175, 55, 0.5);
	transform: translateY(-2px);
}

.gne-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.gne-option__icon {
	flex: 0 0 auto;
	display: inline-flex;
	color: var(--gne-gold);
	transition: transform 0.25s ease;
}

.gne-option__label {
	flex: 1;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

.gne-option__check {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.gne-option__check--box {
	border-radius: 5px;
}

.gne-option__check::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 8px;
	height: 8px;
	border-radius: inherit;
	background: var(--gne-navy);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.gne-option input:checked ~ .gne-option__check {
	border-color: var(--gne-gold);
	background: var(--gne-gold);
}

.gne-option input:checked ~ .gne-option__check::after {
	opacity: 1;
}

.gne-option:has(input:checked),
.gne-option.is-selected {
	border-color: var(--gne-gold);
	background: rgba(212, 175, 55, 0.06);
	box-shadow: 0 0 18px rgba(212, 175, 55, 0.12);
}

.gne-option:has(input:checked) .gne-option__icon,
.gne-option.is-selected .gne-option__icon {
	transform: scale(1.12);
}

.gne-option input:focus-visible ~ .gne-option__label {
	outline: 2px solid var(--gne-gold);
	outline-offset: 3px;
	border-radius: 3px;
}

/* Fields ------------------------------------------------------------- */

.gne-audit__field {
	margin-bottom: 18px;
}

.gne-audit__label {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gne-muted);
}

.gne-audit__optional {
	text-transform: none;
	letter-spacing: 0;
	font-size: 11px;
	opacity: 0.7;
}

.gne-audit__input,
.gne-audit__select {
	width: 100%;
	padding: 14px 16px;
	background: var(--gne-navy-light);
	border: 1px solid var(--gne-border);
	border-radius: 8px;
	color: var(--gne-text);
	font-size: 15px;
	font-family: inherit;
	line-height: 1.4;
	transition: border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.gne-audit__textarea {
	resize: vertical;
	min-height: 84px;
}

.gne-audit__input::placeholder {
	color: rgba(160, 174, 192, 0.6);
}

.gne-audit__input:focus,
.gne-audit__select:focus {
	outline: none;
	border-color: var(--gne-gold);
}

.gne-audit__input.has-error,
.gne-audit__select.has-error {
	border-color: var(--gne-danger);
}

.gne-audit__select-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.gne-audit__select-wrap .gne-icon {
	position: absolute;
	left: 15px;
	color: var(--gne-gold);
	pointer-events: none;
}

.gne-audit__select-wrap .gne-audit__select {
	padding-left: 46px;
	padding-right: 38px;
	background-image: linear-gradient(45deg, transparent 50%, var(--gne-muted) 50%), linear-gradient(135deg, var(--gne-muted) 50%, transparent 50%);
	background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.gne-audit__select option {
	background: var(--gne-navy-light);
	color: var(--gne-text);
}

/* Consent ------------------------------------------------------------ */

.gne-audit__consent {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 22px 0 6px;
}

.gne-audit__consent-row {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--gne-muted);
	cursor: pointer;
}

.gne-audit__consent-row input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 2px;
	width: 16px;
	height: 16px;
	accent-color: var(--gne-gold);
}

.gne-audit__consent-row a {
	color: var(--gne-gold);
	text-decoration: underline;
}

.gne-audit__consent-row.has-error {
	color: var(--gne-danger);
}

/* Buttons ------------------------------------------------------------ */

.gne-audit__actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
}

.gne-btn {
	padding: 14px 28px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gne-btn--primary {
	margin-left: auto;
	background: linear-gradient(135deg, var(--gne-gold) 0%, var(--gne-gold-dark) 100%);
	color: var(--gne-navy) !important;
}

.gne-btn--primary:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.gne-btn--ghost {
	background: transparent;
	border: 1px solid var(--gne-border);
	color: var(--gne-muted) !important;
}

.gne-btn--ghost:hover:not(:disabled) {
	border-color: rgba(255, 255, 255, 0.35);
	color: var(--gne-text) !important;
}

.gne-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.gne-btn:focus-visible {
	outline: 2px solid var(--gne-gold);
	outline-offset: 3px;
}

/* Errors, notices ---------------------------------------------------- */

.gne-audit__error {
	display: none;
	margin-top: 4px;
	padding: 11px 14px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--gne-danger);
	background: rgba(248, 113, 113, 0.08);
	border: 1px solid rgba(248, 113, 113, 0.3);
	border-radius: 7px;
}

.gne-audit__error.is-visible {
	display: block;
}

.gne-audit__ai-notice {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 18px 0 0;
	font-size: 11.5px;
	line-height: 1.6;
	color: var(--gne-muted);
	opacity: 0.85;
}

.gne-audit__ai-notice .gne-icon {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	color: var(--gne-gold);
}

.gne-audit__ai-notice--sub {
	margin-top: 8px;
	opacity: 0.65;
}

.gne-audit__hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.gne-icon {
	width: 20px;
	height: 20px;
}

/* Result ------------------------------------------------------------- */

.gne-audit__result[hidden] {
	display: none;
}

.gne-result {
	text-align: center;
	animation: gneFadeIn 0.5s ease;
}

.gne-result__eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gne-muted);
}

.gne-result__gauge {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	gap: 6px;
	padding: 18px 34px;
	border-radius: 999px;
	border: 2px solid var(--gne-gold);
	background: rgba(212, 175, 55, 0.07);
}

.gne-result__gauge[data-band="poor"] { border-color: #f87171; background: rgba(248, 113, 113, 0.08); }
.gne-result__gauge[data-band="developing"] { border-color: #fbbf24; background: rgba(251, 191, 36, 0.08); }
.gne-result__gauge[data-band="solid"] { border-color: #d4af37; }
.gne-result__gauge[data-band="strong"] { border-color: #4ade80; background: rgba(74, 222, 128, 0.08); }

.gne-result__score {
	font-size: 46px;
	font-weight: 700;
	line-height: 1;
}

.gne-result__outof {
	font-size: 15px;
	color: var(--gne-muted);
}

.gne-result__band {
	margin: 12px 0 26px;
	font-size: 15px;
	font-weight: 600;
	color: var(--gne-gold);
}

.gne-result__bars {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 26px;
	text-align: left;
}

.gne-result__bar-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 7px;
	font-size: 13px;
	color: var(--gne-muted);
}

.gne-result__bar-head strong {
	color: var(--gne-text);
}

.gne-result__bar-track {
	height: 7px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	overflow: hidden;
}

.gne-result__bar-fill {
	height: 100%;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--gne-gold) 0%, var(--gne-gold-dark) 100%);
	animation: gneGrow 0.8s ease;
}

@keyframes gneGrow {
	from { width: 0 !important; }
}

.gne-result__insights {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	text-align: left;
}

.gne-result__insights li {
	position: relative;
	padding: 14px 16px 14px 18px;
	margin-bottom: 10px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--gne-text);
	background: var(--gne-navy-light);
	border-left: 3px solid var(--gne-gold);
	border-radius: 0 8px 8px 0;
}

.gne-result__lede {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--gne-muted);
}

.gne-result__lede strong {
	color: var(--gne-text);
}

.gne-result__icon {
	display: inline-flex;
	color: var(--gne-gold);
	margin-bottom: 12px;
}

.gne-result__icon .gne-icon {
	width: 44px;
	height: 44px;
}

.gne-result__title {
	margin: 0 0 10px;
	font-size: 20px;
	color: var(--gne-gold);
}

.gne-result__method {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	padding-top: 18px;
	border-top: 1px solid var(--gne-border);
	font-size: 11.5px;
	line-height: 1.6;
	color: var(--gne-muted);
	text-align: left;
	opacity: 0.8;
}

.gne-result__method .gne-icon {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin-top: 2px;
}

/* Screen reader helper (themes do not always provide one) -------------- */

.gne-audit .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 600px) {
	.gne-audit__shell {
		padding: 26px 20px;
		border-radius: 10px;
	}

	.gne-audit__title { font-size: 20px; }
	.gne-audit__step-title { font-size: 18px; }
	.gne-result__score { font-size: 38px; }

	.gne-audit__actions {
		flex-direction: column-reverse;
	}

	.gne-btn {
		width: 100%;
		margin-left: 0 !important;
	}

	.gne-audit__progress-label {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gne-audit *,
	.gne-audit *::before,
	.gne-audit *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}