/* MODAL PHONE */
[href="#modal-phone"] {
    display: flex;
    align-items: center;
    grid-gap: 10px;
    background: var(--color1);
    padding: 10px 20px;
    border-radius: var(--radius);
    margin: 0 5px;
    cursor: pointer;
}

[href="#modal-phone"]:hover {
    background: var(--color2);
}

@media (max-width: 860px) {
    [href="#modal-phone"] span {
        display: none;
    }
}

.modal-phone {
    display: none;
    position: fixed;
    width: 450px;
    max-width: 450px;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    color: #000;
    border-radius: 20px;
    padding: 50px 60px 20px;
    text-align: center;
    z-index: 9;
}

@media (max-width: 860px) {
    .modal-phone {
        padding: 30px 30px 20px;
        max-width: 360px;
    }
}

.modal-phone > .fa-xmark {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg2);
    border-radius: var(--radius);
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 20px;
    text-align: center;
    cursor: pointer;
}

.modal-phone form h2 + span {
    display: block;
    color: #7d8189;
    font-size: 14px;
    line-height: 1.5;
    margin-top: -20px;
    margin-bottom: 30px;
}

.modal-phone form > span a {
    color: blue;
    text-decoration: underline dotted;
}

.modal-phone_lost {
    display: block;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid #eee;
    color: #8d8d8d;
    padding: 20px 0;
    margin-top: 20px;
}

.modal-phone_copy {
    display: block;
    color: #8d8d8d;
    font-size: 12px;
    margin-top: 30px;
}

.modal-phone_copy > a, .modal-phone_lost > a {
    color: var(--color3);
    text-decoration: underline;
    opacity: 0.9;
}

.modal-phone_back {
    display: block;
    color: var(--color1);
    font-size: 14px;
    margin-top: -20px;
    margin-bottom: 20px;
    text-decoration: underline dotted;
}

.modal-phone_code {
    display: grid;
    grid-gap: 10px;
    grid-auto-rows: max-content;
    grid-template-columns: repeat(4, 40px);
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.modal-phone_code input {
    background: var(--bg2);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
