/**
 * Become a Dealer page.
 *
 * Built on the theme's existing design tokens (--header-accent, --header-text,
 * --header-shell-width and friends) so the page inherits the site's palette,
 * container width, and card language rather than introducing a second system.
 */

.dealer-page {
	--dealer-radius: 16px;
	--dealer-radius-sm: 10px;
	--dealer-gap: 24px;

	background: #ffffff;
	color: var(--header-text);
}

/*
 * The theme sets a global `p { text-align: justify }`. Justified text in these
 * narrow cards opens ugly rivers of whitespace and overrides the centring on
 * the hero, so alignment is stated explicitly for every paragraph on the page.
 */
.dealer-page p {
	text-align: left;
}

.dealer-hero p,
.dealer-section__head p,
.dealer-closed p {
	text-align: center;
}

.dealer-shell {
	width: min(100% - 40px, var(--header-shell-width));
	margin-inline: auto;
}

.dealer-shell--narrow {
	width: min(100% - 40px, 980px);
}

.dealer-section {
	padding: clamp(48px, 7vw, 88px) 0;
}

.dealer-section__head {
	max-width: 720px;
	margin: 0 auto clamp(28px, 4vw, 48px);
	text-align: center;
}

.dealer-section__eyebrow {
	margin: 0 0 10px;
	color: var(--header-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.dealer-section__title {
	margin: 0;
	color: var(--header-text);
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 700;
	line-height: 1.2;
}

.dealer-section__text {
	margin: 14px 0 0;
	color: var(--header-muted);
	font-size: 16px;
	line-height: 1.8;
}

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

.dealer-hero {
	position: relative;
	padding: clamp(56px, 9vw, 120px) 0;
	background:
		radial-gradient(circle at 15% 20%, rgba(33, 70, 243, 0.28), transparent 55%),
		radial-gradient(circle at 85% 10%, rgba(255, 49, 49, 0.22), transparent 50%),
		linear-gradient(135deg, #10233f 0%, #16305a 100%);
	color: #ffffff;
	text-align: center;
}

.dealer-hero__eyebrow {
	margin: 0 0 14px;
	color: #9fb6ff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.dealer-hero__title {
	margin: 0;
	font-size: clamp(32px, 5.4vw, 60px);
	font-weight: 700;
	line-height: 1.1;
}

.dealer-hero__text {
	max-width: 640px;
	margin: 18px auto 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(16px, 1.8vw, 19px);
	line-height: 1.8;
}

/*
 * :visited is matched explicitly because the theme's global `a:visited` rule
 * (0,1,1) outranks a single class (0,1,0). This link points at an anchor on the
 * page the visitor is already on, so the browser always treats it as visited —
 * without this the label would render in the theme's visited blue on a blue
 * button. The same applies to every other link styled on this page.
 */
.dealer-hero__cta,
.dealer-hero__cta:visited {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	padding: 15px 30px;
	border-radius: 999px;
	background: var(--header-accent);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.dealer-hero__cta:hover,
.dealer-hero__cta:focus-visible {
	background: #1a38c9;
	box-shadow: 0 18px 40px rgba(33, 70, 243, 0.4);
	color: #ffffff;
	transform: translateY(-3px);
}

.dealer-hero__cta-icon {
	display: inline-flex;
	transition: transform 0.3s ease;
}

.dealer-hero__cta:hover .dealer-hero__cta-icon {
	transform: translateX(4px);
}

/* Why become a dealer
--------------------------------------------- */

.dealer-why {
	background: var(--header-surface-soft);
}

.dealer-why__grid {
	display: grid;
	gap: var(--dealer-gap);
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dealer-why__card {
	position: relative;
	padding: 32px 28px;
	border: 1px solid var(--header-border);
	border-radius: var(--dealer-radius);
	background: #ffffff;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.dealer-why__card:hover {
	border-color: rgba(33, 70, 243, 0.4);
	box-shadow: 0 18px 40px rgba(16, 35, 63, 0.12);
	transform: translateY(-6px);
}

.dealer-why__number {
	display: block;
	margin-bottom: 14px;
	color: rgba(33, 70, 243, 0.28);
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
}

.dealer-why__title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 700;
}

.dealer-why__text {
	margin: 0;
	color: var(--header-muted);
	font-size: 15px;
	line-height: 1.8;
}

/* Benefits
--------------------------------------------- */

.dealer-benefits__grid {
	display: grid;
	gap: var(--dealer-gap);
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.dealer-benefit {
	padding: 30px 26px;
	border: 1px solid var(--header-border);
	border-radius: var(--dealer-radius);
	background: #ffffff;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.dealer-benefit:hover {
	border-color: rgba(33, 70, 243, 0.4);
	box-shadow: 0 18px 40px rgba(16, 35, 63, 0.12);
	transform: translateY(-6px);
}

.dealer-benefit__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: 14px;
	background: rgba(33, 70, 243, 0.1);
	color: var(--header-accent);
	font-size: 21px;
}

.dealer-benefit__title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
}

.dealer-benefit__text {
	margin: 0;
	color: var(--header-muted);
	font-size: 15px;
	line-height: 1.8;
}

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

.dealer-form-section {
	background: var(--header-surface-soft);
	scroll-margin-top: 120px;
}

.dealer-notice {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 26px;
	padding: 18px 22px;
	border: 1px solid transparent;
	border-radius: var(--dealer-radius-sm);
	font-size: 15px;
	line-height: 1.7;
}

.dealer-notice:focus {
	outline: 2px solid var(--header-accent);
	outline-offset: 3px;
}

.dealer-notice--success {
	border-color: rgba(21, 128, 61, 0.3);
	background: #ecfdf3;
	color: #14532d;
}

.dealer-notice--error {
	border-color: rgba(185, 28, 28, 0.3);
	background: #fef2f2;
	color: #7f1d1d;
}

.dealer-notice__icon {
	font-size: 20px;
	line-height: 1.4;
}

.dealer-notice__text {
	margin: 0;
}

.dealer-form {
	padding: clamp(24px, 4vw, 44px);
	border: 1px solid var(--header-border);
	border-radius: var(--dealer-radius);
	background: #ffffff;
	box-shadow: 0 20px 50px rgba(16, 35, 63, 0.07);
}

/* Honeypot: removed from view without display:none, which some bots detect. */
.dealer-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dealer-form__response {
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid transparent;
	border-radius: var(--dealer-radius-sm);
	font-size: 15px;
	line-height: 1.7;
}

.dealer-form__response--success {
	border-color: rgba(21, 128, 61, 0.3);
	background: #ecfdf3;
	color: #14532d;
}

.dealer-form__response--error {
	border-color: rgba(185, 28, 28, 0.3);
	background: #fef2f2;
	color: #7f1d1d;
}

.dealer-form__group {
	margin: 0 0 34px;
	padding: 0;
	border: 0;
}

.dealer-form__legend {
	width: 100%;
	margin: 0 0 20px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--header-border);
	color: var(--header-text);
	font-size: 17px;
	font-weight: 700;
}

.dealer-form__grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.dealer-form__field--full {
	grid-column: 1 / -1;
}

/*
 * Direct child only. A descendant selector here would also match the labels
 * that wrap each radio/checkbox option and force them to display:block,
 * collapsing their indicator box.
 */
.dealer-form__field > label {
	display: block;
	margin-bottom: 8px;
	color: var(--header-text);
	font-size: 14px;
	font-weight: 600;
}

.dealer-form__required {
	color: var(--header-accent-strong);
}

.dealer-form__field input[type="text"],
.dealer-form__field input[type="email"],
.dealer-form__field input[type="tel"],
.dealer-form__field input[type="url"],
.dealer-form__field select,
.dealer-form__field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--header-border);
	border-radius: var(--dealer-radius-sm);
	background: #ffffff;
	color: var(--header-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.6;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dealer-form__field textarea {
	resize: vertical;
}

.dealer-form__field input:focus,
.dealer-form__field select:focus,
.dealer-form__field textarea:focus {
	border-color: var(--header-accent);
	box-shadow: 0 0 0 3px rgba(33, 70, 243, 0.15);
	outline: none;
}

.dealer-form__field input.is-invalid,
.dealer-form__field select.is-invalid,
.dealer-form__field textarea.is-invalid {
	border-color: var(--header-accent-strong);
}

.dealer-form__field input.is-invalid:focus,
.dealer-form__field select.is-invalid:focus,
.dealer-form__field textarea.is-invalid:focus {
	box-shadow: 0 0 0 3px rgba(255, 49, 49, 0.15);
}

.dealer-form__field input[type="file"] {
	width: 100%;
	padding: 11px 14px;
	border: 1px dashed var(--header-border);
	border-radius: var(--dealer-radius-sm);
	background: var(--header-surface-soft);
	font-size: 14px;
}

.dealer-form__hint {
	margin: 8px 0 0;
	color: var(--header-muted);
	font-size: 13px;
}

.dealer-form__error {
	margin: 8px 0 0;
	color: var(--header-accent-strong);
	font-size: 13px;
	font-weight: 600;
}

.dealer-form__error[hidden] {
	display: none;
}

.dealer-form__agreement {
	margin: 0 0 28px;
	padding: 20px;
	border: 1px solid var(--header-border);
	border-radius: var(--dealer-radius-sm);
	background: var(--header-surface-soft);
}

.dealer-form__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--header-text);
	cursor: pointer;
	font-size: 15px;
	line-height: 1.7;
}

.dealer-form__checkbox input[type="checkbox"] {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--header-accent);
	cursor: pointer;
}

.dealer-form__checkbox input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--header-accent);
	outline-offset: 2px;
}

.dealer-form__submit {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 15px 34px;
	border: 0;
	border-radius: 999px;
	background: var(--header-accent);
	color: #ffffff;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.dealer-form__submit:hover:not(:disabled),
.dealer-form__submit:focus-visible {
	background: #1a38c9;
	box-shadow: 0 16px 34px rgba(33, 70, 243, 0.32);
	transform: translateY(-2px);
}

.dealer-form__submit:disabled {
	cursor: not-allowed;
	opacity: 0.75;
	transform: none;
}

.dealer-form__spinner {
	display: none;
	width: 17px;
	height: 17px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: dealer-spin 0.7s linear infinite;
}

.dealer-form__submit.is-loading .dealer-form__spinner {
	display: inline-block;
}

.dealer-form__submit.is-loading .dealer-form__submit-icon {
	display: none;
}

@keyframes dealer-spin {

	to {
		transform: rotate(360deg);
	}
}

.dealer-form__privacy {
	margin: 18px 0 0;
	color: var(--header-muted);
	font-size: 13px;
	line-height: 1.7;
}

.dealer-closed {
	padding: 40px 32px;
	border: 1px solid var(--header-border);
	border-radius: var(--dealer-radius);
	background: #ffffff;
	text-align: center;
}

.dealer-closed__title {
	margin: 0 0 12px;
	font-size: 21px;
	font-weight: 700;
}

.dealer-closed__text {
	margin: 0;
	color: var(--header-muted);
	font-size: 15px;
	line-height: 1.8;
}

/* Support
--------------------------------------------- */

.dealer-support__inner {
	display: grid;
	align-items: center;
	gap: clamp(24px, 4vw, 48px);
	padding: clamp(28px, 4vw, 48px);
	border-radius: var(--dealer-radius);
	background: linear-gradient(135deg, #10233f 0%, #16305a 100%);
	color: #ffffff;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dealer-support__inner .dealer-section__title {
	color: #ffffff;
	text-align: left;
}

.dealer-support__inner .dealer-section__text {
	color: rgba(255, 255, 255, 0.78);
	text-align: left;
}

.dealer-support__cards {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.dealer-support__card,
.dealer-support__card:visited {
	display: block;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--dealer-radius-sm);
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	text-decoration: none;
	transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.dealer-support__card:hover,
.dealer-support__card:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.32);
	color: #ffffff;
	transform: translateY(-4px);
}

.dealer-support__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 14px;
	border-radius: 12px;
	background: var(--header-accent);
	font-size: 16px;
}

.dealer-support__label {
	display: block;
	margin-bottom: 4px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dealer-support__value {
	display: block;
	font-size: 16px;
	font-weight: 700;
	word-break: break-word;
}

/* Primary menu entry
--------------------------------------------- */

.menu-item-become-a-dealer > a {
	color: var(--header-accent);
	font-weight: 700;
}

/* Progress indicator
--------------------------------------------- */

.dealer-progress {
	margin: 0 0 30px;
}

.dealer-progress__bar {
	height: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--header-border);
}

.dealer-progress__fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--header-accent), #4f74ff);
	transition: width 0.4s var(--ks-ease, ease);
}

.dealer-progress__status {
	margin: 12px 0 0;
	color: var(--header-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.dealer-progress__list {
	display: flex;
	gap: 6px;
	margin: 14px 0 0;
	padding: 0 0 6px;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: thin;
}

.dealer-progress__item {
	flex: 0 0 auto;
	margin: 0;
}

.dealer-progress__button {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--header-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--header-muted);
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.dealer-progress__button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.dealer-progress__button:not(:disabled):hover {
	border-color: var(--header-accent);
	color: var(--header-accent);
}

.dealer-progress__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--header-surface-soft);
	color: var(--header-muted);
	font-size: 12px;
	font-weight: 700;
}

.dealer-progress__item.is-active .dealer-progress__button {
	border-color: var(--header-accent);
	background: var(--header-accent);
	color: #ffffff;
}

.dealer-progress__item.is-active .dealer-progress__number {
	background: rgba(255, 255, 255, 0.24);
	color: #ffffff;
}

.dealer-progress__item.is-complete .dealer-progress__button {
	border-color: rgba(21, 128, 61, 0.4);
	color: #15803d;
}

.dealer-progress__item.is-complete .dealer-progress__number {
	background: #15803d;
	color: #ffffff;
}

/* Steps
--------------------------------------------- */

.dealer-step:focus {
	outline: none;
}

.dealer-step[hidden] {
	display: none;
}

.dealer-step__head {
	margin: 0 0 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--header-border);
}

.dealer-step__count {
	margin: 0 0 6px;
	color: var(--header-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dealer-step__title {
	margin: 0;
	color: var(--header-text);
	font-size: clamp(19px, 2.4vw, 24px);
	font-weight: 700;
}

.dealer-step__intro {
	margin: 0 0 20px;
	color: var(--header-muted);
	font-size: 14px;
	line-height: 1.8;
}

.dealer-step__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--header-border);
}

.dealer-step__back,
.dealer-step__next {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	border: 1px solid var(--header-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--header-text);
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.dealer-step__back[hidden] {
	display: none;
}

.dealer-step__back:hover {
	border-color: var(--header-accent);
	color: var(--header-accent);
}

.dealer-step__next {
	margin-left: auto;
	border-color: var(--header-accent);
	background: var(--header-accent);
	color: #ffffff;
}

.dealer-step__next:hover {
	background: #1a38c9;
	box-shadow: 0 14px 30px rgba(33, 70, 243, 0.3);
	transform: translateY(-2px);
}

/* Choice controls
--------------------------------------------- */

.dealer-form__fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.dealer-form__group-label {
	display: block;
	width: 100%;
	margin-bottom: 12px;
	padding: 0;
	color: var(--header-text);
	font-size: 14px;
	font-weight: 600;
}

.dealer-options {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dealer-options .dealer-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	border: 1px solid var(--header-border);
	border-radius: var(--dealer-radius-sm);
	background: #ffffff;
	cursor: pointer;
	font-size: 14.5px;
	line-height: 1.5;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dealer-option:hover {
	border-color: rgba(33, 70, 243, 0.5);
	background: rgba(33, 70, 243, 0.03);
}

/* The native control stays focusable but the styled box is what is seen. */
.dealer-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.dealer-option__box {
	position: relative;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid var(--header-border);
	border-radius: 6px;
	background: #ffffff;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.dealer-option input[type="radio"] + .dealer-option__box {
	border-radius: 50%;
}

.dealer-option input:checked + .dealer-option__box {
	border-color: var(--header-accent);
	background: var(--header-accent);
}

.dealer-option input:checked + .dealer-option__box::after {
	position: absolute;
	top: 2px;
	left: 6px;
	width: 5px;
	height: 10px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	content: "";
	transform: rotate(45deg);
}

.dealer-option input[type="radio"]:checked + .dealer-option__box::after {
	top: 4px;
	left: 4px;
	width: 8px;
	height: 8px;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	transform: none;
}

.dealer-option input:focus-visible + .dealer-option__box {
	outline: 2px solid var(--header-accent);
	outline-offset: 2px;
}

.dealer-option input:checked ~ .dealer-option__label {
	color: var(--header-text);
	font-weight: 600;
}

.dealer-option:has(input:checked) {
	border-color: var(--header-accent);
	background: rgba(33, 70, 243, 0.05);
}

/* Number inputs with a unit suffix
--------------------------------------------- */

.dealer-form__number {
	position: relative;
	display: flex;
	align-items: center;
}

.dealer-form__number input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--header-border);
	border-radius: var(--dealer-radius-sm);
	background: #ffffff;
	color: var(--header-text);
	font-family: inherit;
	font-size: 15px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dealer-form__number input:focus {
	border-color: var(--header-accent);
	box-shadow: 0 0 0 3px rgba(33, 70, 243, 0.15);
	outline: none;
}

.dealer-form__unit {
	position: absolute;
	right: 14px;
	color: var(--header-muted);
	font-size: 13px;
	font-weight: 600;
	pointer-events: none;
}

/* Conditional fields
--------------------------------------------- */

.dealer-form__field--conditional[hidden],
.dealer-form__field.is-hidden {
	display: none;
}

.dealer-form__field.is-required > label::after,
.dealer-form__field.is-required .dealer-form__group-label::after {
	color: var(--header-accent-strong);
	content: " *";
}

.dealer-form__field.has-error input,
.dealer-form__field.has-error select,
.dealer-form__field.has-error textarea {
	border-color: var(--header-accent-strong);
}

/* Document upload
--------------------------------------------- */

.dealer-form__tag {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--header-surface-soft);
	color: var(--header-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: middle;
}

.dealer-form__tag--required {
	background: rgba(255, 49, 49, 0.1);
	color: var(--header-accent-strong);
}

.dealer-upload__control {
	position: relative;
	display: block;
}

.dealer-upload__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	opacity: 0;
}

.dealer-upload__button {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border: 1px dashed var(--header-border);
	border-radius: var(--dealer-radius-sm);
	background: var(--header-surface-soft);
	color: var(--header-muted);
	font-size: 14px;
	font-weight: 600;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.dealer-upload__input:hover + .dealer-upload__button,
.dealer-upload__input:focus-visible + .dealer-upload__button {
	border-color: var(--header-accent);
	background: rgba(33, 70, 243, 0.05);
	color: var(--header-accent);
}

.dealer-upload__input:disabled + .dealer-upload__button {
	cursor: not-allowed;
	opacity: 0.6;
}

.dealer-upload__list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.dealer-upload__file {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 8px;
	padding: 10px 14px;
	border: 1px solid var(--header-border);
	border-radius: var(--dealer-radius-sm);
	background: #ffffff;
	font-size: 14px;
}

.dealer-upload__file-name {
	flex: 1 1 auto;
	overflow: hidden;
	color: var(--header-text);
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dealer-upload__file-size {
	flex-shrink: 0;
	color: var(--header-muted);
	font-size: 12.5px;
}

.dealer-upload__remove {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 49, 49, 0.1);
	color: var(--header-accent-strong);
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
	transition: background 0.2s ease;
}

.dealer-upload__remove:hover {
	background: rgba(255, 49, 49, 0.2);
}

/* Review step
--------------------------------------------- */

.dealer-review__group {
	margin: 0 0 18px;
	padding: 18px 20px;
	border: 1px solid var(--header-border);
	border-radius: var(--dealer-radius-sm);
	background: var(--header-surface-soft);
}

.dealer-review__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.dealer-review__title {
	margin: 0;
	color: var(--header-text);
	font-size: 15px;
	font-weight: 700;
}

.dealer-review__edit {
	padding: 5px 14px;
	border: 1px solid var(--header-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--header-accent);
	cursor: pointer;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
}

.dealer-review__edit:hover {
	border-color: var(--header-accent);
}

.dealer-review__list {
	display: grid;
	gap: 4px 18px;
	margin: 0;
	grid-template-columns: minmax(160px, 240px) 1fr;
}

.dealer-review__list dt {
	color: var(--header-muted);
	font-size: 13px;
	font-weight: 600;
}

.dealer-review__list dd {
	margin: 0;
	color: var(--header-text);
	font-size: 14px;
	overflow-wrap: anywhere;
}

.dealer-review__list dd.is-empty {
	color: #9aa5b1;
	font-style: italic;
}

.dealer-review__empty {
	margin: 0;
	color: var(--header-muted);
}

/* Declaration
--------------------------------------------- */

.dealer-declaration__title {
	margin: 0 0 12px;
	color: var(--header-text);
	font-size: 15px;
	font-weight: 700;
}

.dealer-declaration__text {
	margin: 0 0 18px;
	padding: 0 0 0 16px;
	border-left: 3px solid var(--header-accent);
	color: var(--header-muted);
	font-size: 14px;
	font-style: normal;
	line-height: 1.85;
}

/* Success panel
--------------------------------------------- */

.dealer-success {
	padding: clamp(30px, 5vw, 52px);
	border: 1px solid rgba(21, 128, 61, 0.28);
	border-radius: var(--dealer-radius);
	background: #ffffff;
	box-shadow: 0 20px 50px rgba(16, 35, 63, 0.07);
	text-align: center;
}

.dealer-success:focus {
	outline: none;
}

.dealer-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: #ecfdf3;
	color: #15803d;
	font-size: 30px;
}

.dealer-success__title {
	margin: 0 0 12px;
	color: var(--header-text);
	font-size: clamp(21px, 3vw, 28px);
	font-weight: 700;
}

.dealer-success__text {
	max-width: 620px;
	margin: 0 auto;
	color: var(--header-muted);
	font-size: 15.5px;
	line-height: 1.85;
}

.dealer-success__reference {
	display: inline-block;
	margin-top: 26px;
	padding: 20px 34px;
	border: 1px dashed var(--header-accent);
	border-radius: var(--dealer-radius-sm);
	background: rgba(33, 70, 243, 0.04);
}

.dealer-success__reference-label {
	display: block;
	margin-bottom: 6px;
	color: var(--header-muted);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dealer-success__reference-value {
	display: block;
	color: var(--header-text);
	font-size: clamp(22px, 3.4vw, 30px);
	font-weight: 700;
	letter-spacing: 0.06em;
}

.dealer-success__reference-hint {
	display: block;
	margin-top: 8px;
	color: var(--header-muted);
	font-size: 12.5px;
}

.dealer-form__response--info {
	border-color: rgba(33, 70, 243, 0.3);
	background: rgba(33, 70, 243, 0.06);
	color: #1a38c9;
}

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

@media (max-width: 782px) {

	.dealer-shell,
	.dealer-shell--narrow {
		width: min(100% - 32px, var(--header-shell-width));
	}

	.dealer-form__grid {
		grid-template-columns: 1fr;
	}

	.dealer-support__inner .dealer-section__title,
	.dealer-support__inner .dealer-section__text {
		text-align: center;
	}

	.dealer-form__submit {
		justify-content: center;
		width: 100%;
	}

	.dealer-options {
		grid-template-columns: 1fr;
	}

	.dealer-review__list {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.dealer-review__list dd {
		margin-bottom: 10px;
	}

	.dealer-step__nav {
		flex-direction: column-reverse;
	}

	.dealer-step__back,
	.dealer-step__next {
		justify-content: center;
		width: 100%;
		margin-left: 0;
	}

	/* Only the active pill needs to be legible on a narrow screen. */
	.dealer-progress__label {
		display: none;
	}

	.dealer-progress__item.is-active .dealer-progress__label {
		display: inline;
	}

	.dealer-progress__button {
		padding: 8px 10px;
	}
}

@media (max-width: 480px) {

	.dealer-shell,
	.dealer-shell--narrow {
		width: min(100% - 24px, var(--header-shell-width));
	}

	.dealer-form {
		padding: 20px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.dealer-page *,
	.dealer-page *::before,
	.dealer-page *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
