.quiz {
  display: grid;
  min-height: calc(100dvh - 60px);
}

.customize-support .quiz {
  min-height: calc(100dvh - 92px);
}

.quiz fieldset {
  grid-row: 1;
  grid-column: 1;
  height: calc(100dvh - 60px);
  background-color: #fff;
  z-index: auto;
}

.customize-support .quiz fieldset {
  height: calc(100dvh - 92px);
}

.quiz fieldset.end-screen {
  height: 100%;
  min-height: calc(100dvh - 60px);
}

.customize-support .quiz fieldset.end-screen {
  height: 100%;
  min-height: calc(100dvh - 92px);
}

.quiz .number-badge {
  width: max-content;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  background-color: var(--nectar-accent-color);
  border-start-start-radius: 5px;
  border-end-start-radius: 3px;
  border-start-end-radius: 3px;
  border-end-end-radius: 5px;
  min-inline-size: 16px;
  block-size: 19px;
  font-weight: bold;
  -webkit-box-align: center;
  align-items: center;
  color: var(--nectar-extra-color-4);
  padding-inline: 4px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0px;
}

.quiz .actions {
  display: flex;
  column-gap: 8px;
}

.quiz button.next {
  width: max-content;
  appearance: none;
  padding: 12px 22px;
  border: 2px solid var(--nectar-accent-color);
  color: var(--nectar-extra-color-4);
  background-color: var(--nectar-accent-color);
  font-size: 18px;
  font-weight: 400;
}

.quiz button.next:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.quiz button.prev {
  width: max-content;
  appearance: none;
  width: 49px;
  height: 49px;
  border: 2px solid var(--nectar-accent-color);
  color: var(--nectar-extra-color-4);
  background-color: var(--nectar-accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz button.next:hover,
.quiz button.prev:hover {
  cursor: pointer;
  background-color: transparent;
  color: var(--nectar-accent-color);
}

.quiz .welcome-screen {
  display: flex;
  height: stretch;
  flex-wrap: wrap;
}

.quiz .welcome-screen .col-1,
.quiz .welcome-screen .col-2 {
  height: 100%;
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz .welcome-screen .col-1 {
  padding: 80px;
  gap: 24px;
}

.quiz .welcome-screen .col-2 .img-holder {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz .welcome-screen .col-2 .img-holder > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.quiz .welcome-screen .header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.quiz .welcome-screen .header .number-badge,
.quiz .question .number-badge {
  position: absolute;
  left: -24px;
  top: 6px;
}

.quiz .welcome-screen .header .title,
.quiz .question .title,
.quiz .legend .title {
  font-family: var(--primary-font);
  color: var(--nectar-accent-color);
}

.quiz .legend .title > span {
  font-family: var(--secondary-font) !important;
  font-size: 60% !important;
  line-height: auto !important;
  font-weight: 400 !important;
}

.quiz .welcome-screen .header .desc,
.quiz .question .desc {
  color: var(--nectar-extra-color-3);
}

.quiz .group {
  display: flex;
  column-gap: 12px;
  align-items: center;
}

.quiz .group button[role="checkbox"] {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-width: 24px;
  min-height: 24px;
  background-color: var(--nectar-extra-color-4);
  border: 1px solid var(--nectar-accent-color);
  border-radius: 6px !important;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: all 0.25s ease-in-out;
}

.quiz .group button[role="checkbox"]:hover {
  outline-color: var(--nectar-extra-color-3);
}

.quiz .group button[aria-checked="true"] {
  background-color: var(--nectar-accent-color);
}

.quiz .group button[aria-checked="false"] svg {
  color: transparent;
  transition: all 0.3s ease-in-out;
}

.quiz .group button[aria-checked="true"] svg {
  color: var(--nectar-extra-color-4);
}

.quiz .group label {
  line-height: 1.4em !important;
}

.quiz .group label > a {
  text-decoration: underline;
}

.quiz .block-container {
  width: 100%;
  max-width: var(--max-container);
  display: flex;
  flex-direction: column;
  row-gap: 12px;
  margin-block: 85px;
}

.quiz .legend {
  display: flex;
  flex-direction: column;
}

@media only screen and (max-width: 1260px) {
  body .quiz .block-container {
    padding-inline: 25px;
  }
}

@media only screen and (max-width: 1024px) {
  .quiz .welcome-screen {
    flex-direction: column-reverse;
  }

  .quiz .welcome-screen .col-1,
  .quiz .welcome-screen .col-2 {
    flex: 1;
    max-width: 100%;
    justify-content: flex-start;
  }

  .quiz .welcome-screen .col-2 {
    max-height: 30dvh;
  }
}

@media only screen and (max-width: 999px) {
  .quiz fieldset {
    height: calc(100dvh - 48px);
  }
}

@media only screen and (max-width: 782px) {
  .customize-support .quiz fieldset {
    height: calc(100dvh - 94px);
  }
}

@media only screen and (max-width: 690px) {
  .quiz .welcome-screen .col-1 {
    padding: 45px 25px;
  }

  .quiz .welcome-screen .header .number-badge,
  .quiz .question .number-badge {
    width: max-content;
    position: static;
    left: inherit;
    top: inherit;
  }

  .quiz button.next {
    width: 100%;
    margin-top: auto;
  }
}

.quiz fieldset:not(.welcome-screen) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz fieldset .wrapper {
  width: 100%;
  max-inline-size: 880px;
  padding: 80px;
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}

.quiz .question {
  position: relative;
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.quiz .awnser-group {
  width: max-content;
  display: flex;
  flex-direction: column;
  row-gap: 6px;
}

.quiz .awnser-group button {
  appearance: none;
  padding: 12px 22px;
  color: var(--nectar-accent-color);
  border: 1px solid var(--nectar-extra-color-3);
  background-color: var(--nectar-extra-color-4);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: 12px;
  cursor: pointer;
}

.quiz .awnser-group button .option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--nectar-extra-color-3);
  border-radius: 35px;
  line-height: 0;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

.quiz .awnser-group button:hover,
.quiz .awnser-group button[aria-checked="true"] {
  border-color: var(--nectar-accent-color);
}

.quiz .awnser-group button:hover .option,
.quiz .awnser-group button[aria-checked="true"] .option {
  color: var(--nectar-extra-color-4);
  background-color: var(--nectar-accent-color);
  border-color: var(--nectar-accent-color);
}

.quiz .awnser-group button > span:not(.option) {
  flex: 1;
  text-align: left;
}

.quiz .form-control {
  width: 100%;
}

@media only screen and (max-width: 690px) {
  .quiz fieldset .wrapper {
    padding: 45px 25px;
    height: 100%;
  }

  .quiz .actions {
    margin-top: auto;
  }

  .quiz .actions button.next {
    flex: 1;
  }

  .quiz .awnser-group {
    width: 100%;
  }
}
