/*
 * Dealer application page ([jbl_dealer_application]).
 *
 * Built on the theme's runtime tokens (--color-*, --gradient-premium,
 * --ease-premium from theme-src/scss/abstracts/_tokens.scss), so it follows
 * the dark/light toggle with no overrides of its own. Every token has a
 * fallback so the form still reads correctly under another theme.
 *
 * Logical properties throughout (inline-start/end, not left/right): the
 * default site language is Persian, RTL.
 */

.jhs-dealer {
	--jd-accent: var(--color-accent, #ff6a00);
	--jd-accent-soft: var(--color-accent-soft, #ff9d4d);
	--jd-text: var(--color-text, #f5f5f5);
	--jd-muted: var(--color-text-muted, #a3a3a3);
	--jd-bg: var(--color-bg, #0a0a0a);
	--jd-elevated: var(--color-bg-elevated, #141414);
	--jd-border: var(--color-border, rgb(255 255 255 / 8%));
	--jd-glass: var(--color-surface-glass, rgb(255 255 255 / 4%));
	--jd-glass-strong: var(--color-surface-glass-strong, rgb(255 255 255 / 8%));
	--jd-ease: var(--ease-premium, cubic-bezier(0.16, 1, 0.3, 1));
	--jd-danger: #ef4444;
	--jd-success: #22c55e;
	--jd-radius: 18px;

	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	margin-block: 1rem clamp(3rem, 8vw, 6rem);
	color: var(--jd-text);
}

.jhs-dealer *,
.jhs-dealer *::before,
.jhs-dealer *::after {
	box-sizing: border-box;
}

.jhs-dealer [hidden] {
	display: none !important;
}

/* ------------------------------------------------------------------ Intro */

.jhs-dealer__intro {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

@media (min-width: 992px) {
	.jhs-dealer__intro {
		grid-template-columns: 1fr 1.15fr;
	}
}

.jhs-dealer__intro-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.jhs-dealer__title {
	margin: 0;
	font-size: clamp(1.6rem, 3.4vw, 2.6rem);
	line-height: 1.2;
}

.jhs-dealer__lead {
	margin: 0;
	color: var(--jd-muted);
	font-size: 1.05rem;
	line-height: 1.9;
	max-width: 52ch;
}

.jhs-dealer__cta {
	margin-block-start: 0.5rem;
}

.jhs-dealer__benefits {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 576px) {
	.jhs-dealer__benefits {
		grid-template-columns: 1fr 1fr;
	}
}

.jhs-dealer__benefit {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.35rem;
	border: 1px solid var(--jd-border);
	border-radius: var(--jd-radius);
	background: linear-gradient(180deg, var(--jd-glass-strong), var(--jd-glass));
	transition: transform 0.5s var(--jd-ease), border-color 0.3s ease;
}

.jhs-dealer__benefit:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--jd-accent) 45%, transparent);
}

.jhs-dealer__benefit strong {
	font-size: 1.02rem;
}

.jhs-dealer__benefit span:last-child {
	color: var(--jd-muted);
	font-size: 0.9rem;
	line-height: 1.8;
}

.jhs-dealer__benefit-icon {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-block-end: 0.35rem;
	border-radius: 14px;
	color: var(--jd-accent);
	background: color-mix(in srgb, var(--jd-accent) 14%, transparent);
}

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

.jhs-dealer__prep {
	display: grid;
	gap: 1rem;
}

@media (min-width: 768px) {
	.jhs-dealer__prep {
		grid-template-columns: 1fr 1fr;
	}
}

.jhs-dealer__panel {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--jd-border);
	border-radius: var(--jd-radius);
	background: var(--jd-elevated);
}

.jhs-dealer__panel-title {
	margin: 0 0 1.25rem;
	font-size: 1.15rem;
}

.jhs-dealer__process {
	display: grid;
	gap: 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: jd-step;
}

.jhs-dealer__process li {
	position: relative;
	display: grid;
	gap: 0.2rem;
	padding-inline-start: 3rem;
	counter-increment: jd-step;
}

.jhs-dealer__process li::before {
	content: counter(jd-step);
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0;
	display: grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--color-accent-contrast, #fff);
	background: var(--gradient-premium, var(--jd-accent));
}

/* Connector between the numbered circles. */
.jhs-dealer__process li:not(:last-child)::after {
	content: '';
	position: absolute;
	inset-inline-start: calc(1.05rem - 1px);
	inset-block: 2.3rem -1rem;
	width: 2px;
	background: var(--jd-border);
}

.jhs-dealer__process span,
.jhs-dealer__checklist,
.jhs-dealer__note,
.jhs-dealer__muted {
	color: var(--jd-muted);
	font-size: 0.92rem;
	line-height: 1.8;
}

.jhs-dealer__checklist {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jhs-dealer__checklist li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	color: var(--jd-text);
}

.jhs-dealer__checklist svg {
	flex: none;
	width: 20px;
	height: 20px;
	margin-block-start: 0.2rem;
	color: var(--jd-accent);
}

.jhs-dealer__note {
	margin: 1.25rem 0 0;
	padding-block-start: 1rem;
	border-block-start: 1px dashed var(--jd-border);
}

/* ------------------------------------------------------------------- Card */

.jhs-dealer__card {
	width: 100%;
	max-width: 980px;
	margin-inline: auto;
	padding: clamp(1.1rem, 4vw, 2.75rem);
	border: 1px solid var(--jd-border);
	border-radius: 26px;
	background: linear-gradient(160deg, var(--jd-elevated), var(--jd-bg));
	box-shadow: var(--shadow-elevated, 0 20px 60px rgb(0 0 0 / 35%));
	scroll-margin-top: 120px;
}

.jhs-dealer__tabs {
	display: flex;
	gap: 0.35rem;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto clamp(1.5rem, 4vw, 2.25rem);
	padding: 0.35rem;
	border: 1px solid var(--jd-border);
	border-radius: 999px;
	background: var(--jd-glass);
}

.jhs-dealer__tab {
	padding: 0.6rem 1.4rem;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--jd-muted);
	background: transparent;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.3s var(--jd-ease);
}

.jhs-dealer__tab:hover {
	color: var(--jd-text);
}

.jhs-dealer__tab.is-active {
	color: var(--color-accent-contrast, #fff);
	background: var(--gradient-premium, var(--jd-accent));
	box-shadow: var(--shadow-accent, 0 10px 28px rgb(255 106 0 / 38%));
}

.jhs-dealer__tab:focus-visible {
	outline: 2px solid var(--jd-accent);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- Stepper */

.jhs-stepper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
	padding: 0;
	list-style: none;
}

.jhs-stepper__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	text-align: center;
	color: var(--jd-muted);
	font-size: 0.88rem;
}

/* Track to the next step. */
.jhs-stepper__item:not(:last-child)::after {
	content: '';
	position: absolute;
	inset-block-start: 19px;
	inset-inline-start: calc(50% + 26px);
	inset-inline-end: calc(-50% + 26px);
	height: 2px;
	border-radius: 2px;
	background: var(--jd-border);
	transition: background-color 0.4s ease;
}

.jhs-stepper__item.is-done:not(:last-child)::after {
	background: var(--jd-accent);
}

.jhs-stepper__dot {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 2px solid var(--jd-border);
	border-radius: 50%;
	font-weight: 700;
	background: var(--jd-bg);
	transition: all 0.35s var(--jd-ease);
}

.jhs-stepper__dot svg {
	display: none;
	width: 18px;
	height: 18px;
}

.jhs-stepper__item.is-current {
	color: var(--jd-text);
	font-weight: 600;
}

.jhs-stepper__item.is-current .jhs-stepper__dot {
	border-color: var(--jd-accent);
	color: var(--jd-accent);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--jd-accent) 18%, transparent);
}

.jhs-stepper__item.is-done .jhs-stepper__dot {
	border-color: transparent;
	color: var(--color-accent-contrast, #fff);
	background: var(--gradient-premium, var(--jd-accent));
}

.jhs-stepper__item.is-done .jhs-stepper__dot span {
	display: none;
}

.jhs-stepper__item.is-done .jhs-stepper__dot svg {
	display: block;
}

@media (max-width: 575px) {
	.jhs-stepper__item:not(.is-current) .jhs-stepper__label {
		display: none;
	}
}

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

.jhs-dealer__form {
	margin: 0;
}

.jhs-step {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
	animation: jhs-step-in 0.5s var(--jd-ease);
}

@keyframes jhs-step-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

.jhs-step__title {
	margin-block-end: 1.25rem;
	padding: 0;
	font-size: 1.2rem;
	font-weight: 700;
}

.jhs-grid {
	display: grid;
	gap: 1.15rem 1.25rem;
}

@media (min-width: 640px) {
	.jhs-grid {
		grid-template-columns: 1fr 1fr;
	}

	.jhs-field--wide {
		grid-column: 1 / -1;
	}
}

.jhs-field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	min-width: 0;
}

.jhs-field__label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem;
	padding: 0;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--jd-text);
}

.jhs-field__req {
	color: var(--jd-accent);
}

.jhs-field__optional {
	font-weight: 400;
	font-size: 0.8rem;
	color: var(--jd-muted);
}

.jhs-field__control {
	position: relative;
	display: flex;
}

.jhs-dealer input[type='text'],
.jhs-dealer input[type='tel'],
.jhs-dealer input[type='email'],
.jhs-dealer select,
.jhs-dealer textarea {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 0.75rem 1rem;
	border: 1px solid var(--jd-border);
	border-radius: 12px;
	font: inherit;
	font-size: 0.97rem;
	color: var(--jd-text);
	background-color: var(--jd-bg);
	transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.jhs-dealer textarea {
	min-height: 0;
	resize: vertical;
	line-height: 1.8;
}

.jhs-dealer input:hover,
.jhs-dealer select:hover,
.jhs-dealer textarea:hover {
	border-color: color-mix(in srgb, var(--jd-text) 22%, transparent);
}

.jhs-dealer input:focus,
.jhs-dealer select:focus,
.jhs-dealer textarea:focus {
	outline: none;
	border-color: var(--jd-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--jd-accent) 18%, transparent);
}

/* LTR fields (numbers, email) keep their own direction but sit on the
   reading edge of the column, so the column edge stays aligned in RTL. */
.jhs-dealer input[dir='ltr'] {
	text-align: start;
}

[dir='rtl'] .jhs-dealer input[dir='ltr'] {
	text-align: right;
}

[dir='rtl'] .jhs-dealer input[dir='ltr']:placeholder-shown {
	text-align: right;
}

.jhs-dealer select {
	appearance: none;
	padding-inline-end: 2.75rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3a3a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	cursor: pointer;
}

[dir='rtl'] .jhs-dealer select {
	background-position: left 1rem center;
}

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

/* An IBAN reads left to right in every language, so the prefixed control
   is laid out LTR - "IR" always sits on the left of the digits, and the
   logical radii below resolve the same way under RTL. */
.jhs-field__control--prefixed {
	direction: ltr;
}

.jhs-field__control--prefixed input {
	border-start-start-radius: 0;
	border-end-start-radius: 0;
	letter-spacing: 0.06em;
}

.jhs-field__prefix {
	display: grid;
	place-items: center;
	flex: none;
	padding-inline: 1rem;
	border: 1px solid var(--jd-border);
	border-inline-end: 0;
	border-start-start-radius: 12px;
	border-end-start-radius: 12px;
	font-weight: 700;
	color: var(--jd-muted);
	background: var(--jd-glass-strong);
	direction: ltr;
}

.jhs-field__hint {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.7;
	color: var(--jd-muted);
}

.jhs-field__error {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.6;
	color: var(--jd-danger);
}

.jhs-field__error:empty {
	display: none;
}

.jhs-field.is-invalid input,
.jhs-field.is-invalid select,
.jhs-field.is-invalid textarea,
.jhs-field.is-invalid .jhs-upload__zone,
.jhs-field.is-invalid .jhs-choice__box {
	border-color: var(--jd-danger);
}

.jhs-field.is-invalid .jhs-field__hint {
	display: none;
}

/* Radio cards */

.jhs-field__group {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.jhs-choice-row {
	display: flex;
	gap: 0.6rem;
}

.jhs-choice {
	position: relative;
	flex: 1;
	cursor: pointer;
}

.jhs-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.jhs-choice__box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0.6rem 1rem;
	border: 1px solid var(--jd-border);
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--jd-muted);
	background: var(--jd-bg);
	transition: all 0.25s ease;
}

.jhs-choice:hover .jhs-choice__box {
	color: var(--jd-text);
}

.jhs-choice input:checked + .jhs-choice__box {
	border-color: var(--jd-accent);
	color: var(--jd-text);
	background: color-mix(in srgb, var(--jd-accent) 12%, var(--jd-bg));
	box-shadow: inset 0 0 0 1px var(--jd-accent);
}

.jhs-choice input:focus-visible + .jhs-choice__box {
	outline: 2px solid var(--jd-accent);
	outline-offset: 2px;
}

/* Uploads */

.jhs-upload__zone {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	border: 1.5px dashed color-mix(in srgb, var(--jd-text) 20%, transparent);
	border-radius: 14px;
	background: var(--jd-glass);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.jhs-upload__zone:hover,
.jhs-upload.is-dragover .jhs-upload__zone {
	border-color: var(--jd-accent);
	background: color-mix(in srgb, var(--jd-accent) 8%, transparent);
}

.jhs-upload__zone:focus-within {
	border-color: var(--jd-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--jd-accent) 18%, transparent);
}

/* The real input stays in the tree (keyboard + screen readers) but covers
   nothing visually; the label forwards clicks to it. */
.jhs-upload__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.jhs-upload__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	color: var(--jd-accent);
	background: color-mix(in srgb, var(--jd-accent) 14%, transparent);
}

.jhs-upload__text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	font-size: 0.85rem;
	color: var(--jd-muted);
}

.jhs-upload__text strong {
	font-size: 0.95rem;
	color: var(--jd-text);
}

.jhs-upload.is-full .jhs-upload__zone {
	display: none;
}

.jhs-upload__list {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jhs-upload__list:empty {
	display: none;
}

@media (min-width: 640px) {
	.jhs-upload__list {
		grid-template-columns: 1fr 1fr;
	}
}

.jhs-upload__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem;
	padding-inline-end: 0.75rem;
	border: 1px solid var(--jd-border);
	border-radius: 12px;
	background: var(--jd-bg);
	animation: jhs-step-in 0.35s var(--jd-ease);
}

.jhs-upload__thumb {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 9px;
	overflow: hidden;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--jd-accent);
	background: var(--jd-glass-strong);
}

.jhs-upload__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jhs-upload__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
	font-size: 0.85rem;
}

.jhs-upload__name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--jd-text);
}

.jhs-upload__size {
	color: var(--jd-muted);
	font-size: 0.78rem;
	direction: ltr;
	text-align: start;
}

.jhs-upload__remove {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--jd-muted);
	background: transparent;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.jhs-upload__remove:hover,
.jhs-upload__remove:focus-visible {
	color: var(--jd-danger);
	background: color-mix(in srgb, var(--jd-danger) 12%, transparent);
	outline: none;
}

/* Consent */

.jhs-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--jd-border);
	border-radius: 14px;
	font-size: 0.9rem;
	line-height: 1.8;
	background: var(--jd-glass);
	cursor: pointer;
}

.jhs-consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin-block-start: 0.25rem;
	accent-color: var(--jd-accent);
	cursor: pointer;
}

.jhs-field.is-invalid .jhs-consent {
	border-color: var(--jd-danger);
}

/* Captcha */

.jhs-captcha {
	grid-column: 1 / -1;
}

.jhs-captcha__row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.6rem;
}

.jhs-captcha__challenge {
	display: grid;
	place-items: center;
	width: 200px;
	height: 64px;
	border: 1px solid var(--jd-border);
	border-radius: 12px;
	overflow: hidden;
	font-size: 0.8rem;
	font-weight: 700;
	color: #1a1a1a;
	background: #f6f4f1;
	direction: ltr;
}

.jhs-captcha__challenge img {
	display: block;
	width: 200px;
	height: 64px;
}

.jhs-captcha__question {
	font-size: 1.35rem;
	letter-spacing: 0.05em;
}

.jhs-captcha__loading {
	padding: 0.5rem;
	font-weight: 400;
	text-align: center;
	color: #555;
}

.jhs-captcha__refresh {
	display: grid;
	place-items: center;
	width: 50px;
	border: 1px solid var(--jd-border);
	border-radius: 12px;
	color: var(--jd-muted);
	background: var(--jd-bg);
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.jhs-captcha__refresh:hover,
.jhs-captcha__refresh:focus-visible {
	color: var(--jd-accent);
	border-color: var(--jd-accent);
	outline: none;
}

.jhs-captcha__refresh.is-spinning svg {
	animation: jhs-spin 0.7s linear infinite;
}

.jhs-dealer .jhs-captcha__input {
	flex: 1 1 140px;
	max-width: 220px;
	min-height: 64px;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.35em;
	text-align: center !important;
}

/* Honeypot: out of sight, out of the accessibility tree. */
.jhs-hp {
	position: absolute !important;
	inset-inline-start: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------- Nav/alert/states */

.jhs-dealer__alert {
	margin-block-start: 1.5rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid color-mix(in srgb, var(--jd-danger) 45%, transparent);
	border-radius: 12px;
	font-size: 0.92rem;
	line-height: 1.8;
	color: var(--jd-text);
	background: color-mix(in srgb, var(--jd-danger) 12%, transparent);
}

.jhs-dealer__alert--static {
	margin: 0;
	text-align: center;
}

.jhs-dealer__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-block-start: clamp(1.5rem, 4vw, 2.25rem);
	padding-block-start: 1.5rem;
	border-block-start: 1px solid var(--jd-border);
}

.jhs-dealer__nav .btn {
	min-width: 140px;
}

.jhs-dealer__nav [data-step-next],
.jhs-dealer__nav [data-step-submit],
.jhs-dealer [data-lookup-form] .jhs-dealer__nav .btn {
	margin-inline-start: auto;
}

.jhs-dealer__progress {
	font-size: 0.85rem;
	color: var(--jd-muted);
}

.jhs-dealer__back:not([hidden]) + .jhs-dealer__progress {
	margin-inline: auto;
}

@media (max-width: 480px) {
	.jhs-dealer__progress {
		display: none;
	}

	.jhs-dealer__nav .btn {
		min-width: 0;
		flex: 1;
	}
}

.jhs-dealer .btn.is-loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.jhs-dealer .btn.is-loading::after {
	content: attr(data-loading-label);
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--color-accent-contrast, #fff);
	font-size: 0.9rem;
}

@keyframes jhs-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Success */

.jhs-dealer__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	padding-block: clamp(1rem, 4vw, 2rem);
	text-align: center;
	outline: none;
	animation: jhs-step-in 0.6s var(--jd-ease);
}

.jhs-dealer__success h3 {
	margin: 0.5rem 0 0;
	font-size: clamp(1.25rem, 2.6vw, 1.6rem);
}

.jhs-dealer__success p {
	margin: 0;
}

.jhs-dealer__success-icon {
	display: grid;
	place-items: center;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	color: #fff;
	background: var(--gradient-premium, var(--jd-accent));
	box-shadow: var(--shadow-accent, 0 10px 28px rgb(255 106 0 / 38%));
}

.jhs-dealer__success-icon svg {
	width: 38px;
	height: 38px;
	stroke-width: 2.4;
}

.jhs-dealer__code {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	margin-block: 0.4rem 0.8rem;
}

.jhs-dealer__code code {
	padding: 0.7rem 1.4rem;
	border: 1px dashed var(--jd-accent);
	border-radius: 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: clamp(1.4rem, 4vw, 1.9rem);
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--jd-accent);
	background: color-mix(in srgb, var(--jd-accent) 8%, transparent);
}

.jhs-dealer__success .jhs-dealer__muted {
	max-width: 52ch;
}

/* Lookup result */

.jhs-dealer__result {
	margin-block-start: 1.75rem;
	padding: clamp(1.1rem, 3vw, 1.75rem);
	border: 1px solid var(--jd-border);
	border-radius: var(--jd-radius);
	background: var(--jd-glass);
	outline: none;
	animation: jhs-step-in 0.45s var(--jd-ease);
}

.jhs-dealer__result-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-block-end: 1rem;
}

.jhs-dealer__result-head strong {
	font-size: 1.1rem;
}

.jhs-dealer__result dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.75rem;
	margin: 0;
}

.jhs-dealer__result dt {
	font-size: 0.8rem;
	color: var(--jd-muted);
}

.jhs-dealer__result dd {
	margin: 0.15rem 0 0;
	font-weight: 600;
}

.jhs-dealer__result-message {
	margin: 1.1rem 0 0;
	padding: 0.9rem 1.1rem;
	border-inline-start: 3px solid var(--jd-accent);
	border-radius: 8px;
	line-height: 1.9;
	white-space: pre-line;
	background: var(--jd-bg);
}

.jhs-status {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
}

.jhs-status::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.jhs-status--pending {
	color: #f59e0b;
	background: rgb(245 158 11 / 14%);
}

.jhs-status--reviewing {
	color: #3b82f6;
	background: rgb(59 130 246 / 14%);
}

.jhs-status--approved {
	color: var(--jd-success);
	background: rgb(34 197 94 / 14%);
}

.jhs-status--rejected {
	color: var(--jd-danger);
	background: rgb(239 68 68 / 14%);
}

.jhs-dealer__closed {
	padding: 2rem;
	border: 1px solid var(--jd-border);
	border-radius: var(--jd-radius);
	text-align: center;
	color: var(--jd-muted);
	background: var(--jd-elevated);
}

@media (prefers-reduced-motion: reduce) {
	.jhs-dealer *,
	.jhs-dealer *::before,
	.jhs-dealer *::after {
		animation: none !important;
		transition: none !important;
	}
}
