.quiz {
  position: fixed;
  z-index: 9999;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow-x: hidden;
}
.quiz--active {
  display: flex;
}
.quiz__close-button {
  position: absolute;
  top: 0;
  right: 0;
  margin: 25px;
  background: none;
  border: none;
  outline: none;
  font-size: 32px;
  color: #808080;
}
.quiz__wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.quiz__list {
  display: flex;
  transition: transform 0.5s ease-in-out;
  overflow: hidden;
  width: 100vw; /* временно установим, в JS исправим */
}

.quiz__item {
  flex: 0 0 100vw; /* каждый блок занимает ширину экрана */
  box-sizing: border-box;
  padding: 0 20px;
}
.quiz__item-input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.quiz__item-variant {
  font-family: Onest;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quiz__item-title {
  font-family: Onest, sans-serif;
  font-size: 30px;
  margin-bottom: 50px;
  width: 100%;
  max-width: 550px;
}
.quiz__radio {
  visibility: hidden;
  position: absolute;
}
.quiz__custom-radio {
  display: flex;
  border: 1px solid #474747;
  border-radius: 50%;
  height: 18px;
  width: 18px;
  align-items: center;
  justify-content: center;
}
.quiz__radio:checked ~ .quiz__custom-radio {
  background-color: rgb(9, 140, 88);
}
.quiz__radio:checked ~ .quiz__custom-radio::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fff;
}
.quiz__button {
  cursor: pointer;
  padding: 12px 22px;
  font-size: 16px;
  font-family: Onest, sans-serif;
  border-radius: 8px;
  border: none;
}
.quiz__button--back {
  background: none;
  border: 1px solid #e0e0e0;
  margin-right: 20px;
}
.quiz__button--next,
.quiz__button--submit {
  background-color: rgb(9, 140, 88);
  color: #fff;
}
.quiz__progress-bar-wrapper {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: Onest, sans-serif;
  color: #c2c2c2;
  margin-bottom: 32px;
}
.quiz__progress-bar {
  width: 240px;
  height: 3px;
  background-color: rgb(191, 241, 221);
}
.quiz__progress-bar--complete {
  height: 100%;
  width: 0;
  background-color: rgb(9, 140, 88);
  display: block;
  transition: width 0.3s ease-in-out;
}
.quiz__item-input {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quiz__item-input-text {
  font-family: Onest, sans-serif;
  font-size: 18px;
}
.quiz__item-input-text--grey {
  color: #a5a5a5;
}
.quiz__tel {
  padding: 25px 15px;
  background-color: rgba(6, 6, 7, 0.1);
  border: none;
  outline: none;
  border-radius: 8px;
  font-family: Onest, sans-serif;
  font-size: 20px;
}

@media (max-width: 576px) {
  .quiz__item-title {
    font-size: 24px;
  }

  .quiz__list {
    text-decoration: none;
    list-style: none;
    padding: 0;
  }
}
