.modal {
    width: 600px;
    /* height: 350px; */
    height: 370px;
    padding: 0;
    background-color: #fff;
    background-size: cover;

    display: none;
}

#modal-callback {
    background-image: url(../img/modal-bg.webp);
}

.modal-secondary {
    width: 412px;
    height: 244px;
}

.modal__svg-bg {
    position: absolute;
    z-index: -1;
    left: 0;
    /* top: 38%; */
    /* width: 100%; */
    height: auto;
    transform: rotate(270deg);
    width: 330px;
    left: -130px;
    top: 42%;
}

.modal__inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    justify-content: center;
    gap: 20px;
    padding: 25px;
}

.modal-secondary .modal__inner {
    padding-bottom: 60px;
    text-align: center;
}

.modal__logo {
    width: 138px;
}

.modal__logo svg {
    width: 100%;
}

.modal__heading {
    font-size: 29px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--accent);
}



.modal__heading span {
    color: var(--accent);
    font-weight: 700;
}

.modal-secondary .modal__heading {
    font-size: 24px;
}

.modal__text {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
    font-size: 20px;
    line-height: 1.3;
}

#modal-callback .modal__text {
    font-weight: 600;
}

.modal__text span {
    opacity: .5;
}

.modal-secondary .modal__text {
    font-weight: 600;
}

.modal__form {
    /* display: grid;
    grid-template-columns: 1fr 1fr; */
    display: flex;
    flex-direction: column;
    max-width: 260px;
    margin: 0 auto;
    gap: 18px;
}

.text-call-modal {
    max-width: 210px;
    font-size: 10px;
    margin: 0 auto;
}

.phone-call-modal {
    font-size: 15px;
    margin: 0 auto;
    font-weight: 700;
}

#modal-trade-in .input[name="name"]::placeholder,
#modal-trade-in .input[name="phone"]::placeholder {
    color: var(--black);
}

@media screen and (max-width: 620px) {
    .modal {
        width: 100%;
        /* max-width: 320px; */
        height: 285px;
    }

    .modal__svg-bg {
        transform: rotate(270deg);
        width: 260px;
        left: -105px;
        top: 45%;
    }

    .modal-secondary {
        height: 185px;
    }

    #modal-trade-in {
        height: 255px;
    }

    .modal__inner {
        padding: 15px;
        gap: 10px;
    }

    .modal-secondary .modal__inner {
        padding-bottom: 40px;
    }

    .modal__logo {
        width: 120px;
    }

    .modal__heading {
        font-size: 18px;
    }

    .modal-secondary .modal__heading {
        font-size: 18px;
    }

    .modal__text {
        font-size: 12px;
    }

    .modal-secondary .modal__text {
        flex: unset;
        font-size: 15px;
    }

    .modal__form {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        max-width: 190px;
    }

    #modal-trade-in .modal__form .input,
    #modal-trade-in .modal__form .btn {
        max-width: calc(50% - 5px);
    }
}