@font-face {
    font-family: Montserrat;
    src: url(../fonts/Montserrat/static/Montserrat-Regular.ttf);
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url(../fonts/Montserrat/static/Montserrat-Medium.ttf);
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url(../fonts/Montserrat/static/Montserrat-Bold.ttf);
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: Play;
    src: url(../fonts/Play-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: Play;
    src: url(../fonts/Play-Bold.ttf);
    font-weight: 700;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    visibility: visible;
}
.form.form-status--success,
.form.form-status--error {
    visibility: hidden;
    display: none;
}

.form__label {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.form__item-container {
    position: relative;
    display: inline-block;
    width: 100%;
}
.form__type--checkbox {
	align-items: start;
}
.form__type--checkbox .form__item-container {
    width: auto;
}

.form__item {
    background: #fff;
    backdrop-filter: blur(25px);
    border-radius: 10px;
    border: 0;
    width: 100%;
    height: 64px;
    padding: 20px;
    color: #838282;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    padding-right: 48px;
}
.form__item[type="checkbox"] {
	width: 22px;
	padding: 0;
	height: 22px;
}
.form__item[type="file"]::-webkit-file-upload-button {
    display: none;
}

.form__item[type="date"] {
    padding-right: 15px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"%3E%3Cpath d="M14 5.86665V11.4666C14 12.5868 14 13.1468 13.782 13.5746C13.5903 13.951 13.2843 14.2569 12.908 14.4487C12.4802 14.6666 11.9201 14.6666 10.8 14.6666H5.2C4.0799 14.6666 3.51984 14.6666 3.09202 14.4487C2.71569 14.2569 2.40973 13.951 2.21799 13.5746C2 13.1468 2 12.5868 2 11.4666V5.86665M14 5.86665C14 4.74654 14 4.18649 13.782 3.75867C13.5903 3.38234 13.2843 3.07638 12.908 2.88463C12.4802 2.66665 11.9201 2.66665 10.8 2.66665H5.2C4.0799 2.66665 3.51984 2.66665 3.09202 2.88463C2.71569 3.07638 2.40973 3.38234 2.21799 3.75867C2 4.18649 2 4.74654 2 5.86665M14 5.86665V6.66665H2V5.86665M10.6667 1.33331V3.99998M5.33333 1.33331V3.99998" stroke="%23B9A8D0" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
    background-size: 16px;
    background-position: calc(100%) center;
    background-origin: content-box;
    background-repeat: no-repeat;
}

.form__item[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
}

.form__item::placeholder {
    color: #fff;
}

.form__item option {
    color: #000;
}

.form__item ~ .form__tooltip {
    position: absolute;
    z-index: 1000;
    left: 50%;
    top: 120%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    transition-duration: 0.2s;
    font-size: 0.675rem;
    background-color: #828282;
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    max-width: 100%;
}

.form__item:hover ~ .form__tooltip {
    opacity: 1;
    display: block;
}

.form__text,
.form__text * {
    display: inline;
    font-weight: 400;
    min-width: 210px;
    color: #838282;
    font-size: 18px;
    line-height: 24px;
}

.form__name--confirmation .form__item {
    display: none;
}
.form__name--confirmation .form__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}
.form__name--confirmation .form__inner::before {
    content: "";
    display: flex;
    min-width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #fff;
}
.form__name--confirmation .form__item:checked + .form__inner::before {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADnSURBVHgBrZWBDYIwEEXvDAPoBjiBuoFMoBvIJs7ABOoExglkBSdAJ8AN8H88EmJSaQs/+Tkaco+7Nj1UTE3TbBFW8ELCVMM3VX1yMTPYEeEKLyVcG/hujBaWwhWjRMoYNbtkhXu47EqOkeVe4DWBc/gl4/UmayYTKxqI/TpMBgTshJBNAjQYzkFzb6CrnSGYEwhllhwEcwItSTuoL8wJ/IFWvjAq+feSEABzxLN4avCUQ2BewFAR2N5BGa+0ZXHk2OhJJVL9EZhgj0o8FPIdkqWETx52x4tQcIxp/ysIO4n7BTxYGBcf2Dp87NH3xncAAAAASUVORK5CYII");
    background-repeat: no-repeat;
    background-position: center center;
}
.form__name--confirmation .form__text a {
    text-decoration: underline;
    text-decoration-skip-ink: none;
}
.form__name--confirmation .form__text a:hover {
    text-decoration: none;
}

.form__clear {
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'><path fill-rule='evenodd' clip-rule='evenodd' d='M8 16C12.4183 16 16 12.4182 16 8C16 3.5818 12.4183 0 8 0C3.58172 0 0 3.5818 0 8C0 12.4182 3.58172 16 8 16ZM11.5442 4.45588C11.8382 4.74977 11.8382 5.22656 11.5442 5.52068L9.06483 8L11.5442 10.4793C11.8382 10.7734 11.8382 11.2502 11.5442 11.5441C11.2501 11.8382 10.7734 11.8382 10.4793 11.5441L8 9.0648L5.52065 11.5441C5.22662 11.8382 4.74989 11.8382 4.45582 11.5441C4.16179 11.2502 4.16179 10.7734 4.45582 10.4793L6.93517 8L4.45582 5.52068C4.16179 5.22656 4.16179 4.74977 4.45582 4.45588C4.74986 4.16176 5.22659 4.16176 5.52065 4.45588L8 6.9352L10.4793 4.45588C10.7734 4.16176 11.2501 4.16176 11.5442 4.45588Z' fill='white' fill-opacity='0.6'/></svg>");
    background-repeat: no-repeat;
    background-position: 0 0;
    position: absolute;
    right: 20px;
    display: none;
}
.form__clear.show {
    display: inline-block;
}

.form__btn {
    min-width: 100%;
    width: 100%;
    height: 48px;
    padding: 12px 24px;
    background-image: linear-gradient(272deg, #F45825 0%, #FF9625 99.76%);
    /* box-shadow: 0px 0px 20px rgba(0, 25, 240, 0.5), 0px 0px 40px rgba(240, 0, 250, 0.5); */
    backdrop-filter: blur(25px);
    border-radius: 90px;
    outline: none;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: #FFFFFF;
    transition-property: background;
    transition-timing-function: ease-in-out;
    transition-duration: 0.3s, 0.3s, 0.2s;
    margin: 0 auto;
    /* margin-bottom: 1rem; */
}

.form__btn:hover {
    padding: 10px 24px;
    background-image: none;
    background-color: #fff;
    color: #302F2E;
    border: 2px solid #302F2E;
}

.form__btn:disabled {
		color: #fff;
    background-image: none;
    background-color: #D7D7D7;
    border: 0;
    opacity: .7;
    cursor: not-allowed;
}

.form__btn:disabled:hover {
    background-color: #D7D7D7;
}

.form__btn__content--submitted .spinner {
	display: none;
}

.form-status--processing .form__btn {
    visibility: hidden;
}

.form__error {
    position: absolute;
    font-size: 12px;
    color: #f00;
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    line-height: normal;
    text-align: center;
}

.form__error--global {
    position: relative;
    transform: none;
    left: auto;
    bottom: auto;
}

.form__container--success,
.form__container--error {
    visibility: hidden;
    color: white;
    text-align: center;
}
.form__container--success.form__container--show,
.form__container--error.form__container--show {
    visibility: visible;
		padding-top: 1em;
}

.form__container--success > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form__item-select {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"%3E%3Cpath d="M6 9L12 15L18 9" stroke="%23B9A8D0" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E'); /* Кастомная стрелка */
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 24px;
}

.form__item-select::-ms-expand {
    display: none;
  }

@media(max-width: 600px) {
    .form {
        gap: 20px;
    }
    .form__label {
        flex-direction: column;
        align-items: flex-start;
    }
    .form__text {
        width: 90%;
        padding: 0;
        font-size: 16px;
    }
    .form__clear {
        top: calc(50% + 8px);
    }

    .form__error {
        left: 0;
    }
}
