.modal {
  display: flex;
  position: fixed;
  z-index: 6000;
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 0 5px;
  transition: all 0.8s ease 0s;
  background-color: rgba(0, 0, 0, 0.65);
}

.modal_show {
  visibility: visible;
  opacity: 1;
}

.modal__content {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: auto;
  min-width: 310px;
  max-width: 600px;
  min-height: 500px;
  width: 100%;
  color: #000;
  background: #fff url('./wp-content/uploads/modal/modal-girl-bg.png') center bottom / 600px no-repeat;
}

.modal__header {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 16px;
  background-color: #dc1f00;
  color: white;
}

.modal__title {
  margin: 0;
  flex: 1;
  font-size: calc(14px + 6 * ((100vw - 320px) / (768 - 320)));
  font-weight: bold;
  font-family: inherit;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

.modal__close {
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

.modal__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 5px 26px;
}

.modal__promo {
  margin-bottom: 16px;
}

.promo {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px;
  width: 100%;
  max-width: 402px;
  padding-left: 12px;
  border: 1px solid #a9a8a8;
  border-radius: 5px;
  background-color: #fff;
}

.promo__label {
  position: absolute;
  top: -8px;
  left: 17px;
  padding: 0 4px;
  color: rgba(112, 112, 112, 0.8);
  background-color: #fff;
  border-radius: 4px;
  font-size: 12px;
  line-height: 16px;
}

.promo__input {
  width: 118px !important;
  margin-right: 12px;
  border: none !important;
  outline: none;
  padding: 0 !important;
  font-size: 16px;
  line-height: 19px;
}

.promo__btn {
  border: none;
  font-size: 16px;
  line-height: 22px;
  color: #fff;
  background-color: #24bA9d;
  padding: 7px 12px;
  border-radius: 4px;
}

.promo__tooltip {
  visibility: hidden;
  opacity: 0;
  display: flex;
  width: max-content;
  color: #fff;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.65);
  border-radius: 3px;
  font-size: 16px;
  padding: 5px;
  position: absolute;
  top: -33px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s;
}

.promo__tooltip_show {
  visibility: visible;
  opacity: 1;
}

.promo__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #F5F5F5 transparent transparent transparent;
  border-color: rgba(0, 0, 0, 0.65) transparent transparent transparent;
}

.modal__subtitle {
  margin-bottom: 16px;
  font-size: calc(24px + 10 * ((100vw - 320px) / (768 - 320)));
  font-family: inherit;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.modal__action {
  color: #fff;
  background-color: #dc1f00;
  font-size: 16px;
  line-height: 22px;
  padding: 7px 24px;
  border-radius: 4px;
  text-decoration: none;
}

.modal__action:hover {
  color: #fff;
  text-decoration: none;
}

@media (min-width: 768px) {
  .modal__title {
    font-size: 20px;
  }

  .modal__subtitle {
    font-size: 34px;
  }
}