#m1-form,
#m1-form > div,
.close-m1,
.popup-m1-title,
.popup-m1-cont,
.popup-m1-form,
.popup-m1-text2,
.popup-m1-text1,
#m1-form .popup-m1-form input[type="text"],
#m1-form .popup-m1-form input[type="tel"] #m1-form .popup-m1-form button {
  position: relative;
  float: none;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  font-family: Tahoma, Geneva, Kalimati, sans-serif;
  line-height: normal;
  background: none;
  border: 0;
  outline: 0;
}

#m1-form {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999999;
  display: none;
  width: 100%;
  max-width: 450px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 0 rgb(0 0 0 / 0%);
  transform: translate(-50%, -50%);
}

#m1-form a.close-m1 {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 999;
  display: block;
  width: 28px;
  height: 28px;
  color: #fff;
  font-size: 24px;
  line-height: 26px;
  text-align: center;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

#m1-form a.close-m1::before {
  content: "\00D7";
}

#m1-form > div {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

#m1-form .popup-m1-title {
  position: relative;
  padding: 20px 0 16px;
  color: #fff;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.3em;
  letter-spacing: 0.7px;
  text-align: center;
  text-transform: uppercase;
  background: #5EB2F4;
}

#m1-form .popup-m1-title::before,
#m1-form .popup-m1-title::after {
  position: absolute;
  bottom: -10px;
  width: 50%;
  height: 20px;
  background-color: #5EB2F4;
  content: "";
}

#m1-form .popup-m1-title::before {
  left: 0;
  transform: skew(0deg, 4deg);
}

#m1-form .popup-m1-title::after {
  right: 0;
  transform: skew(0deg, -4deg);
}

#m1-form .popup-m1-cont {
  position: relative;
  padding: 45px 20px 30px;
  color: #333;
  font-size: 17px;
  line-height: 1.5em;
}

#m1-form .popup-m1-cont div.popup-m1-text1 {
  text-align: center;
}

#m1-form .popup-m1-form {
  position: relative;
  display: block;
  width: auto;
  height: auto;
  padding: 30px 0;
  background: none;
  border-radius: 0;
  box-shadow: 0 0 0 0;
}

#m1-form .popup-m1-form::after {
  display: block;
  clear: both;
  height: 0;
  content: "";
}

#m1-form .popup-m1-form input[type="text"],
#m1-form .popup-m1-form input[type="tel"],
#m1-form .popup-m1-form select{
  position: relative;
  display: block;
  margin: 0 auto;
  padding: 0;
  font-weight: 400;
  font-style: normal;
  text-align: left;
  text-transform: none;
  background: #fff;
  border: 0;
  border-radius: 4px;
  outline: 0;
  box-shadow: 0 0 0 0;
}



#m1-form .popupform input[type="text"]::-webkit-input-placeholder, #m1-form .popupform input[type="tel"]::-webkit-input-placeholder {
  color: #a9a9a9;
  opacity: 1;
}

#m1-form .popupform input[type="text"]::-moz-placeholder, #m1-form .popupform input[type="tel"]::-moz-placeholder {
  color: #a9a9a9;
  opacity: 1;
}

#m1-form .popupform input[type="text"]:-ms-input-placeholder, #m1-form .popupform input[type="tel"]:-ms-input-placeholder {
  color: #a9a9a9;
  opacity: 1;
}

#m1-form .popupform input[type="text"]::-ms-input-placeholder, #m1-form .popupform input[type="tel"]::-ms-input-placeholder {
  color: #a9a9a9;
  opacity: 1;
}

#m1-form .popupform input[type="text"]::placeholder,
#m1-form .popupform input[type="tel"]::placeholder {
  color: #a9a9a9;
  opacity: 1;
}

#m1-form .popup-m1-form input[type="text"],
#m1-form .popup-m1-form input[type="tel"],
#m1-form .popup-m1-form select {
  width: 90%;
  height: 64px;
  margin-bottom: 16px;
  color: #222;
  font-size: 17px;
  line-height: 64px;
  text-indent: 20px;
  text-shadow: none;
  background: #fff;
  border: 1px solid #ccc;
}

#m1-form .popup-m1-form input[type="text"]:focus,
#m1-form .popup-m1-form input[type="tel"]:focus {
  border-color: #aaa;
}


#m1-form .ord_butt{
  width: 90%;
  font-size: 26px;
}

#m1-form .popup-m1-cont div.popup-m1-text2 {
  text-align: center;
}


/**********  For screen  **********/
#overlay-popup-m1 {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  display: none;
  width: 100%;
  height: 100%;
  background: #000;
  -moz-opacity: 0.6;
  -khtml-opacity: 0.6;
  opacity: 0.6;
  filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
  filter: alpha(opacity=60);
}

@media screen and (width <= 450px) {
  #m1-form {
    width: 90%;
    margin-top: 0;
    margin-left: 0;
    overflow-x: hidden;
  }

  #m1-form > div {
    border-radius: 0;
  }

  #m1-form .popup-m1-cont {
    padding: 45px 12px 30px;
  }

  #m1-form .popup-m1-form input[type="text"],
  #m1-form .popup-m1-form input[type="tel"] {
    width: 100%;
  }

  #m1-form .popup-m1-title {
    padding: 26px 10px 16px;
    font-size: 24px;
  }
}

@media screen and (height <= 560px) {
  #m1-form {
    top: 16px;
    bottom: 16px;

    /* top: 0; */
    overflow-y: scroll;
    transform: translate(-50%, 0);
  }
}
