/**
 * Theme Name: Gid Vietnam
 * Description: Special theme for gid-vietnam.ru
 * Version: 2.0
 * Text Domain: gv-theme
 */

.page-404 #wrapper section {
  min-height: 700px;
}

/* main menu styles */

.main-menu-wrapper {
  display: flex;
  margin-top: 6px;
}

.main-menu-wrapper .main-menu__menus {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 651px) {
  .main-menu-wrapper .main-menu__menus {
    max-height: 63px;
  }

  .main-menu__home-item-mobile {
    display: none;
  }
}

@media screen and (max-width: 650px) {
  .main-menu-wrapper {
    justify-content: end;
  }

  .main-menu__home-item {
    display: none;
  }

  #wrapper .all-menus .header-menu-top,
  #wrapper .all-menus .main-menu__home-item-mobile ul {
    padding-bottom: 0;
  }

}

.main-menu__home-item a {
  background: url("css/images/sprite.png") no-repeat;
  display: inline-block;
  height: 54px;
  margin-right: 15px;
  width: 54px;
  background-position: -542px -5px;
}

#wrapper .all-menus .nav li {
  margin-top: 0;
  margin-bottom: 0;
}

#wrapper .main-menu__home-item a {
  font-size: 0;
  position: relative;
  top: -2px;
  z-index: 1;
}

/* wp telegram chat styles fixing */
body #wps-telegram-chat {
  bottom: 51px;
}

body #wps-telegram-chat.hide {
  width: 42px !important;
  height: 42px !important;
}

body #wps-telegram-chat {
    right: calc((100vw - 906px)/2 - 48px);
    left: auto;
}

@media screen and (max-width: 1050px) {
  body #wps-telegram-chat {
    right: 73px;
    left: auto;
  }
}

@media screen and (max-width: 850px) {
  body #wps-telegram-chat {
    right: 50px;
  }
}

@media screen and (max-width: 530px) {
  body #wps-telegram-chat {
    right: 27px;
  }
}

/* wps telegram form styles */
#wps-telegram-contactForm {
  border: 2px solid #d4927d;
  border-radius: 5px;
  padding: 25px 40px;
  margin: 40px auto;
  max-width: 550px;
  background-color: rgba(255,255,255, .5);
}

#wps-telegram-contactForm label span:not(.error) {
  display: none;
}

#wps-telegram-contactForm input[type=text],
#wps-telegram-contactForm textarea {
  margin-bottom: 10px;
}

#wps-telegram-formWrapper {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  justify-content: center;
  align-items: center;
}

#wpsContactSubmit .submit,
#wpsContactSubmit .custom-submit {
  background: url('css/images/submit_form.png') center no-repeat;
  border: none;
  color: #feeacf;
  cursor: pointer;
  font-family: book_antiquaregular, sans-serif;
  font-size: 18px;
  height: 49px;
  outline: none;
  text-transform: uppercase;
  width: 277px;
  transition: all 0.3s;
} 

#wpsContactSubmit .custom-submit:disabled {
  opacity: 0.7;
}

#wpsContactSubmit .submit:hover,
#wpsContactSubmit .custom-submit:hover {
  color: #fff;
  transform: scale(1.05, 1.05);
}

#wps-telegram-contactForm .wps-form-error,
#wps-telegram-contactForm span.error {
  color: red;
  display: block;
  text-align: center;
  border: 1px dotted red;
  padding: 5px;
  font-size: 15px;
}

#wpsContactName,
#wpsContactEmail,
#wpsContactSubject {
  text-align: center;
}

button.asn-callback-popup-submit {
  background: url("css/images/submit_form.png") center no-repeat;
  border: none;
  cursor: pointer;
  font-family: book_antiquaregular, sans-serif;
  font-size: 18px;
  height: 49px;
  outline: none;
  text-transform: uppercase;
  transition: all 0.3s;
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  color: #fff;
}

button.asn-callback-popup-submit:not(:disabled):hover {
  transform: scale(1.05, 1.05);
}

button.asn-callback-popup-submit:disabled {
  opacity: 0.4;
  cursor: default;
}

.asn-callback-form__popup {
  background: url("css/images/form-bg.png") top repeat;
}

.asn-callback-btn__wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.asn-callback-btn {
  display: flex;
  background: url("css/images/callback-btn.png") center no-repeat;
  background-size: cover;
  min-width: 345px;
  max-width: 345px;
  height: 50px;
  padding: 0 8px;
  justify-content: center;
  align-items: center;
  border-radius: 60px;
}

.asn-callback-btn .callback-form-btn {
  border: none;
  border-radius: 35px;
  padding: 8px 13px;
  height: 30px;
  font-family: book_antiquaregular, sans-serif;
  line-height: 11px;
  cursor: pointer;
}

.asn-callback-btn .callback-form-btn:first-child {
  width: 150px;
  font-size: 12px;
  margin-right: 8px;
  background: #5c1d08;
  color: #f3e3be;
  box-shadow: 0 1px 1px 0 #fff;
  transition: .3s;
}

.asn-callback-btn .callback-form-btn:hover {
  transform: scale(1.05);
  transition: .3s;
}

.asn-callback-btn .callback-form-btn:last-child {
  width: 185px;
  text-transform: uppercase;
  font-size: 14px;
  background: #a13d22;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 1px rgba(255, 255, 255, .4);
  box-shadow: inset 0 5px 5px rgba(255, 255, 255, .3), inset 0 -3px 5px rgba(0, 0, 0, .3), 0px 1px 1px 0 rgba(0, 0, 0, .75);
  transition: .3s;
}

@media screen and (max-width: 1050px) {
  .asn-callback-btn__wrapper {
    margin-top: 20px;
    margin-bottom: 25px;
  }
}

.asn-callback-form__popup-field--submit {
  margin-top: 8px;
  margin-bottom: 14px;
}
