.registration {
  position: relative;
  padding: 90px 0 185px 0;
}

.registration__title {
  margin-bottom: 95px;
}

.form {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  width: 740px;
  margin: 0 auto;
  padding: 65px 90px 60px;
  border-radius: 6px;
  background-color: var(--mainGrey);
  background-image: url(../img/registration/regBack.png);
  background-repeat: no-repeat;
  background-position: top right;
}

.form__title {
  margin-bottom: 60px;
  color: var(--blackText);
  font-size: 36px;
  font-weight: 700;
  line-height: 42px;
}

.form__subtitle {
  color: var(--secondaryBlue);
  font-size: 28px;
  font-weight: 700;
  line-height: 33px;
}

.form__fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 25px;
  width: 100%;
}

.all-width {
  grid-column-start: 1;
  grid-column-end: 3;
}

.input-box {
  position: relative;
}

.form__input {
  width: 100%;
  border: none;
  border-radius: 6px;
  color: var(--formBlack);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  padding: 8px 15px;
  box-shadow: 0 0 10px rgba(220, 220, 220, 0.9);
  outline: unset;
}

.form__input::placeholder {
  color: var(--formBlack);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.form__input:focus {
  box-shadow: 0 0 10px var(--mainBlue);
}

.form__radio {
  justify-content: flex-start;
  margin-bottom: 30px;
}

.radio-box {
  display: inline-block;
}

.radio-box:not(:last-child) {
  margin-right: 80px;
}

.form__radio * {
  color: var(--formBlack);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}

.format-title {
  margin-right: 80px;
}

.input-radio {
  position: relative;
  cursor: pointer;
  margin-right: 10px;
  visibility: hidden;
}

.label-radio {
  cursor: pointer;
  position: relative;
}

.label-radio::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 10px rgba(220, 220, 220, 0.9);
  z-index: 1;
}

.label-radio::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -25px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  z-index: 2;
}

.input-radio:checked+.label-radio::before {
  background: var(--mainBlue);
}

.checkbox-container {
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 50px;
}

.input-checkbox {
  margin-right: 15px;
  visibility: hidden;
}

.label-checkbox {
  position: relative;
}

.label-checkbox, .label-checkbox a {
  color: var(--mainBlue);
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
}

.label-checkbox a {
  text-decoration: underline;
}

.label-checkbox::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 0 10px rgba(220, 220, 220, 0.9);
  cursor: pointer;
}

.input-checkbox:checked+.label-checkbox::after {
  background-image: url(../img/registration/checked.png);
  background-repeat: no-repeat;
  background-size: 60% 60%;
  background-position: center;
}

.input-checkbox:focus+.label-checkbox::after {
  box-shadow: 0 0 10px var(--mainBlue);
}

.btn-container {
  width: 100%;
  text-align: center;
}

.form__btn {
  cursor: pointer;
  background-color: var(--secondaryBlue);
  color: var(--white);
  transition: .3s;
}

.form__btn:hover {
  background-color: var(--mainBlue);
}

.form__btn:active {
  background-color: var(--secondaryBlue);
}

.form__btn:disabled {
  background-color: var(--secondaryGrey);
  cursor: auto;
}

/* Status styles start */

.status {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.status__item {
  position: relative;
  height: 40px;
  border-radius: 6px 6px 0 0;
}

.status__input {
  visibility: hidden;
}

.status__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--secondaryBlue);
  border-bottom: unset;
  color: var(--secondaryBlue);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
}

.status__input:checked+.status__label {
  background-color: var(--secondaryBlue);
  color: var(--white);
}

.status__title {
  display: none;
  color: var(--secondaryBlue);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.status__fields {
  display: none;
  margin-bottom: 35px;
}

.is_active {
  display: block;
}

.status__item_input {
  width: 100%;
  cursor: pointer;
}

.status__event_box {
  position: relative;
}

.event__input {
  padding: 8px 40px 8px 15px;
}

.arrow {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 16px;
  height: 16px;
  background-image: url('../img/registration/arrow.svg');
  background-repeat: no-repeat;
  background-size: contain;
  transform-origin: 50% 5px;
  transition: .3s;
}

.status__track_list {
  max-height: 0px;
  padding: 0 15px;
  border-radius: 0 0 6px 6px;
  background-color: #F8F8F8;
  overflow: hidden;
  -webkit-transition: max-height 0.4s linear;
  -moz-transition: max-height 0.4s linear;
  transition: max-height 0.4s linear
}

.status__track_item:not(:last-child) {
  border-bottom: 1px solid var(--secondaryBlue);
}

.status__track_value {
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
  transition: .3s;
}

.status__track_value:hover {
  background-color: var(--secondaryBlue);
  color: var(--white);
  font-weight: 700;
}

/* .status__item_input:focus+.status__track_list {
  max-height: 500px;
} */

.status__item_input:focus+.status__track_list+.arrow {
  transform: rotate(180deg);
}

/* speakers */

.del-btn-box {
  justify-content: flex-end;
  margin-bottom: 15px;
}

.event_item:not(:first-child) {
  padding-top: 25px;
  border-top: 1px solid var(--secondaryBlue);
}

.event_item:not(:last-child) {
  margin-bottom: 25px;
}

.status__event_box {
  margin-bottom: 25px;
}

.choose-event-block {
  margin-bottom: 25px;
}

.speaker__field-box {
  margin-bottom: 25px;
}

.speaker__input {
  width: 100%;
}

.speaker__textarea {
  width: 100%;
  height: 160px;
  border: none;
  border-radius: 6px;
  color: var(--formBlack);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  padding: 8px 15px;
  box-shadow: 0 0 10px rgba(220, 220, 220, 0.9);
  outline: unset;
  resize: none;
}

.speaker__textarea:focus {
  box-shadow: 0 0 10px var(--mainBlue);
}

.speaker__textarea::placeholder {
  color: var(--formBlack);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.length {
  position: absolute;
  right: 3px;
  bottom: -14px;
  color: var(--formBlack);
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
}

.add-event-btn {
  width: 100%;
  margin-bottom: 25px;
  border: none;
  background: transparent;
  color: var(--secondaryBlue);
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
}

.file-box {
  position: relative;
  height: 40px;
}

.label-file {
  position: absolute;
  left: 0;
  top: 0;
}

.input-file {
  width: 2px;
  visibility: hidden;
}

.file-text {
  color: var(--formBlack);
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
}

.plus {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 15px;
}

.plus-line:first-child {
  transform: rotate(90deg);
}

.plus-line {
  position: absolute;
  top: 5px;
  height: 3px;
  width: 100%;
  border-radius: 1.5px;
  background-color: var(--secondaryBlue);
}

/* Participants */
.track-title {
  margin-bottom: 20px;
}

.track-checkbox-box {
  margin-bottom: 15px;
}

.label-checkbox.track-label {
  color: var(--blackText);
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  cursor: pointer;
  transition: .3s;
}

.track-label:hover {
  color: var(--secondaryBlue);
}

/* Status styles end*/

.result {
  position: absolute;
  inset: 0;
  background-color: rgba(62, 62, 62, 0.5);
  border-radius: 6px;
  visibility: hidden;
  z-index: 100;
}

.result__window {
  position: absolute;
  top: 295px;
  left: calc(50vw - 290px);
  flex-direction: column;
  height: 235px;
  width: 560px;
  padding: 30px 0 45px 0;
  border-radius: 6px;
  background-color: var(--secondaryBlue);
}

.result__window .image__box {
  width: 75px;
  height: 75px;
  background-repeat: no-repeat;
  background-size: contain;
}

.result__text {
  width: 100%;
  text-align: center;
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  line-height: 33px;
}

.successfully .image__box {
  background-image: url(../img/registration/success.png);
}

/* .unsuccessfully .image__box {
  
} */

.unsuccessfully .result__window {
  background-color: #FB4E18;
}

.visible {
  visibility: visible;
}

/* Validity classes */

.validation-style {
  display: block;
  position: absolute;
  width: 32px;
  height: 32px;
  top: 4px;
  right: 4px;
}

.error {
  background: linear-gradient(135deg, #FFEDE8 0%, #FFFFFF 100%);
}

.error~.validation-style {
  background-image: url(../img/registration/Invalid.png);
  background-repeat: no-repeat;
  background-position: contain;
}

.error-text {
  display: none;
  position: absolute;
  left: 3px;
  bottom: -14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  color: #FB4E18;
}

.error~.error-text {
  display: block;
}

.not-error {
  position: relative;
  background: linear-gradient(135deg, #E8F6FF 0%, #FFFFFF 100%);
}

.not-error~.validation-style {
  background-image: url(../img/registration/Valid.png);
  background-repeat: no-repeat;
  background-position: contain;
}

.status__participant {
  position: relative;
}

.status__participant.error .error-text {
  display: block;
  position: absolute;
  top: 5px;
  left: 120px;
}

.status__participant.not-error .error-text {
  display: none;
}

@media (max-width: 768px) {
  .form {
    width: 100%;
    padding: 30px 15px 30px;
  }

  .form__title {
    margin-bottom: 40px;
    font-size: 20px;
    line-height: 24px;
  }

  .form__subtitle {
    font-size: 18px;
    line-height: 22px;
  }

  .result__window {
    left: calc(50vw - 45%);
    height: 190px;
    width: 90%;
    padding: 20px 0 30px 0;
  }

  .result__text {
    width: 100%;
    font-size: 20px;
    line-height: 24px;
  }
}

@media (max-width: 568px) {
  .registration {
    position: relative;
    padding: 50px 0 70px 0;
  }

  .registration__title {
    margin-bottom: 50px;
  }

  .form {
    width: 100%;
    padding: 30px 15px 30px;
  }

  .form__fields {
    grid-template-columns: 100%;
    column-gap: 0;
    row-gap: 20px;
  }

  .all-width {
    grid-column-start: 1;
    grid-column-end: 1;
  }

  .form__radio {
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 30px;
  }

  .format-title {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .radio-box {
    display: block;
  }

  .radio-box:not(:last-child) {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .textarea-box {
    margin-bottom: 45px;
  }

  .textarea-box .error-text {
    bottom: -28px;
  }

  .file-text {
    margin-top: 5px;
    display: block;
  }

  .choose-event-block {
    margin-bottom: 40px;
  }

}