/* Jay Autos "Sell Your Car" page. Self-contained and lightweight: no
   dependency on inventory.css / vehicles.css / homepage.css. Reuses the
   global colour tokens declared in header.css (--ja-red, --ja-action-blue). */
body.jayautos-sell-car-body {
	--ja-sell-bg: #ffffff;
	--ja-sell-panel: #f6f5f2;
	--ja-sell-text: #14162b;
	--ja-sell-muted: rgba(20, 22, 43, 0.62);
	--ja-sell-border: rgba(20, 22, 43, 0.14);
	--ja-sell-brand: var(--ja-action-blue);
	--ja-sell-dark-surface: #14162b;
	margin: 0;
	background: var(--ja-sell-bg);
	color: var(--ja-sell-text);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[data-ja-theme="dark"] body.jayautos-sell-car-body {
	--ja-sell-bg: #05080d;
	--ja-sell-panel: #0b1420;
	--ja-sell-text: #f8fafc;
	--ja-sell-muted: rgba(248, 250, 252, 0.68);
	--ja-sell-border: rgba(255, 255, 255, 0.12);
}

.ja-sell-page {
	min-height: 100vh;
	background: var(--ja-sell-bg);
}

.ja-sell-main {
	padding-top: calc(88px + var(--ja-marquee-height, 0px));
}

.ja-sell-container {
	width: min(100% - 48px, 1240px);
	margin: 0 auto;
	padding-bottom: clamp(64px, 8vw, 100px);
}

/* ---------- Hero ---------- */

.ja-sell-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp(280px, 34vw, 380px);
	overflow: hidden;
	background: var(--ja-action-blue-dark);
}

.ja-sell-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}

.ja-sell-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(4, 9, 20, 0.5) 0%, rgba(9, 16, 34, 0.68) 55%, rgba(6, 11, 24, 0.9) 100%);
}

.ja-sell-hero__content {
	position: relative;
	z-index: 1;
	width: min(100% - 48px, 1240px);
	margin: 0 auto;
	padding: 32px 0;
	color: #ffffff;
}

.ja-sell-hero__kicker {
	margin: 0 0 10px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ja-sell-hero__content h1 {
	margin: 0;
	max-width: 640px;
	color: #ffffff;
	font-size: clamp(32px, 4.4vw, 48px);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.08;
}

/* ---------- Kicker ---------- */

.ja-sell-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: var(--ja-sell-brand);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ja-sell-kicker::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
}

/* ---------- Request ---------- */

.ja-sell-request {
	margin-top: clamp(56px, 8vw, 96px);
}

.ja-sell-request__intro {
	max-width: 640px;
	margin: 0 0 clamp(20px, 3vw, 28px);
	color: var(--ja-sell-text);
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.6;
}

.ja-sell-request__heading {
	max-width: 560px;
	margin: 0 0 clamp(32px, 5vw, 48px);
}

.ja-sell-request__heading h2 {
	margin: 0;
	color: var(--ja-sell-text);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
}

.ja-sell-request__heading > p:last-child {
	margin: 10px 0 0;
	color: var(--ja-sell-muted);
	font-size: 0.98rem;
	line-height: 1.6;
}

.ja-sell-request__form {
	max-width: 760px;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--ja-sell-border);
}

/* ---------- Form ---------- */

.ja-sell-form {
	display: grid;
	gap: 18px;
}

.ja-sell-form__trap {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ja-sell-form__summary {
	display: none;
	padding: 14px 16px;
	border: 1px solid var(--ja-red);
	border-radius: 8px;
	background: rgba(220, 46, 38, 0.06);
}

.ja-sell-form__summary.is-visible {
	display: block;
}

.ja-sell-form__summary strong {
	display: block;
	margin-bottom: 6px;
	color: var(--ja-red);
	font-size: 0.9rem;
}

.ja-sell-form__summary ul {
	margin: 0;
	padding: 0 0 0 18px;
	color: var(--ja-red);
	font-size: 0.86rem;
}

.ja-sell-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.ja-sell-form__row--three {
	grid-template-columns: 1fr 1fr 1fr;
}

.ja-sell-field {
	display: grid;
	gap: 6px;
}

.ja-sell-field label {
	color: var(--ja-sell-text);
	font-size: 0.84rem;
	font-weight: 700;
}

.ja-sell-field input,
.ja-sell-field select,
.ja-sell-field textarea {
	width: 100%;
	min-height: 46px;
	padding: 0 12px;
	border: 1px solid var(--ja-sell-border);
	border-radius: 8px;
	background: transparent;
	color: var(--ja-sell-text);
	font: inherit;
	font-size: 0.92rem;
	box-sizing: border-box;
}

.ja-sell-field select {
	background: var(--ja-sell-bg);
}

.ja-sell-field textarea {
	min-height: 120px;
	padding-top: 10px;
	resize: vertical;
}

.ja-sell-field input:focus-visible,
.ja-sell-field select:focus-visible,
.ja-sell-field textarea:focus-visible {
	outline: none;
	border-color: var(--ja-sell-brand);
}

.ja-sell-field input[aria-invalid="true"],
.ja-sell-field select[aria-invalid="true"],
.ja-sell-field textarea[aria-invalid="true"] {
	border-color: var(--ja-red);
}

.ja-sell-field__error {
	display: block;
	margin: 0;
	color: var(--ja-red);
	font-size: 0.78rem;
	line-height: 1.5;
}

.ja-sell-field__error:empty {
	display: none;
}

.ja-sell-form__consent {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--ja-sell-text);
	font-size: 0.86rem;
	line-height: 1.5;
	cursor: pointer;
}

.ja-sell-form__consent input {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	margin-top: 2px;
	accent-color: var(--ja-sell-brand);
}

.ja-sell-form__consent a {
	color: var(--ja-sell-text);
	font-weight: 700;
}

.ja-sell-form__submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid var(--ja-sell-text);
	border-radius: 6px;
	background: var(--ja-sell-text);
	color: var(--ja-sell-bg);
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 140ms ease, border-color 140ms ease;
}

.ja-sell-form__submit:hover,
.ja-sell-form__submit:focus-visible {
	background: var(--ja-sell-brand);
	border-color: var(--ja-sell-brand);
	color: #ffffff;
}

.ja-sell-form__submit-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	opacity: 0.55;
	animation: ja-sell-gear-spin 5s linear infinite;
}

.ja-sell-form__submit-icon svg {
	width: 100%;
	height: 100%;
}

@keyframes ja-sell-gear-spin {
	to {
		transform: rotate(360deg);
	}
}

.ja-sell-form__success {
	max-width: 760px;
	padding: clamp(24px, 4vw, 36px);
	border: 1px solid var(--ja-sell-border);
	background: rgba(27, 79, 138, 0.04);
}

.ja-sell-form__success-label {
	margin: 0 0 8px;
	color: var(--ja-sell-brand);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ja-sell-form__success h3 {
	margin: 0 0 8px;
	color: var(--ja-sell-text);
	font-size: 1.3rem;
}

.ja-sell-form__success p {
	margin: 0;
	color: var(--ja-sell-muted);
	font-size: 0.94rem;
	line-height: 1.6;
}

/* ---------- Process ---------- */

.ja-sell-process {
	margin-top: clamp(64px, 9vw, 104px);
}

.ja-sell-process__heading {
	max-width: 520px;
	margin: 0 auto clamp(32px, 5vw, 48px);
	text-align: center;
}

.ja-sell-process__heading h2 {
	margin: 0;
	color: var(--ja-sell-text);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
}

.ja-sell-process__heading > p:last-child {
	margin: 10px 0 0;
	color: var(--ja-sell-muted);
	font-size: 0.98rem;
	line-height: 1.6;
}

.ja-sell-process__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ja-sell-process__card {
	padding: clamp(24px, 3vw, 32px);
	background: var(--ja-sell-dark-surface);
}

.ja-sell-process__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 20px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.ja-sell-process__icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.ja-sell-process__card h3 {
	margin: 0;
	color: #ffffff;
	font-size: 1.08rem;
	font-weight: 800;
	line-height: 1.3;
}

.ja-sell-process__card > p {
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.9rem;
	line-height: 1.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.ja-sell-main {
		padding-top: calc(96px + var(--ja-marquee-height, 0px));
	}

	.ja-sell-process__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.ja-sell-hero__content h1 {
		font-size: 30px;
	}

	.ja-sell-form__row,
	.ja-sell-form__row--three {
		grid-template-columns: 1fr;
	}

	.ja-sell-form__submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ja-sell-form__submit-icon,
	.ja-sell-process__icon {
		animation: none;
	}
}
