/*
 * eMax Hotel Website Health Check Game
 * All styles are scoped under .emax-hhg to avoid global style pollution.
 * Mobile-first; desktop enhancements are in min-width media queries.
 */

.emax-hhg {
	/* Palette */
	--emax-navy: #102033;
	--emax-blue: #1A2A3A;
	--emax-gold: #D8A642;
	--emax-gold-soft: #F3D58A;
	--emax-white: #FFFFFF;
	--emax-warm: #F5F3EF;
	--emax-text: #5F6673;
	--emax-green: #49A66A;
	--emax-orange: #E59A3A;
	--emax-red: #C94C4C;

	--emax-radius: 16px;
	--emax-radius-sm: 12px;
	--emax-shadow: 0 10px 30px rgba(16, 32, 51, 0.10);
	--emax-shadow-sm: 0 4px 14px rgba(16, 32, 51, 0.08);

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--emax-navy);
	line-height: 1.6;
	max-width: 960px;
	margin: 0 auto;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.emax-hhg *,
.emax-hhg *::before,
.emax-hhg *::after { box-sizing: border-box; }

.emax-hhg p { margin: 0 0 0.75em; }

/* No-JS / notice fallbacks */
.emax-hhg-noscript,
.emax-hhg-notice {
	background: var(--emax-warm);
	border: 1px solid rgba(16, 32, 51, 0.12);
	border-radius: var(--emax-radius-sm);
	padding: 20px;
	color: var(--emax-navy);
	text-align: center;
}

/* -------------------------------------------------------------------------
 * Shared surfaces
 * ---------------------------------------------------------------------- */
.emax-hhg-card {
	background: var(--emax-white);
	border-radius: var(--emax-radius);
	box-shadow: var(--emax-shadow);
	padding: 24px;
}
@media (min-width: 720px) {
	.emax-hhg-card { padding: 36px; }
}

.emax-hhg-panel-dark {
	background: var(--emax-navy);
	color: var(--emax-white);
	border-radius: var(--emax-radius);
}

.emax-hhg-eyebrow {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--emax-gold);
	margin: 0 0 8px;
}

/* -------------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------------- */
.emax-hhg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	padding: 15px 26px;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
	text-align: center;
}
.emax-hhg-btn:hover { transform: translateY(-1px); }
.emax-hhg-btn:active { transform: translateY(0); }

.emax-hhg-btn--primary {
	background: var(--emax-gold);
	color: var(--emax-navy);
	box-shadow: 0 8px 20px rgba(216, 166, 66, 0.35);
}
.emax-hhg-btn--primary:hover { background: #e4b756; }

.emax-hhg-btn--lg { font-size: 18px; padding: 18px 34px; }

/* Secondary on dark background */
.emax-hhg-btn--ghost {
	background: transparent;
	color: var(--emax-white);
	border: 1px solid rgba(255, 255, 255, 0.35);
}
.emax-hhg-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Secondary on light background */
.emax-hhg-btn--ghost-light {
	background: transparent;
	color: var(--emax-navy);
	border: 1px solid var(--emax-gold);
}
.emax-hhg-btn--ghost-light:hover { background: rgba(216, 166, 66, 0.10); }

.emax-hhg-btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Visible focus states for all interactive elements */
.emax-hhg :focus-visible {
	outline: 3px solid var(--emax-gold);
	outline-offset: 2px;
	border-radius: 6px;
}

/* -------------------------------------------------------------------------
 * Intro / hero
 * ---------------------------------------------------------------------- */
.emax-hhg-hero {
	overflow: hidden;
}
.emax-hhg-hero__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding: 32px 24px;
}
@media (min-width: 860px) {
	.emax-hhg-hero__inner {
		grid-template-columns: 1.1fr 0.9fr;
		align-items: center;
		padding: 48px 44px;
	}
}
.emax-hhg-hero__rule {
	width: 54px;
	height: 3px;
	background: var(--emax-gold);
	border-radius: 3px;
	margin: 0 0 18px;
}
.emax-hhg-hero h2 {
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 14px;
	color: var(--emax-white);
	font-weight: 700;
}
@media (min-width: 720px) {
	.emax-hhg-hero h2 { font-size: 36px; }
}
.emax-hhg-hero__sub {
	color: #C7D0DB;
	font-size: 16px;
	max-width: 46ch;
}
.emax-hhg-badges {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 20px 0 24px;
}
.emax-hhg-badges li {
	font-size: 13px;
	font-weight: 600;
	color: var(--emax-gold-soft);
	background: rgba(216, 166, 66, 0.12);
	border: 1px solid rgba(216, 166, 66, 0.30);
	border-radius: 999px;
	padding: 7px 14px;
}
.emax-hhg-hero__support {
	color: #8A97A8;
	font-size: 13px;
	margin: 16px 0 0;
}

/* Intro mock dashboard card */
.emax-hhg-mock {
	background: var(--emax-blue);
	border: 1px solid rgba(216, 166, 66, 0.25);
	border-radius: var(--emax-radius-sm);
	padding: 20px;
}
.emax-hhg-mock__title {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--emax-gold-soft);
	margin: 0 0 14px;
}
.emax-hhg-mock__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	font-size: 14px;
	color: #DDE3EA;
}
.emax-hhg-mock__row:first-of-type { border-top: 0; }
.emax-hhg-status {
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
}
.emax-hhg-status--needs { color: #F0B7B7; background: rgba(201, 76, 76, 0.18); }
.emax-hhg-status--mod   { color: #F4CE93; background: rgba(229, 154, 58, 0.18); }
.emax-hhg-status--strong{ color: #A7DCBB; background: rgba(73, 166, 106, 0.18); }
.emax-hhg-status--opp   { color: var(--emax-gold-soft); background: rgba(216, 166, 66, 0.18); }

/* -------------------------------------------------------------------------
 * Progress bar
 * ---------------------------------------------------------------------- */
.emax-hhg-progress {
	margin: 0 0 22px;
}
.emax-hhg-progress__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--emax-text);
	margin: 0 0 8px;
	display: flex;
	justify-content: space-between;
}
.emax-hhg-progress__track {
	height: 8px;
	background: rgba(16, 32, 51, 0.10);
	border-radius: 999px;
	overflow: hidden;
}
.emax-hhg-progress__fill {
	height: 100%;
	width: 0;
	background: var(--emax-gold);
	border-radius: 999px;
	transition: width 0.4s ease;
}

/* -------------------------------------------------------------------------
 * Question
 * ---------------------------------------------------------------------- */
.emax-hhg-q__headline {
	font-size: 21px;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--emax-navy);
}
@media (min-width: 720px) {
	.emax-hhg-q__headline { font-size: 24px; }
}
.emax-hhg-q__desc { color: var(--emax-text); margin: 0 0 20px; }
.emax-hhg-q__hint { font-size: 13px; color: var(--emax-text); margin: -12px 0 16px; }

.emax-hhg-answers {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 0 0 20px;
}
@media (min-width: 640px) {
	.emax-hhg-answers { grid-template-columns: 1fr 1fr; }
}

.emax-hhg-answer {
	display: block;
	width: 100%;
	text-align: left;
	background: var(--emax-white);
	border: 1.5px solid rgba(16, 32, 51, 0.12);
	border-radius: var(--emax-radius-sm);
	padding: 16px 18px;
	cursor: pointer;
	font: inherit;
	color: var(--emax-navy);
	box-shadow: var(--emax-shadow-sm);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
	position: relative;
}
.emax-hhg-answer:hover { border-color: var(--emax-gold); transform: translateY(-1px); }
.emax-hhg-answer__title { font-weight: 700; font-size: 16px; margin: 0 0 4px; display: block; }
.emax-hhg-answer__desc { font-size: 14px; color: var(--emax-text); margin: 0; }

/* Selected: gold border AND a check marker, so selection is never color-only */
.emax-hhg-answer.is-selected {
	border-color: var(--emax-gold);
	box-shadow: 0 0 0 3px rgba(216, 166, 66, 0.28);
}
.emax-hhg-answer.is-selected::after {
	content: "\2713";
	position: absolute;
	top: 12px;
	right: 14px;
	width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--emax-navy);
	background: var(--emax-gold);
	border-radius: 50%;
}
.emax-hhg-answer.is-locked { cursor: default; }
.emax-hhg-answer.is-dim { opacity: 0.55; }

/* Multi-select hint chip */
.emax-hhg-multi-note {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: var(--emax-navy);
	background: var(--emax-gold-soft);
	border-radius: 999px;
	padding: 4px 12px;
	margin: 0 0 14px;
}

/* Feedback panel */
.emax-hhg-feedback {
	background: var(--emax-warm);
	border-left: 4px solid var(--emax-gold);
	border-radius: 0 var(--emax-radius-sm) var(--emax-radius-sm) 0;
	padding: 14px 16px;
	margin: 0 0 20px;
	font-size: 15px;
	color: var(--emax-navy);
}
.emax-hhg-feedback strong { color: var(--emax-navy); }

.emax-hhg-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------------------------------------------------------
 * Calculating screen
 * ---------------------------------------------------------------------- */
.emax-hhg-calc { text-align: center; padding: 40px 20px; }
.emax-hhg-calc h2 { font-size: 22px; margin: 0 0 24px; color: var(--emax-navy); }
.emax-hhg-calc__list { list-style: none; padding: 0; margin: 0 auto; max-width: 360px; text-align: left; }
.emax-hhg-calc__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	color: var(--emax-text);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.emax-hhg-calc__list li.is-on { opacity: 1; transform: none; color: var(--emax-navy); }
.emax-hhg-calc__check {
	width: 22px; height: 22px; line-height: 22px; text-align: center;
	border-radius: 50%; background: var(--emax-green); color: #fff; font-size: 13px; font-weight: 700;
	flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
 * Results dashboard
 * ---------------------------------------------------------------------- */
.emax-hhg-result__score { text-align: center; padding: 30px 24px 26px; }
.emax-hhg-result__brand {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 4px 16px; border-bottom: 1px solid rgba(216,166,66,0.35);
	font-size: 13px;
}
.emax-hhg-result__brand .name { color: var(--emax-gold-soft); letter-spacing: 0.1em; text-transform: uppercase; }
.emax-hhg-result__brand .tag { color: #8A97A8; }
.emax-hhg-result__label {
	font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #8A97A8; margin: 22px 0 4px;
}
.emax-hhg-result__number {
	font-size: 68px; line-height: 1; font-weight: 700; color: var(--emax-white);
	font-family: Georgia, "Times New Roman", serif;
}
.emax-hhg-result__number span { font-size: 26px; color: #5F6673; font-family: inherit; }
.emax-hhg-result__type {
	display: inline-block; margin: 14px 0 12px; padding: 7px 20px;
	border: 1px solid var(--emax-gold); border-radius: 999px;
	color: var(--emax-gold-soft); font-weight: 700; font-size: 16px;
}
.emax-hhg-result__desc { color: #B9C2CE; max-width: 48ch; margin: 0 auto; font-size: 15px; }

/* Category meters */
.emax-hhg-meters { margin: 22px 0 4px; }
.emax-hhg-meter { margin: 0 0 14px; }
.emax-hhg-meter__top { display: flex; justify-content: space-between; font-size: 14px; margin: 0 0 6px; }
.emax-hhg-meter__name { color: #DDE3EA; }
.emax-hhg-meter__val { color: var(--emax-gold-soft); font-weight: 700; }
.emax-hhg-meter__track { height: 8px; background: var(--emax-blue); border-radius: 999px; overflow: hidden; }
.emax-hhg-meter__fill { height: 100%; width: 0; background: var(--emax-gold); border-radius: 999px; transition: width 0.9s ease; }
.emax-hhg-meter__fill.is-low { background: var(--emax-orange); }

/* Opportunity + recommendation */
.emax-hhg-opp {
	margin: 22px 0 0; padding: 16px 18px; background: var(--emax-blue);
	border: 1px solid rgba(216, 166, 66, 0.25); border-radius: var(--emax-radius-sm);
}
.emax-hhg-opp__head { color: var(--emax-gold-soft); font-weight: 700; margin: 0 0 6px; font-size: 15px; }
.emax-hhg-opp__body { color: #B9C2CE; font-size: 14px; margin: 0; }

/* Sell block on light card */
.emax-hhg-sell h3 { font-size: 20px; margin: 0 0 8px; color: var(--emax-navy); }
.emax-hhg-sell p { color: var(--emax-text); }
.emax-hhg-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }

/* Pricing / offer block */
.emax-hhg-pricing {
	margin: 20px 0 4px;
	padding: 18px 20px;
	background: var(--emax-warm);
	border: 1px solid rgba(216, 166, 66, 0.35);
	border-radius: var(--emax-radius-sm);
}
.emax-hhg-pricing__eyebrow {
	font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
	color: #9a7b2e; margin: 0 0 8px;
}
.emax-hhg-pricing__row {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px;
}
.emax-hhg-pricing__title { font-size: 18px; font-weight: 700; color: var(--emax-navy); }
.emax-hhg-pricing__amount {
	font-size: 20px; font-weight: 700; color: var(--emax-navy);
	background: var(--emax-gold); border-radius: 999px; padding: 4px 16px;
}
.emax-hhg-pricing__body { margin: 12px 0 0; color: var(--emax-navy); font-size: 15px; }
.emax-hhg-pricing__roi { margin: 10px 0 0; color: var(--emax-text); font-size: 13px; font-style: italic; }

/* -------------------------------------------------------------------------
 * Lead form
 * ---------------------------------------------------------------------- */
.emax-hhg-form { margin: 22px 0 0; }
.emax-hhg-form h3 { font-size: 18px; margin: 0 0 4px; }
.emax-hhg-field { margin: 0 0 14px; }
.emax-hhg-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .emax-hhg-grid-2 { grid-template-columns: 1fr 1fr; } }
.emax-hhg-field label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--emax-navy); }
.emax-hhg-field .req { color: var(--emax-red); }
.emax-hhg-field input,
.emax-hhg-field textarea {
	width: 100%; font: inherit; color: var(--emax-navy);
	padding: 11px 13px; border: 1.5px solid rgba(16, 32, 51, 0.18);
	border-radius: 10px; background: #fff;
}
.emax-hhg-field textarea { min-height: 96px; resize: vertical; }
.emax-hhg-field input:focus,
.emax-hhg-field textarea:focus { border-color: var(--emax-gold); outline: none; box-shadow: 0 0 0 3px rgba(216,166,66,0.25); }
.emax-hhg-field.has-error input,
.emax-hhg-field.has-error textarea { border-color: var(--emax-red); }
.emax-hhg-field__error { color: var(--emax-red); font-size: 13px; margin: 6px 0 0; font-weight: 600; }

.emax-hhg-consent { font-size: 13px; color: var(--emax-text); margin: 8px 0 14px; display: flex; gap: 8px; align-items: flex-start; }
.emax-hhg-copy-opt { font-size: 14px; color: var(--emax-navy); margin: 0 0 14px; display: flex; gap: 8px; align-items: flex-start; }

/* Honeypot: visually hidden but present in the DOM for bots */
.emax-hhg-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px; overflow: hidden;
}

.emax-hhg-disclaimer { font-size: 12px; color: var(--emax-text); margin: 16px 0 0; line-height: 1.5; }

.emax-hhg-form__status { margin: 12px 0 0; font-weight: 600; }
.emax-hhg-form__status.is-error { color: var(--emax-red); }
.emax-hhg-form__status.is-ok { color: var(--emax-green); }

.emax-hhg-thanks {
	background: var(--emax-warm); border-radius: var(--emax-radius-sm);
	padding: 24px; text-align: center; color: var(--emax-navy);
}
.emax-hhg-thanks__icon {
	width: 46px; height: 46px; line-height: 46px; margin: 0 auto 12px;
	border-radius: 50%; background: var(--emax-green); color: #fff; font-size: 22px; font-weight: 700;
}

/* Share */
.emax-hhg-share { margin: 20px 0 0; text-align: center; }
.emax-hhg-share__copy { font-size: 13px; color: var(--emax-text); margin: 8px 0 0; }
.emax-hhg-btn--linkedin { background: #0A66C2; color: #fff; }
.emax-hhg-btn--linkedin:hover { background: #08528f; }

/* Spinner */
.emax-hhg-spinner {
	width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid rgba(16, 32, 51, 0.35); border-top-color: var(--emax-navy);
	display: inline-block; animation: emax-hhg-spin 0.7s linear infinite;
}
@keyframes emax-hhg-spin { to { transform: rotate(360deg); } }

/* Simple fade for screen transitions */
.emax-hhg-fade { animation: emax-hhg-fade 0.35s ease; }
@keyframes emax-hhg-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------------------
 * Reduced motion
 * ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.emax-hhg *,
	.emax-hhg *::before,
	.emax-hhg *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* -------------------------------------------------------------------------
 * Print fallback
 * ---------------------------------------------------------------------- */
@media print {
	.emax-hhg { color: #000; max-width: none; }
	.emax-hhg-panel-dark,
	.emax-hhg-result__score { background: #fff !important; color: #000 !important; }
	.emax-hhg-result__number,
	.emax-hhg-result__type,
	.emax-hhg-meter__name,
	.emax-hhg-result__desc,
	.emax-hhg-opp__body { color: #000 !important; }
	.emax-hhg-btn, .emax-hhg-share, .emax-hhg-form { display: none !important; }
	.emax-hhg-meter__fill { background: #888 !important; }
}
