.popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.popup--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 35.07vw;
  padding: 3.47vw;
  border-radius: 0.69vw;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0.28vw 0.28vw 0 rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.popup__dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../../img/pricing/pricing__packages-bg.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-radius: 0.69vw;
  z-index: -1;
  border: 0.07vw solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(1.74vw);
  -webkit-backdrop-filter: blur(1.74vw);
}

.popup__close {
  position: absolute;
  top: 1.25vw;
  right: 1.25vw;
  width: 2.5vw;
  height: 2.5vw;
  border: 0;
  background: transparent;
  font-family: Unbounded Regular;
  font-weight: 400;
  font-size: 1.94vw;
  line-height: 1.94vw;
  letter-spacing: 0;
  color: white;
  cursor: pointer;
  padding: 0;
}

.popup__close:focus {
  outline: none;
}

.registration-form {
  display: flex;
  flex-direction: column;
  row-gap: 0.69vw;
}

.registration-form__field {
  display: flex;
  flex-direction: column;
  row-gap: 0.35vw;
}

.registration-form__label,
.registration-form__group-title {
  font-family: TT Travels Regular;
  font-weight: 400;
  font-size: 0.95vw;
  line-height: 1.11vw;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 1);
}

.registration-form__required {
  color: rgba(245, 85, 15, 1);
}

.registration-form__input,
.registration-form__select {
  width: 100%;
  height: 2.36vw;
  padding: 0 0.97vw;
  border: 0;
  border-radius: 0.63vw;
  background: rgba(244, 244, 244, 0.15) !important;
  color: #ffffff;
  font-family: TT Travels Regular;
  font-weight: 400;
  font-size: 0.97vw;
  line-height: 1.11vw;
  letter-spacing: 0;
  margin: 0 !important;
}

.registration-form__textarea {
  padding: 0.57vw 0.97vw;
  min-height: 8vw;
  resize: none;
}

.registration-form__input::placeholder {
  color: #ffffff;
  font-family: TT Travels Regular;
  font-weight: 400;
  font-size: 0.97vw;
  line-height: 1.11vw;
  opacity: 1;
}

.registration-form__input:focus,
.registration-form__select:focus {
  border: 0.07vw solid rgba(255, 255, 255, 0.3);
  outline: none;
}

.registration-form__select {
  appearance: none;
  background-image: url("../../img/popup/arrow.png") !important;
  background-repeat: no-repeat !important;
  background-position: right 1.25vw center !important;
  background-size: 1.18vw 0.69vw !important;
}

.registration-form__group {
  display: flex;
  flex-direction: column;
  row-gap: 0.42vw;
  margin: 0;
  padding: 0;
  border: 0;
}

.popup-custom-select {
  position: relative;
  width: 100%;
  z-index: 1;
}

.popup-custom-select--active {
  z-index: 50;
}

.popup-custom-select__head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  height: 2.36vw;
  min-height: 2.36vw;
  padding: 0 0.97vw;

  border: 0;
  border-radius: 0.63vw;

  background: rgba(244, 244, 244, 0.1);
  color: #ffffff;

  font-family: TT Travels Regular;
  font-weight: 400;
  font-size: 0.97vw;
  line-height: 1.11vw;

  cursor: pointer;
  box-sizing: border-box;
}

.popup-custom-select__head:focus {
  outline: none;
}

.popup-custom-select__value {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.popup-custom-select__arrow {
  flex: 0 0 auto;

  width: 1.18vw;
  height: 0.69vw;

  background-image: url("../../img/popup/arrow.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  transition: transform 0.3s ease;
}

.popup-custom-select--active .popup-custom-select__arrow {
  transform: rotate(180deg);
}

.popup-custom-select__body {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35vw);
  z-index: 60;

  display: none;
  flex-direction: column;
  row-gap: 0.35vw;

  padding: 0.83vw 1.04vw;

  border-radius: 0.63vw;
  background: rgba(0, 0, 0, 0.25);

  backdrop-filter: blur(1.74vw);
  -webkit-backdrop-filter: blur(1.74vw);
}

.popup-custom-select--active .popup-custom-select__body {
  display: flex;
}

.popup-custom-select__option {
  display: flex;
  align-items: center;
  column-gap: 0.69vw;
  color: #ffffff;
  font-family: TT Travels Regular;
  font-weight: 400;
  font-size: 0.97vw;
  line-height: 1.11vw;
  cursor: pointer;
}

.popup-custom-select__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.popup-custom-select__checkbox {
  position: relative;
  width: 0.83vw;
  height: 0.83vw;
  border: 0.07vw solid rgb(255, 255, 255);
  border-radius: 0.21vw;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.popup-custom-select__input:checked + .popup-custom-select__checkbox::before {
  content: "";
  position: absolute;
  left: 0.21vw;
  top: 0;

  width: 0.24vw;
  height: 0.56vw;

  border-right: 0.1vw solid #ffffff;
  border-bottom: 0.1vw solid #ffffff;

  transform: rotate(45deg);
}

.popup-custom-select__text {
  color: #ffffff;
}

.registration-form__submit {
  align-self: center;

  margin-top: 1.39vw;
  padding: 1.11vw 1.67vw;

  border: 0;
  border-radius: 0.69vw;

  background: linear-gradient(90deg, #d72c2c 0%, #ffa700 100%);
  color: #ffffff;

  font-family: Unbounded Regular;
  font-size: 1.11vw;
  line-height: 1.11vw;

  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.3s ease;

  box-shadow: 0 0.28vw 0.28vw 0 rgba(0, 0, 0, 0.25);
}

.registration-form__submit:hover {
  background: #ffffff;
  color: #000000;
}

.registration-form__submit:focus {
  outline: none;
}

body.popup-open {
  overflow: hidden;
}

.file-upload {
  display: flex;
  align-items: center;
  column-gap: 0.69vw;

  width: 100%;
  min-height: 2.36vw;
  padding: 0.35vw 0.97vw;

  border-radius: 0.63vw;
  background: rgba(244, 244, 244, 0.15);

  cursor: pointer;
  box-sizing: border-box;
}

.file-upload__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-upload__text {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;

  color: #ffffff;

  font-family: TT Travels Regular;
  font-weight: 400;
  font-size: 0.97vw;
  line-height: 1.11vw;
}

.success-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36vw;
  border-radius: 0.69vw;
  overflow: hidden;

  color: #ffffff;

  box-shadow: rgba(0, 0, 0, 0.25) 0vw 0.28vw 0.28vw 0vw;
  border-radius: 0.69vw;
  background: linear-gradient(
    90deg,
    rgb(215, 44, 44) 0%,
    rgb(255, 167, 0) 100%
  );
  padding: 3.47vw;
}

.success-popup__close {
  position: absolute;
  top: 1.25vw;
  right: 1.25vw;

  width: 2.5vw;
  height: 2.5vw;

  border: 0;
  background: transparent;

  font-family: Unbounded Regular;
  font-weight: 400;
  font-size: 1.94vw;
  line-height: 1.94vw;

  color: #ffffff;
  cursor: pointer;
  padding: 0;
}

.success-popup__close:focus {
  outline: none;
}

.success-popup__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 0.74vw;
}

.success-popup__title {
  font-family: "Unbounded Regular";
  font-weight: 400;
  font-size: 1.39vw;
  line-height: 1.67vw;
  letter-spacing: 0vw;
  text-transform: uppercase;
  color: white;
  margin: 0vw;
}

.success-popup__text {
  margin: 0;

  font-family: TT Travels Regular;
  font-weight: 400;
  font-size: 1.11vw;
  line-height: 1.32vw;
  letter-spacing: 0;

  color: #ffffff;
}

.registration-form__agreements {
  display: flex;
  flex-direction: column;
  row-gap: 0.69vw;
  margin-top: 0.35vw;
}

.registration-form__agreement {
  display: grid;
  grid-template-columns: 1.67vw 1fr auto;
  column-gap: 1.04vw;
  align-items: flex-start;
  position: relative;
  margin: 0;
  color: #ffffff;
  cursor: pointer;
}

.registration-form__agreement-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.registration-form__agreement-box {
  position: relative;
  display: block;
  width: 1.67vw;
  height: 1.67vw;
  border-radius: 0.44vw;
  background: rgba(244, 244, 244, 0.15);
  flex: 0 0 auto;
}

.registration-form__agreement-box::before {
  content: "";
  position: absolute;
  left: 0.63vw;
  top: 0.35vw;
  width: 0.42vw;
  height: 0.76vw;
  border-right: 0.14vw solid #ffffff;
  border-bottom: 0.14vw solid #ffffff;
  transform: rotate(45deg);
  opacity: 0;
}

.registration-form__agreement-input:checked
  + .registration-form__agreement-box::before {
  opacity: 1;
}

.registration-form__agreement-text {
  font-family: Montserrat Regular;
  font-weight: 400;
  font-size: 0.76vw;
  line-height: 0.9vw;
  letter-spacing: 0;
  color: #ffffff;
}

.registration-form__agreement-text a {
  color: #ffffff;
  text-decoration: underline;
}

.registration-form__agreement-tooltip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25vw;
  height: 1.25vw;
  margin-top: 0.07vw;
  flex: 0 0 auto;
  left: -0.83vw;
}

.registration-form__agreement-info {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.18vw;
  height: 1.18vw;
  background-image: url(../../img/contacts/tooltip.png);
  background-size: 1.18vw 1.18vw;
  cursor: pointer;
}

.registration-form__agreement-tooltip-text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.63vw);
  transform: translateX(-50%);
  width: 16.67vw;
  padding: 0.9vw 1.04vw;
  border-radius: 0.63vw;
  background: #666666;
  box-shadow: 0 0.21vw 0.56vw rgba(0, 0, 0, 0.25);
  font-family: Montserrat Regular;
  font-weight: 400;
  font-size: 0.76vw;
  line-height: 0.9vw;
  letter-spacing: 0;
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 80;
}

.registration-form__agreement-tooltip-text::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-left: 0.42vw solid transparent;
  border-right: 0.42vw solid transparent;
  border-top: 0.42vw solid #666666;
}

.registration-form__agreement-tooltip:hover
  .registration-form__agreement-tooltip-text {
  opacity: 1;
  visibility: visible;
}

.registration-form__submit:disabled,
.registration-form__submit:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(90deg, #d72c2c 0%, #ffa700 100%);
  color: #ffffff;
}

@media (max-width: 575.5px) {
  .popup__dialog {
    max-width: 95.31vw;
    padding: 9.38vw;
    border-radius: 1.88vw;
  }

  .popup__dialog::before {
    border-radius: 1.88vw;
    backdrop-filter: blur(6.25vw);
  }

  .popup__close {
    top: 3.12vw;
    right: 3.12vw;
    width: 4.69vw;
    height: 4.69vw;
    font-size: 7.5vw;
    line-height: 4.69vw;
  }

  .registration-form {
    row-gap: 1.25vw;
  }

  .registration-form__field {
    row-gap: 0.89vw;
  }

  .registration-form__label,
  .registration-form__group-title {
    font-size: 3.12vw;
    line-height: 3.75vw;
  }

  .registration-form__input,
  .registration-form__select {
    height: 6.88vw;
    padding: 0 2.81vw;
    border-radius: 1.69vw;
    font-size: 3.12vw;
    line-height: 3.75vw;
  }

  .registration-form__textarea {
    padding: 1.56vw 2.81vw;
    min-height: 21.88vw;
  }

  .registration-form__input::placeholder {
    font-size: 3.12vw;
    line-height: 3.75vw;
  }

  .popup-custom-select__head {
    height: 6.88vw;
    min-height: 6.56vw;
    padding: 0 2.81vw;
    border-radius: 1.69vw;
    font-size: 3.12vw;
    line-height: 3.75vw;
  }

  .popup-custom-select__arrow {
    width: 3.12vw;
    height: 1.88vw;
  }

  .popup-custom-select__body {
    top: calc(100% + 0.94vw);
    row-gap: 0.94vw;
    padding: 2.19vw 2.81vw;
    border-radius: 1.69vw;
    backdrop-filter: blur(4.69vw);
  }

  .popup-custom-select__option {
    column-gap: 1.72vw;
    font-size: 3.12vw;
    line-height: 3.75vw;
  }

  .popup-custom-select__checkbox {
    width: 2.81vw;
    height: 2.81vw;
    border: 0.07vw solid rgb(255, 255, 255);
    border-radius: 0.56vw;
  }

  .popup-custom-select__input:checked + .popup-custom-select__checkbox::before {
    left: 0.63vw;
    top: 0;
    width: 0.94vw;
    height: 1.88vw;
  }

  .registration-form__submit {
    margin-top: 4.69vw;
    padding: 3.44vw 4.38vw;
    border-radius: 2.19vw;
    font-size: 3.44vw;
    line-height: 3.75vw;
    box-shadow: 0 1.25vw 1.25vw 0 rgba(0, 0, 0, 0.05);
  }

  .file-upload {
    min-height: 6.88vw;
    padding: 0 2.81vw;
    border-radius: 1.69vw;
    background: rgba(244, 244, 244, 0.15);
    cursor: pointer;
    box-sizing: border-box;
  }

  .file-upload__text {
    font-size: 3.12vw;
    line-height: 3.75vw;
  }

  .success-popup__dialog {
    max-width: 68.75vw;
    border-radius: 1.88vw;
    padding: 9.38vw 6.25vw;
  }

  .success-popup__close {
    top: 3.12vw;
    right: 3.12vw;
    width: 4.69vw;
    height: 4.69vw;
    font-size: 7.5vw;
    line-height: 4.69vw;
  }

  .success-popup__content {
    row-gap: 3.12vw;
  }

  .success-popup__title {
    font-size: 3.75vw;
    line-height: 4.38vw;
  }

  .success-popup__text {
    font-size: 3.44vw;
    line-height: 4.06vw;
  }

  .registration-form__agreements {
    row-gap: 1.88vw;
    margin-top: 2.81vw;
  }

  .registration-form__agreement {
    grid-template-columns: 3.44vw 1fr auto;
    column-gap: 2.81vw;
  }

  .registration-form__agreement-box {
    width: 4.69vw;
    height: 4.69vw;
    border-radius: 1.25vw;
  }

  .registration-form__agreement-box::before {
    left: 1.88vw;
    top: 0.63vw;
    width: 1.25vw;
    height: 2.81vw;
    border-right: 0.31vw solid #ffffff;
    border-bottom: 0.31vw solid #ffffff;
  }

  .registration-form__agreement-text {
    font-size: 2.19vw;
    line-height: 2.5vw;
  }

  .registration-form__agreement-tooltip {
    width: 3.44vw;
    height: 3.44vw;
    margin-top: 0.63vw;
    left: -1.56vw;
  }

  .registration-form__agreement-info {
    width: 3.44vw;
    height: 3.44vw;
    background-size: 3.44vw 3.44vw;
  }

  .registration-form__agreement-tooltip-text {
    bottom: calc(100% + 2.81vw);
    width: 46.88vw;
    left: -7.81vw;
    padding: 3.44vw 2.81vw;
    border-radius: 1.69vw;
    font-size: 2.19vw;
    line-height: 2.5vw;
  }

  .registration-form__agreement-tooltip-text::before {
    border-left: 1.25vw solid transparent;
    border-right: 1.25vw solid transparent;
    border-top: 1.25vw solid #666666;
    left: calc(50% + 9.38vw);
  }
}
