/* QUIZ TOP SECTION */
#quiz-top-section {
  padding-top: 100px;
  padding-bottom: 90px;
  position: relative;
  overflow: visible;
}
#quiz-top-section .p15a {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#quiz-top-section::after {
  content: '';
  background: var(--cream);
  width: 80px;
  height: 80px;
  display: block;
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 9;
  transform: translate(-50%, 50%) rotate(45deg);
}
#quiz-top-section::before {
  content: '\f061';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--dark2-blue);
  font-size: 24px;
  position: absolute;
  z-index: 10;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0) rotate(90deg);
}

/* QUIZ */
.quiz-wrapper {
  margin-top: 120px;
  margin-bottom: 60px;
  width: 100%;
}
.quiz-render {
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.quiz-render-inner {
  width: 100%;
  transition: all ease 3s;
}

#quiz-steps {
  text-align: center;
  font-family: var(--main-font);
  color: #588dd4;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.quiz-title {
  text-align: center;
  font-family: var(--main-font);
  color: var(--dark-blue);
  font-size: 34px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 40px;
}

/* Action Buttons */
.quiz-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  max-width: 1000px;
  margin: 0 auto;
}

.quiz-actions button:not(#quizRestart) {
  font-family: var(--main-font);
  color: var(--dark-blue);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
  height: 24px;
  line-height: 24px;
}

.quiz-actions button:not(#quizRestart)::before {
  content: '';
  background-color: #3d4f71;
  width: 100%;
  height: 1px;
  display: block;
  margin-bottom: 2px;
}

/* Start Button */
#quizStart,
#quizRestart {
  font-family: var(--main-font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.8px;
  border-radius: 1px;
  padding: 0 30px;
  line-height: 42px;
  min-width: 300px;
  text-align: center;
  margin-top: 12px;
  color: #fff;
  border: 1px solid var(--dark-blue);
  background: var(--dark-blue);
}

/* Answers */
#quiz-answers {
  min-height: 380px;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}

.quiz-answer-box {
  max-width: 460px;
  margin: 0;
  cursor: pointer;
  width: 100%;
  flex: 1 1 auto;
  position: relative;
  transition: all ease 3s;
  text-align: center;
  background-color: #fff;
  box-shadow: 0px 10px 30px 0px rgba(202, 191, 177, 0.3);
}
.quiz-answer-box label {
  text-align: center;
  display: block;
  width: 100%;
  padding: 0 10px;
  position: relative;
  height: 80px;
}
.quiz-answer-box label p {
  font-family: var(--main-font);
  color: var(--dark-blue);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 20px);
}
.quiz-answer-big-text .quiz-answer-box label p {
  font-size: 24px;
  line-height: 30px;
}

.quiz-answer-small-text .quiz-answer-box label p {
  font-size: 18px;
  line-height: 24px;
}

.quiz-answer-box input {
  display: none;
}

.quiz-answer-image-wrapper {
  position: relative;
}
.quiz-answer-image-wrapper img {
  position: relative;
  z-index: 1;
}
.quiz-answer-box.activeAnswer .quiz-answer-image-wrapper::before {
  content: '';
  background-image: url(https://www.eco-mat.gr/wp-content/uploads/2023/09/quiz-hover-check-white.png);
  width: 54px;
  height: 54px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.quiz-answer-box.activeAnswer .quiz-answer-image-wrapper::after {
  content: '';
  background: #588dd4;
  opacity: 0.5;
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

/* Progress */
#quiz-progress {
  position: relative;
  width: 100%;
  max-width: 1050px;
  margin: 0 auto 50px;
  justify-content: center;
  align-items: center;
}
#quiz-progress-bar {
  border-radius: 15px;
  height: 12px;
  width: 100%;
  background: #c1d4ed;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

#quiz-progress-bar-value {
  border-radius: 15px;
  height: 12px;
  position: absolute;
  display: block;
  background: #588dd4;
  transition: width ease-in-out 1.5s;
}

#quiz-progress-text {
  font-family: var(--main-font);
  color: #859ab6;
  font-size: 13px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 1px;
}

.quizLoading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 99;
  font-size: 50px;
  color: var(--dark-blue);
  -webkit-animation-name: spin;
  -webkit-animation-duration: 1500ms;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: spin;
  -moz-animation-duration: 1500ms;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  -ms-animation-name: spin;
  -ms-animation-duration: 1500ms;
  -ms-animation-iteration-count: infinite;
  -ms-animation-timing-function: linear;
  animation-name: spin;
  animation-duration: 1500ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@-ms-keyframes spin {
  from {
    -ms-transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
  }
}
@-moz-keyframes spin {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.quizAjaxResultWrapper ul.products {
  justify-content: center;
}
