/* Container Layout */
.eab-forms-container {
	width: 100%;
	max-width: 650px;
	margin: 0 auto;
	box-sizing: border-box;
}

.eab-forms-container *,
.eab-forms-container *::before,
.eab-forms-container *::after {
	box-sizing: border-box;
}

/* Stepper Container */
.eab-stepper {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-bottom: 25px;
	padding: 10px;
	background: #262626;
	border: 1px solid #525252;
	border-radius: 4px;
}

/* Individual Step */
.eab-step {
	font-size: 1em;
	color: #525252;
	font-weight: 800;
	padding: 5px 10px;
	transition: color 0.3s ease;
}

/* Active Step */
.eab-step.active {
	color: #FFF;
}

/* Form Layout */
.eab-forms-element {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.eab-forms-row {
	display: flex;
	gap: 20px;
}

.eab-forms-group {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 6px;
}

/* Vehicle Info Layout */
#eab-testdrive-vehicle-info {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 20px;
	padding: 15px;
	margin-bottom: 20px;
	background: #2a2a2a;
	color: #fff;
	border-radius: 4px;
}

.eab-vehicle-thumb {
	flex: 0 0 200px;
}

.eab-vehicle-thumb img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

.eab-vehicle-info-text {
	flex: 1;
}

.eab-vehicle-info-text p {
	margin: 0 0 8px 0;
	font-size: 14px;
	line-height: 1.4;
}

/* Labels */
.eab-forms-label {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.eab-forms-required-star {
	color: #ff4d4d;
	margin-left: 2px;
}

/* Base Input styling */
.eab-forms-input {
	background-color: #262626 !important;
	border: 1px solid #525252 !important;
	color: #fff !important;
	padding: 12px 16px;
	font-size: 16px;
	border-radius: 4px;
	width: 100%;
	outline: none;
	transition: border-color 0.2s ease-in-out;
}

/* Standard Dropdown Reset */
select.eab-forms-input {
	appearance: auto !important;
	-webkit-appearance: auto !important;
	-moz-appearance: auto !important;
	background-image: none !important;
	cursor: pointer;
	opacity: initial !important;
	visibility: initial !important;
}

.eab-forms-input:focus {
	border-color: #0076dd !important;
}

.eab-forms-input:focus-visible {
	outline: 2px solid #0076dd !important;
	outline-offset: 2px;
}

.eab-forms-textarea {
	resize: vertical;
	font-family: inherit;
}

.eab-forms-select-wrapper {
	width: 100%;
}

/* Checkbox and Text Alignment */
.eab-forms-checkbox-group {
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
}

.eab-forms-checkbox {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	cursor: pointer;
	accent-color: #0076dd;
}

.eab-forms-checkbox:focus-visible {
	outline: 2px solid #0076dd !important;
	outline-offset: 2px;
}

.eab-forms-checkbox-label {
	font-size: 13px !important;
	line-height: 1.6;
	font-weight: normal !important;
	color: #cccccc;
	cursor: pointer;
}

/* Visual Error Highlighting */
.eab-forms-input[aria-invalid="true"] {
	border-color: #ff4d4d !important;
	box-shadow: 0 0 5px rgba(255, 77, 77, 0.3);
}

.eab-forms-input[aria-invalid="true"]:focus-visible {
	outline: 2px solid #ff4d4d !important;
	outline-offset: 2px;
}

.eab-forms-checkbox[aria-invalid="true"] {
	outline: 2px solid #ff4d4d !important;
	outline-offset: 2px;
}

/* Submit Button */
.eab-forms-submit {
	background-color: #0076dd !important;
	color: #fff !important;
	border-radius: 8px 8px 8px 8px !important;
	transition: all .3s !important;
	border: none !important;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	width: auto;
	max-width: fit-content !important;
	margin-left: initial !important;
}

.eab-forms-submit:hover {
	background-color: #fff !important;
	color: #0076dd !important;
}

.eab-forms-submit:focus-visible {
	outline: 3px solid #fff !important;
	outline-offset: 2px;
}

/* Valuation Multi-Page Specifics */
.eab-valuation-page {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.eab-forms-heading {
	font-size: 20px;
	color: #fff;
	margin: 0 0 10px 0;
	border-bottom: 1px solid #525252;
	padding-bottom: 10px;
}

/* Navigation Container to keep buttons on one row */
.eab-forms-nav-container {
	display: flex;
	flex-direction: row;
	gap: 10px;
	margin-top: 10px;
}

/* Navigation Buttons */
.eab-forms-nav-btn {
	background-color: #0076dd !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s !important;
	width: auto;
}

.eab-forms-nav-btn:hover {
	background-color: #fff !important;
	color: #0076dd !important;
}

.eab-forms-nav-btn:focus-visible {
	outline: 3px solid #fff !important;
	outline-offset: 2px;
}

.eab-checkbox-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	background: #262626;
	padding: 15px;
	border-radius: 4px;
	border: 1px solid #525252;
}

.eab-checkbox-list label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #cccccc;
	cursor: pointer;
}

.eab-checkbox-list input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: #0076dd;
}

/* Radio button container */
.eab-radio-list {
	display: flex;
	gap: 15px;
	margin: 10px 0;
	padding: 5px;
}

/* Status Messages */
.eab-forms-status {
	font-size: 14px;
	font-weight: 600;
	padding: 12px;
	border-radius: 4px;
	display: none;
}

.eab-forms-status.error {
	display: block;
	background-color: rgba(255, 77, 77, 0.1);
	border: 1px solid #ff4d4d;
	color: #ff4d4d;
}

/* Success Screen Layout */
.eab-forms-success-screen {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 20px;
	background-color: #262626;
	border: 1px solid #525252;
	border-radius: 8px;
	outline: none;
	animation: eabFadeIn 0.4s ease-in-out forwards;
}

.eab-forms-success-icon {
	font-size: 48px;
	color: #0076dd;
	margin-bottom: 16px;
	line-height: 1;
}

.eab-forms-success-screen h2 {
	font-size: 28px;
	margin: 0 0 12px 0;
	color: #fff;
}

.eab-forms-success-screen p {
	font-size: 16px;
	color: #cccccc;
	max-width: 450px;
	margin: 0 0 24px 0;
	line-height: 1.6;
}

.eab-forms-reload-btn {
	background-color: transparent !important;
	color: #fff !important;
	border: 1px solid #525252 !important;
	border-radius: 8px !important;
	padding: 10px 20px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease !important;
}

.eab-forms-reload-btn:hover {
	background-color: #0076dd !important;
	border-color: #0076dd !important;
}

.eab-forms-reload-btn:focus-visible {
	outline: 2px solid #0076dd;
	outline-offset: 2px;
}

@keyframes eabFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */
@media (max-width: 600px) {
	.eab-forms-row {
		flex-direction: column;
		gap: 20px;
	}
	.eab-forms-submit, .eab-forms-nav-btn {
		width: 100%;
		max-width: 100% !important;
	}
	.eab-forms-nav-container {
		flex-direction: column;
	}
	.eab-checkbox-list {
		grid-template-columns: 1fr;
	}
	#eab-testdrive-vehicle-info {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.eab-vehicle-thumb {
		flex: initial;
		width: 100% !important;
		max-width: 300px;
	}
}
