.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 60;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
    visibility: hidden;
    pointer-events: none;
    transition: .4s ease;
}

.popup._active {
    background: rgba(0, 0, 0, 0.403);
    transition: .4s ease;
    visibility: visible;
    pointer-events: all;
}

.popup-body {
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup._active .popup-container,
.popup._active .popup-container-thanks,
.popup._active .popup-container-modal {
    transform: scale(1);
    transition: .4s ease;
    opacity: 1;
}

.popup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1334px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    transform: scale(0);
    transition: .4s ease;
    opacity: 0;
    width: 100%;
    height: auto;

    & img {
        cursor: pointer;
        display: block;
        max-width: 100%;
        height: 100%;
    }
}

.popup-close-time {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 0%;
    right: 0%;
    background-color: transparent;
    cursor: pointer;

    @media(max-width:500px) {
        right: 5%;
    }

}

.popup-container-thanks {
    transform: scale(0);
    transition: .4s ease;
    position: relative;
    padding: 53px 28px 10px 34px;
    box-sizing: border-box;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.5);
    min-height: 520px;
    background-color: #fff;
    max-width: 796px;
    width: 100%;
    border-radius: 20px;

    & h2 {
        font-weight: 700;
        color: rgba(53, 150, 160, 1);
        font-size: 32px;
        text-transform: uppercase;
        line-height: 45px;
        margin-bottom: 20px;

        @media(max-width:600px) {
            font-size: 20px;
            line-height: 25px;
            margin-bottom: 15px;

        }

        & span {
            display: block;
        }
    }

    & p {
        text-transform: uppercase;
        font-weight: 500;
        font-size: 22px;
        line-height: 35px;

        @media(max-width:600px) {
            font-size: 17px;
            line-height: 20px;
            margin-bottom: 15px;
        }
    }
}

@media(max-width:600px) {
    .popup-container-thanks {
        min-height: 320px;
        padding: 20px;
    }
}


.popup-container-img01,
.popup-container-img02 {
    position: absolute;
}

.popup-container-img01 {
    max-width: 400px;
    height: 356px;
    bottom: -34px;
    left: 0;

    @media(max-width:1000px) {
        max-width: 300px;
        height: 180px;
        left: -50px;

    }
}

.popup-container-img02 {
    max-width: 284px;
    height: 188px;
    right: 28px;
    bottom: 29px;

    @media(max-width:1000px) {
        max-width: 164px;
        height: 150px;
        bottom: 0;
    }
}

.close-thanks-popup {
    position: absolute;
    top: 17px;
    right: 19px;
    width: 42px;
    height: 38px;
    cursor: pointer;

    & svg {
        width: 100%;
        height: 100%;
    }

    @media(max-width:600px) {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 28px;
    }
}

.popup-container-modal {
    transform: scale(0);
    transition: .4s ease;
    position: relative;
    padding: 35px;
    box-sizing: border-box;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.5);
    min-height: 520px;
    background-color: #fff;
    max-width: 796px;
    width: 100%;
    border-radius: 20px;

    @media(max-width:600px) {
        font-size: 20px;
        padding: 20px;
    }
}

.popup-container-modal img {
    left: -130px;
}

.popup-container-modal h2 {
    font-weight: 700;
    color: rgba(53, 150, 160, 1);
    font-size: 32px;
    text-transform: uppercase;
    line-height: 45px;
    margin-bottom: 15px;
    text-align: center;

    @media(max-width:600px) {
        font-size: 20px;

    }

}
.popup-container-modal p {
    text-transform: uppercase;
        font-weight: 500;
        font-size: 22px;
        line-height: 35px;
        text-align: center;
        margin-bottom: 20px;

        @media(max-width:600px) {
            font-size: 17px;
            line-height: 20px;
            margin-bottom: 15px;
        }
}
.form-popup-container{
    margin: 0 auto;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    & form {
       display: flex;
       flex-direction: column;
       gap: 20px;
       flex: 0 1 300px;
    }
}
.form-popup-container__label{
    border-radius: 15px;
    flex: 0 1 50px;
    border: 1px solid rgba(57, 156, 166, 1);
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    & input {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
        background: none;
        border: none;
        padding-left: 20px;
        box-sizing: border-box;
        font-family: 'Open sans';
        font-size: 15px;
    }
}
.form-popup-container button {
    flex: 0 1 50px;
    border-radius: 10px;
    width: 100%;
  background: rgba(247, 244, 84, 1);
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: 0px 10px 10px 0px rgba(113, 113, 113, 0.5);
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
}
.form-popup-container span {
    font-size: 15px;
}