/*Модальное окно*/
#modal_form {
  width: 800px;
  padding: 19px 20px;
  border: 5px solid #00b0ff;
  background-color: #FFF;
  /* height: 500px; */
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  /* margin-top: -165px; */
  /* margin-left: -225px; */
  display: none;
  opacity: 1;
  z-index: 5;
  transform: translate(-50%, -50%);
  overflow: initial;
}

#overlay {
  z-index: 3;
  position: fixed;
  background-color: #000;
  opacity: 0.8;
  -moz-opacity: 0.8;
  filter: alpha(opacity=80);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
  display: none;
}

#modal_form input[type="text"] {
  background-color: #fff;
  border: 1px solid #DFDFDF;
  border-radius: 6px;
  color: #555;
  display: block;
  font-size: 1em;
  height: 35px;
  padding: 5px;
  margin-bottom: 17px;
  width: 95%;
  float: left;
}

#modal_form input[type="text1"] {
  background-color: #fff;
  border: 1px solid #DFDFDF;
  border-radius: 6px;
  color: #555;
  display: block;
  font-size: 1em;
  height: 100px;
  padding: 5px;
  margin-bottom: 17px;
  width: 95%;
  float: left;
}

#modal_form input[type="text"].error {
  border: 1px solid red;
}

#modal_form h3 {
  text-align: center;
  font-size: 2em;
  text-transform: uppercase;
  color: #000;
  margin: 0;
}

#modal_form .comment {
  color: #272727;
  padding-bottom: 5px;
  font-size: 14px;
  text-align: center;
  padding-top: 10px;
}

.exit {
  background: #d0d0d0;
  border-radius: 50%;
  right: -25px;
  top: -25px;
  position: absolute;
  opacity: 1;
  WIDTH: 33PX;
  HEIGHT: 33px;
  line-height: 30px;
  font-size: 36px;
  border: 2px solid #3e5368;
  -webkit-transition: background 0.2s linear;
  -moz-transition: background 0.2s linear;
  -o-transition: background 0.2s linear;
  transition: background 0.2s linear;
  display: none !important;
}

.fancybox-slide--html .fancybox-close-small {
  background: #d0d0d0;
  padding: 2px !important;
  display: block !important;
  border-radius: 50%;
  right: -25px !important;
  top: -25px !important;
  position: absolute;
  opacity: 1;
  WIDTH: 33PX;
  HEIGHT: 33px;
  line-height: 30px;
  font-size: 36px;
  border: 2px solid #3e5368;
  -webkit-transition: background 0.2s linear;
  -moz-transition: background 0.2s linear;
  -o-transition: background 0.2s linear;
  transition: background 0.2s linear;
}

\
 @media screen and (max-width:860px) {
  .fancybox-slide--html .fancybox-close-small {
    top: -6px !important;
    right: -6px !important
  }

  #modal_form {
    border-radius: 16px;
  }
}
  .exit:after {
    display: block;
    font-size: 23px;
    content: "x";
    padding-left: 9px;
    line-height: 24px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    color: #000000;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
  }

  .exit:hover, .fancybox-close-small:hover {
    background: #EAEAEA;
    text-decoration: none;
  }

  #modal_form .button {
    display: block;
    background-color: #ffd400;
    border: 1px solid #ccc;
    border-radius: 3px;
    color: #000;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    height: 50px;
    margin: 10px 0;
    padding: 2px 16px;
    width: 210px;
    margin: 0 auto;
    -webkit-transition: all 0.12s ease-in;
    -o-transition: all 0.12s ease-in;
    -moz-transition: all 0.12s ease-in;
    transition: all 0.12s ease-in;
  }

  #modal_form .button:hover {
    background-color: #44C8F5;
    border: 1px solid #44C8F5;
    color: #fff;
  }

  #modal_form .error {
    border: 1px solid red;
  }

  .modal_okno {
    width: 160px;
    border-radius: 50px;
    background-color: #00b0ff;
    height: 40px;
  }

  .modal_okno a {
    color: white;
    font-weight: bold;
  }

  .modal_okno a:hover {
    color: black;
  }
