/* Free VIN Checker — shared cqp- styles (EV Fee / Fishing License pattern) */

.cqp-wrap *, .cqp-wrap *::before, .cqp-wrap *::after { box-sizing: border-box; }

.cqp-wrap {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 0.875rem;
	color: #1a202c;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.cqp-wrap input, .cqp-wrap select, .cqp-wrap button { font-family: inherit; }

.cqp-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: stretch;
}

.cqp-form-col,
.cqp-results-col {
	width: 100%;
	position: static;
}

.cqp-field-group { margin-bottom: 14px; }
.cqp-field-group:last-child { margin-bottom: 0; }
.cqp-label { display: block; font-size: 0.78rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.cqp-field-help, .cqp-field-hint { font-size: 0.70rem; color: #6b7280; margin-top: 4px; line-height: 1.45; }

.cqp-input, .cqp-select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #d1d5db;
	border-radius: 7px;
	font-size: 0.84rem;
	color: #1a202c;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.cqp-input:focus, .cqp-select:focus {
	outline: none;
	border-color: #022345;
	box-shadow: 0 0 0 3px rgba(2, 35, 69, 0.1);
}

.cqp-acc {
	background: #fff;
	border: 1px solid #e4f1f5;
	border-radius: 10px;
	margin-bottom: 12px;
	box-shadow: 0 1px 4px rgba(2, 35, 69, 0.06);
}
.cqp-acc-hd {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 18px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	gap: 10px;
}
.cqp-acc-hd:hover, .cqp-acc-hd:focus { background: #E4F1F5; }
.cqp-acc-hd-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.cqp-acc-title { display: block; font-size: 0.88rem; font-weight: 700; color: #022345; }
.cqp-acc-sub { display: block; font-size: 0.70rem; color: #6b7280; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cqp-badge {
	background: #022345;
	color: #fff;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}
.cqp-badge-muted { background: #e4f1f5; color: #022345; }
.cqp-acc-open .cqp-badge-muted { background: #022345; color: #fff; }
.cqp-chevron { width: 18px; height: 18px; color: #9ca3af; flex-shrink: 0; transition: transform 0.25s ease; }
.cqp-acc-open .cqp-chevron { transform: rotate(180deg); color: #022345; }

/*
 * Compact accordion: use display, not a reserved max-height.
 * A large max-height left a tall empty box (ads landed in the gap).
 */
.fvc-wrap .cqp-acc-body {
	display: none;
	position: relative;
	overflow: visible;
	max-height: none !important;
	height: auto !important;
	transition: none !important;
}
.fvc-wrap .cqp-acc-open .cqp-acc-body {
	display: block;
	max-height: none !important;
	height: auto !important;
	overflow: visible;
}
.fvc-wrap .cqp-acc-inner {
	padding: 0 18px 14px;
	display: block;
	height: auto;
}
.fvc-wrap .cqp-acc-open .cqp-acc-inner { padding: 12px 18px 14px; }
.fvc-wrap .cqp-acc { margin-bottom: 0; }
.fvc-wrap .cqp-layout { gap: 14px; align-items: stretch; }
.fvc-wrap .cqp-form-col,
.fvc-wrap .cqp-results-col,
.fvc-wrap .cqp-form-stack,
.fvc-wrap .cqp-results-stack,
.fvc-wrap .cqp-results-panel,
.fvc-wrap .fvc-results-body,
.fvc-wrap .fvc-filled {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
}
.fvc-wrap .cqp-results-panel { padding: 14px 16px 12px; }
.fvc-wrap .cqp-field-group { margin-bottom: 10px; }
.fvc-wrap .fvc-empty-state { padding: 8px 4px; }
.fvc-wrap .fvc-vin-meta { margin: 4px 0 8px; }
.fvc-wrap .cqp-rate-hint { margin-top: 10px; }
.fvc-wrap .fvc-disclaimer { margin-top: 8px; margin-bottom: 0; padding-bottom: 0; }
.fvc-wrap .fvc-email-block { margin-top: 10px; padding-top: 8px; margin-bottom: 0; }
.fvc-wrap .fvc-submit-btn { margin-top: 0; }

/* Collapse any ad / Ad Inserter nodes that slip inside the tool root. */
#vtc-fvl-root .adsbygoogle,
#vtc-fvl-root ins.adsbygoogle,
#vtc-fvl-root [id^="ad-inserter"],
#vtc-fvl-root [class*="ad-inserter"],
#vtc-fvl-root [class*="ai-viewport"],
#vtc-fvl-root .ai-viewports,
#vtc-fvl-root .ai-block,
#vtc-fvl-root .code-block > .adsbygoogle,
#vtc-fvl-root > .adsbygoogle,
#vtc-fvl-root iframe[id*="google_ads"],
#vtc-fvl-root iframe[src*="googlesyndication"],
#vtc-fvl-root iframe[src*="doubleclick"] {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	max-height: 0 !important;
	min-height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	pointer-events: none !important;
}

.cqp-results-col { position: static; }
.cqp-results-panel {
	background: #fff;
	border: 1px solid #e4f1f5;
	border-top: 4px solid #022345;
	border-radius: 10px;
	padding: 18px;
	box-shadow: 0 4px 20px rgba(2, 35, 69, 0.10);
}
.cqp-results-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e4f1f5;
	gap: 8px;
	flex-wrap: wrap;
}
.cqp-results-title { font-size: 0.92rem; font-weight: 700; color: #022345; }
.cqp-results-sub { font-size: 0.70rem; color: #6b7280; margin-top: 2px; }
.cqp-badge-status {
	display: inline-block;
	border-radius: 20px;
	padding: 3px 10px;
	font-weight: 700;
	font-size: 11px;
	white-space: nowrap;
	flex-shrink: 0;
}
.cqp-badge-active { background: #022345; color: #fff; }
.cqp-context-line {
	font-size: 0.72rem;
	color: #6b7280;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f3f4f6;
	min-height: 16px;
}

.cqp-r-section-head { background: #f8fafc; border-radius: 5px; padding: 5px 10px; margin: 10px 0 2px; }
.cqp-r-section-head .cqp-r-label {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #022345;
}
.cqp-r-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 7px 0;
	font-size: 0.82rem;
	gap: 8px;
}
.cqp-r-row + .cqp-r-row { border-top: 1px solid #f3f4f6; }
.cqp-r-left { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cqp-r-label { color: #374151; font-weight: 500; }
.cqp-r-val {
	font-weight: 600;
	color: #1a202c;
	text-align: right;
	min-width: 88px;
	max-width: 58%;
	word-break: break-word;
}
.cqp-r-subtotal { border-top: 1px solid #e5e7eb !important; padding-top: 9px !important; margin-top: 4px; }
.cqp-r-subtotal .cqp-r-label { font-weight: 700; color: #022345; }
.cqp-r-subtotal .cqp-r-val { font-weight: 700; color: #022345; }

.cqp-rate-hint {
	background: #f0f9ff;
	border: 1px solid #A4DFF5;
	border-radius: 7px;
	padding: 10px 14px;
	font-size: 0.74rem;
	color: #022345;
	line-height: 1.65;
	margin-top: 14px;
}

.cqp-email-btn {
	display: block;
	width: 100%;
	padding: 12px 20px;
	font-size: 0.92rem;
	font-weight: 700;
	color: #fff;
	background: #022345;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: background 0.15s, opacity 0.15s;
}
.cqp-email-btn:hover, .cqp-email-btn:focus { background: #03305e; color: #fff; }
.cqp-email-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* VIN-specific */
.fvc-vin-input {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.95rem;
	padding: 12px 12px;
}
.fvc-vin-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 8px 0 14px;
	font-size: 0.72rem;
	color: #6b7280;
}
.fvc-vin-status.is-ok { color: #166534; font-weight: 600; }
.fvc-vin-status.is-bad { color: #991b1b; font-weight: 600; }

.fvc-empty-state {
	padding: 12px 8px;
	text-align: center;
	color: #6b7280;
	font-size: 0.82rem;
}
.fvc-results-body.fvc-is-loading .fvc-empty-state,
.fvc-results-body.fvc-has-data .fvc-empty-state { display: none; }

.fvc-headline {
	font-size: 1.05rem;
	font-weight: 800;
	color: #022345;
	line-height: 1.35;
	margin-bottom: 6px;
}
.fvc-vin-display {
	font-size: 0.72rem;
	color: #6b7280;
	margin-bottom: 10px;
}
.fvc-vin-display code {
	font-size: 0.78rem;
	background: #f8fafc;
	border: 1px solid #e4f1f5;
	border-radius: 4px;
	padding: 2px 6px;
	letter-spacing: 0.06em;
	color: #022345;
}
.fvc-vin-label {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-right: 4px;
}

.fvc-recalls {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.fvc-recall-item {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-left: 3px solid #f59e0b;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.76rem;
	line-height: 1.5;
	color: #92400e;
}
.fvc-recall-item strong { color: #78350f; }
.fvc-recall-campaign {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	background: #fef3c7;
	color: #92400e;
	border-radius: 4px;
	padding: 1px 6px;
	margin-bottom: 4px;
}
.fvc-recall-ok {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-left: 3px solid #22c55e;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.76rem;
	color: #166534;
	margin-top: 10px;
}

.fvc-sources {
	margin-top: 12px;
	font-size: 0.68rem;
	color: #6b7280;
}
.fvc-history-teaser { margin-top: 16px; }
.fvc-history-teaser-text {
	margin: 8px 0 12px;
	font-size: 0.78rem;
	line-height: 1.55;
	color: #334155;
	font-weight: 400;
}
.fvc-goodcar-btn {
	width: 100%;
	margin-top: 4px;
	background: #0f766e !important;
	border-color: #0f766e !important;
}
.fvc-goodcar-btn:hover {
	background: #0d9488 !important;
	border-color: #0d9488 !important;
}
.fvc-affiliate-note {
	margin: 8px 0 0;
	font-size: 0.68rem;
	line-height: 1.45;
	color: #6b7280;
	font-weight: 400;
}
.fvc-disclaimer {
	margin-top: 14px;
	font-size: 0.68rem;
	color: #6b7280;
	line-height: 1.5;
}

.fvc-row-hidden { display: none !important; }

.fvc-email-block {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #e4f1f5;
}
.fvc-email-msg { margin-top: 8px; }

@media (max-width: 600px) {
	.cqp-results-panel { padding: 14px; border-radius: 8px; }
	.cqp-results-title { font-size: 0.86rem; }
	.cqp-r-row { font-size: 0.80rem; padding: 6px 0; }
	.fvc-headline { font-size: 0.98rem; }
}
