@charset "utf-8";

html, body{
  height: 100%;
}

.info_geo{
    height:100%;
}

.background_img{
    background: url('back_contacts.jpg');
    background-attachment: fixed;
    background-size: cover;
}
 
/* Иконки телефон, часы, место, почта */
.contacts-ico {
    margin-right: 4px;
}

/* Отступ второго столбца таблицы с контактами */
.second-column{
    padding-left: 25px;
}

/* Основной текст страницы */
p.content {
    color: white;
    font-size: 20px;
}


/* ФОРМА ОБРАТНОЙ СВЯЗИ */
/* Блок  для создания полей формы обратной связи (???)*/
.div-body{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    font-family: sans-serif;
}

/* Блок для позиционирования полей ввода формы */
.form{
    width: 80%;
    position: relative;
    height: 85px;
    overflow: hidden;
}

.form input {
    width: 100%;
    height: 100%;
    color: #ffffff;
    padding-top: 5px;
    border: none;
    font-size: 25px;
    outline: none;
    background: transparent;
}

.form label{
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    font-size: 20px;
    pointer-events: none;
    border-bottom: 1px solid white;
}

.form label::after{
    content: "";
    position: absolute;
    left: 0px;
    bottom: -1px;
    height: 100%;
    width: 100%;
    border-bottom: 3px solid white;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.content-name{
    position: absolute;
    bottom: 5px;
    left: 0px;
    transition: all .3s ease;
    color: #cacaca;
}

.form input:focus + .label-name .content-name,
.form input:valid + .label-name .content-name {
    transform: translateY(-150%);
    font-weight: 600;
    color: white;
}

.form input:focus + .label-name::after,
.form input:valid + .label-name::after{
    transform: translateX(0%);
}
  
/*  Текстариа - поле для ввода текста сообщения  */
.form-textarea{
    width: 80%;
    position: relative;
    height: 300px;
    overflow: hidden;
}

.form-textarea textarea {
    width: 100%;
    height: 90%;
    color: #595f6e;
    padding-top: 5px;
    font-size: 25px;
    outline: none;
    resize: none;
    padding: 0;
    border: none;
    position: absolute;
    top: 10%;
    background: transparent;
    color: white;
}

.form-textarea label{
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    font-size: 20px;
    pointer-events: none;
    border-bottom: 1px solid white;
}

.form-textarea label::after{
    content: "";
    position: absolute;
    left: 0px;
    bottom: -1px;
    height: 100%;
    width: 100%;
    border-bottom: 3px solid white;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

textarea + label + .content-name{
    transition: all .3s ease;
    position: absolute;
    top: 90%;
}

.form-textarea textarea:focus + .label-name .content-name,
.form-textarea textarea:valid + .label-name .content-name{
    transform: translateY(-260px);
    font-weight: 600;
    border-bottom: 1px solid white;
    display: block;
    width: 100%;
    color: white;
}


.form-textarea textarea:focus + .label-name::after,
.form-textarea textarea:valid + .label-name::after{
    transform: translateX(0%);
}
  
label.label-name.textarea {
    margin: 0;
}

@media (max-width: 991px) {

  .col-xl-6.col-lg-6.col-md-12.col-12{
    height: 50%;
  }
  
}


@media (max-width: 376px) {
  p.content {
    font-size: 17px;
  }
  .second-column {
    padding-left: 10px;
  }
}

@media (max-width: 321px) {
  p.content {
    font-size: 14px;
  }
  .second-column {
    padding-left: 10px;
  }
}

/* Изменяю вид полосы прокрутки */
::-webkit-scrollbar { width: 5px; height: 3px; cursor: }
::-webkit-scrollbar-button {  background-color: #666; }
::-webkit-scrollbar-track-piece { background-color: #ffffff;}
::-webkit-scrollbar-thumb { height: 50px; background-color: #666; border-radius: 3px; transition: .3s;}
::-webkit-scrollbar-thumb:hover{ background-color: #da251c; transition: .3s;}
::-webkit-scrollbar-corner { background-color: #999;}
::-webkit-resizer { background-color: #666;}