.modal-form {
    background-color: #fff;
    position: relative;
}

.popup__close-button-container {
    position: absolute;
    right: 60px;
}

.modal-form__title {
    font-family: "Merriweather", serif;
    font-weight: normal;
    max-width: 356px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.modal-form__text {
    color: #ABABAB;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.modal-form__form-group {
    display: block;
    position: relative;
}

.modal-form__input {
    border: 1px solid #c0c0c0;
    outline: none;
    color: #2b2b2b;
    background-color: #fff;
    width: 100%;
    padding: 15px 22px 13px;
    margin-bottom: 0;
    font-size: 14px;
    display: block;
    height: 47px;
}

.modal-form__input.error {
    border-color: red;
}

.modal-form__input.error::placeholder {
    color: #2B2B2B;
}

.close-button-svg {
    cursor: pointer;
}

.burger-menu__checkbox {
    top: 0;
}

.burger-menu__form-group {
    display: block;
    margin-bottom: 8px;
    position: relative;
}

.modal-form--success {
    width: 100%;
    height: 100%;
    background-image: url(img/success.svg);
    background-position: center bottom;
    background-repeat: no-repeat;
    padding-bottom: 190px;
}

@media (min-width: 768px) {
    .modal-form {
        padding: 40px 60px;
        width: 540px;
        margin: 0 auto;
        transform: translateY(-50%);
        top: 50%;
    }

    .modal-form__form-group {
        margin-bottom: 30px;
    }

    .modal-form__title {
        font-size: 24px;
    }

    .modal-form__text {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .modal-form {
        padding: 16px;
        width: 100%;
        height: auto;
        margin: auto 0 0;
        text-align: left;
    }

    .modal-form__form-group {
        margin-bottom: 16px;
    }

    .modal-form__title {
        font-size: 20px;
    }

    .modal-form__text {
        margin-bottom: 16px;
    }

    #sumbit-form-modal {
        margin: 0;
    }
}
