@font-face {
  font-family: Gilroy;
  src: url(/fonts/Gilroy/Regular.woff2) format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: Gilroy;
  src: url(/fonts/Gilroy/Medium.woff2) format("woff2");
  font-weight: 500;
}

@font-face {
  font-family: Gilroy;
  src: url(/fonts/Gilroy/SemiBold.woff2) format("woff2");
  font-weight: 600;
}

#quiz-container {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
}

#quiz {
  padding: 0;
  display: flex;
  justify-content: space-evenly;
  border: 2px solid #d9ddd7;
  border-radius: 8px;
  background: white;
  width: 998px;
  height: 570px;
  margin: auto;
  position: relative;
  min-width: 950px;
  font-family: Gilroy, Helvetica, Arial, sans-serif;
}

#quiz *::-webkit-scrollbar {
  width: 2px;
  height: 2px;
  border-radius: 2px;
}
 
#quiz *::-webkit-scrollbar-thumb {
  background-color: darkgrey;
  outline: 1px solid slategrey;
}

.quiz__callback-form {
  border: none;
  position: relative;
  padding: 29px 35px 19px;
  border-radius: 3px;
  box-shadow: 0 9px 40px 0 #e6e6e6;
  border: solid 1.2px #e6e6e6;
  background-color: #ffffff;
  max-width: 500px;
  width: 100%;
  margin: auto;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

.quiz__callback-form > label {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
  position: relative;
}

.quiz__callback-form > label > span {
  text-transform: uppercase;
  padding-left: 3px;
  font-family: Gilroy;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: 1.2px;
  margin-bottom: 0.5em;
  text-align: left;
  color: rgba(54, 54, 54, 0.7);
}

.quiz__callback-form > label > svg {
  height: 24px;
  width: 24px;
  position: absolute;
  left: 0;
  top: 38px;
  z-index: 1;
  fill: #dbdbdb;
  left: 18px;
}

.quiz__callback-form > label > input {
  font-size: 1rem;
  position: relative;
  background-color: #ededed;
  border: solid 1.2px #cccccc;
  color: #363636;
  padding-left: 3.4rem;
  height: 60px !important;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  background: white;
}

.quiz__callback-form.submitted > label > input:invalid {
  color: #d10a34;
  border-color: #d10a34;
}

.quiz__callback-form > button {
  margin-top: 10px;
  white-space: normal;
  min-height: 50px;
  overflow: hidden;
  width: 100%;
  border-radius: 5px;
  color: white;
  background-color: #ed3d34;
  transition: box-shadow 0.2s ease-in, -webkit-box-shadow 0.2s ease-in;
  will-change: box-shadow;
  box-shadow: 0 3px 10px 0 rgba(211, 64, 133, 0.5);
  line-height: 1.3rem;
  font-size: 18px !important;
  padding: 12px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quiz__callback-form > button:hover {
  box-shadow: 0 3px 15px 0 rgba(211, 64, 133, 0.5) !important;
  background-color: #ed3d34;
}

.quiz__callback-form > button > svg {
  height: 1.5em;
  width: 1.5em;
  margin-left: calc(-0.375em - 1px);
  margin-right: 0.5em;
  fill: white;
}

.quiz__callback-title {
  margin-bottom: 1.2rem !important;
  font-size: 28px !important;
  color: #363636;
  line-height: 1.2;
  font-weight: 500;
  padding: 25px 170px;
  text-align: center;
  margin: 1.2rem auto;
}

#quiz img.quiz-logo {
  max-width: 55%;
  border-radius: 8px 0 0 8px;
  object-fit: cover;
}

#quiz img {
  left: unset;
  top: unset;
  position: static;
}

.quiz__description {
  padding: 25px 18px 20px;
}

.quiz__description > h3 {
  text-align: left;
  font-size: 30px;
  font-family: Gilroy;
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
  line-height: 1.2;
  letter-spacing: normal;
  color: #363636;
  margin-bottom: 1rem;
}

.quiz__description > h4 {
  text-align: left;
  font-size: 18px;
  font-family: Gilroy;
  font-weight: 500;
  font-style: normal;
  font-stretch: normal;
  line-height: 1.33;
  letter-spacing: normal;
  color: rgba(54, 54, 54, 0.7);
  margin-bottom: 1rem;
}

#start-quiz {
  background-color: #ed3d34;
  color: #ffffff;
  white-space: normal;
  min-height: 55px;
  border-radius: 40px;
  font-size: 18px !important;
  padding: 12px 30px;
  line-height: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans,
    Helvetica Neue, Helvetica, Arial, sans-serif;
}

.quiz__start-line {
  width: 38px;
  height: 3px;
  background-color: #363636;
  margin-bottom: 1rem;
}

#start-quiz > svg {
  margin-top: (-0.275em - 1px);
  margin-left: calc(-0.375em - 1px);
  margin-right: calc(0.375em - 1px);
  height: 1.5em;
  width: 1.5em;
}

.quiz__question-container {
  width: 100%;
  display: flex;
}

.quiz__question-tip {
  min-width: 250px;
  background: #f7f7f7;
  padding: 23px 26px;
  border-radius: 0 8px 8px 0;
}

.quiz__question-tip img {
  width: 70px;
  min-width: 70px;
  height: 70px;
  min-height: 70px;
  border-radius: 50%;
}

.quiz__question-content {
  flex-grow: 1;
  position: relative;
}

.quiz__question-tip-profile > div {
  margin-left: 0.5rem;
}

.quiz__question-tip-profile {
  display: flex;
  align-items: center;
}

.quiz__question-tip-title {
  font-size: 12px;
  color: rgba(54, 54, 54, 0.7);
  font-weight: 400;
  line-height: 1.15;
}

.quiz__question-tip-name {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  color: #363636;
  line-height: 1.125;
}

.quiz__question-tip-block {
  position: relative;
  padding-top: calc(0.6rem - 1px);
  line-height: 1.2;
  text-align: left;
  height: calc(100% - 80px);
  max-height: 380px;
  min-height: 0;
}

.quiz__question-tip-text {
  background: #ffffff;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: height 0.3s linear;
  will-change: height;
  max-height: 100%;
  color: #363636;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.54;
  padding: 5px 10px;
  margin-right: -8px;
}

.quiz__question-answers {
  padding: 16px 30px;
  max-height: calc(100% - 84px);
  overflow: auto;
}

.quiz__question-answers-title {
  color: #363636;
  font-size: 28px;
  text-align: left;
  margin: 12px 0 16px 0;
  line-height: 1.2;
  font-weight: 500;
}

.quiz__question-answers-title--optional {
  margin: 12px 0 8px 0;
}

.quiz__question-answer--radio-image {
  display: flex;
  flex-direction: column;
  margin: 20px 20px 0 0px;
  width: calc(33.3% - 20px);
  cursor: pointer;
  background: white;
  border-radius: 4px;
  border: 1px solid #e6e6e6;
  transition: 0.2s ease-out;
  min-width: 180px;
}

.quiz__question-answer--radio-image:hover {
  border-color: #ed3d34;
}

.quiz__question-answer--radio-image > img {
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.quiz__question-answer--radio-image > p {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 5px 10px 5px 10px;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
  color: rgba(54, 54, 54, 0.7);
  overflow: hidden;
}

.quiz__question-radio-image-container {
  display: flex;
  flex-wrap: wrap;
  margin-right: -21px;
  margin-top: -20px;
}

.quiz__buttons-container {
  display: flex;
  align-items: center;
  padding: 20px 30px;
  width: 100%;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #e6e6e6;
  align-items: flex-end;
  flex-direction: column;
  position: absolute;
  bottom: 0;
}

.quiz__buttons-container > div {
  display: flex;
  margin-right: -20px;
}

.quiz__buttons-container > div > button {
  text-decoration: none;
  color: #4a505e;
  background-color: #fafafa;
  border: 1px solid #e5e5e5;
  margin-right: 20px;
  padding-right: 10px;
  padding-left: 12px;
  margin-left: auto;
  will-change: box-shadow;
  transition: -webkit-box-shadow 0.2s ease-out;
  transition: box-shadow 0.2s ease-out;
  transition: box-shadow 0.2s ease-out, -webkit-box-shadow 0.2s ease-out;
  font-size: 16px;
  height: 43px;
  border-radius: 24px;
  font-weight: 500;
  font-family: Gilroy, Helvetica, Arial, sans-serif;
}

.quiz__buttons-container > div > button:hover:not(:disabled) {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.quiz__buttons-container > div > button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.quiz__prev > svg {
  transform: rotate(180deg);
  fill: rgb(74, 80, 94);
  width: 20px;
  height: 14px;
}

.quiz__next {
  background: #ed3d34 !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 3px 10px 0 rgba(211, 64, 133, 0.5) !important;
}

.quiz__next > svg {
  width: 20px;
  height: 14px;
}

.quiz__input {
  box-shadow: none;
  height: 60px;
  background-color: #ededed;
  border: solid 1.2px #cccccc;
  color: #363636;
  border-radius: 4px;
  font-size: 1.5rem;
  width: 100%;
  justify-content: flex-start;
  line-height: 1.5;
  padding-bottom: calc(0.375em - 1px);
  padding-left: calc(0.625em - 1px);
  padding-right: calc(0.625em - 1px);
  padding-top: calc(0.375em - 1px);
  position: relative;
  vertical-align: top;
  display: inline-flex;
}

.quiz__radio-with-placeholder {
  display: flex;
}

.quiz__radio-with-placeholder > img {
  max-width: calc(50% - 60px);
  width: calc(50% - 60px);
  object-fit: cover;
  position: absolute !important;
  height: calc(100% - 280px);
  right: 30px;
  border-radius: 4px;
  pointer-events: none;
}

.quiz__radio-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.quiz__radio-group > label {
  line-height: 1.5;
  user-select: none;
  align-items: center;
  display: inline-flex;
  padding: 0.8rem 1rem;
  width: 50%;
  text-align: left;
  display: flex;
  cursor: pointer;
  will-change: box-shadow;
  transition: box-shadow 0.15s ease-out, -webkit-box-shadow 0.15s ease-out;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: solid 1px #e6e6e6;
}

.quiz__radio-group > label:hover {
  box-shadow: 0 1px 3px 0 #e6e6e6;
}

.quiz__radio-group > label.is-active {
  border: 1px solid #ed3d34;
}

.quiz__radio-check {
  border: none;
  background-color: #e6e6e6;
  display: flex;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  width: 1.25em;
  height: 1.25em;
  transition: background 0.15s ease-out;
  border-radius: 50%;
  flex: 0 0 1.25rem;
}

.quiz__radio-label {
  color: #363636;
  padding-left: 1rem !important;
  line-height: 1.5;
  font-size: 1em;
  font-family: Gilroy, Helvetica, Arial, sans-serif;
}

.quiz__radio-group > label > input[type="radio"] {
  width: 0;
  height: 0;
  opacity: 0;
}

.quiz__radio-group > label.is-active .quiz__radio-check {
  border: 2px solid #ed3d34;
}

.quiz__radio-group > label.is-active .quiz__radio-check:before {
  content: "";
  display: flex;
  position: absolute;
  left: 50%;
  margin-left: -0.625em;
  bottom: 50%;
  margin-bottom: -0.625em;
  width: 1.25em;
  height: 1.25em;
  transition: -webkit-transform 0.15s ease-out;
  transition: transform 0.15s ease-out;
  transition: transform 0.15s ease-out, -webkit-transform 0.15s ease-out;
  border-radius: 50%;
  transform: scale(0.5);
  background-size: 21px;
  background-color: #ed3d34;
}

.quiz__radio-group > label.with-custom {
  padding: 0;
}
.quiz__radio-group > label.with-custom > .quiz__radio-check-container {
  display: flex;
  justify-content: center;
  flex: 1 1 52px;
  width: 52px !important;
  max-width: 52px;
}

.quiz__radio-group > label.with-custom > input[type="text"] {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  max-height: 100% !important;
  border: none !important;
  height: 57px !important;
  font-size: 1em;
  font-family: Gilroy, Helvetica, Arial, sans-serif;
}

.quiz__radio-group--simple {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: space-between;
}

.quiz__radio-group--simple > label {
  flex: 0 1 49%;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: solid 1px #e6e6e6;
  align-items: center;
  will-change: box-shadow;
  transition: -webkit-box-shadow 0.15s ease-out;
  transition: box-shadow 0.15s ease-out;
  transition: box-shadow 0.15s ease-out, -webkit-box-shadow 0.15s ease-out;
}

.quiz__question-optional {
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #4a4a4a;
  display: inline-flex;
  font-size: 0.75rem;
  height: 2em;
  justify-content: center;
  line-height: 1.5;
  padding-left: 0.75em;
  padding-right: 0.75em;
  white-space: nowrap;
  background: #ededed !important;
  border: solid 1px #e6e6e6;
  font-size: 11px !important;
  padding: 12px;
  border-radius: 4px !important;
  color: #363636 !important;
  margin-bottom: 16px;
}

.quiz__question-tip--mobile {
  display: none;
}

.quiz__thanks-message {
  width: 100%;
  display: flex;
  height: 100%;
  min-height: 200px;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

@media (max-width: 992px) {
  #quiz {
    max-width: 100%;
    min-width: unset;
    height: auto;
    width: 100%;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    position: static;
    top: 0;
  }

  #quiz img.quiz-logo {
    display: none;
  }

  .quiz__question-tip {
    display: none;
  }

  .quiz__question-answers {
    padding: 16px;
  }
  
  .quiz__buttons-container {
    padding: 20px;
  }

  .quiz__question-answers-title {
    font-size: 22px;
  }

  .quiz__question-tip--mobile {
    display: flex;
    margin-bottom: 16px;
    position: relative;
    color: #363636;
    line-height: 1.2;
    display: flex;
    text-align: left;
    transition: max-height 0.3s ease;
    flex: 1;
    margin-right: 0;
    padding: 10px;
    border-radius: 20px 20px 20px 3px;
    background: #ededed;
    cursor: pointer;
    overflow: auto;
  }

  .quiz__buttons-container {
    position: static;
  }

  .quiz__question-answer--radio-image {
    min-width: 100px;
    max-width: 220px;
    flex-grow: 1;
  }

  .quiz__radio-with-placeholder {
    flex-direction: column-reverse;
  }

  .quiz__radio-with-placeholder label {
    width: auto;
  }

  .quiz__radio-with-placeholder img {
    position: static !important;
    margin-bottom: 16px;
    max-width: 100%;
    width: 100%;
  }

  .quiz__question-tip--mobile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    min-width: 40px;
    margin-right: 10px;
  }

  .quiz__question-tip--mobile .quiz__question-tip-profile {
    display: flex;
  }

  .quiz__question-tip--mobile .quiz__question-tip-name {
    margin-right: 10px;
  }

  .quiz__question-tip--mobile .quiz__question-tip-text {
    font-style: italic;
    box-shadow: unset;
    background: unset;
    padding: unset;
    margin-top: 8px;
  }

  .quiz__callback-title {
    padding: 25px;
  }

  .quiz__question-radio-image-container {
    justify-content: center;
    margin-right: unset;
  }
}
