_contacts.scss 4.78 KB
.contacts-top {
    position: relative;
    padding-bottom: 200px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;


    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(3, 9, 15, 0.6);

    }

    &__wrap {
        position: relative;
    }
}

.contacts-middle {
    padding-bottom: 60px;

    @media (min-width: 1200px) {
        padding-bottom: 100px;
    }

    &__wrap {
        position: relative;
        min-height: 558px;
        margin-top: -140px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0px 4px 36px rgba(14, 56, 94, 0.04), 0px 4px 16px rgba(14, 56, 94, 0.04);
        background-color: $white;

        @media (min-width: 780px) {
            display: flex;
        }
    }
}

.contacts {

    &__cnt {
        max-width: 500px;
    }

    &__title {
        margin-bottom: 12px;
    }

    &__descr {
        max-width: 380px;
        color: $white;
        font-size: 16px;
        line-height: 22px;
        font-weight: 500;
    }

    &__feedback {
        position: relative;
        z-index: 5;

        @media (min-width: 780px) {
            width: 721px;
        }
    }

    &__form {
        padding: 40px 20px 60px;

        @media (min-width: 1024px) {
            padding: 40px 67px 60px 60px;
        }

        &.hidden {
            opacity: 0;
            visibility: hidden;
        }
    }

    &__caption {
        margin-bottom: 30px;
        font-size: 20px;
        line-height: 30px;
        font-weight: 700;

        @media (min-width: 1200px) {
            margin-bottom: 40px;
        }
    }

    &__fields {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 16px;
        margin-bottom: 40px;

        @media (min-width: 1200px) {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    &__field {

        input,
        textarea {
            border-color: #CDCECF;
        }

        textarea {
            height: 110px;
        }

        &:last-child {

            @media (min-width: 1200px) {
                grid-column: span 2;
            }
        }
    }

    &__btn {
        width: 100%;
        margin-bottom: 16px;
        padding: 12px;

        @media (min-width: 480px) {
            width: auto;
            padding: 12px 38px;
        }

        &.btn-animate {
            animation: btn-animate 0.5s linear infinite;
            background-size: 30px 30px;
            background-image: linear-gradient(45deg, rgba($white, 0.3) 25%, transparent 25%, transparent 50%, rgba($white, 0.3) 50%, rgba($white, 0.3) 75%, transparent 75%, transparent);
        }
    }

    &__confirm {
        max-width: 525px;
        color: #9A9C9F;
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;

        a {
            text-decoration: underline;
        }
    }

    &__info {
        padding: 40px 20px 80px;
        background-color: #EDF7FF;

        @media (min-width: 780px) {
            width: 495px;
        }

        @media (min-width: 1024px) {
            padding: 40px 50px;
        }
    }

    &__items {
        margin-bottom: 40px;
    }
}

@keyframes btn-animate {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 60px 30px;
    }
}

.contacts-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 50px;
    opacity: 0;
    visibility: hidden;
    text-align: center;
    background-color: $blue;
    transition: .3s;

    &.active {
        opacity: 1;
        visibility: visible;
    }

    &__logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 96px;
        height: 96px;
        margin: 0 auto 30px;
        border-radius: 50%;
        background-color: $white;
        filter: drop-shadow(0px 4px 24px rgba(14, 51, 81, 0.12));

        svg {
            stroke: $blue;
        }
    }

    &__title {
        color: $white;
        font-size: 36px;
        line-height: 48px;
        font-weight: 800;
        margin-bottom: 12px;
    }

    &__descr {
        color: $white;
        font-size: 18px;
        line-height: 24px;
        font-weight: 500;
        text-align: center;
    }
}

.contacts-item {

    &__caption {
        margin-bottom: 4px;
        color: #686B6F;
        font-size: 12px;
        line-height: 18px;
        font-weight: 600;
        text-transform: uppercase;
    }

    &__contact {
        font-size: 16px;
        line-height: 22px;
        font-weight: 500;
        font-style: normal;
    }

    &:not(:last-child) {
        margin-bottom: 20px;
    }
}