/**
 * Dealer registration, purchase gates, account status.
 */

body.page.dealer-register-page .site-main .container {
	width: min(var(--ds-container, 1280px), calc(100% - var(--ds-gutter, 48px)));
}

body.page.dealer-register-page .entry-content {
	max-width: none;
	color: inherit;
}

body.page.dealer-register-page .entry-title {
	margin: 0 0 18px;
	font-size: clamp(2.2rem, 4.2vw, 3.4rem);
	line-height: 0.95;
	letter-spacing: 0.02em;
}

body.page.dealer-register-page .site-main {
	padding-bottom: 72px;
}

.tn-dealer-reg {
	position: relative;
	max-width: 1280px;
	margin: 8px auto 48px;
}

.tn-dealer-reg__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.7fr);
	gap: 40px 48px;
	align-items: start;
}

.tn-dealer-reg__aside {
	position: sticky;
	top: calc(var(--header, 72px) + 24px);
	padding: 24px 22px;
	border: 1px solid rgba(244, 241, 234, 0.12);
	border-radius: 12px;
	background: #141a22;
}

.tn-dealer-reg__aside h2 {
	margin: 0 0 14px;
	font-family: var(--ds-font-display, "Barlow Condensed", sans-serif);
	font-size: 1.45rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tn-dealer-reg__aside ul {
	margin: 0 0 18px;
	padding: 0 0 0 18px;
	color: #c5ced8;
	font-size: 15px;
	line-height: 1.55;
}

.tn-dealer-reg__aside li + li {
	margin-top: 10px;
}

.tn-dealer-reg__aside a {
	color: #9eb6ff;
	font-size: 14px;
}

.tn-reg-section {
	margin: 0 0 28px;
	padding: 0 0 8px;
	border: 0;
	border-bottom: 1px solid rgba(244, 241, 234, 0.1);
}

.tn-reg-section--submit {
	border-bottom: 0;
	padding-bottom: 0;
}

.tn-reg-section legend {
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--ds-font-display, "Barlow Condensed", sans-serif);
	font-size: 1.35rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f4f1ea;
}

.tn-dealer-reg__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
}

.tn-dealer-reg .tn-field {
	margin: 0;
	min-width: 0;
}

.tn-dealer-reg .tn-field--full {
	grid-column: 1 / -1;
}

.tn-dealer-reg label,
.tn-file__label {
	display: block;
	margin-bottom: 8px;
	color: #d5dbe4;
	font-size: 14px;
	font-weight: 600;
}

.tn-req {
	color: #3174ff;
	margin-left: 2px;
}

.tn-dealer-reg input[type="text"],
.tn-dealer-reg input[type="email"],
.tn-dealer-reg input[type="tel"],
.tn-dealer-reg input[type="password"],
.tn-dealer-reg select {
	width: 100%;
	min-height: 52px;
	padding: 0 14px;
	border: 1px solid rgba(244, 241, 234, 0.14);
	border-radius: 8px;
	background: #10151c;
	color: #fff;
	font-family: var(--ds-font-body, Manrope, sans-serif);
	font-size: 15px;
}

.tn-dealer-reg input:focus,
.tn-dealer-reg select:focus {
	border-color: #3174ff;
	outline: none;
}

.tn-dealer-reg .is-invalid input,
.tn-dealer-reg .is-invalid select {
	border-color: #e07a7a;
}

.tn-field__hint {
	margin: 6px 0 0;
	color: #8d97a3;
	font-size: 13px;
	line-height: 1.4;
}

.tn-field__error {
	margin: 6px 0 0;
	color: #f0b4b4;
	font-size: 13px;
	line-height: 1.4;
}

.tn-password {
	position: relative;
}

.tn-password input {
	padding-right: 108px;
}

.tn-password__toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	min-height: 36px;
	padding: 0 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #c5ced8;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transform: translateY(-50%);
	cursor: pointer;
}

.tn-password__toggle:hover,
.tn-password__toggle[aria-pressed="true"] {
	color: #fff;
}

.tn-file {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: center;
}

.tn-file__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tn-file__input:focus + .tn-file__button {
	outline: 2px solid #3174ff;
	outline-offset: 3px;
}

.tn-file__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid rgba(49, 116, 255, 0.7);
	border-radius: 8px;
	color: #9eb6ff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.tn-file__name {
	margin: 0;
	color: #f4f1ea;
	font-size: 14px;
}

.tn-file__clear {
	min-height: 44px;
	padding: 0 10px;
	border: 0;
	background: transparent;
	color: #c5ced8;
	font-size: 13px;
	cursor: pointer;
}

.tn-dealer-reg .tn-field--check label {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 12px;
	align-items: start;
	color: #d7dee6;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
}

.tn-dealer-reg .tn-field--check input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: #3174ff;
}

.tn-dealer-reg__honeypot {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	pointer-events: none;
}

.tn-dealer-reg__actions {
	margin-top: 20px;
}

.tn-dealer-reg__submit,
.tn-dealer-reg__actions .button {
	width: 100%;
	min-height: 58px;
	padding: 0 22px;
	border: 0;
	border-radius: 8px;
	background: #3174ff;
	color: #fff;
	font-family: var(--ds-font-body, Manrope, sans-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}

.tn-dealer-reg__submit:hover,
.tn-dealer-reg__actions .button:hover {
	background: #1d5fe0;
}

.tn-dealer-reg__submit:disabled,
.tn-dealer-reg__submit.is-busy {
	opacity: 0.72;
	cursor: progress;
}

.tn-dealer-reg__hint,
.tn-dealer-reg__error,
.tn-dealer-reg__success,
.tn-dealer-reg__status {
	color: #b8c0ca;
	font-size: 15px;
	line-height: 1.55;
}

.tn-dealer-reg__error {
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid rgba(224, 122, 122, 0.4);
	border-left: 3px solid #e07a7a;
	border-radius: 8px;
	background: #10151c;
	color: #f0b4b4;
}

.tn-dealer-reg__success {
	max-width: 640px;
	margin: 12px auto;
	padding: 28px 24px;
	border: 1px solid rgba(49, 116, 255, 0.35);
	border-radius: 12px;
	background: rgba(49, 116, 255, 0.08);
	text-align: center;
}

.tn-dealer-reg__success h2 {
	margin: 0 0 12px;
	font-family: var(--ds-font-display, "Barlow Condensed", sans-serif);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #f4f1ea;
}

.tn-dealer-reg__success .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin-top: 8px;
	padding: 0 22px;
	border-radius: 8px;
	background: #3174ff;
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

.tn-purchase-gate {
	margin-top: 18px;
}

.tn-gate-btn.is-disabled,
.tn-gate-btn[aria-disabled="true"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.72;
	cursor: not-allowed;
	pointer-events: none;
	background: #1a222d !important;
	color: #c5ccd6 !important;
}

.tn-gate-note {
	margin: 12px 0 0;
	max-width: 42ch;
	color: var(--ds-muted, #8d97a3);
	font-size: 14px;
	line-height: 1.5;
}

.tn-gate-note a {
	color: #3174ff;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.tn-account-status {
	margin: 0 0 28px;
	padding: 18px 20px;
	border: 1px solid rgba(244, 241, 234, 0.12);
	border-radius: 12px;
	background: rgba(20, 26, 34, 0.9);
}

.tn-account-status h3 {
	margin: 0 0 8px;
	font-family: var(--ds-font-display, "Barlow Condensed", sans-serif);
	font-size: 1.4rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tn-account-status--pending {
	border-color: rgba(49, 116, 255, 0.45);
}

.tn-account-status--approved {
	border-color: rgba(125, 206, 160, 0.45);
}

.tn-account-status--rejected,
.tn-account-status--suspended {
	border-color: rgba(212, 114, 114, 0.45);
}

.tn-account-company {
	margin: 24px 0;
	padding: 0;
	border: 0;
}

.tn-account-company legend {
	margin-bottom: 12px;
	font-family: var(--ds-font-display, "Barlow Condensed", sans-serif);
	font-size: 1.35rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (max-width: 1023px) {
	.tn-dealer-reg__layout {
		grid-template-columns: 1fr;
	}

	.tn-dealer-reg__aside {
		position: static;
		order: -1;
	}
}

@media (max-width: 767px) {
	.tn-dealer-reg__grid {
		grid-template-columns: 1fr;
	}

	.tn-file {
		flex-direction: column;
		align-items: stretch;
	}

	.tn-file__button,
	.tn-file__clear {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tn-dealer-reg__submit,
	.tn-login-footer__cta {
		transition: none;
	}
}
