/**
 * Live Quiz Master — [lqm_home] promotional hero.
 * Self-contained, namespaced under .lqm-home-*. Sits inside any Divi section.
 */

.lqm-home {
	--lqm-home-accent: #2563eb;
	box-sizing: border-box;
	max-width: 1100px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.lqm-home *, .lqm-home *::before, .lqm-home *::after { box-sizing: border-box; }

/* Hero */
.lqm-home-hero {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 64px);
	text-align: center;
	color: #fff;
	background: var(--lqm-home-accent);
}
.lqm-home-hero::before {
	content: "";
	position: absolute;
	inset: -40%;
	background: radial-gradient( circle at 30% 20%, rgba(255,255,255,0.22), transparent 45% ),
				radial-gradient( circle at 75% 80%, rgba(0,0,0,0.25), transparent 50% );
	animation: lqm-home-shimmer 14s ease-in-out infinite alternate;
	pointer-events: none;
}
.lqm-home-hero.has-bg::before { opacity: 0.5; }

@keyframes lqm-home-shimmer {
	from { transform: translate3d(-4%, -2%, 0) rotate(0deg); }
	to   { transform: translate3d(4%, 3%, 0) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
	.lqm-home-hero::before { animation: none; }
}

.lqm-home-logo {
	position: relative;
	max-height: 72px;
	width: auto;
	margin: 0 auto 18px;
	display: block;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}
.lqm-home-title {
	position: relative;
	margin: 0 0 12px;
	font-size: clamp(30px, 6vw, 60px);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: #fff;
}
.lqm-home-sub {
	position: relative;
	margin: 0 auto;
	max-width: 640px;
	font-size: clamp(16px, 2.4vw, 22px);
	font-weight: 500;
	opacity: 0.95;
	color: #fff;
}
.lqm-home-cta {
	position: relative;
	display: inline-block;
	margin-top: 26px;
	padding: 15px 34px;
	border-radius: 999px;
	background: #fff;
	color: var(--lqm-home-accent);
	font-size: 18px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(0,0,0,0.25);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.lqm-home-cta:hover,
.lqm-home-cta:focus {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 16px 40px rgba(0,0,0,0.3);
	color: var(--lqm-home-accent);
}

/* The six answer-colour dots as a playful accent. */
.lqm-home-dots {
	position: absolute;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}
.lqm-home-dots i {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: block;
	opacity: 0.9;
}
.lqm-home-dots i:nth-child(1) { background: #2557d6; }
.lqm-home-dots i:nth-child(2) { background: #d6342c; }
.lqm-home-dots i:nth-child(3) { background: #1f9d57; }
.lqm-home-dots i:nth-child(4) { background: #d6a000; }
.lqm-home-dots i:nth-child(5) { background: #7d3cc8; }
.lqm-home-dots i:nth-child(6) { background: #e1730b; }

/* Feature tiles */
.lqm-home-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 22px;
}
@media (max-width: 720px) {
	.lqm-home-tiles { grid-template-columns: 1fr; }
}
.lqm-home-tile {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 18px;
	padding: 22px;
	text-align: center;
	box-shadow: 0 6px 18px rgba(0,0,0,0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lqm-home-tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}
.lqm-home-tile-media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	margin-bottom: 12px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--lqm-home-accent) 12%, #fff);
	overflow: hidden;
}
.lqm-home-tile-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.lqm-home-glyph { color: var(--lqm-home-accent); }
.lqm-home-glyph svg { width: 64px; height: 64px; display: block; }
.lqm-home-caption {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #1d2327;
}

/* Older browsers without color-mix get a sensible flat tint. */
@supports not (background: color-mix(in srgb, red 10%, white)) {
	.lqm-home-tile-media { background: #eef2fb; }
}

/* -------------------------------------------------------------------------- *
 * [lqm_enquiry] form
 * -------------------------------------------------------------------------- */

.lqm-enquiry {
	--lqm-home-accent: #2563eb;
	box-sizing: border-box;
	max-width: 640px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.lqm-enquiry *, .lqm-enquiry *::before, .lqm-enquiry *::after { box-sizing: border-box; }

.lqm-enquiry-title {
	margin: 0 0 8px;
	font-size: clamp(22px, 4vw, 32px);
	font-weight: 800;
	color: #1d2327;
	text-align: center;
}
.lqm-enquiry-intro {
	margin: 0 auto 22px;
	max-width: 520px;
	text-align: center;
	color: #50575e;
	font-size: 16px;
}

.lqm-enquiry-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 18px;
	padding: clamp(20px, 4vw, 32px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}
.lqm-enquiry-field { display: flex; flex-direction: column; gap: 6px; }
.lqm-enquiry-field > span {
	font-size: 14px;
	font-weight: 700;
	color: #1d2327;
}
.lqm-enquiry-field input,
.lqm-enquiry-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #d8dce0;
	border-radius: 12px;
	font-size: 16px; /* >=16px avoids iOS zoom-on-focus */
	font-family: inherit;
	color: #1d2327;
	background: #fff;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.lqm-enquiry-field textarea { resize: vertical; min-height: 110px; }
.lqm-enquiry-field input:focus,
.lqm-enquiry-field textarea:focus {
	outline: none;
	border-color: var(--lqm-home-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--lqm-home-accent) 25%, transparent);
}

/* Honeypot — hidden from humans, present for bots. */
.lqm-enquiry-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lqm-enquiry-submit {
	margin-top: 4px;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--lqm-home-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}
.lqm-enquiry-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2); }
.lqm-enquiry-submit:disabled { opacity: 0.6; cursor: default; }

.lqm-enquiry-status {
	margin: 4px 0 0;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	min-height: 1.2em;
	color: #50575e;
}
.lqm-enquiry-status.is-error { color: #d6342c; }

.lqm-enquiry-success {
	margin: 0;
	padding: 22px;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	color: #1f9d57;
	background: rgba(31, 157, 87, 0.1);
	border-radius: 14px;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
	.lqm-enquiry-field input:focus,
	.lqm-enquiry-field textarea:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25); }
}

/* -------------------------------------------------------------------------- *
 * [lqm_how_it_works] explainer
 * -------------------------------------------------------------------------- */

.lqm-how {
	--lqm-home-accent: #2563eb;
	box-sizing: border-box;
	max-width: 1100px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.lqm-how *, .lqm-how *::before, .lqm-how *::after { box-sizing: border-box; }

.lqm-how-title {
	margin: 0 0 10px;
	text-align: center;
	font-size: clamp(26px, 5vw, 42px);
	font-weight: 900;
	letter-spacing: -0.02em;
	color: #1d2327;
}
.lqm-how-intro {
	margin: 0 auto 28px;
	max-width: 640px;
	text-align: center;
	font-size: clamp(16px, 2.2vw, 19px);
	color: #50575e;
}

.lqm-how-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
@media (max-width: 900px) { .lqm-how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lqm-how-steps { grid-template-columns: 1fr; } }

.lqm-how-step {
	position: relative;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 18px;
	padding: 26px 22px 22px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lqm-how-step:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12); }

.lqm-how-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	color: var(--lqm-home-accent);
	background: color-mix(in srgb, var(--lqm-home-accent) 12%, #fff);
	margin-bottom: 14px;
}
.lqm-how-icon svg { width: 36px; height: 36px; display: block; }

.lqm-how-num {
	position: absolute;
	top: 16px;
	right: 18px;
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
	color: color-mix(in srgb, var(--lqm-home-accent) 22%, #fff);
}
.lqm-how-step-title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 800;
	color: #1d2327;
}
.lqm-how-step-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #50575e;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
	.lqm-how-icon { background: #eef2fb; }
	.lqm-how-num { color: #c7d2f0; }
}
