/* Popup-анкета Tantino — премиум, цвет #AF9F8C */

/*
 * FIX weber: body.modal-open .modal { display:flex !important }
 * из-за этого при открытии анкеты ВСПЛЫВАЛ и #popup-halfbg-form (вход).
 * Показываем только модалку с классом .show
 */
body.modal-open .modal {
	display: none !important;
}
body.modal-open .modal.show {
	display: -webkit-box !important;
	display: -ms-flexbox !important;
	display: flex !important;
}

/* Окно шире: ~1100–1140px (перебиваем bootstrap.weber .modal-lg) */
#popup-subscribe-form {
	z-index: 11060 !important;
	pointer-events: auto !important;
}
#popup-subscribe-form.show {
	display: -webkit-box !important;
	display: -ms-flexbox !important;
	display: flex !important;
}
/* вход не перекрывает анкету */
#popup-halfbg-form {
	z-index: 1050 !important;
}
#popup-halfbg-form:not(.show) {
	display: none !important;
}
#popup-subscribe-form .modal-dialog,
#popup-subscribe-form .modal-dialog.modal-lg,
#popup-subscribe-form .popup-anketa-dialog {
	max-width: 1140px !important;
	width: 96% !important;
	pointer-events: auto !important;
	z-index: 2101;
}

.popup-anketa-modal {
	overflow: hidden;
	border: 0;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
	pointer-events: auto !important;
	position: relative;
	z-index: 2;
}
/* фон weber не перехватывает клики */
#popup-subscribe-form .bg-wrap,
#popup-subscribe-form .bg {
	pointer-events: none !important;
	z-index: 0 !important;
}
/* форма кликабельна (не ломаем layout у radio — без position:relative на всех label) */
#popup-subscribe-form .popup-anketa-form-col,
#popup-subscribe-form .popup-anketa-inner,
#popup-subscribe-form .popup-anketa-form {
	pointer-events: auto !important;
	position: relative;
	z-index: 3;
}
#popup-subscribe-form .form-control,
#popup-subscribe-form button {
	pointer-events: auto !important;
	position: relative;
	z-index: 4;
}
#popup-subscribe-form .popup-anketa-visual {
	position: relative;
	z-index: 1;
	pointer-events: none;
}

.popup-anketa-close {
	z-index: 5;
	opacity: 0.55;
	padding: 16px;
}
.popup-anketa-close:hover { opacity: 1; }
.popup-anketa-close .icon { fill: #444; }

.popup-anketa-visual {
	min-height: 420px;
	background-size: cover;
	background-position: center;
	position: relative;
}
.popup-anketa-visual-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(0,0,0,0.35) 0%, rgba(175,159,140,0.75) 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px;
	text-align: center;
	color: #fff;
}
.popup-anketa-badge {
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 64px;
	font-weight: 300;
	letter-spacing: 4px;
	line-height: 1;
}
.popup-anketa-visual-text {
	margin: 8px 0 0;
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 14px;
	font-weight: 500;
}
.popup-anketa-visual-sub {
	margin: 16px 0 0;
	font-size: 13px;
	opacity: 0.9;
	letter-spacing: 1px;
}

.popup-anketa-form-col {
	background: #fff;
}
.popup-anketa-inner {
	padding: 36px 32px 32px;
}
@media (max-width: 767px) {
	.popup-anketa-inner {
		padding: 40px 20px 24px;
	}
	#popup-subscribe-form .modal-dialog {
		margin: 0.5rem;
	}
}

.popup-anketa-eyebrow {
	font-size: 11px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: #AF9F8C;
	margin: 0 0 10px;
	font-weight: 600;
}
/* title: bootstrap .light h3 ~35px — нужен !important + id */
/* desktop 18px, mobile 14px */
#popup-subscribe-form h3.popup-anketa-title,
#popup-anketa-title.popup-anketa-title,
.light h3.popup-anketa-title {
	font-family: 'IBM Plex Sans', sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	color: #555 !important;
	margin: 0 0 16px !important;
	padding: 0 !important;
	text-transform: none !important;
	letter-spacing: 0.15px !important;
}
@media (max-width: 767px) {
	#popup-subscribe-form h3.popup-anketa-title,
	#popup-anketa-title.popup-anketa-title,
	.light h3.popup-anketa-title {
		font-size: 14px !important;
	}
}

/* Телефон + email в ряд на desktop */
.popup-anketa-contact-row {
	margin-left: -8px !important;
	margin-right: -8px !important;
	margin-top: 6px !important;
	margin-bottom: 0 !important;
	clear: both;
}
.popup-anketa-contact-row > [class*="col-"] {
	padding-left: 8px;
	padding-right: 8px;
}
@media (min-width: 768px) {
	.popup-anketa-contact-row .form-group {
		margin-bottom: 14px;
	}
}

.popup-anketa-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #888;
	margin-bottom: 6px;
	font-weight: 500;
}
.popup-anketa-form .form-control {
	border: 1px solid #e5e2dc;
	border-radius: 0;
	height: 44px;
	font-size: 14px;
	color: #222;
	background: #faf9f7;
	transition: border-color 0.2s, background 0.2s;
}
.popup-anketa-form .form-control:focus {
	border-color: #AF9F8C;
	background: #fff;
	box-shadow: none;
}
.popup-anketa-form .form-group {
	margin-bottom: 16px;
	clear: both;
	float: none;
	width: 100%;
	display: block;
}

/* Пол — отдельный блок, не сливается с телефоном/email */
.popup-anketa-form .popup-anketa-gender-group {
	margin-bottom: 20px !important;
	padding-bottom: 4px;
}
.popup-anketa-gender {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-ms-flex-direction: row;
	flex-direction: row;
	-ms-flex-wrap: nowrap;
	flex-wrap: nowrap;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
}
.popup-anketa-radio {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 50%;
	flex: 1 1 50%;
	margin: 0 !important;
	padding: 0 !important;
	cursor: pointer;
	position: relative;
	display: block;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	line-height: normal;
}
.popup-anketa-radio input[type="radio"] {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}
.popup-anketa-radio span {
	display: block;
	text-align: center;
	padding: 11px 10px;
	min-height: 42px;
	line-height: 20px;
	border: 1px solid #e5e2dc;
	background: #faf9f7;
	font-size: 13px;
	color: #555;
	-webkit-transition: border-color 0.2s, background 0.2s, color 0.2s;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
.popup-anketa-radio input:checked + span,
.popup-anketa-radio input[type="radio"]:checked + span {
	border-color: #AF9F8C;
	background: #AF9F8C;
	color: #fff;
}

.popup-anketa-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: #999;
	line-height: 1.4;
}

.popup-anketa-checks .checkbox {
	display: flex;
	align-items: flex-start;
	margin: 0;
	cursor: pointer;
}
.popup-anketa-checks .checkbox .check {
	margin-top: 3px;
	margin-right: 8px;
	flex-shrink: 0;
}
.popup-anketa-checks .lbl {
	line-height: 1.4;
}
.popup-anketa-checks .lbl a {
	color: #AF9F8C;
	text-decoration: underline;
}

.popup-anketa-submit {
	margin-top: 8px;
	padding: 12px 16px;
	letter-spacing: 1.5px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 0;
	border: none;
	background: #AF9F8C !important;
	color: #fff !important;
}
.popup-anketa-submit:hover,
.popup-anketa-submit:focus {
	background: #9a8b78 !important;
	color: #fff !important;
}
.popup-anketa-submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.popup-anketa-msg {
	padding: 10px 12px;
	margin-bottom: 12px;
	font-size: 13px;
	line-height: 1.4;
}
.popup-anketa-msg.is-error {
	background: #fdf2f2;
	color: #a33;
	border-left: 3px solid #c55;
}
.popup-anketa-msg.is-ok {
	background: #f4f8f0;
	color: #3a6b2a;
	border-left: 3px solid #6a9a4a;
}

.popup-anketa-success {
	text-align: center;
	padding: 20px 0 8px;
}
.popup-anketa-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #AF9F8C;
	color: #fff;
	font-size: 28px;
	line-height: 56px;
}
.popup-anketa-success-text {
	font-size: 15px;
	color: #333;
	line-height: 1.5;
}
