.modal {
    width: 600px;
    height: 400px;
    padding: 0;
    background-size: cover;
    display: none;
    background-color: unset;
}

#modal-credit {
    background-image: url(../img/modals/modal-credit.webp);
}

#modal-offer {
    background-image: url(../img/modals/modal-offer.webp);
}

#modal-success,
#modal-error {
    background-image: url(../img/modals/modal-success.webp);
}

.modal__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    color: #fff;
    height: 100%;
}

.modal__heading {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.modal__list {
    list-style-type: disc;
    padding-left: 20px;
}

.modal__list-item {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

#modal-offer .modal__list-item {
    font-size: 12px;
}

.modal__form {
    max-width: 410px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal__btn {
    margin-top: 10px;
}

.modal__logo {
    width: 220px;
}

.modal__logo img {
    width: 100%;
}

@media screen and (max-width: 620px) {
    .modal {
        width: 100%;
        max-width: 360px;
        height: 320px;
    }

    #modal-credit {
        background-image: url(../img/modals/modal-credit-mob.webp);
    }
    
    #modal-offer {
        background-image: url(../img/modals/modal-offer-mob.webp);
    }
    
    #modal-success,
    #modal-error {
        background-image: url(../img/modals/modal-success-mob.webp);
    }

    .modal__inner {
        padding: 14px;
    }

    .modal__heading {
        font-size: 20px;
    }

    .modal__list-item {
        font-size: 12px;
    }

    #modal-offer .modal__list {
        display: none;
    }

    .modal__form .input {
        height: 32px;
        font-size: 12px;
    }

    .modal__logo {
        width: 134px;
    }
}