/**
 * Norris Lemon Law Test — frontend styles.
 *
 * Mobile-first. Most users will be on phones.
 *
 * Visual tokens match the existing Norris Lead Form / lemonlawnc.com
 * theme:
 *   - Navy primary:   #005696
 *   - Navy dark:      #00335a
 *   - Gold accent:    #f5b800
 *   - Charcoal text:  #1a1a1a
 *   - Body font:      Inter (inherited from theme)
 *   - Heading font:   Playfair Display (inherited from theme)
 */

/* ============ Shell ============ */

.nllt-quiz {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 0;
	color: #1a1a1a;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.nllt-noscript {
	background: #fff3e0;
	border: 1px solid #ffb74d;
	color: #b35400;
	padding: 16px 20px;
	border-radius: 6px;
}
.nllt-loading {
	text-align: center;
	color: #999;
	padding: 40px 0;
	font-size: 14px;
}

/* ============ Progress ============ */

.nllt-progress {
	margin-bottom: 24px;
	text-align: center;
}
.nllt-progress__label {
	font-size: 12px;
	color: #8a96a3;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
}
.nllt-progress__bar {
	height: 6px;
	background: #e3e9ef;
	border-radius: 3px;
	overflow: hidden;
}
.nllt-progress__bar span {
	display: block;
	height: 100%;
	background: #f5b800;
	transition: width 0.25s ease;
}

/* ============ Question card ============ */

.nllt-question {
	background: #fff;
	border-radius: 10px;
	padding: 0;                     /* header has its own padding */
	overflow: hidden;               /* contain rounded corners under header */
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
	animation: nllt-fade-in 0.2s ease;
}
@keyframes nllt-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Tinted header zone: progress + question + help text live here, visually
   distinct from the options below. Light navy background, gold accent strip
   at the bottom edge. */
.nllt-question__header {
	background: linear-gradient(180deg, #f6faff 0%, #eaf2fa 100%);
	border-bottom: 3px solid #f5b800;
	padding: 20px 28px 22px;
}

/* Brand title bar — lemon icon + title text, centered on every card. */
.nllt-question__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 12px;
	color: #00335a;
	flex-wrap: wrap; /* allow wrap on tiny screens */
}
.nllt-question__brand-icon {
	height: 28px;
	width: auto;
	flex-shrink: 0;
	display: block;
}
.nllt-question__brand-text {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 17px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #00335a;
	line-height: 1.2;
}
@media (max-width: 480px) {
	.nllt-question__brand-icon { height: 24px; }
	.nllt-question__brand-text { font-size: 15px; letter-spacing: 0.8px; }
}
.nllt-question__text {
	font-family: 'Playfair Display', Georgia, serif;
	color: #00335a;
	font-size: 1.7rem;
	line-height: 1.2;
	margin: 0 0 8px;
	font-weight: 700;
}
.nllt-question__help {
	color: #5a6b7a;
	font-size: 15px;
	margin: 0;
	line-height: 1.5;
}

/* Options area gets its own padding now that the header took the top. */
.nllt-question > .nllt-options,
.nllt-question > .nllt-vehicle-details,
.nllt-question > .nllt-back {
	margin: 0 28px;
}
.nllt-question > .nllt-options,
.nllt-question > .nllt-vehicle-details {
	margin-top: 24px;
}
.nllt-question > .nllt-back {
	margin-top: 18px;
	margin-bottom: 24px;
}
.nllt-question > .nllt-options:last-child,
.nllt-question > .nllt-vehicle-details:last-child {
	margin-bottom: 28px;
}

/* ============ Options ============ */

.nllt-options {
	display: grid;
	gap: 10px;
}
.nllt-options--single {
	grid-template-columns: 1fr;
}
.nllt-option {
	display: block;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 2px solid #d5dde6;
	border-radius: 8px;
	padding: 14px 16px;
	font-family: inherit;
	font-size: 16px;
	color: #1a1a1a;
	line-height: 1.4;
	cursor: pointer;
	/* Defeat any theme-level text-transform: uppercase on button elements. */
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
	position: relative;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}
.nllt-option:hover {
	border-color: #00335a;
	background: rgba(255, 248, 220, 0.4); /* light yellow tint */
}
.nllt-option:active {
	transform: scale(0.99);
}
.nllt-option:focus-visible {
	outline: 3px solid rgba(0,86,150,0.35);
	outline-offset: 1px;
}
/* Bolded category label inside an option's label_html. */
.nllt-option strong {
	font-weight: 700;
	color: #00335a;
}
.nllt-option__sub {
	color: #5a6b7a;
	font-weight: 400;
}

/* Multi-select (checkbox styled as label) */
.nllt-option--check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	cursor: pointer;
}
.nllt-option--check input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	accent-color: #f0b73c;
}
.nllt-option--check span {
	flex: 1;
	color: #1a1a1a;
}
.nllt-option--check:has(input:checked) {
	border-color: #f0b73c;
	background: #fff8dc;
}
.nllt-option--check:has(input:checked)::after {
	content: '✓';
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #f0b73c;
	font-weight: 700;
	font-size: 18px;
}

.nllt-option--continue {
	background: #f5b800;
	color: #1a1a1a;
	border-color: #f5b800;
	font-weight: 700;
	text-transform: uppercase;   /* Keep CONTINUE uppercase per spec */
	letter-spacing: 0.5px;
	text-align: center;
	margin-top: 8px;
	font-size: 15px;
	padding: 16px 20px;
}
.nllt-option--continue:hover {
	background: #d99e00;
	border-color: #d99e00;
}
.nllt-option--invalid {
	animation: nllt-shake 0.3s;
}
@keyframes nllt-shake {
	10%, 90% { transform: translateX(-2px); }
	20%, 80% { transform: translateX(3px); }
	30%, 50%, 70% { transform: translateX(-5px); }
	40%, 60% { transform: translateX(5px); }
}

/* Back link */
.nllt-back {
	background: none;
	border: 0;
	color: #005696;
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
	margin-top: 18px;
	padding: 8px 0;
	font-weight: 600;
}
.nllt-back:hover { color: #00335a; text-decoration: underline; }

/* ============ Vehicle details ============ */

.nllt-vehicle-details__sublabel {
	font-size: 13px;
	font-weight: 600;
	color: #5a6b7a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}

/* Year buttons — flex row that wraps on smaller screens. */
.nllt-year-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
}
.nllt-year-btn {
	flex: 0 0 auto;
	min-width: 64px;
	padding: 10px 14px;
	background: #fff;
	border: 2px solid #d5dde6;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.nllt-year-btn:hover {
	border-color: #00335a;
	background: rgba(255, 248, 220, 0.4);
}
.nllt-year-btn--selected {
	border-color: #f0b73c;
	background: #fff8dc;
	color: #00335a;
}
.nllt-year-btn--older {
	flex: 1 1 100%;
	margin-top: 4px;
	background: #fff;
	border-style: dashed;
	border-color: #c0ccd9;
	color: #5a6b7a;
	font-weight: 500;
}
.nllt-year-btn--older:hover {
	border-style: solid;
	border-color: #00335a;
	color: #00335a;
}

.nllt-vehicle-details__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 16px;
}
.nllt-vehicle-details__field input,
.nllt-vehicle-details__field select {
	width: 100%;
	border: 2px solid #d5dde6;
	border-radius: 8px;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	color: #1a1a1a;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}
/* Custom navy chevron on selects (overrides the default browser caret). */
.nllt-vehicle-details__field select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path fill='none' stroke='%2300335a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 5l4 4 4-4'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}
.nllt-vehicle-details__field input:focus,
.nllt-vehicle-details__field select:focus {
	border-color: #00335a;
	outline: 3px solid rgba(0,86,150,0.15);
}

@media (max-width: 480px) {
	.nllt-vehicle-details__grid {
		grid-template-columns: 1fr;
	}
}

/* ============ Disqualified panel ============ */

.nllt-disqualified,
.nllt-intake {
	background: #fff;
	border-radius: 10px;
	padding: 32px 28px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
	animation: nllt-fade-in 0.25s ease;
}
.nllt-disqualified[hidden],
.nllt-intake[hidden] { display: none; }

/* Headline — shared, rendered as <h2> at the top of every disqualification
   page. Centered, Playfair serif, brand navy. */
.nllt-disqualified__headline {
	font-family: 'Playfair Display', Georgia, serif;
	color: #00335a;
	margin: 0 0 18px;
	font-size: 1.9rem;
	line-height: 1.2;
	font-weight: 700;
	text-align: center;
}

/* Intro paragraph — per-disqualifier, sits between headline and cards.
   Plain body styling (matches body copy elsewhere on the page). */
.nllt-disqualified__intro p {
	font-size: 16px;
	line-height: 1.6;
	color: #1a1a1a;
	margin: 0 0 14px;
}
/* Defensive: if legacy saved content has an <h2> baked in (shouldn't
   anymore after the v1.5 migration, but just in case), hide it so we
   don't render a duplicate headline. */
.nllt-disqualified__intro h2 { display: none; }
.nllt-referral {
	background: #ebf2f9;
	border-left: 4px solid #005696;
	padding: 16px 18px;
	border-radius: 4px;
	margin: 18px 0;
}
.nllt-referral h3 {
	font-family: 'Playfair Display', Georgia, serif;
	color: #00335a;
	margin: 0 0 6px;
	font-size: 1.15rem;
	font-weight: 700;
}
.nllt-referral p {
	margin: 0 0 8px;
	color: #1a1a1a;
	line-height: 1.5;
	font-size: 15px;
}
.nllt-referral__cta {
	color: #005696;
	font-weight: 700;
	text-decoration: none;
}
.nllt-referral__cta:hover { color: #00335a; text-decoration: underline; }

/* Closing paragraph — same body styling as intro. Sits below the cards
   (and any caveat). Shared across every disqualification path. */
.nllt-disqualified__closing {
	margin-top: 22px;
	color: #1a1a1a;
	font-size: 16px;
	line-height: 1.6;
}
.nllt-disqualified__closing p {
	margin: 0 0 12px;
}
.nllt-disqualified__closing p:last-child { margin-bottom: 0; }

/* Disclaimer footnote — sits below the closing paragraph, above the
   "Back to the homepage" link. Smaller text, muted color, thin top
   border separates it from the prose above. */
.nllt-disqualified__disclaimer {
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid #eef2f5;
	color: #8a96a3;
	font-size: 12px;
	line-height: 1.55;
	font-style: italic;
}
.nllt-disqualified__disclaimer p {
	margin: 0 0 8px;
}
.nllt-disqualified__disclaimer p:last-child { margin-bottom: 0; }

/* Back-to-homepage link below the disclaimer. */
.nllt-disqualified__back {
	margin-top: 18px;
	font-size: 14px;
	line-height: 1.5;
}

/* Contextual caveat — light yellow tint with navy left rail, visually
   distinct from the resource cards so it reads as a separate note.
   Currently only used by the title_registration disqualifier. */
.nllt-disqualified__caveat[hidden] { display: none; }
.nllt-caveat {
	background: #fffbeb;
	border-left: 4px solid #00335a;
	padding: 18px 22px;
	margin: 28px 0 4px;
	border-radius: 4px;
}
.nllt-caveat h3 {
	font-family: 'Playfair Display', Georgia, serif;
	color: #00335a;
	font-size: 1.2rem;
	margin: 0 0 10px;
	font-weight: 700;
}
.nllt-caveat p {
	color: #1a1a1a;
	line-height: 1.6;
	margin: 0 0 12px;
	font-size: 15px;
}
.nllt-caveat p:last-child {
	margin-bottom: 0;
}
.nllt-caveat__cta {
	color: #00335a;
	font-weight: 700;
	text-decoration: none;
}
.nllt-caveat__cta:hover {
	text-decoration: underline;
}

/* When the caveat is rendered directly under its parent card (DMV card on
   the title_registration path), pull it up tight so it visually attaches
   to the card rather than floating below. */
.nllt-referral + .nllt-caveat {
	margin-top: -10px;
	margin-bottom: 18px;
}

/* (Deprecated — kept for back-compat with any cached HTML that might
   still reference .nllt-disqualified__legal. Use .nllt-disqualified__disclaimer
   for new work.) */
.nllt-disqualified__legal {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #eef2f5;
	color: #8a96a3;
	font-size: 12px;
	line-height: 1.55;
}
.nllt-disqualified__legal p {
	margin: 0;
}

.nllt-link-home {
	color: #005696;
	font-weight: 600;
	text-decoration: none;
}
.nllt-link-home:hover { text-decoration: underline; }

/* ============ Intake panel ============ */

/* The intake card gets a thin navy→gold gradient bar across the top edge,
   echoing the homepage hero brand language without wrapping the entire
   form (which would compete with the field borders). */
.nllt-intake {
	position: relative;
	padding-top: 36px !important;
}
.nllt-intake::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #00335a 0%, #005696 50%, #f5b800 100%);
	border-radius: 10px 10px 0 0;
}

.nllt-intake__intro h2 {
	font-family: 'Playfair Display', Georgia, serif;
	color: #00335a;
	margin: 0 0 12px;
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.2;
}
.nllt-intake__intro p {
	color: #1a1a1a;
	line-height: 1.6;
	margin: 0 0 20px;
}
.nllt-intake .norris-lead-form {
	box-shadow: none;
	padding: 0;
	margin: 0;
	max-width: none;
	background: transparent;
	border: 0;
}
.nllt-intake__confirmation {
	text-align: center;
	padding: 20px 0;
}
.nllt-intake__confirmation h2 {
	font-family: 'Playfair Display', Georgia, serif;
	color: #00335a;
	margin: 0 0 12px;
}
.nllt-intake__next-steps {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #eef2f5;
}
.nllt-intake__next-steps h3 {
	font-family: 'Playfair Display', Georgia, serif;
	color: #00335a;
	margin: 0 0 10px;
	font-size: 1.3rem;
	font-weight: 700;
}
.nllt-intake__next-steps > p {
	color: #1a1a1a;
	line-height: 1.5;
	margin: 0 0 12px;
}
.nllt-intake__cta-primary {
	display: inline-block;
	background: #f5b800;
	color: #1a1a1a;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 15px;
	padding: 14px 24px;
	border-radius: 6px;
	text-decoration: none;
	margin: 8px 0;
	transition: background 0.15s ease, transform 0.05s ease;
}
.nllt-intake__cta-primary:hover {
	background: #d99e00;
	transform: translateY(-1px);
	text-decoration: none;
}
.nllt-intake__cta-secondary {
	font-size: 14px;
	color: #555;
}
.nllt-intake__cta-secondary a {
	color: #005696;
	font-weight: 600;
}

/* ============ Desktop adjustments ============ */

@media (min-width: 720px) {
	.nllt-question__header {
		padding: 28px 32px;
	}
	.nllt-question > .nllt-options,
	.nllt-question > .nllt-vehicle-details {
		margin: 28px 32px 0;
	}
	.nllt-question > .nllt-options:last-child,
	.nllt-question > .nllt-vehicle-details:last-child {
		margin-bottom: 32px;
	}
	.nllt-question > .nllt-back {
		margin: 18px 32px 28px;
	}
	.nllt-question__text {
		font-size: 2.2rem;
	}
}

/* ============ WordPress page integration ============ */

/* Hide the WordPress entry title on pages that host the quiz — the quiz
   renders its own headings inside the card, and the WP page title often
   ends up wrong-cased or redundant. Theme-level rule, body class added
   by add_body_class() in the main quiz class. */
body.nllt-page .entry-title,
body.nllt-page h1.entry-title,
body.nllt-page .page-title {
	display: none !important;
}
/* ============ Confirmation page — two-step cards ============ */

.nllt-intake__confirmation-intro {
	text-align: center;
	font-size: 16px;
	color: #1a1a1a;
	line-height: 1.5;
	margin: 0 0 24px;
}

.nllt-intake__steps {
	display: grid;
	gap: 16px;
	margin-bottom: 20px;
}

.nllt-step-card {
	background: #fff;
	border: 1px solid #d5dde6;
	border-radius: 10px;
	padding: 22px 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	text-align: left;
}
.nllt-step-card__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #00335a;
	margin: 0 0 8px;
}
.nllt-step-card__heading {
	font-family: 'Playfair Display', Georgia, serif;
	color: #00335a;
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.25;
}
.nllt-step-card__body {
	color: #1a1a1a;
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 16px;
}
.nllt-step-card__cta {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}
.nllt-step-card__cta--filled {
	background: #f5b800;
	color: #00335a !important;
	border: 2px solid #f5b800;
}
.nllt-step-card__cta--filled:hover {
	background: #d99e00;
	border-color: #d99e00;
	text-decoration: none !important;
}
.nllt-step-card__cta--outlined {
	background: transparent;
	color: #00335a !important;
	border: 2px solid #f5b800;
}
.nllt-step-card__cta--outlined:hover {
	background: #f5b800;
	color: #00335a !important;
	text-decoration: none !important;
}
.nllt-step-card__cta:active {
	transform: scale(0.99);
}

.nllt-intake__confirmation-note {
	margin-top: 8px;
	text-align: center;
	color: #5a6b7a;
	font-size: 13px;
	line-height: 1.5;
	font-style: italic;
}
