@charset "utf-8";
.content form{
	min-width: 240px;
	width: fit-content;
	max-width: 420px;
	padding: 6px 12px 0 12px;
	border: 2px solid #929ebc;
	background: linear-gradient( 210deg, #373c5980, #00000080);
	border-radius: 8px 0 8px 8px;
}

#contact-form
{
	min-width: 320px;
	margin-bottom: 30px;
	position: sticky;
}

/*** Прелоадер ***/
#contact-form.loading{
	position: sticky;
}

#contact-form.loading .contact-form-preloader{
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-around;
}

#contact-form.loading :not(:first-child){
	visibility: hidden;
}

.contact-form-preloader{
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.contact-form-preloader span {
	width: 100%;
	height: 40px;
	visibility: visible !important;
	background-size: contain;
	background-repeat: no-repeat;
}

.contact-form-preloader-top{
	background-image: url(../icons/option.svg), url(../icons/toolbar.svg);
	background-position: left 12px center, right 12px center;
}

span.contact-form-preloader-middle{
	background-image: url(../icons/form-field.svg);
	background-position: center;
	background-repeat: space;
	height: calc(100% - 90px);
}

.contact-form-preloader-bottom{
	background-image: url(../icons/send.svg);
	background-position: right 12px center;
}

.appel-wrap {
	display: flex;
}

.appel {
	position: relative;
	color: #ebebec;
	padding: 2px 6px;
	background: var(--color-secondaryA);
	text-decoration: none;
	font-weight: lighter;
	text-shadow: 2px 2px 4px black;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
}

.appel::after, .form-faq::after {
	position: absolute;
	display: inline-block;
	content: "";
	box-shadow: 0 0 12px 3px;
	height: 142%;
	transform-origin: top;
}

.appel::after{
	top: 0;
	transform: rotate(-45deg);
	animation: glare-horizontal 5s linear infinite;
}

.form-faq::after {
	right: -21%;
	transform: rotate(60deg);
	animation: glare-vertical 5s linear infinite;
}

#feedback .form-faq::after{
	display:none;
}

.form-alarm {
	visibility: hidden;
	position: absolute;
	background: #187295;
	padding: 6px;
	max-width: 240px;
	transform: translate(-14px, -8px);
	word-break: break-word;
	font-weight: bold;
	cursor: pointer;
	text-align: center;
	font-size: 120%;
	box-shadow: 4px 4px 4px 4px #00000058, inset 3px 2px 5px 0px #00000058;
}

.form-faq {
	position: sticky;
	display: block;
	height: 24px;
	width: 24px;
	float: right;
	margin-right: -38px;
	margin-top: -8px;
	background: var(--color-primaryB);
	text-align: center;
	font-size: 24px;
	line-height: 28px;
	text-decoration: none;
	color: white;
	overflow: hidden;
	border-radius: 0 5px 5px 0;
}

fieldset{
	display: flex;
	flex-direction: column;
	padding: 8px 12px;
	font-size: var(--fs-header);
	font-weight: 700;
	border: 2px solid var(--color-secondaryA);
	margin-bottom: 4px;
}

fieldset.clear {
	border: none;
	flex-direction: row;
	justify-content: space-between;
	margin-bottom: 0;
}

legend {
	font-size: 115%;
	font-weight: normal;
	margin-left: auto;
	margin-right: -4px;
	padding: 0px 4px;
	color: var(--color-secondaryA);
}

select, textarea, input[type="text"], input[type="email"], input[type="tel"], input[type="submit"]{
	padding: 6px 12px;
	margin-bottom: 12px;
	font-size: inherit;
	outline: none;
	border: none;
	width: 100%;
	font-family: "Circe";
}

select{
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-image: url(../icons/select-arrow.svg);
	background-size: 14px;
	background-position: calc(100% - 6px) center;
	background-repeat: no-repeat;
	padding-right: 26px;
}

select option:disabled {
	display: none;
}

textarea {
	max-height: 130px;
	min-height: 36px;
	resize: vertical;
}

input::placeholder, textarea::placeholder {
	font-size: 75%;
	color: var(--color-primaryA);
}

.formHelpLink {
	color: var(--color-secondaryB);
}

.qual-level {
    float: right;
    color: var(--color-secondaryA);
}

.qual-level::after{
	content: "*";
}

.contact-type {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.contact-type p {
	width: 100%;
	text-align: center;
}

#contactMail, #contactPhone, #byPhone, #byMail{
	display: none;
}

#byPhone:checked + #contactPhone, #byMail:checked + #contactMail {
	display: inherit;
}

label {
	margin: 6px;
	cursor: pointer;
	transition: color .4s;
	text-decoration: underline;
}

label.active, label:hover {
	color: var(--color-secondaryB);
}

.formAttachment {
	visibility: hidden;
}

.formAttachment p {
	text-align: center;
}

#atchPropmt a {
	position: sticky;
	text-decoration: none;
	overflow: hidden;
	display: block;
	width: fit-content;
	margin: 0 auto;
}

.hidden {
	display: none;
}

.visible {
	visibility: visible;
	display: inherit;
	flex-direction: column;
}

input[type="submit"] {
	width: fit-content;
	margin: 8px 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	border: 2px solid var(--color-primaryB);
	transition: background .4s;
}

input[type="submit"]:hover {
	background: var(--color-primaryB);
}

input[type="submit"]:disabled {
	background: none;
	color: rgb(109 110 113);
	border-color: inherit;
	cursor: not-allowed;
}

/** Кастомные селекторы **/
.custom-select{
	font-size: var(--fs-header);
}

.service-list-select .custom-select {
	position: sticky;
    font-size: unset;
    z-index: 300;
}

.service-list .custom-select-header {
    white-space: normal;
}

.custom-select-options-wrap{
	display: none;
	position: absolute;
	max-height: 180px;
	overflow: hidden auto;
	width: 100%;
}

.custom-select-header, .custom-select-option {
	width: 320px;
	max-width: 100%;
	padding: 6px 12px;
	cursor: pointer;
}

form .custom-select {
    margin-bottom: 12px;
    width: 100%;
    color: rgb(65 64 66);
    font-weight: normal;
}

form .custom-select-options-wrap {
    box-shadow: 12px 12px 12px 0 #0000005c, -12px 12px 12px 0 #0000009e;
    width: calc(100% - 52px);
    background: white;
}

form .custom-select-option {
	box-shadow: inset 6px 6px 6px -6px #72aee6;
}

form .custom-select-header, form .custom-select-option {
	background-color: white;
	width: 364px;
    max-width: calc(100vw - 52px);
    user-select: none;
}

form .custom-select-header{
	text-overflow: ellipsis;
}

form .custom-select.open .custom-select-header {
    background-color: #c2dcf4;
    border-bottom: 2px solid #1a8de1;
    padding-bottom: 4px;
}

.custom-select-header{
	background: url(../icons/select-arrow.svg) right 9px center no-repeat;
	background-color: white;
	background-size: 16px;
	padding-right: 30px;
	white-space: nowrap;
	overflow: hidden;
}

.service-list-select .custom-select-header{
    background-color: transparent;
}

.custom-select-option:hover{
	background: #1e8fff;
	color: #ebebec;
}

.custom-select-option[is_hidden=true] {
    display: none;
}

.service-list-select .custom-select-header{
	text-align: right;
}

.service-list-select .custom-select-option {
	background: var(--color-primaryA);
}

.service-list-select .custom-select-option:hover{
	background: var(--color-primaryB)
}

/****** Адаптив ******/
@media screen and (max-width: 480px){
	.form-faq {
		background: var(--color-secondaryA);
		transform: translateX(-24px);
		border-radius: 0;
	}

	.content form{
		border-radius: 8px;
	}

	form.loading .form-faq {
	    transform: translate(-24px, -24px);
	    border-radius: 5px 5px 0 0;
	}
}

@media screen and (max-width: 420px){
	.content form{
		border-width: 2px 0;
		border-radius: 0;
	}

	.appel{
		border-top-left-radius: 0;
	}

	form.loading .form-faq {
		border-top-right-radius: 0;
	}
}