/*
  Theme Name: Mister Magister
*/

.pupils__univers-item{
  filter: grayscale(1);
  transition: .3s filter;
}
.pupils__univers-item:hover{
  filter: grayscale(0);
}
.teachers__start img{
  height: auto;
}
.connects{
  display: flex;
}
.connects .wpcf7-list-item{
  margin: 0 18px 0 0;
  font-size: 17px;
  color: #152e47;
  font-weight: 300;
  text-align: center;
  cursor: pointer;
  position: relative;
  min-width: 70px;
}
.connects .wpcf7-list-item-label{
  text-decoration: underline;
}
.connects .wpcf7-list-item:hover .wpcf7-list-item-label{
  text-decoration: none;
}
.connects .wpcf7-list-item label{
  cursor: pointer;
}
.connects .wpcf7-list-item input+.wpcf7-list-item-label::before{
  display: block;
  margin: 0 auto 7px;
  width: 50px;
  height: 50px;
  background: center / contain no-repeat;
}
.connects .wpcf7-list-item input[value="Telegram"]+.wpcf7-list-item-label::before{
  background-image: url(images/icons/connect-telegram.png);
}
.connects .wpcf7-list-item input[value="WhatsApp"]+.wpcf7-list-item-label::before{
  background-image: url(images/icons/connect-whatsapp.png);
}
.connects .wpcf7-list-item input[value="Телефон"]+.wpcf7-list-item-label::before{
  background-image: url(images/icons/connect-phone.svg);
}
.connects .wpcf7-list-item input[value="Viber"]+.wpcf7-list-item-label::before{
  background-image: url(images/icons/connect-viber.png);
}
.connects .wpcf7-list-item input:checked+.wpcf7-list-item-label{
  font-weight: 700;
  text-decoration: none;
}
.wpcf7-not-valid-tip,
.wpcf7 form.invalid .wpcf7-response-output, 
.wpcf7 form.unaccepted .wpcf7-response-output, 
.wpcf7 form.payment-required .wpcf7-response-output{
  font-family: "Codec Pro";
}

@media screen and (max-width: 1799.98px){
  .connects .wpcf7-list-item {
    font-size: 14px;
    min-width: 60px;
  }
  .connects .wpcf7-list-item input+.wpcf7-list-item-label::before{
    width: 30px;
    height: 30px;
  }
}