/*!
 * NICRIS Quote Form — scoped under .nqf (Divi / theme safe). No global selectors.
 */

/* ---------- tokens (on the root class, never :root) ---------- */
.nqf {
	--nqf-navy: #084068;
	--nqf-blue: #0C71C3;
	--nqf-blue-dark: #095a9c;
	--nqf-sky: #2EA3F2;
	--nqf-red: #D63637;
	--nqf-red-dark: #b42a2b;
	--nqf-ink: #333333;
	--nqf-muted: #666666;
	--nqf-line: #E5E5E5;
	--nqf-line-strong: #8a96a3; /* 3:1+ against white for input borders */
	--nqf-band: #F4F6F8;
	--nqf-white: #ffffff;
	--nqf-error: #b3261e;
	--nqf-ok: #1d6b3a;
	--nqf-radius: 6px;
	--nqf-radius-lg: 10px;
	--nqf-font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--nqf-focus: 0 0 0 3px var(--nqf-sky);

	display: block;
	box-sizing: border-box;
	margin: 0;
	padding: 24px 12px;
	background: var(--nqf-band);
	color: var(--nqf-ink);
	font-family: var(--nqf-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	-webkit-text-size-adjust: 100%;
}

/* ---------- scoped reset ---------- */
.nqf *, .nqf *::before, .nqf *::after { box-sizing: border-box; }
.nqf h2, .nqf h3, .nqf h4, .nqf p, .nqf ul, .nqf ol, .nqf li, .nqf fieldset, .nqf legend, .nqf form, .nqf label, .nqf dl, .nqf dt, .nqf dd {
	margin: 0; padding: 0; border: 0; font-family: inherit; background: none; text-transform: none; letter-spacing: normal;
}
.nqf ul, .nqf ol { list-style: none; }
.nqf fieldset { min-width: 0; }
.nqf legend { float: none; width: 100%; }
.nqf [hidden] { display: none !important; } /* component classes set display; hidden must always win */
.nqf a { color: var(--nqf-blue); text-decoration: underline; text-underline-offset: 2px; }
.nqf a:hover { color: var(--nqf-navy); }
.nqf a:focus-visible { outline: none; box-shadow: var(--nqf-focus); border-radius: 2px; }
.nqf input, .nqf select, .nqf textarea, .nqf button {
	font-family: inherit; font-size: 16px; line-height: 1.4; margin: 0; color: inherit; letter-spacing: normal; text-transform: none; box-shadow: none;
}
.nqf svg { display: block; max-width: none; }

.nqf-sr {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.nqf .nqf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- card + header ---------- */
.nqf-card {
	max-width: 880px;
	margin: 0 auto;
	background: var(--nqf-white);
	border: 1px solid var(--nqf-line);
	border-top: 4px solid var(--nqf-navy);
	border-radius: var(--nqf-radius-lg);
	padding: 24px 16px 0;
	box-shadow: 0 1px 2px rgba(8, 64, 104, .06), 0 8px 24px rgba(8, 64, 104, .06);
}
.nqf .nqf-title {
	color: var(--nqf-navy);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
	padding-bottom: 0;
}
.nqf .nqf-lede { color: var(--nqf-muted); margin-top: 8px; max-width: 60ch; padding-bottom: 0; }

/* step indicator */
.nqf .nqf-steps { display: flex; gap: 8px; margin-top: 20px; counter-reset: none; }
.nqf .nqf-step-ind {
	display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0;
	color: var(--nqf-muted); font-size: 14px; font-weight: 600; line-height: 1.25;
}
.nqf .nqf-step-num {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%;
	border: 2px solid var(--nqf-line-strong); color: var(--nqf-muted); font-weight: 700; font-size: 14px; background: var(--nqf-white);
}
.nqf .nqf-step-name { display: none; }
.nqf .nqf-step-ind[aria-current="step"] { color: var(--nqf-navy); }
.nqf .nqf-step-ind[aria-current="step"] .nqf-step-name { display: inline; }
.nqf .nqf-step-ind[aria-current="step"] .nqf-step-num { background: var(--nqf-navy); border-color: var(--nqf-navy); color: var(--nqf-white); }
.nqf .nqf-step-ind.is-done .nqf-step-num { background: var(--nqf-white); border-color: var(--nqf-blue); color: var(--nqf-blue); }
.nqf .nqf-step-ind.is-done { color: var(--nqf-ink); }
.nqf .nqf-step-ind:not([aria-current="step"]) { flex: 0 0 auto; }

.nqf .nqf-progress { height: 4px; margin: 14px -16px 0; background: var(--nqf-line); overflow: hidden; }
.nqf .nqf-progress-bar { display: block; height: 100%; width: 33.34%; background: var(--nqf-red); transition: width .35s ease; }

/* ---------- steps ---------- */
.nqf .nqf-form { position: relative; }
.nqf .nqf-step { padding: 24px 0 8px; }
.nqf .nqf-step-title {
	color: var(--nqf-navy); font-size: 22px; font-weight: 700; line-height: 1.25; padding-bottom: 0; outline: none;
}
.nqf .nqf-step-title:focus-visible { box-shadow: var(--nqf-focus); border-radius: 2px; }
.nqf .nqf-legend-note { color: var(--nqf-muted); font-size: 14px; margin-top: 4px; padding-bottom: 0; }

.nqf .nqf-subgroup, .nqf .nqf-consents { margin-top: 28px; }
.nqf .nqf-sublegend {
	display: block; color: var(--nqf-navy); font-size: 17px; font-weight: 700; line-height: 1.3; padding-bottom: 12px;
}
.nqf .nqf-block {
	margin-top: 24px; padding: 20px 16px; border: 1px solid var(--nqf-line); border-left: 4px solid var(--nqf-blue); border-radius: var(--nqf-radius);
	background: var(--nqf-white);
}
.nqf .nqf-block-title {
	display: block; color: var(--nqf-navy); font-size: 19px; font-weight: 800; line-height: 1.3; padding-bottom: 4px;
}
.nqf .nqf-block > .nqf-subgroup:first-of-type { margin-top: 20px; }
.nqf .nqf-note { color: var(--nqf-muted); font-size: 14px; margin-top: 16px; padding-bottom: 0; }

/* ---------- grid ---------- */
.nqf .nqf-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 16px; }
.nqf .nqf-grid + .nqf-grid { margin-top: 16px; }
.nqf .nqf-field { grid-column: span 12; min-width: 0; }
.nqf .nqf-w-quarter { grid-column: span 6; }
.nqf .nqf-step > .nqf-field { margin-top: 20px; }
.nqf .nqf-step > .nqf-grid { margin-top: 24px; }
@media (min-width: 640px) {
	.nqf { padding: 40px 24px; }
	.nqf-card { padding: 32px 32px 0; }
	.nqf .nqf-progress { margin: 18px -32px 0; }
	.nqf .nqf-w-half { grid-column: span 6; }
	.nqf .nqf-w-third { grid-column: span 4; }
	.nqf .nqf-w-quarter { grid-column: span 3; }
	.nqf .nqf-block { padding: 24px; }
	.nqf .nqf-title { font-size: 34px; }
	.nqf .nqf-step-name { display: inline; }
	.nqf .nqf-step-ind:not([aria-current="step"]) { flex: 1 1 0; }
}

/* ---------- labels / inputs ---------- */
.nqf .nqf-label {
	display: block; color: var(--nqf-ink); font-size: 15px; font-weight: 600; line-height: 1.35; padding-bottom: 6px;
}
.nqf .nqf-label-lg { color: var(--nqf-navy); font-size: 17px; font-weight: 700; padding-bottom: 2px; }
.nqf .nqf-req { color: var(--nqf-red-dark); font-weight: 700; }
.nqf .nqf-help { color: var(--nqf-muted); font-size: 14px; line-height: 1.4; margin: -2px 0 8px; padding-bottom: 0; }

.nqf .nqf-input {
	display: block; width: 100%; max-width: 100%; height: 48px; min-height: 48px;
	padding: 10px 12px; border: 1px solid var(--nqf-line-strong); border-radius: var(--nqf-radius);
	background: var(--nqf-white); color: var(--nqf-ink); font-size: 16px; font-weight: 400;
	-webkit-appearance: none; appearance: none; outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.nqf textarea.nqf-input { height: auto; min-height: 112px; resize: vertical; }
.nqf select.nqf-input {
	padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23084068' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.nqf input[type="date"].nqf-input { min-width: 0; }
.nqf .nqf-input::placeholder { color: #767676; opacity: 1; }
.nqf .nqf-input:hover { border-color: var(--nqf-navy); }
.nqf .nqf-input:focus, .nqf .nqf-input:focus-visible { border-color: var(--nqf-blue); box-shadow: var(--nqf-focus); }
.nqf .nqf-input[aria-invalid="true"] { border-color: var(--nqf-error); border-width: 2px; padding: 9px 11px; }
.nqf .nqf-input[readonly] { background: var(--nqf-band); }

.nqf .nqf-error {
	display: flex; gap: 6px; align-items: flex-start; color: var(--nqf-error); font-size: 14px; font-weight: 600; line-height: 1.35; margin-top: 6px; padding-bottom: 0;
}
.nqf .nqf-error[hidden] { display: none; }
.nqf .nqf-error::before {
	content: "!"; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--nqf-error); color: #fff; font-size: 11px; font-weight: 800;
}
.nqf .nqf-count { color: var(--nqf-muted); font-size: 13px; text-align: right; margin-top: 4px; padding-bottom: 0; }

/* radios / checkboxes */
.nqf .nqf-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.nqf .nqf-group-cb .nqf-choices { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .nqf .nqf-group-cb .nqf-choices { grid-template-columns: 1fr 1fr; } }
.nqf .nqf-choice {
	position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
	padding: 10px 14px; border: 1px solid var(--nqf-line-strong); border-radius: var(--nqf-radius);
	background: var(--nqf-white); color: var(--nqf-ink); font-size: 15px; font-weight: 400; line-height: 1.3; cursor: pointer;
}
.nqf .nqf-choice:hover { border-color: var(--nqf-navy); }
.nqf .nqf-choice-single { border: 0; padding: 4px 0; min-height: 0; }
.nqf .nqf-choice:has(.nqf-check:checked) { border-color: var(--nqf-blue); background: #eef6fd; }
.nqf .nqf-choice-single:has(.nqf-check:checked) { background: none; }
.nqf .nqf-check {
	-webkit-appearance: none; appearance: none; flex: 0 0 auto; position: relative;
	width: 22px; height: 22px; margin: 0; padding: 0; border: 2px solid var(--nqf-line-strong); border-radius: 4px;
	background: var(--nqf-white); cursor: pointer; outline: none; vertical-align: middle;
}
.nqf .nqf-check[type="radio"] { border-radius: 50%; }
.nqf .nqf-check:checked { border-color: var(--nqf-blue); background: var(--nqf-blue); }
.nqf .nqf-check[type="checkbox"]:checked::after {
	content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
	border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.nqf .nqf-check[type="radio"]:checked { background: var(--nqf-white); border-width: 2px; }
.nqf .nqf-check[type="radio"]:checked::after {
	content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--nqf-blue);
}
.nqf .nqf-check:focus-visible { box-shadow: var(--nqf-focus); }
.nqf .nqf-check[aria-invalid="true"] { border-color: var(--nqf-error); }
.nqf .nqf-group[data-invalid="true"] .nqf-choice, .nqf .nqf-group[data-invalid="true"] .nqf-tile-body { border-color: var(--nqf-error); }

/* ---------- coverage tiles ---------- */
.nqf .nqf-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 380px) { .nqf .nqf-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .nqf .nqf-tiles { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.nqf .nqf-tile { position: relative; display: block; cursor: pointer; padding: 0; }
.nqf .nqf-tile-input {
	position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); -webkit-appearance: none; appearance: none;
}
.nqf .nqf-tile-body {
	position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
	height: 100%; padding: 14px 40px 14px 14px; border: 2px solid var(--nqf-line); border-radius: var(--nqf-radius-lg);
	background: var(--nqf-white); color: var(--nqf-ink);
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
@media (min-width: 380px) {
	.nqf .nqf-tile-body { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 6px; align-content: start; padding: 18px 16px 16px; min-height: 148px; }
}
.nqf .nqf-tile-icon { grid-row: span 2; color: var(--nqf-blue); width: 40px; height: 40px; }
@media (min-width: 380px) { .nqf .nqf-tile-icon { grid-row: auto; margin-bottom: 4px; } }
.nqf .nqf-tile-label { color: var(--nqf-navy); font-size: 16px; font-weight: 700; line-height: 1.25; }
.nqf .nqf-tile-desc { color: var(--nqf-muted); font-size: 13.5px; line-height: 1.35; }
.nqf .nqf-tile-check {
	position: absolute; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--nqf-line-strong); color: transparent; background: var(--nqf-white);
}
.nqf .nqf-tile:hover .nqf-tile-body { border-color: var(--nqf-sky); }
.nqf .nqf-tile-input:checked + .nqf-tile-body { border-color: var(--nqf-blue); background: #eef6fd; box-shadow: inset 0 0 0 1px var(--nqf-blue); }
.nqf .nqf-tile-input:checked + .nqf-tile-body .nqf-tile-check { border-color: var(--nqf-blue); background: var(--nqf-blue); color: #fff; }
.nqf .nqf-tile-input:checked + .nqf-tile-body .nqf-tile-icon { color: var(--nqf-navy); }
.nqf .nqf-tile-input:focus-visible + .nqf-tile-body { box-shadow: 0 0 0 3px var(--nqf-white), 0 0 0 6px var(--nqf-sky); }

/* ---------- repeatable rows ---------- */
.nqf .nqf-repeat { margin-top: 20px; }
.nqf .nqf-repeat-row { padding: 16px 0 12px; border-top: 1px solid var(--nqf-line); }
.nqf .nqf-repeat-rows > .nqf-repeat-row:first-child { border-top: 0; padding-top: 8px; }
.nqf .nqf-row-title { display: block; color: var(--nqf-navy); font-size: 16px; font-weight: 700; padding-bottom: 12px; }
.nqf .nqf-remove { margin-top: 8px; }
.nqf .nqf-repeat-rows > .nqf-repeat-row:only-child .nqf-remove { display: none; }
.nqf .nqf-add { margin-top: 4px; }

/* ---------- buttons ---------- */
.nqf .nqf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: var(--nqf-radius);
	font-family: var(--nqf-font); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
	cursor: pointer; -webkit-appearance: none; appearance: none; background-image: none; box-shadow: none; outline: none; width: auto;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.nqf .nqf-btn::after, .nqf .nqf-btn::before { content: none; display: none; }
.nqf .nqf-btn:focus-visible { box-shadow: 0 0 0 3px var(--nqf-white), 0 0 0 6px var(--nqf-sky); }
.nqf .nqf-btn-primary { background: var(--nqf-blue); border-color: var(--nqf-blue); color: #fff; }
.nqf .nqf-btn-primary:hover { background: var(--nqf-blue-dark); border-color: var(--nqf-blue-dark); color: #fff; }
.nqf .nqf-btn-outline { background: var(--nqf-white); border-color: var(--nqf-navy); color: var(--nqf-navy); }
.nqf .nqf-btn-outline:hover { background: var(--nqf-navy); color: #fff; }
.nqf .nqf-btn-submit { background: var(--nqf-red); border-color: var(--nqf-red); color: #fff; font-weight: 800; padding-left: 28px; padding-right: 28px; }
.nqf .nqf-btn-submit:hover { background: var(--nqf-red-dark); border-color: var(--nqf-red-dark); color: #fff; }
.nqf .nqf-btn-text { min-height: 40px; padding: 8px 0; background: none; border: 0; color: var(--nqf-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.nqf .nqf-btn-text:hover { color: var(--nqf-navy); }
.nqf .nqf-btn[disabled], .nqf .nqf-btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; }
.nqf .nqf-btn.is-busy::before {
	content: ""; display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%;
	animation: nqf-spin .8s linear infinite;
}
@keyframes nqf-spin { to { transform: rotate(360deg); } }

/* ---------- VIN decoder (personal auto) ---------- */
.nqf .nqf-vin-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.nqf .nqf-vin-row .nqf-vin-input { flex: 1 1 240px; width: auto; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.nqf .nqf-vin-row .nqf-vin-btn { flex: 0 0 auto; min-height: 48px; padding: 10px 18px; white-space: nowrap; }
@media (max-width: 479px) { .nqf .nqf-vin-row .nqf-vin-btn { flex: 1 1 100%; } }
.nqf .nqf-vin-btn.is-busy::before { border-color: rgba(8,64,104,.25); border-top-color: var(--nqf-navy); }
.nqf .nqf-vin-btn.is-busy:hover::before { border-color: rgba(255,255,255,.5); border-top-color: #fff; }
.nqf .nqf-vin-status {
	display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border-radius: var(--nqf-radius);
	font-size: 14px; line-height: 1.4; border: 1px solid var(--nqf-line); background: var(--nqf-band); color: var(--nqf-ink);
}
.nqf .nqf-vin-status[hidden] { display: none; }
.nqf .nqf-vin-status::before {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 1px;
	border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; content: "i"; background: var(--nqf-blue);
}
.nqf .nqf-vin-status[data-state="loading"]::before { content: ""; background: none; border: 2px solid rgba(8,64,104,.25); border-top-color: var(--nqf-navy); width: 14px; height: 14px; margin: 2px; animation: nqf-spin .8s linear infinite; }
.nqf .nqf-vin-status[data-state="ok"] { border-color: #b7dcc4; background: #eef8f1; color: var(--nqf-ok); }
.nqf .nqf-vin-status[data-state="ok"]::before { content: "\2713"; background: var(--nqf-ok); }
.nqf .nqf-vin-status[data-state="warn"] { border-color: #f0d9a8; background: #fff8e8; color: #6b4e00; }
.nqf .nqf-vin-status[data-state="warn"]::before { content: "!"; background: #9a6b00; }
.nqf .nqf-vin-status[data-state="error"] { border-color: #f1c4c1; background: #fdf1f0; color: var(--nqf-error); }
.nqf .nqf-vin-status[data-state="error"]::before { content: "!"; background: var(--nqf-error); }
.nqf .nqf-input[data-nqf-from-vin] { background: #eef6fd; border-color: var(--nqf-blue); }
.nqf [data-nqf-row].is-decoding .nqf-input[name$=".year"],
.nqf [data-nqf-row].is-decoding .nqf-input[name$=".make"],
.nqf [data-nqf-row].is-decoding .nqf-input[name$=".model"] { background: var(--nqf-band); }
.nqf [data-nqf-vin-extra][hidden] { display: none; }

/* nav: sticky on small screens */
.nqf .nqf-nav {
	position: sticky; bottom: 0; z-index: 5;
	display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
	margin: 16px -16px 0; padding: 12px 16px; background: rgba(255,255,255,.97);
	border-top: 1px solid var(--nqf-line); border-radius: 0 0 var(--nqf-radius-lg) var(--nqf-radius-lg);
}
.nqf .nqf-nav [data-nqf-next], .nqf .nqf-nav [data-nqf-submit] { flex: 1 1 auto; margin-left: auto; }
.nqf .nqf-nav [data-nqf-back] { flex: 0 0 auto; }
@media (min-width: 640px) {
	.nqf .nqf-nav { position: static; margin: 24px -32px 0; padding: 20px 32px 24px; background: var(--nqf-band); }
	.nqf .nqf-nav [data-nqf-next], .nqf .nqf-nav [data-nqf-submit] { flex: 0 0 auto; min-width: 200px; }
}

/* ---------- error summary & alerts ---------- */
.nqf .nqf-summary {
	margin-top: 16px; padding: 14px 16px; border: 2px solid var(--nqf-error); border-radius: var(--nqf-radius); background: #fdf1f0; outline: none;
}
.nqf .nqf-summary:focus-visible { box-shadow: var(--nqf-focus); }
.nqf .nqf-summary-title { color: var(--nqf-error); font-size: 16px; font-weight: 700; padding-bottom: 6px; }
.nqf .nqf-summary ul { list-style: disc; padding-left: 20px; }
.nqf .nqf-summary li { margin: 2px 0; padding: 0; color: var(--nqf-ink); }
.nqf .nqf-summary a { color: var(--nqf-error); font-weight: 600; }
.nqf .nqf-alert { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--nqf-radius); font-size: 15px; }
.nqf .nqf-alert-error { border: 2px solid var(--nqf-error); background: #fdf1f0; color: var(--nqf-ink); }
.nqf .nqf-alert p { padding-bottom: 0; }
.nqf .nqf-alert .nqf-btn { margin-top: 10px; }
.nqf .nqf-inline-note { color: var(--nqf-error); font-size: 14px; font-weight: 600; margin-top: 6px; padding-bottom: 0; }

/* ---------- review ---------- */
.nqf .nqf-review { margin-top: 16px; display: grid; gap: 12px; }
.nqf .nqf-review-group { border: 1px solid var(--nqf-line); border-radius: var(--nqf-radius); padding: 14px 16px; background: var(--nqf-band); }
.nqf .nqf-review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 6px; }
.nqf .nqf-review-title { color: var(--nqf-navy); font-size: 16px; font-weight: 700; padding-bottom: 0; }
.nqf .nqf-review-head .nqf-btn-text { min-height: 32px; padding: 4px 0; font-size: 15px; }
.nqf .nqf-review dl { display: grid; grid-template-columns: 1fr; gap: 2px 16px; font-size: 15px; }
.nqf .nqf-review dt { color: var(--nqf-muted); font-weight: 400; margin-top: 6px; }
.nqf .nqf-review dd { color: var(--nqf-ink); font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
@media (min-width: 560px) {
	.nqf .nqf-review dl { grid-template-columns: minmax(140px, 38%) 1fr; }
	.nqf .nqf-review dt, .nqf .nqf-review dd { margin-top: 4px; }
}

/* ---------- consents ---------- */
.nqf .nqf-consent { padding: 14px 0; border-top: 1px solid var(--nqf-line); }
.nqf .nqf-consent:first-of-type { border-top: 0; padding-top: 0; }
.nqf .nqf-consent-row { display: flex; gap: 12px; align-items: flex-start; }
.nqf .nqf-consent-row .nqf-check { margin-top: 1px; }
.nqf .nqf-consent-body { flex: 1 1 auto; min-width: 0; }
.nqf .nqf-consent-label { display: block; color: var(--nqf-ink); font-size: 15px; font-weight: 700; cursor: pointer; padding-bottom: 4px; }
.nqf .nqf-consent-text { color: var(--nqf-ink); font-size: 14px; line-height: 1.5; }
.nqf .nqf-consent-text strong { font-weight: 700; }
.nqf .nqf-consent-esign { margin-left: 16px; padding-left: 16px; border-left: 3px solid var(--nqf-sky); border-top: 0; }
.nqf .nqf-footer-notice { margin-top: 20px; color: var(--nqf-muted); font-size: 13px; line-height: 1.5; padding-bottom: 0; }

/* ---------- success ---------- */
.nqf .nqf-success { padding: 28px 0 32px; outline: none; }
.nqf .nqf-success-icon { color: var(--nqf-ok); margin-bottom: 12px; }
.nqf .nqf-success .nqf-step-title { font-size: 26px; }
.nqf .nqf-ref { margin-top: 10px; font-size: 17px; padding-bottom: 0; }
.nqf .nqf-ref strong { color: var(--nqf-navy); font-size: 22px; font-weight: 800; letter-spacing: .04em; margin-left: 6px; }
.nqf .nqf-success .nqf-sublegend { margin-top: 24px; padding-bottom: 8px; }
.nqf .nqf-next-list, .nqf .nqf-consent-recap { display: grid; gap: 8px; }
.nqf .nqf-next-list li, .nqf .nqf-consent-recap li { position: relative; padding-left: 22px; max-width: 70ch; }
.nqf .nqf-next-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--nqf-blue); }
.nqf .nqf-consent-recap li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.nqf .nqf-consent-recap li.is-yes::before { content: "\2713"; color: var(--nqf-ok); }
.nqf .nqf-consent-recap li.is-no::before { content: "\2715"; color: var(--nqf-muted); }

@media (prefers-reduced-motion: reduce) {
	.nqf *, .nqf *::before, .nqf *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ======================================================================
 * Divi / theme hardening. Divi styles form controls with ID-scoped
 * selectors (e.g. #et-boc .et-l input, #page-container input, #left-area ul,
 * .et_pb_text p padding). Repeat the critical resets under those IDs so ours
 * win on specificity; !important only where Divi itself uses it.
 * ==================================================================== */
#et-boc .et-l .nqf ul, #page-container .nqf ul, #left-area .nqf ul, #main-content .nqf ul,
#et-boc .et-l .nqf ol, #page-container .nqf ol, #left-area .nqf ol, #main-content .nqf ol {
	list-style: none; margin: 0; padding: 0; line-height: inherit;
}
#et-boc .et-l .nqf .nqf-summary ul, #page-container .nqf .nqf-summary ul, #left-area .nqf .nqf-summary ul { list-style: disc; padding-left: 20px; }
#et-boc .et-l .nqf p, #page-container .nqf p, #left-area .nqf p, #main-content .nqf p { padding-bottom: 0; }
#et-boc .et-l .nqf .nqf-input, #page-container .nqf .nqf-input, #main-content .nqf .nqf-input {
	width: 100%; height: 48px; padding: 10px 12px; margin: 0; border: 1px solid #8a96a3; border-radius: 6px;
	background-color: #fff; color: #333; font-size: 16px; line-height: 1.4; font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; box-shadow: none;
}
#et-boc .et-l .nqf textarea.nqf-input, #page-container .nqf textarea.nqf-input, #main-content .nqf textarea.nqf-input { height: auto; min-height: 112px; }
#et-boc .et-l .nqf select.nqf-input, #page-container .nqf select.nqf-input, #main-content .nqf select.nqf-input { padding-right: 40px; }
#et-boc .et-l .nqf .nqf-input:focus, #page-container .nqf .nqf-input:focus, #main-content .nqf .nqf-input:focus { border-color: #0C71C3; box-shadow: 0 0 0 3px #2EA3F2; }
#et-boc .et-l .nqf .nqf-input[aria-invalid="true"], #page-container .nqf .nqf-input[aria-invalid="true"], #main-content .nqf .nqf-input[aria-invalid="true"] { border: 2px solid #b3261e; padding: 9px 11px; }
#et-boc .et-l .nqf .nqf-check, #page-container .nqf .nqf-check, #main-content .nqf .nqf-check { width: 22px; height: 22px; margin: 0; padding: 0; }
#et-boc .et-l .nqf .nqf-btn, #page-container .nqf .nqf-btn, #main-content .nqf .nqf-btn {
	font-size: 16px; line-height: 1.2; letter-spacing: normal; text-transform: none; border-width: 2px; border-radius: 6px; padding: 12px 22px;
}
#et-boc .et-l .nqf .nqf-btn-text, #page-container .nqf .nqf-btn-text, #main-content .nqf .nqf-btn-text { padding: 8px 0; border: 0; }
#et-boc .et-l .nqf .nqf-btn:hover, #page-container .nqf .nqf-btn:hover { padding: 12px 22px; letter-spacing: normal; }
#et-boc .et-l .nqf .nqf-btn-text:hover, #page-container .nqf .nqf-btn-text:hover { padding: 8px 0; }
#et-boc .et-l .nqf .nqf-btn::after, #page-container .nqf .nqf-btn::after { content: none !important; display: none !important; }
#et-boc .et-l .nqf h2, #et-boc .et-l .nqf h3, #et-boc .et-l .nqf h4, #page-container .nqf h2, #page-container .nqf h3, #page-container .nqf h4 { padding-bottom: 0; }
#et-boc .et-l .nqf .nqf-title, #page-container .nqf .nqf-title { color: #084068; font-weight: 800; }
#et-boc .et-l .nqf .nqf-step-title, #page-container .nqf .nqf-step-title { color: #084068; font-weight: 700; }

/* ---------- v1.2 structured addresses (CONTRACT §5) ----------
   Street + line 2 full width; city / state / ZIP share one row from 600px, stacked below. */
.nqf .nqf-w-city, .nqf .nqf-w-state, .nqf .nqf-w-zip { grid-column: span 12; }
@media (min-width: 600px) {
	.nqf .nqf-w-city { grid-column: span 6; }
	.nqf .nqf-w-state { grid-column: span 3; }
	.nqf .nqf-w-zip { grid-column: span 3; }
}
.nqf .nqf-risk .nqf-grid + .nqf-risk-fields { margin-top: 12px; }
.nqf .nqf-risk-fields {
	padding: 16px;
	border-left: 3px solid var(--nqf-navy);
	background: var(--nqf-band);
	border-radius: 0 var(--nqf-radius) var(--nqf-radius) 0;
}
.nqf .nqf-risk-fields[hidden] { display: none; }
@media (max-width: 479px) { .nqf .nqf-risk-fields { padding: 12px; } }

/* ---------- Address autocomplete + verification (CONTRACT §6) ---------- */
.nqf .nqf-field { position: relative; }
.nqf .nqf-ac {
	position: absolute; left: 0; right: 0; z-index: 30; margin-top: 4px;
	background: var(--nqf-white); border: 1px solid var(--nqf-line-strong); border-radius: var(--nqf-radius);
	box-shadow: 0 8px 24px rgba(8, 64, 104, .14); overflow: hidden;
}
.nqf .nqf-ac[hidden] { display: none; }
.nqf .nqf-ac-list { list-style: none; margin: 0; padding: 4px 0; max-height: 280px; overflow-y: auto; }
.nqf .nqf-ac-opt { display: block; margin: 0; padding: 10px 14px; cursor: pointer; line-height: 1.3; min-height: 44px; }
.nqf .nqf-ac-opt:hover, .nqf .nqf-ac-opt[aria-selected="true"] { background: var(--nqf-band); box-shadow: inset 3px 0 0 var(--nqf-blue); }
.nqf .nqf-ac-main { display: block; color: var(--nqf-ink); font-weight: 600; }
.nqf .nqf-ac-sec { display: block; color: var(--nqf-muted); font-size: 14px; }
.nqf .nqf-ac-attr { margin: 0; padding: 4px 14px 6px; border-top: 1px solid var(--nqf-line); color: var(--nqf-muted); font-size: 12px; text-align: right; }

.nqf .nqf-addr-check {
	margin-top: 14px; padding: 14px 16px; border-radius: var(--nqf-radius);
	border: 1px solid var(--nqf-line-strong); border-left: 4px solid var(--nqf-blue); background: var(--nqf-white);
}
.nqf .nqf-addr-check.is-warn { border-left-color: #b26b00; background: #fffaf0; }
.nqf .nqf-addr-check-title { margin: 0 0 4px; color: var(--nqf-navy); font-weight: 700; font-size: 16px; padding-bottom: 0; outline: none; }
.nqf .nqf-addr-check-title:focus-visible { box-shadow: var(--nqf-focus); border-radius: 2px; }
.nqf .nqf-addr-check-msg { margin: 0 0 8px; color: var(--nqf-ink); padding-bottom: 0; }
.nqf .nqf-addr-check-sug { margin: 0 0 4px; font-weight: 700; color: var(--nqf-ink); padding-bottom: 0; }
.nqf .nqf-addr-check-yours { margin: 0 0 10px; color: var(--nqf-muted); font-size: 14px; padding-bottom: 0; }
.nqf .nqf-addr-check-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nqf [data-nqf-next].is-busy { opacity: .7; cursor: progress; }
@media (max-width: 599px) {
	.nqf .nqf-addr-check-actions .nqf-btn { flex: 1 1 100%; }
}

/* 1.3.2: themes often style every <header> / <footer> / <h2> globally (site header bar).
   Reset them inside the form so the card looks the same on any theme. */
.nqf header.nqf-head,
.nqf footer {
	background: transparent;
	background-image: none;
	color: inherit;
	padding: 0;
	margin: 0;
	border: 0;
	box-shadow: none;
	position: static;
	min-height: 0;
	height: auto;
	width: auto;
}
.nqf header.nqf-head { margin-bottom: 16px; }
.nqf header.nqf-head .nqf-title { color: var(--nqf-navy); }
.nqf header.nqf-head .nqf-lede { color: var(--nqf-muted); }
