.quiz_inner {
  background-color: #f9f9f9;
  padding: 50px 0;
}

.quiz__container {
  box-sizing: border-box;
  min-width: 320px;
  padding: 0 16px;
  margin: 20px;
}

.quiz__container {
  background: #fff;
  padding: 20px;
}

@media (min-width: 768px) {
  .quiz__container {
    width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1200px) {
  .quiz__container {
    width: 1180px;
  }
}

.box {
  position: relative;
  margin: auto;
  display: block;
  /*optional background or border*/
  border-radius: 20%;
  margin-top: 5%;
  margin-bottom: 5%;
  width: 100%;
  height: 100%;
  background: none;
  padding: 28px 26px;
}

.more-button__text {
  margin-right: 15px;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: #000;
  background: transparent;
  border: none;
}

.cases__container {
  background: #fff;
  padding: 20px;
}

#test h3 {
  margin-bottom: 10px;
  font-family: "Avenir Next Cyr";
  font-weight: 600;
  font-size: 28px;
  line-height: 1.28em;
  color: #27979d;
  margin-bottom: 40px;
}

h2#test_status {
  text-align: center;
}

.test_status {
  text-align: center;
}

.success_quiz {
  text-align: center;
}
.success_text {
  text-align: center;
}

.contacts_form {
  display: none;
}

.contacts_form.active {
  display: block;
}

.contacts_form.active {
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.preview_block {
  margin-bottom: 40px;
}

.preview_text {
  text-align: center;
  margin-bottom: 10px;
}

h1.quiz_title {
  text-align: center;
}

.quiz_description {
  text-align: center;
}

.question_block {
  cursor: pointer;
  display: block;
  padding: 10px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 5px;
  border-radius: 4px;
}

.question_block input {
  margin-right: 10px;
}

/* Скрываем стандартный радио-инпут */
.question_block input[type="radio"] {
  position: absolute;
  opacity: 0;
}
/* Стилизация контейнера-лейбла */
.question_block {
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding: 5px 0;
  user-select: none;
}
/* Кастомный блок для радио */
.custom-radio {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc; /* серая рамка */
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
  transition: border-color 0.2s;
  position: relative;
}
/* Дополнительное состояние: активный (выбранный) */
.question_block input[type="radio"]:checked + .custom-radio {
  border-color: #000; /* чёрная рамка при выборе */
}
/* Отображаем внутренний кружок, когда радио выбрано */
.question_block input[type="radio"]:checked + .custom-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #000; /* чёрный кружок */
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 992px) {
  .contacts_form.active {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    position: relative;
  }

  .contacts_form.active {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    height: 100%;
    position: relative;
    margin-bottom: 50px;
  }
}
