/* Popup overrides to match reference modal */
.fancybox-bg {
	background: rgba(4, 32, 43, 0.7);
}
.fancybox-is-open .fancybox-bg {
	opacity: 1;
}
.fancybox-content {
	padding: 0;
	border-radius: 6px;
}
.fancybox-slide--html {
	padding: 24px;
}

#contact-form-popup {
	max-width: 980px;
	width: 100%;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
}

.contact-form-popup {
	position: relative;
	padding: 28px 32px 24px;
}

.contact-form-popup__title {
	font-size: 28px;
	margin-bottom: 8px;
	line-height: 120%;
	font-weight: 600;
	color: #04202B;
	font-family: 'Raleway';
}

.contact-form-popup__divider {
	height: 1px;
	background: #DBE2E7;
	margin: 12px 0 20px;
}

.contact-form-popup__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #04202B;
	cursor: pointer;
}

.contact-form-popup__close::before {
	content: "×";
	display: block;
	font-size: 22px;
	line-height: 1;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}

.contact-form__field {
	display: flex;
	flex-direction: column;
}

.contact-form__field--full {
	grid-column: 1 / -1;
}

.contact-form__label {
	font-size: 12px;
	margin-bottom: 6px;
	line-height: 140%;
	color: #586A72;
	font-weight: 400;
}

.contact-form__input,
.contact-form__textarea,
.contact-form__input select {
	height: 38px;
	border: none;
	border-bottom: 1px #DBE2E7 solid;
	color: #04202B;
	font-family: 'Segoe UI';
	font-size: 16px;
	letter-spacing: normal;
	width: 100%;
	padding: 0;
	background: transparent;
}

.contact-form__textarea {
	height: auto;
	min-height: 90px;
	resize: vertical;
	padding-top: 8px;
}

.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__input select:focus {
	outline: none;
	border-bottom-color: #04202B;
}

.contact-form__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	font-size: 13px;
	line-height: 140%;
	color: #04202B;
}

.contact-form__checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin-top: 2px;
	cursor: pointer;
	border: 1px solid #DBE2E7;
	border-radius: 2px;
	position: relative;
	flex-shrink: 0;
	background: #fff;
}

.contact-form__checkbox input[type="checkbox"]:checked {
	background: #D11828;
	border-color: #D11828;
}

.contact-form__checkbox input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 6px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.contact-form__checkbox a {
	color: inherit;
	border-bottom: 1px #586A72 solid;
}

.contact-form__submit {
	margin-top: 8px;
}

.contact-form__submit .btn-main {
	border-radius: 4px;
	height: 52px;
	padding: 0 28px;
}

.contact-form__note {
	font-size: 12px;
	line-height: 140%;
	color: #586A72;
}

@media (max-width: 900px) {
	.contact-form__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	#contact-form-popup {
		border-radius: 6px;
	}
	.contact-form-popup {
		padding: 24px 16px 20px;
	}
}
