/**
 * Find Your Ideal Vehicle — Quiz Page Styles
 * Colors, fonts, and spacing matched to Drive EV homepage design system
 */

/* =============================================
   Page Banner
   ============================================= */
.fyv-banner {
	background-color: #00337a;
	padding: 90px 20px;
	text-align: center;
}

.fyv-banner-title {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 3.167em;
	font-weight: 600;
	font-style: normal;
	line-height: 1em;
	text-transform: uppercase;
	letter-spacing: -0.6px;
	text-decoration: none;
	color: #ffffff;
	margin: 0;
}

.fyv-breadcrumb {
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 12px;
}

/* Page background wrapper */
.fyv-page-wrap {
	background: #f5f5f3;
	padding: 60px 20px;
	min-height: 60vh;
}

.fyv-wrap {
	max-width: 660px;
	margin: 0 auto;
}

/* =============================================
   Header
   ============================================= */
.fyv-header {
	text-align: center;
	margin-bottom: 44px;
}

.fyv-label {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: capitalize;
	color: #00337a;
	margin-bottom: 10px;
}

.fyv-title {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 40px;
	font-weight: 550;
	color: #424242;
	line-height: 1.15;
	letter-spacing: 0.5px;
	text-transform: capitalize;
	margin: 0;
}

/* =============================================
   Progress Bar
   ============================================= */
.fyv-progress {
	display: flex;
	gap: 6px;
	margin-bottom: 28px;
}

.progress-dot {
	height: 4px;
	flex: 1;
	border-radius: 0;
	background: #d0d5e0;
	transition: background 0.4s;
}

.progress-dot.done {
	background: #00337a;
}

/* =============================================
   Questions Container
   ============================================= */
#questionsContainer {
	overflow: hidden;
}

/* Question card */
.fyv-question {
	background: #fff;
	border-radius: 0;
	padding: 36px 40px;
	margin-bottom: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	border-left: 3px solid transparent;
	display: none;
	opacity: 0;
	transform: translateX(-50px);
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            opacity 0.45s ease;
}

.fyv-question.active {
	display: block;
}

.fyv-question.visible {
	opacity: 1;
	transform: translateX(0);
}

.fyv-question.answered {
	border-left-color: #00337a;
}

.q-number {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #00337a;
	margin-bottom: 8px;
}

.q-text {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 22px;
	font-weight: 600;
	color: #424242;
	margin-bottom: 24px;
	line-height: 1.3;
	letter-spacing: 0.3px;
	text-transform: capitalize;
}

/* =============================================
   Option Buttons
   ============================================= */
.q-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.q-option {
	padding: 13px 16px;
	border: 1.5px solid #d0d5e0;
	border-radius: 0;
	background: #fff;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #84817A;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.q-option:hover {
	border-color: #00337a;
	background: #eef1f8;
}

.q-option.selected {
	border-color: #00337a;
	background: #00337a;
	color: #fff;
}

/* Collapsed answered state */
.fyv-question.answered .q-options {
	display: none;
}

.answered-value {
	display: none;
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	color: #00337a;
	font-weight: 600;
}

.fyv-question.answered .answered-value {
	display: block;
}

/* =============================================
   Submit Button (mirrors homepage Load More)
   ============================================= */
.fyv-submit-wrap {
	display: none;
	opacity: 0;
	transform: translateX(-50px);
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            opacity 0.45s ease;
	text-align: center;
	margin-top: 24px;
}

.fyv-submit-wrap.visible {
	opacity: 1;
	transform: translateX(0);
}

.fyv-submit-btn {
	color: #00337a;
	background-color: #ffffff;
	border: 2px solid #00337a;
	border-radius: 0;
	padding: 10px 30px;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.fyv-submit-btn:hover {
	background-color: #00337a;
	border-color: #00337a;
	color: #ffffff;
}

.fyv-submit-btn:disabled {
	opacity: 0.6;
	cursor: default;
}


/* =============================================
   Brand Logos Section (mirrors homepage 9bb9a7d)
   ============================================= */
.fyv-brand-logos {
	background-color: #ffffff;
	padding-top: 15px;
	padding-bottom: 15px;
	width: 100%;
	overflow: hidden;
}

.fyv-brand-logos-inner {
	padding-top: 15px;
	padding-bottom: 15px;
}

.fyv-brand-logos-track {
	display: flex;
	width: max-content;
	animation: fyv-logo-scroll 40s linear infinite;
}

.fyv-brand-slide {
	width: 253.5px;
	flex: 0 0 253.5px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	box-sizing: border-box;
}

.fyv-brand-slide img {
	width: 100%;
	height: auto;
	display: block;
	filter: brightness(0.5) contrast(1.1);
	opacity: 0.7;
}

@keyframes fyv-logo-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* =============================================
   Car Results — Comparison Table
   ============================================= */
.fyv-results {
	max-width: 1200px;
	margin: 40px auto 0;
	padding: 0 20px;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.fyv-results.visible {
	opacity: 1;
	transform: translateY(0);
}

.fyv-results-header {
	text-align: center;
	margin-bottom: 32px;
}

/* Horizontal scroll wrapper for mobile */
.fyv-compare-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Table layout */
.fyv-compare-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 600px;
}

.fyv-compare-table td {
	padding: 12px 16px;
	vertical-align: middle;
	border-bottom: 1px solid #e8e8e8;
}

/* Alternating row backgrounds */
.fyv-compare-table tr:nth-child(odd) {
	background: #f5f5f3;
}

.fyv-compare-table tr:nth-child(even) {
	background: #fff;
}

/* Label column (first td in each row) */
.fyv-compare-label {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #424242;
	text-align: left;
	white-space: nowrap;
	width: 140px;
	min-width: 140px;
}

/* Data columns */
.fyv-compare-value {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	color: #424242;
	text-align: center;
}

/* Car thumbnail images */
.fyv-compare-value img {
	width: 100%;
	max-width: 260px;
	height: 200px;
	object-fit: cover;
	display: block;
	margin: 0 auto;
}

/* Car name link */
.fyv-compare-car-name {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: #00337a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.fyv-compare-car-name:hover {
	color: #002255;
}

/* View Details link */
.fyv-compare-details-link {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #00337a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.fyv-compare-details-link:hover {
	color: #002255;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
	.fyv-brand-logos-inner {
		padding-top: 15px;
		padding-bottom: 15px;
	}
	.fyv-compare-label {
		font-size: 12px;
		width: 100px;
		min-width: 100px;
		padding: 10px 10px;
	}
	.fyv-compare-value {
		font-size: 13px;
		padding: 10px 10px;
	}
	.fyv-compare-value img {
		height: 140px;
	}
}

@media (max-width: 520px) {
	.fyv-page-wrap {
		padding: 40px 16px 80px;
	}
	.fyv-question {
		padding: 28px 22px;
	}
	.q-options {
		grid-template-columns: 1fr;
	}
	.fyv-title {
		font-size: 28px;
	}
	.fyv-banner {
		padding: 35px 16px;
	}
	.fyv-banner-title {
		font-size: 2em;
	}
	.fyv-brand-logos-inner {
		padding-top: 15px;
		padding-bottom: 15px;
	}
	.fyv-results {
		padding: 0 10px;
	}
}
