/* ===================================================
   Обёртка формы (фон и отступы даёт section.portfolio из темы)
   =================================================== */
.dp-tz {
	position: relative;
}

.dp-tz__inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ===================================================
   Вводная часть
   =================================================== */
.dp-tz__title {
	margin: 0 0 20px;
	font-size: 48px;
	line-height: 1.1;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.dp-tz__desc {
	margin: 0 0 48px;
	color: #9ca3af;
	font-size: 16px;
	line-height: 1.6;
	font-weight: 300;
	max-width: 640px;
}

/* ===================================================
   Разделитель
   =================================================== */
.dp-tz__divider {
	height: 1px;
	background: #3a403c;
	margin: 48px 0;
}

/* ===================================================
   Секции
   =================================================== */
.dp-tz-section {
	margin-bottom: 0;
}

.dp-tz-step {
	display: none;
}

.dp-tz-step.is-active {
	display: block;
}

.dp-tz-section--submit {
	padding-top: 16px;
}

.dp-tz-section__title {
	margin: 0 0 20px;
	font-size: 18px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #f2f2f2;
}

.dp-tz-section__title--accent {
	color: #c4b59b;
}

.dp-tz-section__note {
	margin: 0 0 16px;
	font-size: 13px;
	color: #9ca3af;
	font-weight: 300;
}

.dp-tz-section__note--mt {
	margin-top: 28px;
}

/* ===================================================
   Сетки опций
   =================================================== */
.dp-tz-grid {
	display: grid;
	gap: 12px 24px;
	margin-bottom: 16px;
}

.dp-tz-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.dp-tz-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

/* Два раздела в ряд */
.dp-tz-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
}

/* Вертикальный стек */
.dp-tz-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
}

.dp-tz-stack--relaxed {
	gap: 16px;
}

.dp-tz-stack--inline {
	flex-direction: row;
	gap: 32px;
	margin-top: 12px;
	margin-bottom: 0;
}

/* ===================================================
   Чекбоксы и радио — кастомный стиль как в референсе
   =================================================== */
.dp-tz-label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.4;
	color: #f2f2f2;
	transition: color 0.2s ease;
}

.dp-tz-label:hover {
	color: #c4b59b;
}

.dp-tz-label--top {
	align-items: flex-start;
}

.dp-tz-label input[type="checkbox"],
.dp-tz-label input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	background-color: transparent;
	margin: 0;
	flex-shrink: 0;
	width: 1.2em;
	height: 1.2em;
	border: 1px solid #71717a;
	display: grid;
	place-content: center;
	transition: border-color 0.2s ease;
	cursor: pointer;
}

.dp-tz-label input[type="radio"] {
	border-radius: 50%;
}

.dp-tz-check--top {
	margin-top: 2px;
}

.dp-tz-label input[type="checkbox"]::before {
	content: "";
	width: 0.6em;
	height: 0.6em;
	transform: scale(0);
	transition: 120ms transform ease-in-out;
	background-color: #fff;
	transform-origin: center;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.dp-tz-label input[type="radio"]::before {
	content: "";
	width: 0.6em;
	height: 0.6em;
	border-radius: 50%;
	transform: scale(0);
	transition: 120ms transform ease-in-out;
	background-color: #fff;
}

.dp-tz-label input[type="checkbox"]:checked,
.dp-tz-label input[type="radio"]:checked {
	border-color: #fff;
}

.dp-tz-label input[type="checkbox"]:checked::before,
.dp-tz-label input[type="radio"]:checked::before {
	transform: scale(1);
}

/* ===================================================
   Поля ввода
   =================================================== */
.dp-tz-input {
	display: block;
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid #3a403c;
	color: #f2f2f2;
	padding: 8px 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.5;
	transition: border-color 0.3s ease;
	border-radius: 0;
	box-shadow: none;
	resize: vertical;
}

.dp-tz-input:focus {
	outline: none;
	border-bottom-color: #c4b59b;
}

.dp-tz-input::placeholder {
	color: #6b7280;
	font-weight: 300;
}

.dp-tz-input--other {
	margin-top: 8px;
}

/* ===================================================
   Поля с лейблом
   =================================================== */
.dp-tz-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dp-tz-field--full {
	grid-column: 1 / -1;
}

.dp-tz-field__label {
	font-size: 13px;
	color: #9ca3af;
	font-weight: 300;
	line-height: 1.4;
}

/* ===================================================
   Кнопки
   =================================================== */
.dp-tz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #f2f2f2;
	color: #1c1f1d;
	border: 1px solid #f2f2f2;
	padding: 14px 48px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.dp-tz-step__actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.dp-tz-btn:hover {
	background: #c4b59b;
	border-color: #c4b59b;
	color: #fff;
}

.dp-tz-btn--ghost {
	background: transparent;
	color: #f2f2f2;
	border-color: #f2f2f2;
}

.dp-tz-btn--ghost:hover {
	background: #f2f2f2;
	color: #1c1f1d;
}

.dp-tz-btn__loader {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: dp-tz-spin 0.7s linear infinite;
}

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

/* ===================================================
   Сообщение об ошибке
   =================================================== */
.dp-tz__msg {
	margin-top: 16px;
	font-size: 14px;
}

/* ===================================================
   Модальное окно
   =================================================== */
.dp-tz-modal {
	position: fixed;
	inset: 0;
	background: rgba(28, 31, 29, 0.92);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.dp-tz-modal:not(.is-hidden) {
	opacity: 1;
}

.dp-tz-modal__box {
	max-width: 520px;
	width: 100%;
	background: #252926;
	border: 1px solid #3a403c;
	padding: 48px;
	text-align: center;
}

.dp-tz-modal__title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #c4b59b;
}

.dp-tz-modal__text {
	margin: 0 0 32px;
	font-size: 14px;
	color: #9ca3af;
	font-weight: 300;
	line-height: 1.7;
}

/* ===================================================
   Утилиты
   =================================================== */
.is-hidden {
	display: none !important;
}

/* ===================================================
   Адаптив
   =================================================== */
@media (max-width: 1023px) {
	.dp-tz-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.dp-tz__title {
		font-size: 32px;
	}

	.dp-tz-grid--3,
	.dp-tz-grid--2 {
		grid-template-columns: 1fr;
	}

	.dp-tz-row {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.dp-tz__divider {
		margin: 32px 0;
	}

	.dp-tz-modal__box {
		padding: 32px 24px;
	}
}

@media (min-width: 1280px) {
	.dp-tz__desc {
		font-size: 18px;
	}

	.dp-tz-section__title {
		font-size: 20px;
	}

	.dp-tz-label {
		font-size: 15px;
	}

	.dp-tz-field__label {
		font-size: 14px;
	}

	.dp-tz-input {
		font-size: 16px;
	}
}
