
.quiz {
  max-width: 888px;
  margin: 0 auto;
  padding: 22.5px 16px 120px;
  background: #ffffff;
  font-family: "Poppins", sans-serif;
}

.quiz-progress {
  max-width: 888px;
  margin: 0 auto 48px;

  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  row-gap: 10px;
}

.quiz-progress__label {
  grid-column: 1 / 2;
  grid-row: 1 / 2;

  font-size: 14px;
  color: #8a8a8a;
}

.quiz-progress__percent {
  grid-column: 2 / 3;
  grid-row: 1 / 2;

  font-size: 14px;
  font-weight: 500;
  color: #006655;
}


.quiz-progress__bar {
  grid-column: 1 / 3;
  grid-row: 2 / 3;

  height: 4px;
  background: #e6e6e6;
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #006655;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.quiz-progress {
  position: relative;
}

.quiz-progress::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;

  width: 100vw;
  height: 1px;

  background: #eeeeee;

  transform: translateX(-50%);
}


.quiz-question {
  margin: 0 0 36px;
  text-align: center;
  font-size: 40px;
  font-weight: 400;
  line-height: 130%;
  color: #080808;
}


.quiz-answers {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-answer {
  position: relative;
  padding: 18px 56px 18px 18px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 400;
  line-height: 130%;
  color: #333333;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}


.quiz-answer::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #cccccc;
  transform: translateY(-50%);
  background: transparent;
}

/* Selected */

.quiz-answer.is-selected {
  background: #2f6456;
  border-color: #2f6456;
  color: #ffffff;
}

.quiz-answer.is-selected::after {
  border: none;
  background: url("../img/select.png") center / contain no-repeat;
}


.quiz-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 17.5px 24px;
  background: #ffffff;
  border-radius: 64px;
  font-size: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  color: #2f6456;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.25s ease;
}

.quiz-toast.show {
  opacity: 1;
}

.quiz-toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-toast img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.quiz-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
}

.quiz-footer__inner {
  max-width: 888px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
}

.quiz-next {
  margin-left: auto;
  cursor: pointer;
}

.quiz-next:disabled {
  background-color: #E0E0E0;
  pointer-events: none;
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: none;
  border: none;
  padding: 0;

  font-size: 16px;
  font-weight: 500;
  color: #2f6456;

  cursor: pointer;
}

.quiz-back img {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 768px) {
  .quiz {
    padding-bottom: 140px;
  }

  .quiz-question {
    font-size: 28px;
  }

}
