/* LD Which Cert Next? Quiz. Uses the LeoDregier theme colors when present. */
.ldq {
	--q-primary: var(--ld-primary, #0e2a47);
	--q-primary-soft: var(--ld-primary-soft, #17395e);
	--q-accent: var(--ld-accent, #f5a524);
	--q-accent-ink: var(--ld-accent-ink, #0e2a47);
	--q-link: var(--ld-link, #1559c7);
	--q-ink: var(--ld-ink, #1b2733);
	--q-muted: var(--ld-muted, #4a5868);
	--q-line: var(--ld-line, #e3e8ef);
	--q-line-strong: var(--ld-line-strong, #c3cdd9);
	--q-alt: var(--ld-bg-alt, #f5f7fa);
	--q-success: var(--ld-success, #1f9d6b);
	--q-font: var(--ld-font, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
	--q-display: var(--ld-font-display, "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
	font-family: var(--q-font);
	color: var(--q-ink);
	line-height: 1.55;
	box-sizing: border-box;
}
.ldq *, .ldq *::before, .ldq *::after { box-sizing: border-box; }
.ldq-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: middle; }

/* Layouts */
.ldq--home { background: radial-gradient(1200px 500px at 85% -10%, rgba(245, 165, 36, .16), transparent 60%), var(--q-primary); padding: 80px 0; scroll-margin-top: 90px; }
.ldq--full { background: radial-gradient(900px 400px at 90% -20%, rgba(245, 165, 36, .16), transparent 60%), var(--q-primary); border-radius: 24px; padding: 48px 0; margin: 0 0 2em; }
.ldq__inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.ldq--full .ldq__inner { padding: 0 40px; gap: 40px; }
.ldq--compact .ldq__inner { display: block; padding: 0; }

/* Intro column */
.ldq__intro { color: #fff; padding-top: 12px; }
.ldq__eyebrow {
	display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px;
	background: rgba(245, 165, 36, .14); color: #f8c46a; border: 1px solid rgba(245, 165, 36, .4);
	font-size: 14px; font-weight: 600;
}
.ldq .ldq__title { font-family: var(--q-display); color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -.02em; margin: 18px 0 16px; }
.ldq .ldq__title::after { display: none; }
.ldq__lead { color: var(--ld-on-dark-muted, #c9d5e3); font-size: 18px; margin: 0 0 24px; }
.ldq__bullets { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.ldq__bullets li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: #fff; font-weight: 500; }
.ldq__bullets .ldq-icon { color: var(--q-primary); background: var(--q-accent); border-radius: 999px; padding: 3px; width: 24px; height: 24px; margin-top: 1px; }
.ldq__proof { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); color: var(--ld-on-dark-muted, #c9d5e3); font-size: 14px; }

/* Card */
.ldq__card { background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 24px 48px rgba(10, 31, 53, .28); min-height: 420px; }
.ldq--compact .ldq__card { box-shadow: 0 1px 2px rgba(10, 31, 53, .06); border: 1px solid var(--q-line); min-height: 0; }
.ldq__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--q-muted); font-weight: 600; }
.ldq__bar { height: 6px; background: var(--q-alt); border-radius: 999px; margin: 10px 0 24px; overflow: hidden; }
.ldq__bar span { display: block; height: 100%; background: var(--q-accent); border-radius: inherit; transition: width .3s ease; }
.ldq .ldq__q { font-family: var(--q-display); color: var(--q-primary); font-size: 1.55rem; line-height: 1.2; margin: 0 0 20px; outline: none; }
.ldq .ldq__q::after { display: none; }
.ldq__sub { color: var(--q-muted); margin: -8px 0 18px; }

.ldq__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ldq__opt {
	display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; text-align: left;
	padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--q-line); background: #fff;
	font: inherit; color: var(--q-ink); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ldq__opt:hover { border-color: var(--q-primary); box-shadow: 0 6px 16px rgba(10, 31, 53, .1); transform: translateY(-1px); }
.ldq__opt:focus-visible { outline: 3px solid var(--q-accent); outline-offset: 2px; }
.ldq__opt.is-on { border-color: var(--q-accent); background: #fff8eb; }
.ldq__opt-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--q-alt); color: var(--q-primary); flex-shrink: 0; }
.ldq__opt:hover .ldq__opt-icon, .ldq__opt.is-on .ldq__opt-icon { background: var(--q-primary); color: var(--q-accent); }
.ldq__opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ldq__opt-text strong { font-size: 16px; color: var(--q-primary); line-height: 1.25; }
.ldq__opt-text span { font-size: 14px; color: var(--q-muted); line-height: 1.35; }
.ldq__options--many .ldq__opt:last-child { grid-column: 1 / -1; }

.ldq__back, .ldq__link { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; color: var(--q-link); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ldq__back::before { content: "\2190\00a0"; }

/* Buttons */
.ldq__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px;
	border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
	text-decoration: none; cursor: pointer; text-align: center;
}
.ldq__btn .ldq-icon { width: 18px; height: 18px; }
.ldq__btn--primary { background: var(--q-accent); color: var(--q-accent-ink); }
.ldq__btn--primary:hover { background: #ffb840; color: var(--q-accent-ink); }
.ldq__btn--dark { background: var(--q-primary); color: #fff; }
.ldq__btn--dark:hover { background: var(--q-primary-soft); color: #fff; }
.ldq__btn--outline { background: #fff; color: var(--q-primary); border-color: var(--q-line-strong); }
.ldq__btn--outline:hover { border-color: var(--q-primary); color: var(--q-primary); }
.ldq__btn--block { width: 100%; }
.ldq__btn[disabled] { opacity: .6; cursor: wait; }

/* Loading */
.ldq__loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 340px; color: var(--q-muted); font-weight: 600; }
.ldq__spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--q-alt); border-top-color: var(--q-accent); animation: ldq-spin .8s linear infinite; }
@keyframes ldq-spin { to { transform: rotate(360deg); } }

/* Email step */
.ldq__gate { text-align: left; }
.ldq__mail { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff3dc; color: #a35f00; margin-bottom: 14px; }
.ldq__teaser { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--q-alt); margin: 0 0 18px; color: var(--q-muted); font-size: 15px; }
.ldq__teaser .ldq-icon { color: var(--q-success); }
.ldq__blur { color: var(--q-primary); filter: blur(5px); user-select: none; }
.ldq__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ldq__field { margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.ldq__field--email { grid-column: 1 / -1; }
.ldq__fields--one { grid-template-columns: 1fr; }
.ldq__form--inline .ldq__fields--one { grid-template-columns: 1fr 1.6fr; }
.ldq__field label { font-size: 14px; font-weight: 700; color: var(--q-primary); }
.ldq__field label span { font-weight: 400; color: var(--q-muted); }
.ldq__field input {
	width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--q-line-strong);
	font: inherit; font-size: 16px; color: var(--q-ink); background: #fff;
}
.ldq__field input:focus { outline: 3px solid rgba(245, 165, 36, .5); border-color: var(--q-accent); }
.ldq__field input[aria-invalid="true"] { border-color: #c62828; }
.ldq__error { color: #b42318; font-weight: 600; font-size: 14px; margin: 0 0 10px; }
.ldq__legal { font-size: 13px; color: var(--q-muted); margin: 10px 0 0; text-align: center; }
.ldq__skip { display: block; margin: 14px auto 0; font-size: 14px; color: var(--q-muted); }
.ldq__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Result */
.ldq__kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a5200; }
.ldq__exam { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; padding: 18px 0 20px; border-bottom: 1px solid var(--q-line); }
.ldq__exam > div:first-child { flex: 1 1 260px; min-width: 0; }
.ldq__vendor { display: block; font-size: 14px; font-weight: 700; color: var(--q-link); }
.ldq .ldq__exam-title { font-family: var(--q-display); color: var(--q-primary); font-size: 1.9rem; line-height: 1.1; margin: 4px 0 8px; outline: none; }
.ldq .ldq__exam-title::after { display: none; }
.ldq__why { margin: 0; color: var(--q-muted); }
.ldq__exam-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ldq__also { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--q-muted); }
.ldq__chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--q-alt); border: 1px solid var(--q-line); color: var(--q-primary); font-weight: 600; text-decoration: none; }
.ldq__chip:hover { border-color: var(--q-primary); color: var(--q-primary); }
.ldq__sent { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: #e7f6ef; color: #146c4a; font-weight: 600; font-size: 15px; }
.ldq .ldq__next { font-family: var(--q-display); color: var(--q-primary); font-size: 1.1rem; margin: 24px 0 12px; }
.ldq .ldq__next::after { display: none; }
.ldq__offers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ldq__offer { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; border: 1.5px solid var(--q-line); background: #fff; }
.ldq__offer--primary { border-color: var(--q-accent); background: #fffaf0; }
.ldq__offer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ldq__price { font-family: var(--q-display); font-weight: 700; color: var(--q-primary); font-size: 18px; }
.ldq .ldq__offer-title { font-family: var(--q-display); color: var(--q-primary); font-size: 1.15rem; line-height: 1.25; margin: 0; }
.ldq .ldq__offer-title::after { display: none; }
.ldq__offer-text { margin: 0 0 8px; color: var(--q-muted); font-size: 15px; flex: 1; }
.ldq__offer .ldq__btn { align-self: flex-start; }
.ldq__extra { margin: 14px 0 0; font-size: 15px; color: var(--q-muted); }
.ldq__extra a { font-weight: 700; color: var(--q-link); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ldq__extra a:hover { text-decoration: underline; }
.ldq__later { margin-top: 20px; padding: 16px; border-radius: 14px; background: var(--q-alt); }
.ldq__later > div { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; font-size: 14px; color: var(--q-muted); }
.ldq__later strong { display: flex; align-items: center; gap: 8px; color: var(--q-primary); font-size: 16px; }
.ldq__form--inline .ldq__fields--one .ldq__field--email { grid-column: auto; }
.ldq__form--inline .ldq__legal { text-align: left; }
.ldq__restart { display: block; margin: 18px 0 0; font-size: 14px; }
.ldq__fallback { margin: 0; padding-left: 1.2em; }

/* Small screens */
@media (max-width: 900px) {
	.ldq__inner { grid-template-columns: 1fr; gap: 28px; }
	.ldq--home { padding: 56px 0; }
	.ldq__bullets { margin-bottom: 0; }
	.ldq__proof { display: none; }
}
@media (max-width: 600px) {
	.ldq__inner, .ldq--full .ldq__inner { padding: 0 16px; }
	.ldq--full { border-radius: 16px; padding: 28px 0; }
	.ldq__card { padding: 22px 18px; border-radius: 16px; min-height: 0; }
	.ldq__options, .ldq__offers, .ldq__fields, .ldq__form--inline .ldq__fields { grid-template-columns: 1fr; }
	.ldq__opt { min-height: 64px; }
	.ldq .ldq__q { font-size: 1.3rem; }
	.ldq .ldq__exam-title { font-size: 1.6rem; }
	.ldq__exam-actions, .ldq__exam-actions .ldq__btn { width: 100%; }
	.ldq__lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.ldq__opt, .ldq__bar span { transition: none; }
	.ldq__opt:hover { transform: none; }
	.ldq__spinner { animation-duration: 2s; }
}
