<div class="contacts-btn__block">
<button id="contacts-btn" class="contacts-btn">+7 950 638 8922 <img class="dropdown-arrow" src="../images/header/keyboard_arrow_white.svg" alt="arrow"></button>
<div class="contacts-dropdown-form contacts-dropdown-form__header none">
<form action=""></form>
<input id="phone" class="dropdown-form__inp" type="tel" name="" placeholder="Ваш номер телефона">
<input id="dropdown-form__btn" class="dropdown-form__btn" type="submit" value="Заказать обратный звонок">
</div>
<div class="js__box"></div>
<div id="contacts-dropdown__box" class="contacts-dropdown__box contacts-dropdown__box__header none">
<img src="../images/header/ring_volume.svg" alt=""> Вскоре мы вам перезвоним
</div>
</div>
const contactsBtn = document.querySelectorAll('.contacts-btn');
const contactsDropdownForm = document.querySelectorAll('.dropdown-form__btn');
const dropdownFormBtn = document.querySelectorAll('.dropdown-form__btn');
const contactsDropdownBox = document.querySelector('#contacts-dropdown__box');
for (let elem of contactsBtn){
elem.addEventListener('click', function(){
this.nextElementSibling.classList.toggle('none');
this.classList.toggle('rotate');
})
}
for (let elem of dropdownFormBtn ){
elem.addEventListener('click', function(){
// this.previousElementSibling.classList.toggle('none');
this.nextElementSibling.classList.toggle('none');
console.log(previousElementSibling)
})
}