/**
 * Форма обратного звонка — WoodMart Medical (светлая поверхность модалки).
 */

.peptide-modal--surface.peptide-modal {
	--wd-text-color: #777;
	--wd-title-color: #242424;
	--wd-form-color: #333;
	--wd-form-brd-color: rgba(0, 0, 0, 0.12);
	--wd-form-brd-color-focus: var(--wd-primary-color, #2080c9);
	--wd-form-placeholder-color: #999;
	--wd-form-bg: #fff;
	--wd-form-height: 48px;
	color: var(--wd-text-color);
	background: #fff;
}

.peptide-callback-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.peptide-callback-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.peptide-callback-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.peptide-callback-form__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--wd-title-color, #242424);
	line-height: 1.35;
}

.peptide-modal--surface .peptide-callback-form__input {
	box-sizing: border-box;
	width: 100%;
	height: var(--wd-form-height, 48px);
	padding: 0 16px;
	border: 1px solid var(--wd-form-brd-color);
	border-radius: var(--wd-brd-radius, 12px);
	background-color: var(--wd-form-bg);
	color: var(--wd-form-color, #333);
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.peptide-modal--surface .peptide-callback-form__input::placeholder {
	color: var(--wd-form-placeholder-color, #999);
	opacity: 1;
}

.peptide-modal--surface .peptide-callback-form__input:hover {
	border-color: rgba(0, 0, 0, 0.2);
}

.peptide-modal--surface .peptide-callback-form__input:focus {
	outline: none;
	border-color: var(--wd-primary-color, #2080c9);
	box-shadow: 0 0 0 3px rgba(32, 128, 201, 0.12);
}

.peptide-modal--surface .peptide-callback-form__input.is-invalid {
	border-color: #e53935;
	box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.peptide-callback-form__error,
.peptide-callback-form__form-error {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #e53935;
}

.peptide-callback-form__consent-box {
	margin-top: 2px;
	padding: 14px 16px;
	border-radius: var(--wd-brd-radius, 12px);
	background: rgba(32, 128, 201, 0.06);
}

.peptide-callback-form__check {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	user-select: none;
}

.peptide-callback-form__check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.peptide-callback-form__check-box {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 0;
	align-self: center;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-radius: calc(var(--wd-brd-radius, 12px) / 2);
	background: #fff;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.peptide-callback-form__check-box::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 6px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.15s ease;
}

.peptide-callback-form__check input:focus-visible + .peptide-callback-form__check-box {
	box-shadow: 0 0 0 3px rgba(32, 128, 201, 0.2);
	border-color: var(--wd-primary-color, #2080c9);
}

.peptide-callback-form__check input:checked + .peptide-callback-form__check-box {
	background: var(--wd-primary-color, #2080c9);
	border-color: var(--wd-primary-color, #2080c9);
}

.peptide-callback-form__check input:checked + .peptide-callback-form__check-box::after {
	transform: rotate(45deg) scale(1);
}

.peptide-callback-form__check-text {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #555;
}

.peptide-callback-form__check-text a {
	color: var(--wd-primary-color, #2080c9);
	font-weight: 500;
	text-decoration: none;
}

.peptide-callback-form__check-text a:hover,
.peptide-callback-form__check-text a:focus-visible {
	text-decoration: underline;
}

.peptide-callback-form__actions {
	margin-top: 4px;
}

.peptide-callback-form__submit-wrap {
	margin: 0;
	width: 100%;
}

.peptide-modal--surface .peptide-callback-form__submit.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 12px 24px;
	border: none;
	border-radius: var(--wd-brd-radius, 12px);
	background-color: var(--wd-primary-color, #2080c9);
	box-shadow: none;
	color: var(--wd-primary-inverse-color, #fff);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	position: relative;
	transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.peptide-modal--surface .peptide-callback-form__submit.btn .wd-btn-text {
	text-transform: none;
	letter-spacing: 0;
	transition: opacity 0.2s ease;
}

.peptide-modal--surface .peptide-callback-form__submit.btn:hover {
	background-color: color-mix(in srgb, var(--wd-primary-color, #2080c9) 88%, #000);
	color: #fff;
	box-shadow: none;
	transform: translateY(-1px);
}

.peptide-modal--surface .peptide-callback-form__submit.btn:active {
	transform: translateY(0);
	background-color: color-mix(in srgb, var(--wd-primary-color, #2080c9) 78%, #000);
}

.peptide-modal--surface .peptide-callback-form__submit.btn:focus-visible {
	outline: 2px solid var(--wd-primary-color, #2080c9);
	outline-offset: 2px;
}

.peptide-modal--surface .peptide-callback-form__submit.btn:disabled {
	opacity: 0.72;
	cursor: not-allowed;
	transform: none;
}

.peptide-modal--surface .peptide-callback-form__submit.btn.is-loading .wd-btn-text {
	opacity: 0.55;
}

.peptide-callback-form__spinner {
	position: absolute;
	right: 16px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: peptide-callback-spin 0.7s linear infinite;
}

.peptide-callback-form__success {
	padding: 12px 0 4px;
	text-align: center;
	animation: peptide-callback-success-in 0.35s ease;
}

.peptide-callback-form__success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: rgba(32, 128, 201, 0.1);
	position: relative;
}

.peptide-callback-form__success-icon::after {
	content: "";
	position: absolute;
	top: 17px;
	left: 20px;
	width: 12px;
	height: 22px;
	border: solid var(--wd-primary-color, #2080c9);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.peptide-modal--surface .peptide-callback-form__success-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	color: var(--wd-title-color, #242424);
}

.peptide-modal--surface .peptide-callback-form__success-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--wd-text-color, #777);
}

@keyframes peptide-callback-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes peptide-callback-success-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* —— Модалка «Оптовое сотрудничество» (split) —— */

.peptide-modal--split .peptide-modal__body {
	margin: 0;
	padding: 0;
	overflow: visible;
}

.peptide-modal-split {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
	align-items: stretch;
	min-height: 0;
	height: 100%;
	border-radius: var(--wd-brd-radius, 12px);
	overflow: hidden;
}

.peptide-modal-split__aside {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 36px 28px 32px;
	background: #eef4f7;
	border-right: 1px solid rgba(32, 128, 201, 0.08);
	border-radius: var(--wd-brd-radius, 12px) 0 0 var(--wd-brd-radius, 12px);
}

.peptide-modal-split__main {
	padding: 52px 36px 36px;
	background: #fff;
	overflow: visible;
	border-radius: 0 var(--wd-brd-radius, 12px) var(--wd-brd-radius, 12px) 0;
}

.peptide-modal-split__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.peptide-modal-split__mark {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: var(--wd-brd-radius, 12px);
	background: var(--wd-primary-color, #2080c9);
	color: #fff;
	font-size: 22px;
	line-height: 1;
}

.peptide-modal-split__mark .peptide-info-page__infobox-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	color: #fff;
	font-size: 22px;
	line-height: 1;
}

.peptide-modal-split__mark .peptide-info-page__infobox-icon i {
	display: block;
	color: inherit;
	font-size: inherit;
	line-height: 1;
}

.peptide-modal-split__mark .peptide-info-page__infobox-icon svg {
	display: block;
	width: 22px !important;
	height: 22px !important;
	max-width: 22px !important;
	max-height: 22px !important;
	fill: currentColor;
	color: #fff;
}

.peptide-modal-split__title {
	margin: 0;
	color: var(--wd-title-color, #242424);
	font-weight: 600;
	font-size: clamp(17px, 2.2vw, 20px);
	line-height: 1.25;
}

.peptide-modal-split__lead {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: #666;
}

.peptide-modal--split ul.peptide-modal-split__perks {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.peptide-modal--split ul.peptide-modal-split__perks > li.peptide-modal-split__perk {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none !important;
	font-size: 13px;
	line-height: 1.4;
	color: #444;
}

.peptide-modal--split ul.peptide-modal-split__perks > li.peptide-modal-split__perk::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--wd-primary-color, #2080c9);
	box-shadow: none;
	position: static;
	transform: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath fill='%23fff' d='M3.6 7.1 0.8 4.3l1.2-1.2 1.6 1.6 4.6-4.6L9.4 1.5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.peptide-modal--split ul.peptide-modal-split__perks > li.peptide-modal-split__perk:last-child {
	margin-bottom: 0;
}

.peptide-wholesale-form {
	gap: 10px;
}

.peptide-wholesale-form__row {
	display: grid;
	gap: 10px;
}

.peptide-wholesale-form__row--2 {
	grid-template-columns: 1fr 1fr;
}

.peptide-wholesale-form .peptide-callback-form__consent-box {
	padding: 12px 14px;
}

.peptide-wholesale-form .peptide-callback-form__check-text {
	font-size: 12px;
	line-height: 1.45;
}

.peptide-modal--surface .peptide-callback-form__input {
	height: 44px;
	font-size: 14px;
}

/* Кастомный select */
.peptide-form-select {
	position: relative;
}

.peptide-form-select__native {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0 0 0 0);
	overflow: hidden;
	white-space: nowrap;
}

.peptide-modal--surface button.peptide-form-select__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: var(--wd-form-height, 44px);
	padding: 0 16px;
	margin: 0;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--wd-form-color, #333);
	background-color: var(--wd-form-bg, #fff);
	box-shadow: none;
	cursor: pointer;
}

.peptide-form-select__value {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	color: var(--wd-form-color, #333);
}

.peptide-form-select__value.is-placeholder {
	color: var(--wd-form-placeholder-color, #999);
}

.peptide-form-select__chevron {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid #999;
	border-bottom: 2px solid #999;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.peptide-form-select.is-open .peptide-form-select__chevron {
	transform: rotate(-135deg) translateY(2px);
	border-color: var(--wd-primary-color, #2080c9);
}

.peptide-form-select__dropdown {
	position: absolute;
	z-index: 12;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	padding: 6px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--wd-brd-radius, 12px);
	background: #fff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.peptide-form-select__dropdown.peptide-form-select__dropdown--fixed {
	position: fixed;
	z-index: 100010;
	right: auto;
}

.peptide-form-select__options {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 220px;
	overflow: auto;
	scrollbar-width: thin;
}

.peptide-form-select__option {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: calc(var(--wd-brd-radius, 12px) - 4px);
	background: transparent;
	color: var(--wd-form-color, #333);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.peptide-form-select__option:hover,
.peptide-form-select__option:focus-visible {
	outline: none;
	background: rgba(32, 128, 201, 0.08);
	color: var(--wd-primary-color, #2080c9);
}

.peptide-form-select__option.is-selected {
	background: rgba(32, 128, 201, 0.12);
	color: var(--wd-primary-color, #2080c9);
	font-weight: 600;
}

.peptide-form-select__trigger.is-invalid {
	border-color: #e53935;
	box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

@media (max-width: 640px) {
	.peptide-modal-split {
		grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	}

	.peptide-modal-split__aside {
		padding: 28px 18px 24px;
	}

	.peptide-modal-split__main {
		padding: 48px 20px 24px;
	}

	.peptide-modal-split__mark {
		width: 44px;
		height: 44px;
		font-size: 18px;
	}

	.peptide-modal-split__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		margin-bottom: 10px;
	}

	.peptide-modal-split__lead {
		display: none;
	}

	.peptide-wholesale-form__row--2 {
		grid-template-columns: 1fr;
	}
}
