:root {
  --cyan: #01D0D2;
  --navy: #09103F;
  --text: #09103F;
  --muted: #7b8495;
  --light-dot: #cdd5df;
  --card-border: #c6ceda;
  --bg: #eef2f7;
  --white: #ffffff;
}

/* * {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
} */

/* horizontal progress line */
.progress-line {
  width: 100%;
  height: 4px;
  background: #EEF0F5;
  position: relative;
  margin: 0 0 29px 0;
}

.progress-line span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.quiz-container {
  width: 100%;
  max-width: 1266px;
  margin: 0 auto;
  padding: 31px 35px 65px 35px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.quiz-form-wraper {
  max-width: 1054px;
}

/* Top bar */
.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.back-link {
  border: 0;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  line-height: 17.17px;
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
}

.back-link:hover {
  opacity: 0.75;
}

.back-link:disabled {
  visibility: hidden;
}

#questionCounter {
  margin: 0;
  font-size: 14px;
  line-height: 18.49px;
  font-weight: 400;
  letter-spacing: 0;
}

#qNum {
  color: var(--cyan);
  font-weight: bold;
}

.q-total {
  color: var(--navy);
}

/* Questions */
.question {
  display: none;
}

.question.active {
  display: block;
  animation: fade-in 0.25s ease;
}

.question h2 {
  margin: 0 0 21px 0;
  font-size: 18px;
  line-height: 25.53px;
  color: var(--navy);
  font-weight: 700;
}
.question h2 span {
  font-weight: 400;
}

/* Answer cards */
.answer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  margin-bottom: 8.8px;
  padding: 13px 18px;
  border: 1.76px solid #C9CFD8;
  border-radius: 10.56px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.answer:hover {
  border-color: var(--cyan);
}

.answer input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer .avatar {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #C9CFD8;
  color: #6B7280;
  font-size: 12px;
  line-height: 14.53px;
  font-weight: 700;
}

.answer span:not(.avatar) {
  flex: 1;
  color: var(--text);
  font-size: 16px;
  line-height: 19.72px;
  font-weight: 400;
}

/* remove quote marks from old CSS */
.answer span:not(.avatar)::before,
.answer span:not(.avatar)::after {
  content: none;
}

.answer input:checked + .avatar {
  background: var(--cyan);
  color: #ffffff;
}

.answer:has(input:checked) {
  border-color: var(--cyan);
  background: #ffffff;
}

/* Buttons */
.controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

#nextButton.button {display: none;}

.button {
  padding: 10.5px 24px;
  border: 0;
  border-radius: 999px;
  background: #01D0D2;
  color: #fff;
  font-size: 11.45px;
  line-height: 17.17px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: 0.2s ease;
}
.button.is-light {
  background: #C9CFD8;
  color: #717885;
  cursor: pointer;
  opacity: 1;
}
.button img{
  filter: brightness(0) invert(1);
}

.button.is-light img{
  filter: none;
}

.button:not(.is-light):hover {
  opacity: 0.9;
}


.button:hover {
  opacity: 0.9;
}

.error-message {
  display: none;
  margin: 18px 0 0;
  color: #c62828;
  font-size: 14px;
  text-align: right;
}

.error-message.visible {
  display: block;
}

.hidden {
  display: none !important;
}

/* Bottom dots */
.dots-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5.28px;
  margin-top: 24px;
}

.dot {
  width: 5.28px;
  height: 5.28px;
  border-radius: 999px;
  background: #C9CFD8;
  transition: all 0.2s ease;
}

.dot.completed {
  background: var(--navy);
}

.dot.active {
  width: 21.12px;
  background: var(--cyan);
}

/* Loader */
.loader-overlay {
  position: relative;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: var(--navy);
  min-height: 478px;
}

.top-shape {
    left: 0px;
    background-image: url("/wp-content/uploads/2026/07/DIVIDER-F0F3F7.png");
    background-image: url("/wp-content/uploads/2026/06/DIVIDER.png");      
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    min-height: 55px;
    top: -55px;
    width: 100%;
}

.spinner {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
}

.spinner .circle-back {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background:rgba(1, 208, 210, 0.2);
;
}

.spinner .orbit {
  position: absolute;
  inset: 0;
  animation: orbit-spin 1.3s linear infinite;
}

.spinner .circle-front {
  position: absolute;
  top: 0;
  left: 50%;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--cyan);
}

.loader-title {
  margin: 0 0 16px 0;
  color: #ffffff;
  line-height: normal;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0;
}

.loader-subtitle {
  margin: 0 0 0;
  color: #FFFFFF80;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: normal;
  text-align: center;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 767px) {


  .progress-line{
    height: 11px;
    background-color: #D9D9D9;
    border-radius: 77px;
    margin-bottom: 21px;
  }
  .progress-line span{
    border-radius: 77px;
  }


  .quiz-container {
    padding: 0px 23px 0px 20px;
  }
  .quiz-topbar{
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 21px;
  }
  #questionCounter{
    margin: 0 0 0 auto;
  }

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


  .answer{
    border-color: #fff;
    gap: 10px;
  }

  .button{
    margin-top: 16px;
  }

  .dots-track{
    margin-top: 35px;
  }


  .loader-title {
    font-size: 18px;
  }
  
  .loader-subtitle {
    font-size: 14px;
    color: #FFFFFF80;
  }

  .controls{
    margin: 0;
  }


  .quiz-wraper{
    padding: 13px 11px 15px 12px;
  }
}