.tdbb-form-page {
	background: var(--tdbb-bg, #f97316);
	box-sizing: border-box;
	min-height: 100vh;
	padding: 20px;
}

.tdbb-form-shell {
	align-items: stretch;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(260px, .58fr) minmax(540px, 1.42fr);
	margin: 0 auto;
	max-width: 1480px;
	min-height: calc(100vh - 40px);
}

.tdbb-brand-panel,
.tdbb-form-panel {
	border-radius: 28px;
	box-sizing: border-box;
}

.tdbb-brand-panel {
	align-items: center;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
	display: flex;
	justify-content: center;
	padding: 28px;
	text-align: center;
}

.tdbb-brand-inner {
	max-width: 360px;
}

.tdbb-welcome {
	background: rgba(86, 45, 0, .18);
	border-radius: 999px;
	color: #fffaf0;
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	margin-bottom: 20px;
	padding: 9px 16px;
}

.tdbb-logo {
	display: block;
	margin: 0 auto 22px;
	max-height: 92px;
	max-width: 190px;
	object-fit: contain;
}

.tdbb-brand-panel h1 {
	color: #101828;
	font-size: 44px;
	font-weight: 900;
	line-height: 1.04;
	margin: 0 0 12px;
	text-transform: lowercase;
}

.tdbb-brand-panel p {
	color: #2d1b0a;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.55;
	margin: 0;
}

.tdbb-form-panel {
	align-items: center;
	background: #f8f4ed;
	box-shadow: 0 22px 58px rgba(17, 24, 39, .14);
	display: flex;
	padding: 28px;
}

.tdbb-form {
	width: 100%;
}

.tdbb-grid {
	display: grid;
	gap: 14px 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tdbb-field,
.tdbb-file-field {
	color: #182033;
	display: flex;
	flex-direction: column;
	font-size: 14px;
	font-weight: 800;
	gap: 7px;
}

.tdbb-field b,
.tdbb-file-field b {
	color: var(--tdbb-primary, #ff5f1f);
}

.tdbb-field input,
.tdbb-password,
.tdbb-file-box {
	background: #fffdfa;
	border: 1.5px solid #e4d8ca;
	border-radius: 16px;
	box-sizing: border-box;
	min-height: 48px;
	width: 100%;
}

.tdbb-field input {
	border: 0;
	border-radius: 16px;
	box-shadow: none;
	font-size: 16px;
	outline: 0;
	padding: 11px 14px;
}

.tdbb-field input:focus,
.tdbb-field:focus-within .tdbb-password,
.tdbb-file-field:focus-within .tdbb-file-box {
	border-color: var(--tdbb-primary, #ff5f1f);
	box-shadow: 0 0 0 4px rgba(255, 95, 31, .12);
}

.tdbb-password {
	align-items: center;
	display: flex;
	overflow: hidden;
}

.tdbb-password input {
	flex: 1 1 auto;
}

.tdbb-password button {
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 15px;
	height: 44px;
	width: 44px;
}

.tdbb-file-field {
	margin-top: 14px;
}

.tdbb-file-field > input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.tdbb-file-box {
	align-items: center;
	border-style: dashed;
	cursor: pointer;
	display: flex;
	gap: 12px;
	padding: 7px 10px;
}

.tdbb-file-button {
	align-items: center;
	background: var(--tdbb-primary, #ff5f1f);
	border-radius: 13px;
	color: #fff;
	display: inline-flex;
	font-size: 14px;
	font-weight: 900;
	justify-content: center;
	min-height: 36px;
	min-width: 130px;
	padding: 0 14px;
}

.tdbb-file-name {
	color: #6b7280;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tdbb-check {
	align-items: flex-start;
	color: #374151;
	display: flex;
	font-size: 13px;
	font-weight: 600;
	gap: 9px;
	line-height: 1.45;
	margin-top: 12px;
}

.tdbb-check input {
	margin-top: 2px;
}

.tdbb-submit {
	background: linear-gradient(135deg, var(--tdbb-primary, #ff5f1f), #ff7a00);
	border: 0;
	border-radius: 17px;
	box-shadow: 0 16px 28px rgba(255, 95, 31, .22);
	color: #fff;
	cursor: pointer;
	font-size: 17px;
	font-weight: 900;
	margin-top: 18px;
	min-height: 54px;
	width: 100%;
}

.tdbb-submit[disabled] {
	cursor: wait;
	opacity: .72;
}

.tdbb-field small,
.tdbb-file-field small {
	color: #dc2626;
	font-size: 12px;
	font-weight: 700;
	min-height: 15px;
}

.tdbb-field.is-error input,
.tdbb-field.is-error .tdbb-password,
.tdbb-file-field.is-error .tdbb-file-box {
	border-color: #dc2626;
	box-shadow: 0 0 0 4px rgba(220, 38, 38, .09);
}

.tdbb-alert,
.tdbb-status-message {
	border-radius: 14px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	margin-bottom: 14px;
	padding: 13px 15px;
}

.tdbb-alert.is-error,
.tdbb-status-error {
	background: #fee2e2;
	color: #991b1b;
}

.tdbb-alert.is-success,
.tdbb-status-info {
	background: #e0f2fe;
	color: #075985;
}

.tdbb-hp {
	left: -9999px;
	position: absolute;
}

.tdbb-modal {
	align-items: center;
	background: rgba(17, 24, 39, .5);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 999999;
}

.tdbb-modal[hidden] {
	display: none;
}

.tdbb-modal-card {
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 26px 70px rgba(17, 24, 39, .24);
	max-width: 430px;
	padding: 26px;
	text-align: center;
	width: 100%;
}

.tdbb-modal-card h2 {
	color: #111827;
	font-size: 24px;
	font-weight: 900;
	margin: 0 0 10px;
}

.tdbb-modal-card p {
	color: #4b5563;
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 18px;
}

.tdbb-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.tdbb-modal-actions a,
.tdbb-modal-actions button {
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 800;
	min-height: 44px;
	padding: 11px 16px;
	text-decoration: none;
}

.tdbb-wa-button {
	background: #25d366;
	color: #fff;
}

.tdbb-modal-actions button {
	background: #eef2f7;
	color: #111827;
}

@media (max-width: 1120px) {
	.tdbb-form-shell {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.tdbb-form-page {
		padding: 12px;
	}

	.tdbb-brand-panel,
	.tdbb-form-panel {
		border-radius: 22px;
		padding: 18px;
	}

	.tdbb-brand-panel h1 {
		font-size: 34px;
	}

	.tdbb-grid {
		grid-template-columns: 1fr;
	}

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