:root {
    --popup-trs: .4s
}

.overflow-hidden {
    overflow: hidden
}

.popup-custom.popup__appointment .popup__inner {
    display: flex;
    flex-direction: row;
    align-items: stretch
}

.popup-custom {
    position: fixed;
    inset: 0;
    z-index: 300;
    pointer-events: none
}

.popup-custom.active {
    pointer-events: all
}

.popup__inner {
    height: 100%
}

.popup-custom.popup__result .popup__inner {
    justify-content: center
}

.popup__result.success .error-message {
    display: none
}

.popup__result.success .success-message,
.popup__result.error .error-message {
    display: block
}

.popup__result.error .success-message {
    display: none
}

.popup__result .popup__body>div {
    flex-direction: column
}

.popup__body {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch
}

.popup__body>div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%
}

.popup-close {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 32px;
    border-radius: 60px;
    background: var(--dark-10);
    box-shadow: 0 0 30px #2a30471a
}

.popup-close svg {
    display: block
}

.popup-close path {
    transition: fill var(--trs-out)
}

.notouch .popup-close:hover path {
    fill: var(--color-90);
    transition: fill var(--trs-in)
}

.popup-close {
    cursor: pointer
}

.popup-custom.active .popup-overlay {
    opacity: 1;
    bottom: 0;
    transition: opacity var(--popup-trs), bottom 0s 0s;
    pointer-events: all
}

.popup-custom.active .popup-content {
    transform: translate(0)
}

@media (max-width: 767px) {
    .popup-custom .popup-content {
        transform: translate(0)
    }
    .popup-custom.active .popup__inner {
        transform: scale(1);
        opacity: 1
    }
    .popup-close {
        top: 12px;
        width: 32px;
        height: 32px;
        box-shadow: none
    }
    .popup-close svg {
        width: 100%;
        height: 100%
    }
}

.popup-custom.active .popup__inner {
    transform: translate(0);
    transition: transform var(--popup-trs) cubic-bezier(.25, 1, .5, 1), opacity var(--popup-trs) cubic-bezier(.25, 1, .5, 1)
}

.popup-overlay {
    background: #0006;
    opacity: 0;
    position: fixed;
    inset: 0 0 100%;
    z-index: 25;
    transition: opacity var(--popup-trs), bottom 0s var(--popup-trs)
}

.popup-content {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 25;
    width: 100%;
    height: 100%;
    max-width: 653px;
    display: block;
    transform: translate(100%);
    overflow: clip;
    --padding: 32px;
    --padding-offset: -32px;
    transition: transform var(--popup-trs), opacity var(--popup-trs)
}

@media (max-width: 767px) {
    .popup-content {
        --padding: 48px 16px 8px 16px;
        max-width: none
    }
}

.popup__hidden {
    display: none
}

.popup__back {
    background: #0006;
    opacity: 0;
    position: fixed;
    inset: 0 0 100%;
    z-index: 25;
    transition: opacity var(--popup-trs), bottom 0s var(--popup-trs)
}

.popup__back._popup-show {
    opacity: 1;
    bottom: 0;
    transition: opacity var(--popup-trs), bottom 0s 0s;
    pointer-events: auto
}

.popup__back._popup-show._secondary {
    opacity: 0
}

.popup {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 25;
    width: 100%;
    max-width: 653px;
    display: none
}

.popup._show {
    display: block
}

.popup {
    overflow: clip;
    --padding: 32px;
    --padding-offset: -32px
}

.popup__inner {
    min-height: 100svh;
    padding: var(--padding);
    background: var(--dark-10);
    border-radius: var(--bdrs) 0 0 var(--bdrs);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translate(101%);
    transition: transform var(--popup-trs)
}

.popup__close-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    z-index: 10;
    padding: 32px
}

.popup__close {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 32px;
    border-radius: 60px;
    background: var(--dark-10);
    box-shadow: 0 0 30px #2a30471a
}

.popup__close svg {
    display: block
}

.popup__close path {
    transition: fill var(--trs-out)
}

.notouch .popup__close:hover path {
    fill: var(--color-90);
    transition: fill var(--trs-in)
}

.popup__close {
    cursor: pointer
}

.popup {
    transition: transform var(--popup-trs), opacity var(--popup-trs)
}

.popup._popup-show .popup__inner {
    transform: translate(0);
    transition: transform var(--popup-trs) cubic-bezier(.25, 1, .5, 1), opacity var(--popup-trs) cubic-bezier(.25, 1, .5, 1)
}

.popup._secondary {
    transition: none !important
}

@media (max-width: 767px) {
    .popup {
        max-width: none
    }
    .popup__inner {
        transform: scale(.5);
        opacity: 0
    }
    .popup._popup-show .popup__inner {
        transform: scale(1);
        opacity: 1
    }
    .popup {
        --padding: 48px 16px 8px 16px
    }
    .popup__inner {
        border-radius: var(--bdrs)
    }
    .popup__close-wrapper {
        padding: 12px 16px
    }
    .popup__close {
        top: 12px;
        width: 32px;
        height: 32px;
        box-shadow: none
    }
    .popup__close svg {
        width: 100%;
        height: 100%
    }
}

.form__join {
    height: 100%;
    padding-top: 82px
}

@media (max-width: 767px) {
    .form__join {
        padding-top: 0
    }
}

.form__join .form__appointment-agreement {
    margin-bottom: 24px
}

@media (max-width: 767px) {
    .form__join .form__appointment-agreement {
        margin-bottom: 16px
    }
}

.form__join .form__input {
    height: 56px
}

.popup-join__body {
    margin-top: auto
}

.popup-join__body .form__appointment-inputs {
    margin: 44px 0
}

@media (max-width: 767px) {
    .popup-join__body .form__appointment-inputs {
        margin: 16px 0 !important
    }
}

.popup-join__body textarea.form__input {
    min-height: 140px;
    height: auto;
    padding: 16px 28px;
    resize: vertical;
    overflow: auto
}

.popup-join__body .popup-join__title {
    color: var(--dark-90);
    text-align: center;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
    margin-bottom: 12px
}

@media (max-width: 767px) {
    .popup-join__body .popup-join__title {
        font-size: 26px;
        font-style: normal;
        font-weight: 600;
        line-height: 32px;
        margin-bottom: 8px
    }
}

.popup-join__body .popup-join__description {
    color: var(--dark-50);
    text-align: center;
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    opacity: .9
}

@media (max-width: 767px) {
    .popup-join__body .popup-join__description {
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 26px
    }
}

.popup-join__body .form__appointment-inputs {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 16px
}

.input-file {
    display: none
}

.input-file__label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer
}

.input-file__label_title {
    color: #282a2f;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 2px
}

.input-file__label_description {
    color: #8b94a8;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px
}

.input-file__label .input-file__name {
    margin-left: 20px
}

.form__join-btns {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: auto
}

.popup-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto
}

.popup-wrapper>div {
    display: block;
    height: 100%
}

.popup-join__content {
    display: flex;
    flex-direction: column;
    height: 100%
}

.popup-doctor-filter .popup__title {
    color: #1b3550;
    font-size: 26px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
    margin-bottom: 16px
}

.popup-doctor-filter .popup__content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 48px);
    justify-content: space-between
}

.popup-doctor-filter .doctors-search,
.popup-doctor-filter .doctors-select {
    width: 100%;
    margin: 0 0 12px
}

.popup-doctor-filter .input-select__wrap {
    border-radius: unset;
    box-shadow: unset;
    max-height: unset
}

.popup-doctor-filter .doctors-filter__button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin-bottom: 20px
}

.popup-doctor-filter .filter-reset {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 12px
}

.popup-doctor-filter .popup-close {
    width: unset;
    height: unset;
    background: unset;
    box-shadow: unset
}