.oh-dealer-application {
	--oh-red: #cf1f25;
	--oh-ink: #14212b;
	--oh-muted: #63717d;
	--oh-line: #dce2e7;
	--oh-surface: #fff;
	--oh-soft: #f5f7f8;
	max-width: 820px;
	margin-inline: auto;
	padding: clamp(22px, 3.2vw, 40px);
	border: 1px solid rgba(20, 33, 43, .1);
	border-radius: 20px;
	background: var(--oh-surface);
	box-shadow: 0 24px 70px rgba(10, 20, 28, .12);
}

/* Prevent the original single-page form flashing before the step UI is ready. */
.oh-dealer-application:not(.oh-is-ready) {
	position: relative;
	min-height: 240px;
	max-height: 240px;
	overflow: hidden;
}

.oh-dealer-application:not(.oh-is-ready) > * {
	opacity: 0;
	animation: oh-form-safety-show 0s 3s forwards;
}

.oh-dealer-application:not(.oh-is-ready)::after {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	content: "Loading application…";
	color: var(--oh-muted);
	font-size: 14px;
	letter-spacing: .02em;
	pointer-events: none;
}

.oh-dealer-application.oh-is-ready {
	animation: oh-form-ready .18s ease both;
}

.oh-dealer-application.oh-is-ready::after {
	display: none;
}

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

.oh-dealer-application .xpartweb-title {
	margin: 0 0 28px;
	color: var(--oh-ink);
	font-family: "Bebas Neue", sans-serif;
	font-weight: 400 !important;
}

.oh-form-progress {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 28px;
}

.oh-progress-step {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 10px 12px;
	border: 0;
	border-radius: 12px;
	background: var(--oh-soft);
	color: var(--oh-muted);
	text-align: left;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.oh-progress-step span {
	display: grid;
	place-items: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border: 1px solid var(--oh-line);
	border-radius: 50%;
	background: #fff;
}

.oh-progress-step strong {
	overflow: hidden;
	font-size: 13px;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.oh-progress-step.is-active {
	background: rgba(239, 37, 43, .09);
	color: var(--oh-ink);
}

.oh-dealer-application .oh-progress-step:hover,
.oh-dealer-application .oh-progress-step:focus-visible {
	background: rgba(239, 37, 43, .09) !important;
	color: var(--oh-red) !important;
}

.oh-dealer-application .oh-progress-step:hover span,
.oh-dealer-application .oh-progress-step:focus-visible span {
	border-color: var(--oh-red) !important;
	background: #fff !important;
	color: var(--oh-red) !important;
}

.oh-progress-step.is-active span,
.oh-progress-step.is-complete span {
	border-color: var(--oh-red);
	background: var(--oh-red);
	color: #fff;
}

.oh-form-step.is-active {
	animation: oh-step-in .28s ease both;
}

.oh-step-heading {
	margin-bottom: 26px;
}

.oh-step-heading > span {
	color: var(--oh-red);
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.oh-step-heading h3 {
	margin: 5px 0 6px;
	color: var(--oh-ink);
	font-family: "Bebas Neue", sans-serif;
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1.1;
}

.oh-step-heading p,
.oh-dealer-application small {
	color: var(--oh-muted) !important;
}

.oh-dealer-application label {
	display: block;
	margin-bottom: 8px;
	color: var(--oh-ink);
}

.oh-dealer-application label span[aria-hidden="true"] {
	color: var(--oh-red);
}

.oh-dealer-number-field label span {
	float: right;
	color: var(--oh-muted);
	font-size: 12px;
}

.oh-dealer-application input:not([type="submit"]):not([type="checkbox"]):not([type="file"]),
.oh-dealer-application select,
.oh-dealer-application textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 13px;
	border: 1px solid var(--oh-line);
	border-radius: 10px;
	background: #fff;
	color: var(--oh-ink);
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.oh-dealer-application textarea {
	min-height: 76px;
	resize: vertical;
}

.oh-dealer-application input:focus,
.oh-dealer-application select:focus,
.oh-dealer-application textarea:focus {
	border-color: var(--oh-red) !important;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(239, 37, 43, .12) !important;
}

.oh-dealer-application .xpartweb-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.oh-dealer-application p,
.oh-dealer-application .oh-field,
.oh-dealer-application .oh-upload-field {
	margin: 0 0 15px;
}

.oh-dealer-number-field[hidden] {
	display: none !important;
}

.oh-dealer-number-field.is-visible {
	animation: oh-field-in .22s ease both;
}

.oh-dealer-application .xpartweb-upload-wrapper {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	min-height: 58px;
	padding: 9px 12px;
	border: 1px dashed #aeb9c2;
	border-radius: 12px;
	background: var(--oh-soft);
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.oh-dealer-application .xpartweb-upload-wrapper:hover,
.oh-dealer-application .xpartweb-upload-wrapper:focus-within {
	border-color: var(--oh-red);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(207, 31, 37, .08);
}

.oh-dealer-application .xpartweb-upload-wrapper.has-file {
	border-style: solid;
	border-color: #2f7d4a;
	background: #f2faf5;
}

.oh-dealer-application .xpartweb-upload-wrapper.has-file .xpartweb-file-name {
	color: #245f39;
}

.oh-dealer-application .xpartweb-upload-btn,
.oh-dealer-application .xpartweb-upload-wrapper > button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--oh-ink);
	border-radius: 8px;
	background: var(--oh-ink);
	color: #fff;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}

.oh-dealer-application .xpartweb-upload-wrapper input[type="file"] {
	display: block !important;
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: auto !important;
	cursor: pointer;
}

.oh-dealer-application .xpartweb-file-name,
.oh-dealer-application .xpartweb-upload-wrapper > span {
	overflow: hidden;
	color: var(--oh-muted);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.oh-zip-status {
	display: block;
	margin-top: 6px;
}

.oh-zip-status.is-success {
	color: #2f7d4a !important;
}

.oh-zip-status.is-error {
	color: #a82429 !important;
}

.oh-step-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--oh-line);
}

.oh-application-review {
	display: grid;
	gap: 14px;
}

.oh-review-section {
	overflow: hidden;
	border: 1px solid var(--oh-line);
	border-radius: 12px;
	background: #fff;
}

.oh-review-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--oh-line);
	background: var(--oh-soft);
}

.oh-review-section-heading h4 {
	margin: 0;
	color: var(--oh-ink);
	font-family: "Bebas Neue", sans-serif;
	font-size: 16px;
}

.oh-review-edit {
	padding: 4px 0;
	border: 0;
	background: transparent;
	color: var(--oh-red);
	font-size: 13px;
	cursor: pointer;
}

.oh-review-section dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 6px 16px 12px;
}

.oh-review-row {
	min-width: 0;
	padding: 10px 12px 8px 0;
}

.oh-review-row dt {
	margin-bottom: 3px;
	color: var(--oh-muted);
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.oh-review-row dd {
	overflow-wrap: anywhere;
	margin: 0;
	color: var(--oh-ink);
	font-size: 14px;
	line-height: 1.4;
}

.oh-step-actions p {
	margin: 0;
}

.oh-step-next,
.oh-step-back,
.oh-dealer-application input[type="submit"] {
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid var(--oh-ink);
	border-radius: 9px;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.oh-step-next,
.oh-dealer-application input[type="submit"] {
	border-color: var(--oh-red);
	background: var(--oh-red);
	color: #fff;
}

.oh-step-back {
	background: #fff;
	color: var(--oh-ink);
}

.oh-step-next:hover,
.oh-step-back:hover,
.oh-dealer-application input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(20, 33, 43, .13);
}

@keyframes oh-step-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes oh-form-ready {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes oh-form-safety-show {
	to { opacity: 1; }
}

@keyframes oh-field-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
	.oh-dealer-application {
		padding: 22px 18px;
		border-radius: 15px;
	}

	.oh-form-progress {
		gap: 6px;
		margin-bottom: 28px;
	}

	.oh-progress-step {
		justify-content: center;
		padding: 9px 6px;
	}

	.oh-progress-step strong {
		display: none;
	}

	.oh-dealer-application .xpartweb-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.oh-review-section dl {
		grid-template-columns: 1fr;
	}

	.oh-step-actions {
		flex-wrap: wrap;
	}

	.oh-step-actions > *,
	.oh-step-actions p,
	.oh-step-actions input[type="submit"] {
		flex: 1 1 100%;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oh-form-step.is-active,
	.oh-dealer-number-field.is-visible {
		animation: none;
	}

	.oh-dealer-application *,
	.oh-dealer-application *::before,
	.oh-dealer-application *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
