/**
 * Sell Your Car — Premium Multi-Step Form
 *
 * @package salient-child
 */

body.page-template-page-sell-car,
body.page-template-page-sell-car #ajax-content-wrap,
body.page-sell-car,
body.page-sell-car #ajax-content-wrap {
	overflow-x: hidden;
	background: #0a0a0a !important;
	color: #ffffff;
}

body.page-template-page-sell-car #header-space,
body.page-sell-car #header-space {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
#vv-sell-car-page .vv-sc-hero {
	position: relative;
	height: 70vh;
	min-height: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #0a0a0a;
}

#vv-sell-car-page .vv-sc-hero__bg {
	position: absolute;
	inset: 0;
	background-image: url('/wp-content/themes/salient-child/assets/images/Sale Page Banner.webp');
	background-size: cover;
	background-position: center;
	opacity: 0.6;
}

#vv-sell-car-page .vv-sc-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, #0a0a0a 100%);
}

#vv-sell-car-page .vv-sc-hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 40px 20px 0;
	max-width: 800px;
	margin: 0 auto;
}

#vv-sell-car-page .vv-sc-hero__title {
	font-family: 'Manrope', sans-serif;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 16px;
	letter-spacing: -0.03em;
	line-height: 1.12;
	text-align: center;
	animation: vv-sc-fade-up 0.8s ease-out both;
}

#vv-sell-car-page .vv-sc-hero__title-main {
	display: block;
	font-size: clamp(1.5rem, 5.5vw, 3.2rem);
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 4px;
	text-align: center;
}

#vv-sell-car-page .vv-sc-hero__title-sub {
	display: block;
	font-size: clamp(1.35rem, 6vw, 3.8rem);
	font-weight: 800;
	color: #ff0000;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	white-space: nowrap !important;
	text-align: center;
}

#vv-sell-car-page .vv-sc-hero__subtitle {
	font-family: 'Manrope', sans-serif;
	font-size: clamp(0.92rem, 1.8vw, 1.15rem);
	color: rgba(255, 255, 255, 0.75);
	margin: 16px auto 0;
	max-width: 600px;
	line-height: 1.55;
	text-align: center;
	animation: vv-sc-fade-up 0.8s 0.15s ease-out both;
}

/* ═══════════════════════════════════════════════════════
   SELLING PROCESS
   ═══════════════════════════════════════════════════════ */
#vv-sell-car-page .vv-sc-process {
	padding: 80px 0;
	background: #ffffff;
}

#vv-sell-car-page .vv-sc-process__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

#vv-sell-car-page .vv-sc-process__card {
	text-align: center;
	padding: 40px 28px;
	border-radius: 16px;
	background: #f8f8fc;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            box-shadow 0.4s ease;
}

#vv-sell-car-page .vv-sc-process__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}

#vv-sell-car-page .vv-sc-process__card[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
}

#vv-sell-car-page .vv-sc-process__card.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#vv-sell-car-page .vv-sc-process__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	color: #e8001c;
}

#vv-sell-car-page .vv-sc-process__icon svg {
	width: 100%;
	height: 100%;
}

#vv-sell-car-page .vv-sc-process__step {
	font-family: 'Manrope', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	color: #e8001c;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 8px;
}

#vv-sell-car-page .vv-sc-process__title {
	font-family: 'Manrope', sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: #111;
	margin: 0 0 8px;
	line-height: 1.3;
}

#vv-sell-car-page .vv-sc-process__desc {
	font-family: 'Manrope', sans-serif;
	font-size: 0.9rem;
	color: #666;
	margin: 0;
	line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════
   FORM SECTION
   ═══════════════════════════════════════════════════════ */
#vv-sell-car-page .vv-sc-form-section {
	padding: 60px 0 100px;
	background: #f4f1fa;
}

/* ─── Progress ─── */
#vv-sell-car-page .vv-sc-progress {
	margin-bottom: 48px;
	position: relative;
}

#vv-sell-car-page .vv-sc-progress__bar {
	height: 4px;
	background: rgba(0,0,0,0.08);
	border-radius: 2px;
	position: relative;
	margin: 0 18px 16px 18px;
}

#vv-sell-car-page .vv-sc-progress__fill {
	height: 100%;
	width: 0%;
	background: #e8001c;
	border-radius: 2px;
	transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#vv-sell-car-page .vv-sc-progress__steps {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

#vv-sell-car-page .vv-sc-progress__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 80px;
	margin: 0 -22px;
}

#vv-sell-car-page .vv-sc-progress__step {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Manrope', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	color: #999;
	background: #e8e4ef;
	transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease;
	margin-bottom: 8px;
}

#vv-sell-car-page .vv-sc-progress__step.is-active {
	background: #e8001c;
	color: #fff;
	transform: scale(1.1);
}

#vv-sell-car-page .vv-sc-progress__step.is-done {
	background: #e8001c;
	color: #fff;
}

#vv-sell-car-page .vv-sc-progress__label {
	font-family: 'Manrope', sans-serif;
	font-size: 0.78rem;
	color: #999;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	transition: color 0.4s ease;
}

#vv-sell-car-page .vv-sc-progress__item.is-active .vv-sc-progress__label,
#vv-sell-car-page .vv-sc-progress__item.is-done .vv-sc-progress__label {
	color: #111;
	font-weight: 700;
}

/* ─── Step Container ─── */
#vv-sell-car-page .vv-sc-step {
	display: none;
	animation: vv-sc-step-in 0.5s ease both;
}

#vv-sell-car-page .vv-sc-step.is-active {
	display: block;
}

@keyframes vv-sc-step-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#vv-sell-car-page .vv-sc-step__title {
	font-family: 'Manrope', sans-serif;
	font-size: clamp(1.4rem, 2.5vw, 1.8rem);
	font-weight: 800;
	color: #111;
	margin: 0 0 6px;
	letter-spacing: -0.02em;
}

#vv-sell-car-page .vv-sc-step__desc {
	font-family: 'Manrope', sans-serif;
	font-size: 0.95rem;
	color: #888;
	margin: 0 0 28px;
}

#vv-sell-car-page .vv-sc-step__fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

#vv-sell-car-page .vv-sc-step__fields--grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

/* ─── Field / Floating Label ─── */
#vv-sell-car-page .vv-sc-field {
	position: relative;
}

#vv-sell-car-page .vv-sc-field--full {
	grid-column: 1 / -1;
}

#vv-sell-car-page input.vv-sc-input,
#vv-sell-car-page select.vv-sc-input,
#vv-sell-car-page textarea.vv-sc-input {
	width: 100% !important;
	font-family: 'Manrope', sans-serif !important;
	font-size: 0.95rem !important;
	color: #333 !important;
	padding: 28px 16px 10px 16px !important;
	border: 2px solid #d0cce0 !important;
	border-radius: 10px !important;
	background: #fff !important;
	outline: none !important;
	transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	margin: 0 0 0 0 !important;
	line-height: 1.4 !important;
	height: 60px !important;
	min-height: 60px !important;
	max-height: 60px !important;
	text-overflow: clip !important;
	overflow: visible !important;
	box-shadow: none !important;
	text-shadow: none !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	float: none !important;
	display: block !important;
	position: relative !important;
	z-index: 1 !important;
}

#vv-sell-car-page select.vv-sc-input {
	padding: 18px 16px 6px 16px !important;
	background-image: none !important;
	background-color: #fff !important;
	cursor: text !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	text-indent: 0 !important;
	text-overflow: '' !important;
	color: #999 !important;
	line-height: 1.5 !important;
}

#vv-sell-car-page select.vv-sc-input:valid {
	color: #333 !important;
}

#vv-sell-car-page select.vv-sc-input option {
	color: #333 !important;
	background: #fff !important;
	padding: 8px 12px !important;
	font-size: 0.95rem !important;
}

#vv-sell-car-page select.vv-sc-input option[value=""] {
	color: #999 !important;
}

#vv-sell-car-page select.vv-sc-input option:disabled {
	color: #999 !important;
}

#vv-sell-car-page select.vv-sc-input::-ms-expand {
	display: none !important;
}

/* Hide any theme-generated select dropdowns or wrappers */
#vv-sell-car-page .vc_row .vc_column_inner .select2-container,
#vv-sell-car-page .vc_row .vc_column_inner .chosen-container,
#vv-sell-car-page .vc_row .vc_column_inner .ui-selectmenu-button,
#vv-sell-car-page .wpb_wrapper .select2-container,
#vv-sell-car-page .wpb_wrapper .chosen-container,
#vv-sell-car-page .wpb_wrapper .ui-selectmenu-button {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	position: absolute !important;
	left: -9999px !important;
}

/* Ensure only our custom select is visible */
#vv-sell-car-page .vv-sc-field > select.vv-sc-input {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative !important;
	left: auto !important;
}

#vv-sell-car-page input.vv-sc-input:focus,
#vv-sell-car-page select.vv-sc-input:focus,
#vv-sell-car-page textarea.vv-sc-input:focus {
	border-color: #e8001c !important;
	box-shadow: 0 0 0 3px rgba(232,0,28,0.08) !important;
}

#vv-sell-car-page input.vv-sc-input.is-error,
#vv-sell-car-page select.vv-sc-input.is-error,
#vv-sell-car-page textarea.vv-sc-input.is-error {
	border-color: #e8001c !important;
}

#vv-sell-car-page select.vv-sc-input option {
	color: #333 !important;
	background: #fff !important;
	padding: 8px 12px !important;
	font-size: 0.95rem !important;
}

#vv-sell-car-page select.vv-sc-input option[value=""] {
	color: #999 !important;
}

#vv-sell-car-page textarea.vv-sc-input {
	resize: vertical;
	min-height: 100px !important;
	max-height: none !important;
	padding: 28px 16px 16px 16px !important;
	height: auto !important;
}

/* Hide number input spinners */
#vv-sell-car-page input.vv-sc-input[type="number"]::-webkit-inner-spin-button,
#vv-sell-car-page input.vv-sc-input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

#vv-sell-car-page input.vv-sc-input[type="number"] {
	-moz-appearance: textfield !important;
}

#vv-sell-car-page textarea.vv-sc-input--large {
	min-height: 140px !important;
}

#vv-sell-car-page .vv-sc-label {
	position: absolute;
	top: 16px;
	left: 16px;
	font-family: 'Manrope', sans-serif;
	font-size: 0.95rem;
	color: #999;
	pointer-events: none;
	transition: all 0.2s ease;
	transform-origin: left top;
	background: transparent;
	padding: 0;
	margin: 0;
	line-height: 1.4;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	opacity: 1;
	z-index: 2;
}

#vv-sell-car-page input.vv-sc-input:focus ~ .vv-sc-label,
#vv-sell-car-page input.vv-sc-input:not(:placeholder-shown) ~ .vv-sc-label,
#vv-sell-car-page input.vv-sc-input.has-value ~ .vv-sc-label,
#vv-sell-car-page textarea.vv-sc-input:focus ~ .vv-sc-label,
#vv-sell-car-page textarea.vv-sc-input:not(:placeholder-shown) ~ .vv-sc-label,
#vv-sell-car-page textarea.vv-sc-input.has-value ~ .vv-sc-label {
	top: -10px !important;
	left: 12px !important;
	font-size: 0.7rem !important;
	font-weight: 600 !important;
	color: #e8001c !important;
	background: #f4f1fa !important;
	padding: 2px 6px !important;
	line-height: 1 !important;
}

#vv-sell-car-page input.vv-sc-input.is-error ~ .vv-sc-label,
#vv-sell-car-page select.vv-sc-input.is-error ~ .vv-sc-label,
#vv-sell-car-page textarea.vv-sc-input.is-error ~ .vv-sc-label {
	color: #e8001c !important;
}

#vv-sell-car-page .vv-sc-field__error {
	font-family: 'Manrope', sans-serif;
	font-size: 0.75rem;
	color: #e8001c;
	display: block;
	min-height: 18px;
	margin-top: 2px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

#vv-sell-car-page .vv-sc-field__error.is-visible {
	opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   SUBMIT
   ═══════════════════════════════════════════════════════ */
#vv-sell-car-page .vv-sc-submit {
	margin-top: 36px;
	text-align: center;
}

#vv-sell-car-page .vv-sc-submit__disclaimer {
	font-family: 'Manrope', sans-serif;
	font-size: 0.8rem;
	color: #999;
	margin: 0 0 16px;
}

#vv-sell-car-page .vv-sc-submit__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: 'Manrope', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	background: #e8001c;
	border: none !important;
	border-radius: 9999px;
	padding: 16px 40px;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	box-shadow: 0 8px 32px rgba(232,0,28,0.25);
	text-transform: none;
	letter-spacing: normal;
	height: auto;
	min-height: 0;
}

#vv-sell-car-page .vv-sc-submit__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(232,0,28,0.35);
	background: #d00018 !important;
}

#vv-sell-car-page .vv-sc-submit__btn:active {
	transform: translateY(0);
}

#vv-sell-car-page .vv-sc-submit__icon {
	width: 20px;
	height: 20px;
}

#vv-sell-car-page .vv-sc-submit__btn.is-loading {
	pointer-events: none;
	opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION (Prev / Next)
   ═══════════════════════════════════════════════════════ */
#vv-sell-car-page .vv-sc-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 32px;
	gap: 16px;
}

#vv-sell-car-page .vv-sc-nav__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Manrope', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 12px 28px;
	border-radius: 9999px;
	border: none !important;
	cursor: pointer;
	transition: all 0.25s ease;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	height: auto;
	min-height: 0;
}

#vv-sell-car-page .vv-sc-nav__btn--prev {
	background: #e8e4ef !important;
	color: #555 !important;
}

#vv-sell-car-page .vv-sc-nav__btn--prev:hover:not(:disabled) {
	background: #dcd8e6 !important;
	color: #111 !important;
}

#vv-sell-car-page .vv-sc-nav__btn--next {
	background: #111 !important;
	color: #fff !important;
	margin-left: auto;
}

#vv-sell-car-page .vv-sc-nav__btn--next:hover {
	background: #000 !important;
	transform: translateX(2px);
}

#vv-sell-car-page .vv-sc-nav__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
}

/* ═══════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════ */
@keyframes vv-sc-fade-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
	#vv-sell-car-page .vv-sc-process__grid {
		gap: 20px;
	}
}

@media (max-width: 768px) {
	#vv-sell-car-page .vv-sc-hero {
		height: 60vh;
		min-height: 400px;
	}
	#vv-sell-car-page .vv-sc-process {
		padding: 60px 0;
	}
	#vv-sell-car-page .vv-sc-process__grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 14px;
		padding-bottom: 8px;
		scrollbar-width: none;
	}
	#vv-sell-car-page .vv-sc-process__grid::-webkit-scrollbar {
		display: none;
	}
	#vv-sell-car-page .vv-sc-process__card {
		flex: 0 0 72%;
		min-width: 0;
		scroll-snap-align: center;
		padding: 24px 18px;
	}
	#vv-sell-car-page .vv-sc-process__icon {
		width: 40px;
		height: 40px;
		margin-bottom: 10px;
	}
	#vv-sell-car-page .vv-sc-process__step {
		font-size: 0.65rem;
		margin-bottom: 4px;
	}
	#vv-sell-car-page .vv-sc-process__title {
		font-size: 0.95rem;
		margin-bottom: 4px;
	}
	#vv-sell-car-page .vv-sc-process__desc {
		font-size: 0.8rem;
		line-height: 1.4;
	}
	#vv-sell-car-page .vv-sc-step__fields--grid {
		grid-template-columns: 1fr;
	}
	#vv-sell-car-page .vv-sc-form-section {
		padding: 40px 0 80px;
	}
}

@media (max-width: 480px) {
	#vv-sell-car-page .vv-sc-hero {
		height: 50vh;
		min-height: 340px;
	}
	#vv-sell-car-page .vv-sc-process {
		padding: 40px 0;
	}
	#vv-sell-car-page .vv-sc-nav {
		flex-direction: row;
	}
	#vv-sell-car-page .vv-sc-nav__btn {
		padding: 12px 20px;
		font-size: 0.85rem;
	}
	#vv-sell-car-page .vv-sc-submit__btn {
		width: 100%;
		justify-content: center;
	}
}
