.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.5s ease;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
.modal.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
  transition: all 0.5s ease;
  display: flex !important;
}
.modal__container {
  top: inherit;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;  
  width: 100%;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  height: auto;
  max-height: 924px;
  background: #250046;
  position: relative;
}
.modal__header {
  position: relative;
}
.modal__close {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 24px;
  height: 24px;  
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;  
  cursor: pointer;
}
.modal__close::before {
  content: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 6L18 18M18 6L6 18" stroke="%23DCDCF0" stroke-width="2" stroke-linecap="round" /></svg>');
  display: block;
  width: 100%;
  height: 100%;
}
.modal__title {
  font-family: "Play", sans-serif;
	font-weight: 400;
	font-size: 22px;
	line-height: 127%;
	color: #dcdcf0;
	margin-bottom: 40px;
}
.modal__form {
  margin-bottom: 40px;
}
.modal__row {
  display: flex;
  gap: 20px;
}
.modal__row:not(:last-child) {
  margin-bottom: 20px;
}
.modal__row_radio {
  max-width: 500px;
  gap: 20px;
}
.form__label {
  display: block;
  margin-bottom: 10px;
  position: relative;
}
.form__label.form__type--checkbox {
	padding: 10px 0;
}
.form__label.form__type--checkbox .form__text {
  font-size: 12px;
  left: 26px;
  color: #dcdcf0;
  line-height: 30px;
}
.form__container.form__container--success.form__container--show {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 143%;
  color: #ff6dce;
  text-align: center;
}
.modal.form-status--success .modal__container .modal__header {
  display: none;
}
.modal.form-status--success .modal__container .form.form-status--success {
  display: none;
}

.modal__label {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 133%;
  color: rgba(220, 220, 240, 0.4);
}
.modal__label a {
  text-decoration: underline;
  -webkit-text-decoration-skip-ink: none;
          text-decoration-skip-ink: none;
  color: #9090bd;
}
.modal__label a:hover {
  text-decoration: none;
}
.modal__label--checkbox {
  display: flex;
  align-items: center;
  gap: 20px;
}
.modal__label--checkbox span {
  display: inline-block;
  padding-left: 36px;
  position: relative;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 133%;
  color: #dcdcf0;
}
.modal__label--checkbox span::before {
  content: "";
  width: 24px;
  height: 24px;
  background: url("../img/checkbox.png") no-repeat 0 0;
  position: absolute;
  left: 0;
  top: -6px;
}
.modal__text {
  display: block;
  margin-bottom: 10px;
}
.form__item-container {
  background: rgba(180, 200, 255, 0.2);
  border-radius: 10px;
  color: rgba(220, 220, 240, 1);
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 133%;
  padding: 22px 18px 12px;
  width: 100%;
}
.form__item {
  background: transparent;
  color: rgba(220, 220, 240, 1);
  font-size: 1.2rem;
  width: 100%;
}
.form__item-select {
  margin-left: -4px;
}
.form__item-select option {
  background: #250046;
}
.form__text {
  position: absolute;
  top: 6px;
  left: 18px;
  color: rgba(220, 220, 240, 0.35);
  font-family: var(--font-family);
  font-size: 12px;
}
.form__type--checkbox .form__text {
  font-size: 12px;
  left: 26px;
  color: #dcdcf0;
}
.form__type--checkbox .form__text a {
  text-decoration: underline;
  color: #9090bd;
}
.form__type--checkbox .form__text a:hover {
  text-decoration: none;
}
.form__item[type=checkbox] {
  -moz-appearance: none;
  position: absolute;
  width: 16px;
  height: 22px;
}
.form__tooltip {
  display: none;
}
.modal__input.is-invalid {
  border: 1px solid #ff6dce;
}
.form__error {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 143%;
  color: #ff6dce;
}
.form__btn {
  backdrop-filter: blur(64px);
	box-shadow: 0 0 32px 0 rgba(240, 0, 250, 0.5), 0 0 16px 0 rgba(0, 25, 240, 0.5);
	background: linear-gradient(90deg, #c800c8 0%, #9600ff 100%, #9600ff 100%);
  width: 100%;
  height: 60px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Play", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 127%;
  text-align: center;
  color: #dcdcf0;
  margin: 40px auto;
}
.form__btn[disabled] {
  opacity: 0.75;
}
.modal-success__image {
  margin: 0 auto 16px;
}
.color-red {
  color: var(--color-red);
  font-style: normal;
}

.invisible {
  display: none;
}

/*
input[type=checkbox] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  position: absolute;
}

.modal__checkbox:focus:not(:checked) + label span::before,
.modal__checkbox span::before {
  background: url("../img/checkbox.png") no-repeat 0 0;
}

.modal__checkbox:not(:disabled):active + label span::before,
.modal__checkbox:not(:disabled):checked + label span::before {
  background: url("../img/checkbox-checked.png") no-repeat 0 0;
}

.modal__checkbox:focus + label span::before {
  background: url("../img/checkbox-checked.png") no-repeat 0 0;
}
*/

.modal__label_agreement .modal__checkbox + .modal__text_checkbox::before {
  top: 13px;
}

.modal__text_checkbox a {
  color: var(--color-blue);
}
.modal__text_checkbox a:hover {
  text-decoration: underline;
}

.modal__checkbox.is-invalid {
  border: 0;
}

@media (max-width: 835px) {
  .modal__close {
    right: 0;
    top: 0px;
  }
}
@media (max-height: 578px) {
  .modal.show {				
		justify-content: start;
	}
}
@media (max-width: 650px) {  
  .modal__title {
    font-size: 26px;
    line-height: 34px;
  }
  .modal__row {
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
  }
  .modal__row_radio {
    max-width: 100%;
  }
}
@media (max-width: 500px) {
  .modal__block {
    padding: 16px;
  }
}