/*!
 * LeadsWave Certificate Page Skin
 * Loaded ONLY on the certificate validation page.
 * Colours/fonts are estimated from the LeadsWave AI homepage:
 * change the tokens below to fine-tune the match.
 */

:root {
	--lw-bg: #070812;
	--lw-bg-2: #0d0f24;
	--lw-surface: rgba(16, 15, 38, .86);
	--lw-line: rgba(167, 139, 250, .24);
	--lw-line-soft: rgba(167, 139, 250, .14);
	--lw-purple: #8b5cf6;
	--lw-purple-deep: #6d28d9;
	--lw-violet: #a78bfa;
	--lw-lav: #c4b5fd;
	--lw-text: #f5f3ff;
	--lw-muted: #a9a6c9;
	--lw-ok: #5eead4;
	--lw-bad: #fb7185;
	--lw-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------
 * 1. Page shell: neutralise the Astra layout on this page only
 * ------------------------------------------------------------- */
html body.lw-cert-page {
	background: var(--lw-bg) !important;
	color: var(--lw-text);
	font-family: var(--lw-font);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

/* grid + glow, fixed behind everything */
html body.lw-cert-page::before,
html body.lw-cert-page::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
}
html body.lw-cert-page::before {
	background:
		linear-gradient(rgba(167, 139, 250, .08) 1px, transparent 1px) 0 0 / 46px 46px,
		linear-gradient(90deg, rgba(167, 139, 250, .08) 1px, transparent 1px) 0 0 / 46px 46px;
	-webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 22%, #000 25%, transparent 80%);
	mask-image: radial-gradient(ellipse 75% 65% at 50% 22%, #000 25%, transparent 80%);
}
html body.lw-cert-page::after {
	background:
		radial-gradient(55% 45% at 50% -5%, rgba(139, 92, 246, .34), transparent 70%),
		radial-gradient(40% 35% at 95% 55%, rgba(196, 181, 253, .10), transparent 70%),
		radial-gradient(40% 35% at 0% 80%, rgba(109, 40, 217, .16), transparent 70%);
}

/* hide the Astra header / footer / title / sidebar on this page */
body.lw-cert-page #masthead,
body.lw-cert-page .site-header,
body.lw-cert-page #ast-mobile-header,
body.lw-cert-page .ast-mobile-header-wrap,
body.lw-cert-page #colophon,
body.lw-cert-page .site-footer,
body.lw-cert-page .entry-header,
body.lw-cert-page .ast-breadcrumbs-wrapper,
body.lw-cert-page #secondary {
	display: none !important;
}

/* make Astra's wrappers transparent and full width */
html body.lw-cert-page #page,
html body.lw-cert-page #content,
html body.lw-cert-page .site-content,
html body.lw-cert-page #primary,
html body.lw-cert-page .ast-separate-container,
html body.lw-cert-page .ast-separate-container .ast-article-single,
html body.lw-cert-page .ast-article-single,
html body.lw-cert-page article.page,
html body.lw-cert-page .entry-content {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}
body.lw-cert-page #content .ast-container {
	display: block !important;
	max-width: none !important;
	padding: 0 !important;
}
body.lw-cert-page #primary,
body.lw-cert-page .ast-article-single,
body.lw-cert-page article.page,
body.lw-cert-page .entry-content {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.lw-cert-page .entry-content > * { max-width: none; }

/* ---------------------------------------------------------------
 * 2. Header
 * ------------------------------------------------------------- */
.lw-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 200;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--lw-purple);
	color: #fff;
}
.lw-skip:focus { left: 12px; }

.lw-hdr {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(7, 8, 18, .74);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--lw-line-soft);
	font-family: var(--lw-font);
}
.lw-hdr__in {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1200px;
	height: 68px;
	margin: 0 auto;
	padding: 0 24px;
}

.lw-logo {
	display: inline-flex;
	align-items: center;
	color: #fff !important;
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -.03em;
	text-decoration: none !important;
}
.lw-logo em {
	font-style: normal;
	color: var(--lw-purple);
	text-shadow: 0 0 14px rgba(139, 92, 246, .9);
}
.lw-logo img { display: block; height: 36px; width: auto; max-width: 100%; }

.lw-nav {
	display: flex;
	align-items: center;
	gap: 2px;
}
.lw-nav a:not(.lw-btn) {
	padding: 9px 12px;
	border-radius: 10px;
	color: var(--lw-muted) !important;
	font-size: .92rem;
	font-weight: 500;
	text-decoration: none !important;
	white-space: nowrap;
	transition: color .2s, background .2s;
}
.lw-nav a:not(.lw-btn):hover,
.lw-nav a:not(.lw-btn):focus-visible {
	color: #fff !important;
	background: rgba(139, 92, 246, .14);
}
.lw-nav a[aria-current="page"] {
	color: #fff !important;
	background: rgba(139, 92, 246, .2);
}
.lw-nav .lw-btn { margin-left: 12px; }

.lw-hdr__toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--lw-line);
	border-radius: 12px;
	background: rgba(139, 92, 246, .1);
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
.lw-hdr__toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transition: transform .25s, opacity .25s;
}
.lw-hdr.is-open .lw-hdr__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lw-hdr.is-open .lw-hdr__toggle span:nth-child(2) { opacity: 0; }
.lw-hdr.is-open .lw-hdr__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
	.lw-js .lw-hdr__toggle { display: inline-flex; }
	.lw-js .lw-nav {
		display: none;
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: 14px 20px 22px;
		background: rgba(8, 9, 22, .97);
		border-bottom: 1px solid var(--lw-line);
		box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
	}
	.lw-js .lw-hdr.is-open .lw-nav { display: flex; }
	.lw-nav a:not(.lw-btn) { padding: 14px 14px; font-size: 1rem; }
	.lw-nav .lw-btn { margin: 10px 0 0; }
	/* without JS the nav simply wraps under the logo */
	html:not(.lw-js) .lw-hdr__in { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
	html:not(.lw-js) .lw-nav { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------
 * 3. Buttons (header CTA + the form's own submit button)
 * ------------------------------------------------------------- */
.lw-btn,
.lw-cert__body input[type="submit"],
.lw-cert__body input[type="button"],
.lw-cert__body button,
.lw-cert__body .button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border: 0 !important;
	border-radius: 14px !important;
	background: linear-gradient(135deg, var(--lw-purple), var(--lw-purple-deep)) !important;
	color: #fff !important;
	font: 700 1rem/1 var(--lw-font);
	letter-spacing: .005em;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(196, 181, 253, .38) inset, 0 12px 40px -10px rgba(139, 92, 246, .85);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.lw-btn:hover,
.lw-cert__body input[type="submit"]:hover,
.lw-cert__body input[type="button"]:hover,
.lw-cert__body button:hover,
.lw-cert__body .button:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
	box-shadow: 0 0 0 1px rgba(221, 214, 254, .55) inset, 0 16px 50px -8px rgba(167, 139, 250, 1);
}
.lw-btn:focus-visible,
.lw-cert__body input[type="submit"]:focus-visible,
.lw-cert__body button:focus-visible,
.lw-cert__body .button:focus-visible {
	outline: 2px solid var(--lw-lav);
	outline-offset: 3px;
}
.lw-btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; border-radius: 12px !important; white-space: nowrap; }

/* ---------------------------------------------------------------
 * 4. Certificate section
 * ------------------------------------------------------------- */
.lw-cert {
	position: relative;
	box-sizing: border-box;
	max-width: 1120px;
	margin: 0 auto;
	padding: clamp(44px, 8vw, 96px) 20px clamp(56px, 9vw, 120px);
	color: var(--lw-text);
	font-family: var(--lw-font);
}
.lw-cert *, .lw-cert *::before, .lw-cert *::after { box-sizing: border-box; }

.lw-cert__net {
	position: absolute;
	top: 10px;
	left: 50%;
	width: min(900px, 100%);
	height: auto;
	transform: translateX(-50%);
	color: var(--lw-violet);
	opacity: .13;
	pointer-events: none;
	-webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
}

.lw-cert__hero { position: relative; text-align: center; margin-bottom: clamp(48px, 7vw, 68px); }
.lw-cert__title {
	margin: 0 0 16px !important;
	color: #fff !important;
	font-family: var(--lw-font) !important;
	font-size: clamp(2.1rem, 7vw, 3.9rem) !important;
	font-weight: 800 !important;
	line-height: 1.05 !important;
	letter-spacing: -.035em !important;
	text-wrap: balance;
	overflow-wrap: break-word;
}
.lw-cert__title em {
	font-style: italic;
	background: linear-gradient(100deg, var(--lw-lav), var(--lw-purple) 70%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--lw-violet);
	padding-right: .06em;
}
.lw-cert__sub {
	max-width: 34em;
	margin: 0 auto !important;
	color: var(--lw-muted) !important;
	font-size: clamp(1rem, 2.6vw, 1.15rem);
	line-height: 1.6;
}

/* the card */
.lw-cert__card {
	position: relative;
	max-width: 560px;
	margin: 0 auto;
	padding: 56px 32px 32px;
	border: 1px solid var(--lw-line);
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(24, 21, 54, .86), rgba(11, 11, 28, .92));
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow:
		0 0 0 1px rgba(139, 92, 246, .08),
		0 24px 90px -24px rgba(139, 92, 246, .6),
		inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* shield badge: the one animated moment */
.lw-cert__badge {
	position: absolute;
	top: -36px;
	left: 50%;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: #0b0b1e;
	color: var(--lw-lav);
	box-shadow: 0 0 36px rgba(139, 92, 246, .65), inset 0 0 18px rgba(139, 92, 246, .35);
}
.lw-cert__badge::before {
	content: "";
	position: absolute;
	inset: -2px;
	z-index: -1;
	border-radius: 50%;
	background: conic-gradient(from 0deg, var(--lw-purple), transparent 35%, var(--lw-lav) 60%, transparent 85%, var(--lw-purple));
	animation: lw-spin 7s linear infinite;
}
.lw-cert__badge::after {
	content: "";
	position: absolute;
	inset: 2px;
	z-index: -1;
	border-radius: 50%;
	background: #0b0b1e;
}
.lw-cert__badge svg { position: relative; z-index: 1; filter: drop-shadow(0 0 8px rgba(167, 139, 250, .9)); }
@keyframes lw-spin { to { transform: rotate(360deg); } }

/* original content inside the card */
.lw-cert__body { color: var(--lw-text); font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.lw-cert__body > *:first-child { margin-top: 0 !important; }
.lw-cert__body > *:last-child { margin-bottom: 0 !important; }
.lw-cert__body p { margin: 0 0 12px; color: var(--lw-muted); }
.lw-cert__body h1, .lw-cert__body h2, .lw-cert__body h3, .lw-cert__body h4 {
	margin: 0 0 12px; color: #fff; font-family: var(--lw-font); letter-spacing: -.02em;
}
.lw-cert__body a { color: var(--lw-lav); text-decoration: underline; text-underline-offset: 3px; }
.lw-cert__body a:hover { color: #fff; }
.lw-cert__body strong, .lw-cert__body b { color: #fff; }

.lw-cert__body form { display: grid; gap: 14px; margin: 0; width: 100%; }
.lw-cert__body form > * { margin: 0; min-width: 0; max-width: 100%; }
.lw-cert__body label,
.lw-cert__label {
	display: block;
	margin: 0;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 600;
}

.lw-cert__body input:not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]):not([type="reset"]),
.lw-cert__body textarea,
.lw-cert__body select {
	display: block;
	width: 100% !important;
	max-width: 100%;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid rgba(167, 139, 250, .3) !important;
	border-radius: 14px !important;
	background: rgba(6, 6, 18, .85) !important;
	color: #fff !important;
	font: 500 16px/1.2 var(--lw-font); /* 16px stops iOS zoom-on-focus */
	box-shadow: inset 0 2px 10px rgba(0, 0, 0, .35);
	transition: border-color .2s, box-shadow .2s;
}
.lw-cert__body textarea { padding: 14px 16px; min-height: 110px; }
.lw-cert__body input::placeholder,
.lw-cert__body textarea::placeholder { color: #7f7ca3; opacity: 1; }
.lw-cert__body input:focus,
.lw-cert__body textarea:focus,
.lw-cert__body select:focus {
	outline: 0;
	border-color: var(--lw-violet) !important;
	box-shadow: 0 0 0 4px rgba(139, 92, 246, .25), 0 0 34px rgba(139, 92, 246, .4);
}

.lw-cert__body input[type="submit"],
.lw-cert__body input[type="button"],
.lw-cert__body button,
.lw-cert__body .button { width: 100%; }

/* results: success / error messages produced by the existing system */
.lw-cert__body [class*="success"],
.lw-cert__body [class*="verified"],
.lw-cert__body .valid,
.lw-cert__body .is-valid,
.lw-cert__body [class*="error"],
.lw-cert__body [class*="invalid"],
.lw-cert__body [class*="fail"],
.lw-cert__body [class*="danger"],
.lw-cert__body [class*="not-found"],
.lw-cert__body .woocommerce-error {
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid var(--lw-line);
	background: rgba(139, 92, 246, .1);
	color: #fff;
	line-height: 1.5;
}
.lw-cert__body [class*="success"],
.lw-cert__body [class*="verified"],
.lw-cert__body .valid,
.lw-cert__body .is-valid {
	border-color: rgba(94, 234, 212, .45);
	background: rgba(94, 234, 212, .09);
	box-shadow: 0 0 30px -10px rgba(94, 234, 212, .5);
}
.lw-cert__body [class*="error"],
.lw-cert__body [class*="invalid"],
.lw-cert__body [class*="fail"],
.lw-cert__body [class*="danger"],
.lw-cert__body [class*="not-found"],
.lw-cert__body .woocommerce-error {
	border-color: rgba(251, 113, 133, .5);
	background: rgba(251, 113, 133, .09);
	box-shadow: 0 0 30px -10px rgba(251, 113, 133, .5);
}
.lw-cert__body [class*="success"] p,
.lw-cert__body [class*="error"] p,
.lw-cert__body [class*="invalid"] p,
.lw-cert__body [class*="verified"] p { color: inherit; margin-bottom: 6px; }

/* certificate detail tables / lists */
.lw-cert__body table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	margin: 14px 0 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
	color: var(--lw-text);
}
.lw-cert__body th, .lw-cert__body td {
	padding: 10px 12px;
	border: 0 !important;
	border-bottom: 1px solid var(--lw-line-soft) !important;
	background: transparent !important;
	color: var(--lw-text);
	text-align: left;
}
.lw-cert__body th { color: var(--lw-lav); font-weight: 600; }
.lw-cert__body ul, .lw-cert__body ol { margin: 0 0 12px 1.2em; color: var(--lw-text); }
.lw-cert__body img, .lw-cert__body iframe, .lw-cert__body embed { max-width: 100%; height: auto; border-radius: 12px; }
.lw-cert__body hr { border: 0; border-top: 1px solid var(--lw-line-soft); margin: 18px 0; }

.lw-cert__help {
	margin: 26px 0 0 !important;
	text-align: center;
	color: var(--lw-muted) !important;
	font-size: .95rem;
}
.lw-cert__help a { color: var(--lw-lav); text-underline-offset: 3px; }
.lw-cert__help a:hover { color: #fff; }

/* ---------------------------------------------------------------
 * 5. Footer
 * ------------------------------------------------------------- */
.lw-ftr {
	position: relative;
	z-index: 1;
	margin-top: 0;
	background: rgba(4, 5, 14, .92);
	border-top: 1px solid var(--lw-line-soft);
	color: var(--lw-muted);
	font-family: var(--lw-font);
}
.lw-ftr__in {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 24px 40px;
}
.lw-ftr__brand p { max-width: 28ch; margin: 14px 0 0; color: var(--lw-muted); line-height: 1.6; font-size: .95rem; }
.lw-ftr__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.lw-ftr__col h2 {
	margin: 0 0 6px;
	color: #fff;
	font: 700 .95rem/1.2 var(--lw-font);
	letter-spacing: 0;
	text-transform: none;
}
.lw-ftr__col a { color: var(--lw-muted) !important; font-size: .95rem; text-decoration: none !important; overflow-wrap: anywhere; transition: color .2s; }
.lw-ftr__col a:hover, .lw-ftr__col a:focus-visible { color: var(--lw-lav) !important; }
.lw-ftr__bar { border-top: 1px solid var(--lw-line-soft); }
.lw-ftr__bar p { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 20px 24px; font-size: .88rem; color: var(--lw-muted); }

@media (max-width: 820px) {
	.lw-ftr__in { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-top: 48px; }
	.lw-ftr__brand { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------
 * 6. Mobile
 * ------------------------------------------------------------- */
@media (max-width: 560px) {
	.lw-hdr__in { padding: 0 16px; }
	.lw-cert { padding-left: 16px; padding-right: 16px; }
	.lw-cert__card { padding: 52px 18px 22px; border-radius: 20px; }
	.lw-ftr__in { grid-template-columns: 1fr; padding: 40px 16px 28px; }
	.lw-ftr__bar p { padding: 18px 16px; }
	/* leave room so the WhatsApp chat widget never covers footer text */
	.lw-ftr__bar { padding-bottom: 84px; }
}

/* Astra's scroll-to-top button, themed (position untouched) */
body.lw-cert-page #ast-scroll-top {
	background: var(--lw-purple) !important;
	box-shadow: 0 0 24px rgba(139, 92, 246, .6);
}

@media (prefers-reduced-motion: reduce) {
	.lw-cert__badge::before { animation: none; }
	.lw-btn, .lw-nav a, .lw-hdr__toggle span, .lw-cert__body input { transition: none; }
}
