_modals.scss 7.02 KB
.cookies {
    display: none;
    align-items: flex-end;
    padding: 10px;
    padding-top: 0;
    height: 0;
    position: fixed;
    z-index: 999;
    bottom: 0;
    left: 0;
    width: 100%;
    &-is-actived & {
        display: flex;
    }
    &__body {
        border-radius: 6px;
        border: 1px solid $green;
        background: $white;
        padding: 15px;
        padding-right: 50px;
        position: relative;
        max-width: 940px;
        margin: 0 auto;
        @media (min-width: $tablet) {
            padding: 25px;
            padding-right: 50px;
            border-radius: 12px;
        }
        @media (min-width: $laptop) {
            padding: 40px 60px;
        }
    }
    &__close {
        display: flex;
        justify-content: center;
        align-items: center;
        color: $green;
        padding: 0;
        border: none;
        background: none;
        position: absolute;
        top: 15px;
        right: 15px;
        &:hover {
            color: $black;
        }
        svg {
            width: 16px;
            height: 16px;
        }
    }
    &__text {
        font-size: 12px;
        color: $green;
        line-height: 1.4;
        @media (min-width: $tablet) {
            font-size: 16px;
            font-weight: 700;
        }
    }
}

.fancybox {
    &-active {
        overflow: hidden;
    }
    &-is-open &-bg {
        background: #080b0b;
        opacity: 0.6;
        z-index: 9999;
    }
    &-slide {
        padding: 0;
        @media (min-width: $laptop) {
            padding: 30px;
        }
    }
    &-slide--html &-close-small {
        padding: 0;
        opacity: 1;
        color: $green;
        @media (min-width: $tablet) {
            top: 10px;
            right: 10px;
        }
        &:hover {
            color: $black;
        }
    }
}

.modal {
    width: 100%;
    max-width: 820px;
    padding: 0;
    background: $white;
    z-index: 99999;
    @media (min-width: $laptop) {
        border-radius: 10px;
        border: 1px solid $green;
    }
    &_bg {
        background: $white url(../images/bg-4.svg) no-repeat calc(50% + 100px) 100%;
        @media (min-width: $tablet) {
            background-position: 100% 100%;
        }
    }
    &__body {
        padding: 40px 15px;
        padding-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 100vh;
        overflow: hidden;
        font-size: 12px;
        @media (min-width: $tablet) {
            font-size: 16px;
            padding-left: 22px;
            padding-right: 22px;
        }
        @media (min-width: $laptop) {
            min-height: 450px;
            padding: 60px 80px;
            padding-bottom: 40px;
        }
        .left {
            @media (min-width: $tablet) {
                text-align: left;
            }
        }
    }
    &__title {
        width: 100%;
        font-size: 22px;
        font-weight: 700;
        text-align: center;
        color: $black;
        @media (min-width: $tablet) {
            font-size: 32px;
        }
        @media (min-width: $laptop) {
            font-size: 44px;
        }
    }
    &__text {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        color: $black;
        @media (min-width: $tablet) {
            margin-top: 20px;
        }
        span {
            color: #9c9d9d;
        }
        a {
            font-weight: 700;
            color: $green;
            &:hover {
                color: $black;
            }
        }
    }
    &__button {
        margin-top: 20px;
        @media (min-width: $tablet) {
            min-width: 200px;
            margin-top: 30px;
        }
    }
    &__buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 20px;
        @media (min-width: $tablet) {
            gap: 30px;
            margin-top: 30px;
        }
    }
    &__form {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 10px;
        @media (min-width: $tablet) {
            margin-top: 20px;
        }
        &-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            > .input {
                width: 100%;
            }
            > .textarea {
                width: 100%;
                height: 175px;
                @media (min-width: $tablet) {
                    height: 195px;
                }
            }
            > .file {
                width: 100%;
            }
            > .button {
                min-width: 120px;
            }
            > label {
                width: 100%;
                display: none;
                color: $red;
                padding: 0 10px;
                font-size: 12px;
                @media (min-width: $tablet) {
                    padding: 0 20px;
                    font-size: 16px;
                }
            }
        }
    }
    &__sign {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 10px;
        margin-bottom: 20px;
        width: 100%;
        @media (min-width: $tablet) {
            margin-top: 20px;
            margin-bottom: 40px;
        }
        &-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            > .input {
                width: 100%;
                padding-right: 36px;
                position: relative;
                z-index: 1;
                @media (min-width: $tablet) {
                    height: 52px;
                    padding-right: 60px;
                }
            }
            > .textarea {
                width: 100%;
            }
        }
        &-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            &-link {
                font-weight: 700;
                color: $green;
            }
        }
    }
    &__tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 10px;
        @media (min-width: $tablet) {
            gap: 24px;
            margin-top: 20px;
        }
        &-item {
            &.active {
                background: $green;
                color: $white;
            }
        }
    }
    &__reg {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 20px;
        @media (min-width: $tablet) {
            margin-top: 20px;
            margin-bottom: 30px;
            gap: 20px;
        }
        &.showed {
            display: flex;
        }
        &-item {
            width: 100%;
            display: flex;
            flex-direction: column;
            > .captcha {
                width: 100%;
                max-width: 300px;
            }
        }
    }
}