*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100vh;
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* Colors */
  --color-primary: #ffcc00;
  --color-secondary: #333333;
  --color-accent: #ff5733;
  --color-bg: rgba(255, 255, 255, 1);
  --color-text: rgba(0, 0, 0, 1);

  /* Typography */
  --font-base: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-size-base: 26px;
  --font-weight-normal: 400;
  --font-weight-bold: 700;

  /* Borders & Radius */
  --border-radius: 15px;
  --border-color: rgba(255, 255, 255, 1);

  /* Shadows */
  --shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

img,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background-color: transparent;
}

ul,
ol {
  list-style: none;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--font-size-base);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.link {
  color: var(--color-accent);
  font-weight: 700;
}

/* Header */
.app__header {
  padding: 10px 0;
  text-align: center;
  background-color: var(--color-bg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.app__logo {
  height: 38px;
}

/* Main */
.main-wrapper {
  flex: 1;
  background-size: cover;
  background-position: center center;
  transition: background-image 1s, opacity 1s ease-in-out;
  position: relative;
}

/* Quiz Container */
.quiz-container {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-container.info .quiz__content,
.quiz-container.final .quiz__content {
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.quiz-container.final {
  padding: 30px 20px;
  gap: 0;
  height: 100%;
}

.quiz-container.final .quiz__progress {
  display: none;
}

.quiz-container.final .quiz__title {
  margin-top: 90px;
}

.quiz__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 56px;
  z-index: 100;
}

.quiz__progress .step,
.quiz__progress .dot {
  height: 10px;
  border: 0.6px solid var(--color-text);
  background-color: rgba(255, 255, 255, 1);
}

.quiz__progress .step {
  width: 135px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.quiz__progress .dot {
  width: 10px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.quiz__progress .dot.completed {
  background-color: rgba(58, 255, 81, 1);
}

.quiz__progress .step-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: rgba(58, 255, 81, 1);
  transition: width 0.8s ease;
}

.quiz__title {
  font-family: "MontaguSlab", sans-serif;
  font-weight: var(--font-weight-bold);
  font-size: 36px;
  margin-bottom: 40px;
  z-index: 100;
  text-align: center;
}

.quiz__title.fade {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.quiz__description {
  font-family: "TTDrugs", sans-serif;
  max-width: 613px;
  margin: 0 auto;
  margin-bottom: 40px;
  text-align: center;
  font-size: 28px;
}

.quiz__content {
  width: 653px;
  min-height: 200px;
  border-radius: var(--border-radius);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0px 4px 10px 0px rgba(6, 77, 89, 0.3);
  background: rgba(255, 255, 255, 0.2);
  padding: 30px 0px 10px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  position: relative;
}

.quiz-container.final .quiz__content {
  min-height: 100%;
}

.info p {
  font-family: "TTDrugs", sans-serif;
  margin-bottom: 80px;
  text-align: center;
  font-size: 28px;
}

.quiz-block {
  flex: 1;
  width: 100%;
  position: relative;
}

.quiz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease-in-out;
}

.quiz.fade {
  opacity: 0;
}

.question {
  font-family: "TTDrugs", sans-serif;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  max-width: 453px;
  text-align: center;
  margin: 0 auto;
}

.answers {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.answer-button {
  font-family: "TTDrugs", sans-serif;
  width: 100%;
  padding: 20px 30px;
  text-align: left;
  border-radius: 30px;
  border: 1px solid #c9c9c9;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 1);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.6);
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.answer-button:hover {
  background: radial-gradient(
    circle,
    rgba(255, 240, 210, 1) 0%,
    rgba(255, 197, 82, 1) 100%
  ) !important;
}

.answer-line {
  width: 30px;
  height: 1px;
  background-color: var(--color-text);
}

.answer-text {
  flex: 1;
}

.quiz__controls {
  width: 100%;
  display: flex;
  gap: 11px;
}

#prev_btn,
#next_btn {
  display: none;
}

.quiz__controls .quiz__btn {
  width: 100%;
  background-color: rgba(58, 255, 81, 0.8);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 1);
  padding: 32px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0px 4px 10px 0px rgba(6, 77, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz__controls .quiz__btn img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.quiz__controls .quiz__btn--next {
  transform: rotate(180deg);
}

.quiz__controls .quiz__btn--next.active {
  background-color: rgba(255, 255, 255, 1);
}

.quiz__controls .quiz__btn--next.active img {
  filter: invert(1);
}

.quiz__controls .quiz__btn:hover {
  background: radial-gradient(
    circle,
    rgba(255, 240, 210, 1) 0%,
    rgba(255, 197, 82, 1) 100%
  ) !important;
}

.quiz__controls .quiz__btn:hover img {
  filter: invert(1);
}

.quiz__controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* FINAL */
.form-section {
  max-width: 653px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  padding: 0px 20px;
}

.form-wrapper {
  width: 100%;
  border-radius: 15px;
  padding: 30px 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 4px 10px rgba(33, 63, 69, 0.25);
}

/* LOADER */
.loader {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  vertical-align: middle;
  border: 1px solid #000;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
  opacity: 0;
}
.loader,
.loader:before,
.loader:after {
  animation: 1.5s infinite ease-in-out;
}
.loader:before,
.loader:after {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}
.loader:before {
  content: "";
  animation-name: loader;
}

.loader.show {
  opacity: 1;
}

.final_btn {
  font-family: "TTDrugs", sans-serif;
  font-size: 32px;
  border-radius: 30px;
  border: 1px solid #fff;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(178, 178, 178, 1) 100%
  );
  box-sizing: border-box;
  box-shadow: 0px 4px 4px rgba(17, 67, 76, 0.25),
    0px 2px 2px rgba(17, 67, 76, 0.35);
  text-transform: none;
  font-weight: var(--font-weight-bold);
  color: #fff;
  transition: all 0.2s ease-in-out;
  padding: 20px 30px;
  width: 100%;
}

.final_btn:hover {
  background: radial-gradient(
    circle,
    rgba(255, 240, 210, 1) 0%,
    rgba(255, 197, 82, 1) 100%
  ) !important;
}

.final_btn:active {
  background: radial-gradient(
    circle,
    rgba(255, 198, 86, 1) 0%,
    rgba(255, 128, 0, 1) 60%,
    rgba(255, 98, 0, 1) 100%
  ) !important;
  transform: scale(0.98) !important;
}

@keyframes loader {
  0% {
    transform: scale(0);
    border: 40px solid #000;
  }
  100% {
    transform: scale(1);
    border: 1px solid #000;
    background-color: transparent;
  }
}

.animate-fade-down {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeDown 0.6s forwards;
}

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  background: transparent;
  text-align: center;
  box-shadow: 0px 4px 10px 0px rgba(6, 77, 89, 0.3);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__content {
  padding: 20px 50px;
  border-radius: var(--border-radius);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__licenses {
}

.footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-bottom: 1px solid #c9c9c9;
  padding-bottom: 20px;
}

.footer__nav a:hover {
  text-decoration: underline;
}

@media(max-width: 768px) {
  .footer__nav {
    flex-direction: column;
  }

  .footer__content {
    padding: 20px;
    font-size: 12px;
  }
}

/*Form*/
.lander-form-wrapper {
  box-shadow: none !important;
}

.lander-form {
  padding: 0 !important;
}

.lander-form-header {
  display: none !important;
}

.lander-form-field input {
  font-family: "TTDrugs", sans-serif !important;
  padding: 20px 30px !important;
  border: 1px solid #fff !important;
  border-radius: 30px !important;
  background-color: transparent !important;
  font-size: 22px !important;
  font-weight: var(--font-weight-normal) !important;
  line-height: 1 !important;
  min-height: 70px !important;
}

.iti__flag-container {
  min-height: 70px !important;
}

.iti__selected-flag {
  border-top-left-radius: 30px !important;
  border-bottom-left-radius: 30px !important;
}

.iti--allow-dropdown input,
.iti--allow-dropdown input[type="text"],
.iti--allow-dropdown input[type="tel"],
.iti--separate-dial-code input,
.iti--separate-dial-code input[type="text"],
.iti--separate-dial-code input[type="tel"] {
  padding-left: 60px !important;
}

.iti__country-list {
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  box-shadow: 0px 4px 10px 0px rgba(6, 77, 89, 0.3) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 10px !important;
}

.lander-form-field .lander-submit {
  font-family: "TTDrugs", sans-serif !important;
  font-size: 32px !important;
  width: 100% !important;
  border-radius: 30px !important;
  border: 1px solid #fff !important;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(178, 178, 178, 1) 100%
  ) !important;
  box-sizing: border-box;
  box-shadow: 0px 4px 4px rgba(17, 67, 76, 0.25),
    0px 2px 2px rgba(17, 67, 76, 0.35) !important;
  text-transform: none !important;
  font-weight: var(--font-weight-bold) !important;
  color: #fff !important;
  transition: all 0.2s ease-in-out !important;
}

.lander-form-field .lander-submit:hover {
  background: radial-gradient(
    circle,
    rgba(255, 240, 210, 1) 0%,
    rgba(255, 197, 82, 1) 100%
  ) !important;
}

.lander-form-field .lander-submit:active {
  background: radial-gradient(
    circle,
    rgba(255, 198, 86, 1) 0%,
    rgba(255, 128, 0, 1) 60%,
    rgba(255, 98, 0, 1) 100%
  ) !important;
  transform: scale(0.98) !important;
}

/* MEDIA QUERIES */
@media screen and (min-width: 1740px) {
  body {
    overflow: hidden;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1740px) {
  body {
    font-size: 24px;
  }
}

@media screen and (max-width: 1024px) {
  .quiz__progress .step {
    width: 110px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 28px;
  }
}

@media screen and (max-width: 820px) {
  .quiz__progress .step {
    width: 90px;
  }

  .lander-form-field .lander-submit {
    font-size: 16px !important;
  }

  .lander-form-field .lander-submit:hover {
    font-size: 16px !important;
  }
}

@media screen and (max-width: 768px) {
  .app__logo {
    height: 26px;
  }

  .quiz__progress {
    gap: 5px;
  }

  .quiz__progress .step,
  .quiz__progress .dot {
    height: 6px;
  }

  .quiz__progress .step {
    width: 40px;
  }

  .quiz__progress .dot {
    width: 6px;
  }

  .quiz__title,
  .final-title {
    font-size: 22px;
  }

  .question {
    font-size: 20px;
    padding: 0px 10px;
  }

  .answer-button {
    padding: 10px 20px;
  }

  .answer-number,
  .final-description {
    font-size: 18px;
  }

  .answer-text {
    font-size: 14px;
  }

  .quiz__content {
    width: 100%;
    border-radius: 10px;
    gap: 20px;
  }

  .quiz__controls .quiz__btn {
    padding: 10px 20px;
  }

  .quiz__controls .quiz__btn img {
    width: 10px;
    height: 10px;
  }

  .info p {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .loader {
    width: 50px;
    height: 50px;
  }

  .final-wrapper {
    padding: 0px 20px;
  }

  .form-wrapper {
    width: 100%;
    border-radius: 15px;
  }

  @keyframes loader {
    0% {
      transform: scale(0);
      border: 30px solid #000;
    }
    100% {
      transform: scale(1);
      border: 1px solid #000;
      background-color: transparent;
    }
  }

  .lander-form-field input {
    font-size: 16px !important;
    min-height: auto !important;
  }

  .iti__flag-container,
  .iti__selected-flag {
    height: 50px !important;
  }

  .form-section {
    margin: 60px auto 0 auto;
  }

  .section-subtitle,
  .quiz__description,
  .final_btn {
    font-size: 18px;
  }
}
