/* Поля для ввода номера телефона */
.phoneFieldBlock {
    position: relative;
    height: 70px;
    min-width: 320px;
}
.phoneFieldBlock__field {
    position: relative;
}
.phoneFieldBlock__field__input {
    height: 50px;
    font-size: 16px;
    font-weight: 400;
    line-height: 125%;
    background-color: #fff;
    border: 1px solid #fff;
}
.phoneFieldBlock__field__input::placeholder {
    color: var(--text-color-50);
    font-size: 16px;
    font-weight: 400;
    line-height: 125%;
}

.phoneFieldBlock__field__label {
    display: none;
    position: absolute;
    top: -17px;
    left: 0;
    pointer-events: none;
    color: var(--text-color-50);
    white-space: nowrap;
    overflow: hidden;
    font-size: 12px;
    font-weight: 500;
}

.phoneFieldBlock__field__input:focus ~ .phoneFieldBlock__field__label,
.phoneFieldBlock__field__input:not(:focus):valid ~ .phoneFieldBlock__field__label {
    display: block;
}

.phoneFieldBlock__field__icons {
    display: none;
    position: absolute; 
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
}
.phoneFieldBlock__message {
    display: none;
    margin-top: 5px;
    color: var(--red-color);
    font-size: 12px;
    font-weight: 500;
    line-height: 8px;
}

.phoneFieldBlock.phoneFieldBlock_error .phoneFieldBlock__message,
.phoneFieldBlock.phoneFieldBlock_success .phoneFieldBlock__field__icons {
    display: block;
}

.phoneFieldBlock.phoneFieldBlock_error .phoneFieldBlock__field__input {
    border: 1px solid var(--red-color);
}

@media( min-width: 768px ){
    .phoneFieldBlock__field__input:focus,
    .phoneFieldBlock__field__input:hover {
        border: 1px solid var( --yellow-color );
    }

    .phoneFieldBlock.phoneFieldBlock_error .phoneFieldBlock__field__input:hover {
        border: 1px solid var(--red-color);
    }
}
/* ^^^  Поля для ввода номера телефона ^^^ */
