/* Real Lifetime Warranty page. All text black + Nissan Brand (Nissan name rule); red only on buttons and markers. */
.lw-page {
	--lw-ink: #000000;
	--lw-paper: #ffffff;
	--lw-muted: #4b4f57;
	--lw-silver: #eef0f3;
	--lw-line: #d8dbe0;
	--lw-red: #c3002f;
	--lw-red-dark: #9a0025;
	background: var(--lw-paper);
	color: var(--lw-ink);
	font-family: "Nissan Brand Regular", Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}
.lw-page *, .lw-page *::before, .lw-page *::after { box-sizing: border-box; }
.lw-page h1, .lw-page h2, .lw-page h3 { font-family: inherit; font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--lw-ink); margin: 0; text-wrap: balance; }
.lw-page p { margin: 0; }
.lw-page a { color: inherit; }
.lw-page :focus-visible { outline: 3px solid var(--lw-red); outline-offset: 3px; }
.lw-wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.lw-eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lw-muted); }

/* Above the fold: art left, headline + buttons right. */
.lw-top { padding-block: 20px 40px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; }
.lw-art, .lw-art img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 6px; }
.lw-pitch { min-width: 0; display: grid; gap: 14px; }
.lw-h1 { font-size: clamp(27px, 3.2vw, 38px); line-height: 1.1; }
.lw-actions { display: flex; flex-direction: column; gap: 10px; }
.lw-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 24px; border: 2px solid var(--lw-red); border-radius: 4px; background: var(--lw-red); color: #ffffff !important; font-size: 16px; letter-spacing: .02em; text-decoration: none !important; transition: background-color .15s, border-color .15s, color .15s; }
.lw-btn:hover { background: var(--lw-red-dark); border-color: var(--lw-red-dark); }
.lw-btn-line { background: transparent; border-color: var(--lw-ink); color: var(--lw-ink) !important; }
.lw-btn-line:hover { background: var(--lw-ink); border-color: var(--lw-ink); color: #ffffff !important; }
.lw-lead { max-width: 58ch; }
.lw-phone { color: var(--lw-muted); }
.lw-phone a { color: var(--lw-ink); font-variant-numeric: tabular-nums; text-decoration: none; }

.lw-facts { background: var(--lw-silver); padding-block: 34px; }
.lw-facts-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.lw-big { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.lw-small { margin-top: 8px; font-size: 14px; color: var(--lw-muted); }
.lw-facts-foot { grid-column: 1 / -1; border-top: 1px solid var(--lw-line); padding-top: 18px; font-size: 15px; }

.lw-sec { padding-block: 64px 8px; }
.lw-h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin-bottom: 8px !important; }
.lw-sub { color: var(--lw-muted); margin-bottom: 28px !important; max-width: 64ch; }

.lw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: lwstep; }
.lw-steps li { counter-increment: lwstep; border-top: 3px solid var(--lw-ink); padding-top: 16px; min-width: 0; }
.lw-steps li::before { content: "Step " counter(lwstep); display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lw-red); margin-bottom: 6px; }
.lw-steps h3 { font-size: 19px; line-height: 1.3; margin-bottom: 6px; }
.lw-steps p { color: var(--lw-muted); }

.lw-cover { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lw-part { border: 1px solid var(--lw-line); border-radius: 6px; padding: 22px; min-width: 0; }
.lw-part h3 { font-size: 18px; margin-bottom: 12px; }
.lw-part ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; }
.lw-part li { padding-left: 18px; position: relative; margin: 0; }
.lw-part li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--lw-red); }

.lw-faq { border-top: 1px solid var(--lw-line); max-width: 860px; }
.lw-faq details { border-bottom: 1px solid var(--lw-line); }
.lw-faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-size: 17px; position: relative; }
.lw-faq summary::-webkit-details-marker { display: none; }
.lw-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; }
.lw-faq details[open] summary::after { content: "\2212"; }
.lw-faq details p { padding-bottom: 20px; max-width: 70ch; }

.lw-backed { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lw-backed p { margin-bottom: 14px; max-width: 60ch; }
.lw-docs { display: grid; gap: 12px; }
.lw-doc { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--lw-line); border-radius: 6px; text-decoration: none; transition: border-color .15s; }
.lw-doc:hover { border-color: var(--lw-ink); }
.lw-tag { flex: none; font-size: 11px; letter-spacing: .1em; color: #ffffff; background: var(--lw-ink); padding: 6px 8px; border-radius: 3px; }
.lw-t { display: block; }
.lw-d { display: block; font-size: 13px; color: var(--lw-muted); }

/* Test drive form: Schedule Test Drive GF form, restyled on this page only. */
.lw-book { margin-top: 72px; background: var(--lw-silver); padding-block: 56px; }
.lw-book-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px 56px; align-items: start; }
.lw-book-copy { display: grid; gap: 14px; }
.lw-book-copy .lw-h2 { margin-bottom: 0 !important; }
.lw-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lw-points li { padding-left: 26px; position: relative; margin: 0; }
.lw-points li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--lw-red); border-bottom: 2px solid var(--lw-red); transform: rotate(-45deg); }
.lw-form { background: var(--lw-paper); border: 1px solid var(--lw-line); border-radius: 6px; padding: 26px; min-width: 0; }
.lw-form .gform_wrapper { margin: 0 !important; }
.lw-form .gform_wrapper .gfield_label { font-family: inherit; font-size: 14px; color: var(--lw-ink); }
.lw-form .gform_wrapper input[type="text"],
.lw-form .gform_wrapper input[type="email"],
.lw-form .gform_wrapper input[type="tel"],
.lw-form .gform_wrapper select { width: 100% !important; min-height: 46px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--lw-ink); background: var(--lw-paper); border: 1px solid #b9bdc4; border-radius: 4px; }
.lw-form .gform_wrapper input:focus, .lw-form .gform_wrapper select:focus { outline: 2px solid var(--lw-ink); outline-offset: 1px; border-color: var(--lw-ink); }
/* SMS consent boxes: undo the theme's global input sizing so they render as real checkboxes. */
.lw-form .gform_wrapper .gfield_checkbox li,
.lw-form .gform_wrapper .gfield_checkbox .gchoice { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 0; }
.lw-form .gform_wrapper input[type="checkbox"] { -webkit-appearance: checkbox; appearance: auto; flex: none; width: 18px !important; height: 18px !important; min-height: 0; margin: 3px 0 0 !important; padding: 0 !important; border: 0; background: none; accent-color: var(--lw-red); cursor: pointer; }
.lw-form .gform_wrapper .gfield_checkbox label { max-width: none !important; width: auto !important; margin: 0 !important; font-size: 13px; line-height: 1.5; color: var(--lw-ink); }
.lw-form .gform_footer { margin-top: 6px; padding: 0; }

/* Day/time picker (js/lifetime-warranty.js) replaces the GF date + time fields. */
.lw-form .lw-gf-hidden { display: none !important; }
.lw-pick { margin: 18px 0 4px; min-width: 0; }
.lw-pick-label { font-size: 14px; margin: 0 0 8px !important; color: var(--lw-ink); }
.lw-pick-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 0 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.lw-pick-day { flex: 0 0 66px; scroll-snap-align: start; display: grid; justify-items: center; gap: 1px; padding: 8px 4px; border: 1px solid #b9bdc4; border-radius: 6px; background: var(--lw-paper); color: var(--lw-ink); font: inherit; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.lw-pick-day:hover { border-color: var(--lw-ink); }
.lw-pick-day[aria-pressed="true"] { background: var(--lw-ink); border-color: var(--lw-ink); color: #ffffff; }
.lw-pick-wd { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.lw-pick-d { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lw-pick-mo { font-size: 11px; }
.lw-pick-times { display: grid; gap: 12px; }
.lw-pick-group { display: grid; gap: 6px; }
.lw-pick-group-name { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lw-muted); }
.lw-pick-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.lw-pick-slot { min-height: 40px; padding: 0 6px; border: 1px solid #b9bdc4; border-radius: 4px; background: var(--lw-paper); color: var(--lw-ink); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.lw-pick-slot:hover { border-color: var(--lw-ink); }
.lw-pick-slot[aria-pressed="true"] { background: var(--lw-red); border-color: var(--lw-red); color: #ffffff; }
.lw-pick-note { margin: 12px 0 0 !important; font-size: 14px; color: var(--lw-ink); min-height: 1.5em; }
.lw-pick-note.lw-pick-err { color: var(--lw-red); }
@media (prefers-reduced-motion: reduce) {
	.lw-pick-day, .lw-pick-slot { transition: none; }
}
.lw-form .gform_wrapper .gform_footer .gform_button { width: 100% !important; min-height: 50px; margin: 0 !important; border: 0; border-radius: 4px; background: var(--lw-red) !important; color: #ffffff !important; font-family: inherit !important; font-size: 16px !important; text-transform: none !important; letter-spacing: .02em !important; cursor: pointer; }
.lw-form .gform_wrapper .gform_footer .gform_button:hover { background: var(--lw-red-dark) !important; }
.lw-fine { margin-top: 12px !important; font-size: 13px; color: var(--lw-muted); }

@media (max-width: 860px) {
	.lw-top, .lw-backed, .lw-book-in { grid-template-columns: minmax(0, 1fr); }
	.lw-facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lw-steps, .lw-cover { grid-template-columns: minmax(0, 1fr); }
	.lw-actions { flex-direction: row; flex-wrap: wrap; }
	.lw-actions .lw-btn { flex: 1 1 160px; }
}
/* Phones: headline and buttons above the art so the CTA is in the first screen. */
@media (max-width: 639px) {
	.lw-top { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 14px; }
	.lw-pitch { display: contents; }
	.lw-pitch .lw-eyebrow { order: 1; }
	.lw-pitch .lw-h1 { order: 2; }
	.lw-pitch .lw-actions { order: 3; }
	.lw-art { order: 4; }
	.lw-pitch .lw-lead { order: 5; }
	.lw-pitch .lw-phone { order: 6; }
	.lw-actions .lw-btn { padding: 0 12px; font-size: 15px; white-space: nowrap; flex-basis: 140px; }
	.lw-form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.lw-btn, .lw-doc { transition: none; }
}
