.ts-modal-quiz {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(36, 36, 36, 0.9);
}
.ts-modal-quiz form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.ts-modal-quiz p.help-block {
  margin: 0;
  padding: 0;
}
.ts-modal-quiz__wrapper {
  background-color: #fefefe;
  margin: auto;
  border: 1px solid #888;
  width: 730px;
  height: 640px;
  padding: 30px 35px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
}
.ts-modal-quiz .close-modal, .ts-modal-quiz__close-button {
  cursor: pointer;
  background: url(/img/blocks/ts-modal-quiz/close.svg);
  width: 24px;
  height: 24px;
  position: absolute;
  right: 0;
}
.ts-modal-quiz__close-button {
  top: -20px;
  filter: brightness(0%);
}
.ts-modal-quiz__info-panel {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  align-items: center;
}
.ts-modal-quiz__info-panel .btn {
  font-size: 18px;
  font-weight: 600;
  border: 2px solid transparent;
}
.ts-modal-quiz__info-panel .btn-white {
  border: 2px solid var(--trasparent-black-10, rgba(36, 36, 36, 0.1));
  color: rgba(36, 36, 36, 0.6);
}
.ts-modal-quiz__button-block {
  cursor: pointer;
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translate(0, -50%);
  z-index: 1040;
  display: none;
}
.ts-modal-quiz__button {
  /*background: url(../img/blocks/ts-modal-quiz/modal-quiz-button.png);
  width: 141px;
  height: 137px;
  border: none;
  @include minitablet {
    width: 94px;
    height: 97px;
    background-size: contain;
    background-repeat: no-repeat;
  }*/
  background: url(/img/blocks/ts-discount-modal/modal-quiz-button.svg);
  width: 141px;
  height: 137px;
  border: none;
  background-size: contain;
  background-repeat: no-repeat;
}
.ts-modal-quiz.question-number-4 .ts-modal-quiz__info-panel {
  display: none;
}
.ts-modal-quiz__info {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  grid-column: span 2/span 2;
}
.ts-modal-quiz__progress {
  display: flex;
  justify-content: center;
}
.ts-modal-quiz .progress-fill {
  fill: #ffe684;
}
.ts-modal-quiz.question-number-1 .progress-fill {
  fill: #f5f5f5;
}
.ts-modal-quiz.question-number-2 .progress-fill {
  opacity: 0.35;
}
.ts-modal-quiz.question-number-3 .progress-fill {
  opacity: 1;
}
.ts-modal-quiz.question-number-4 .progress-fill {
  fill: #3aad81;
}
.ts-modal-quiz text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.ts-modal-quiz__submit {
  width: 400px;
  margin: 0 auto;
  margin-top: 35px;
}
.ts-modal-quiz__submit .btn {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.ts-modal-quiz__form {
  display: none;
  width: 400px;
  margin: 0 auto;
  gap: 20px;
  margin-top: 65px;
}
.ts-modal-quiz__form input[type=text] {
  height: 66px;
  width: 100%;
  padding: 26px 30px;
  border-radius: 10px;
  border: 1px solid rgba(36, 36, 36, 0.6);
  box-shadow: 0px 12px 50px 0px rgba(0, 0, 0, 0.03);
}
.ts-modal-quiz__form input[type=checkbox] {
  margin-right: 5px;
}
.ts-modal-quiz.question-number-4 .quiz-questions {
  display: none;
}
.question-number-4 .ts-modal-quiz__form {
  display: grid;
}
.ts-modal-quiz__agreement-block {
  color: rgba(36, 36, 36, 0.6);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  display: flex;
}
.ts-modal-quiz__agreement-block a {
  color: rgba(36, 36, 36, 0.6);
  text-decoration: underline;
}

.quiz-question-block__title {
  font-size: clamp(1rem, 0.721rem + 1.04vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
  width: 85%;
}
.quiz-question-block__question {
  font-size: clamp(1rem, 0.86rem + 0.52vw, 1.25rem);
  font-weight: 600;
  line-height: 1.6;
}

.quiz-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

.quiz-question__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding-top: 25px;
}

.question-number-4 .quiz-question__wrapper {
  flex-grow: 0;
}

.quiz-question {
  margin-bottom: 20px;
}

.quiz-option input[type=radio]:checked + span {
  border-color: green;
}

.quiz-option input[type=radio]:checked + span:before {
  background-color: green;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(36, 36, 36, 0.1);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 576px) {
  .ts-modal-quiz__wrapper {
    max-width: 90%;
    padding: 16px;
    height: auto;
  }
  .ts-modal-quiz__info-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .ts-modal-quiz__progress {
    transform: scale(1.5);
    margin-top: 25px;
  }
  .question-number-4 .ts-modal-quiz__progress {
    margin-top: 0;
  }
  .ts-modal-quiz__submit {
    width: 100%;
    margin-top: 20px;
  }
  .ts-modal-quiz__form {
    width: 100%;
    margin-top: 35px;
  }
  .ts-modal-quiz__form input[type=text] {
    width: 100%;
    padding: 15px 16px;
    height: auto;
  }
  .ts-modal-quiz__agreement-block {
    align-items: baseline;
  }
}

@media (max-width: 768px) {
  .ts-modal-quiz__button {
    width: 94px;
    height: 97px;
  }
}
