.codus__modal {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: -1;
  font-family: inherit;
}

.codus__modal.active {
  opacity: 1;
  z-index: 9999999999;
  transition: opacity 0.3s ease;
}

.codus__modal::before {
  content: "";
  display: block;
  background: rgba(0, 0, 0, 0.65);
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.codus__form-container {
  max-width: 480px;
  padding: 40px 40px 50px;
  margin: 0 auto;
  border-radius: 5px;
  box-shadow: 0 2px 12px -5px #60605b;
  background-color: #fff;
  width: 100%;
  font-size: 14px;
  position: relative;
  z-index: 9;
}

.codus__form-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
}

.codus__form-text {
  margin: 15px 0;
}

.codus__form-row {
  position: relative;
  display: flex;
  flex-direction: column;
}

.codus__form-row:not(:last-child) {
  margin-bottom: 15px;
}

.codus__form-label {
  margin-bottom: 5px;
}

.codus__form-row .codus__input-field,
.codus__form-row select.codus__input-field {
  font-family: inherit;
  padding: 10px 15px;
  border: 1px solid #bfbaaf;
  background: #fff;
  width: 100%;
}

select.codus__input-field {
  color: #000;
}
select.codus__input-field optgroup {
  color: #000;
}
select.codus__input-field option {
  background: #fff;
  color: #000;
}

.bmw select.codus__input-field optgroup {
  background: #1c69d4;
  color: #fff;
  font-weight: 300;
}
.bmw select.codus__input-field option {
  color: #000;
}
.bmw .codus__btn-submit {
  background: #1c69d4;
  font-weight: 400;
}
.bmw .codus__form-title {
  color: #1c69d4;
}

.codus__form-checkbox {
  margin: 25px 0;
}

.codus__form-checkbox label {
  font-weight: 300;
  color: #202020;
  font-size: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.codus__form-checkbox label:before {
  content: "";
  -webkit-appearance: none;
  background-color: transparent;
  border: 2px solid #111 !important;
  padding: 8px;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  margin-right: 10px;
  width: auto !important;
  height: auto !important;
}

.codus__form-checkbox label:after {
  display: none;
}

.codus__form-checkbox label span {
  color: #202020 !important;
}

.codus__form-checkbox input:checked + label:after {
  content: "";
  display: block;
  position: absolute;
  top: 3px;
  left: 8px;
  width: 5px;
  height: 11px;
  border: solid #111;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.codus__form-checkbox input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  left: auto !important;
}

.codus__btn-submit {
  background-color: #111;
  color: #fff;
  font-family: inherit;
  font-weight: bold;
  text-transform: uppercase;
  width: 100%;
  padding: 12px 0;
  border: none;
  cursor: pointer;
  border-radius: 2px;
}

.codus__btn-submit.loading {
  background-image: url(https://bytesystem.kz/static/widgets/forms/img/loading.svg);
  background-repeat: no-repeat;
  background-size: 30%;
  background-position: center;
  text-indent: 200%;
  white-space: nowrap;
  overflow: hidden;
}

.codus__notice {
  font-size: 12px;
  margin-top: 20px;
}

.codus__flex {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.codus__close-btn,
.codus__widget-close {
  position: absolute;
  top: 0;
  right: -40px;
  cursor: pointer;
  font-size: 20px;
}

.codus__widget-close {
  right: 30px;
}

.codus__close-btn::before {
  content: "x";
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  border-radius: 50%;
}

.codus__widget-close::before {
  content: "x";
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  position: absolute;
}

.codus__form {
  width: 100%;
}

.codus__form-result {
  font-weight: 400;
  font-size: 16px;
  margin-top: 20px;
}

#offer-frame {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

#offer-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#special-offer-button {
  position: fixed;
  left: 30px;
  bottom: 40px;
  width: 380px;
  max-width: 92%;
  padding: 16px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 6px -2px #60605b;
  background: #fff;
  z-index: 100;
}

#special-offer-button.active {
  display: block;
}

#special-offer-button h4 {
  font-size: 18px;
  margin: 0 0 10px;
}

#special-offer-button p {
  font-size: 14px;
  margin-bottom: 15px;
}

#special-offer-button button {
  display: block;
}

#special-offer-button {
  opacity: 0;
  z-index: -1;
  transition: 0.7s ease-in-out;
  transform: translateY(-30px);
}

#special-offer-button.active {
  opacity: 1;
  z-index: 999;
  transform: translateY(0);
}

/********* WhatsApp Button ***********/
.codus_whatsapp_button {
  display: inline-block;
  position: fixed;
  color: #fff;
  height: 48px;
  left: 25px;
  bottom: 30px;
  border-radius: 24px;
  padding: 0 22px 0 48px;
  line-height: 49px;
  background: #28b351
    url(https://bytesystem.kz/static/widgets/forms/img/whatsapp_ico.svg)
    no-repeat 15px center;
  cursor: pointer;
  font-size: 15px;
  font-family: Asimov;
  z-index: 50;
}

.codus_offer_button {
  display: inline-block;
  position: fixed;
  color: #fff;
  height: 48px;
  left: 180px;
  bottom: 30px;
  border-radius: 24px;
  padding: 0 22px;
  line-height: 49px;
  background: #1c69d4;
  cursor: pointer;
  font-size: 15px;
  font-family: Asimov;
  white-space: nowrap;
  z-index: 50;
}

.hyundai_krg {
  left: 230px;
  bottom: 20px;
  height: 54px;
  line-height: 54px;
  border-radius: 27px;
  font-size: 16px;
  font-weight: 500;
  font-family: Hyundai;
  text-decoration: none;
}

/********************************/
.loading {
  font-size: inherit;
}
.subaru .codus__btn-submit {
  font-weight: 300;
}
.subaru#special-offer-button p {
  line-height: 1.5;
}
.subaru .codus__btn-submit {
  background-color: #0062af;
}
.subaru .codus__btn-submit.loading {
  display: block;
}
.subaru .codus__form-checkbox input:checked + label:after {
  background: none;
  top: 1px;
  left: 6px;
}

.hyundai .codus__btn-submit {
  background-color: #002c5f;
  font-weight: 500;
}
.codus__select-field::after {
  content: "";
  background: url(../img/ico-select-right-arr.png) no-repeat center;
  width: 2.9rem;
  height: 0.6rem;
  position: absolute;
  right: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  top: 5.5rem;
}

@media screen and (max-width: 640px) {
  #special-offer-button {
    left: 15px;
  }
  .codus__form-container {
    max-width: 92%;
    padding: 30px 25px;
  }

  .codus__close-btn::before {
    color: #000;
  }
  .codus__close-btn {
    right: 0;
  }
  .codus__widget-close {
    right: 32px;
  }
  .codus__form-checkbox label span {
    font-size: 13px;
  }
  .codus__flex {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  .codus_whatsapp_button {
    height: 40px;
    left: 15px;
    bottom: 70px;
    padding: 0 20px 0 44px;
    line-height: 40px;
    font-size: 14px;
  }

  .codus_offer_button {
    height: 40px;
    left: 15px;
    bottom: 15px;
    line-height: 40px;
    font-size: 14px;
  }

  .hyundai_krg {
    left: 185px;
    bottom: 20px;
    height: 42px;
    line-height: 42px;
  }

  #special-offer-button {
    bottom: 70px;
  }
  .codus_whatsapp_button.haval-almaty {
    bottom: 15px;
  }
}
