body {
  color: #000;
  background-color: #fff;

  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.44px;
  height: 100vh;
  overflow-x: hidden;
}

.main {
  padding: 55px;
  /* height: 100%; */
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quiz-wrapper {
  position: relative;
  background: #009ff0;
  padding: 60px 27px;
  min-height: 715px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 1;

  box-shadow: 0 0 12px #00a0f056;
  padding-top: 160px;
}

.logo {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 233px;

  margin-bottom: 45px;
}

.quiz-card {
  position: fixed;

  opacity: 0;
  transform: translateY(-100%);
  display: flex;
  align-items: flex-start;

  flex-direction: column;

  width: 100%;
  max-width: 520px;

  background-color: #fff;
  border-radius: 10px;
  padding: 40px;

  transition: all 0.1s ease-in-out;
  box-shadow: 0 0 12px #0000003b;
}

.quiz-card.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quiz-greetings {
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.text-greetings {
  text-align: center;
  max-width: 403px;
  font-size: 18px;
}

.quiz-card--thanks {
  padding: 50px 50px 80px 50px;
  align-items: center;
}

.thanks--title {
  margin-bottom: 30px;
}
.quiz-card--thanks p {
  font-size: 22px;
  text-align: center;
}

.quiz-card__title {
  color: #000;
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.1;

  margin-bottom: 30px;
}

.input {
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 89%;
  width: 100%;

  padding: 15px 0;

  border-bottom: 1.5px solid #9f9f9f;
}

.input:focus {
  border-bottom: 1.5px solid #009ff0;
  box-shadow: 0 6px 6px -6px rgba(0, 159, 240, 0.5);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Стиль инпута с ошибкой - усиливаем существующий */
input.input-error {
  border-bottom: 1.5px solid #e53935 !important;
  box-shadow: 0 6px 6px -6px rgba(229, 57, 53, 0.5);
  animation: shake 0.3s ease-in-out;
}

/* Сообщения об ошибках */
.error-message {
  color: #e53935;
  font-size: 14px;
  margin-top: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message.show {
  opacity: 1;
}
.quiz-monitor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
}

.progress-line {
  position: relative;
  width: 100%;
  max-width: 489px;
  height: 13px;
  border-radius: 13px;
  background-color: #e6e6e6;
  margin-right: 20px;

  transition: all 0.2s ease-in-out;
}

.progress-bar {
  content: '';
  position: absolute;
  left: 0;
  width: 25%;
  height: 100%;
  border-radius: 13px;
  background: #1e73b0;
  box-shadow: 0 0 12px #00a0f056;
}

.next-quiz-btn {
  border-radius: 10px;
  color: #fff;
  background: #e42469;
  padding: 15px;
  width: 100%;

  box-shadow: 0 0 12px #0000003b;

  transition: all 0.2s ease-in-out;
}
.next-quiz-btn:hover {
  background: #d41a5d;
  box-shadow: 0 0 12px #00182556;
}

.next-quiz-btn:disabled {
  opacity: 80%;
  box-shadow: none;
  pointer-events: none;
}

.quiz-option {
  flex: 1 1 calc(50% - 15px);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;

  font-size: 22.16px;
  font-style: normal;
  font-weight: 400;
  line-height: 36.934px;
  letter-spacing: -0.923px;

  transition: all 0.2s ease-in-out;
}

/* Скрываем стандартное радио */
.quiz-option input[type='radio'] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d8dae5;

  border-radius: 50%;
  background-color: #fff;
  position: relative;
  cursor: pointer;
}

/* При выборе — рисуем точку */
.quiz-option input[type='radio']:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;

  border-radius: 50%;
  transform: translate(-50%, -50%);

  background-color: #fff;
}

.quiz-option:hover {
  color: #009ff0;
}

@media (max-width: 850px) {
  body {
    height: 100vh;
  }

  /* .main {
    height: 100vh;
  } */

  .quiz-monitor {
    flex-direction: column;
  }

  .quiz-wrapper {
    height: 100%;
    min-height: auto;
  }

  .progress-line {
    margin-bottom: 25px;
    min-width: 100%;
    margin-right: 0px;
  }

  .next-quiz-btn {
    min-width: 100%;
  }
}

@media (max-width: 550px) {
  .main {
    padding: 22px;
  }

  .logo {
    max-width: 170px;
  }

  .quiz-card {
    padding: 20px;
  }

  .quiz-card__title {
    font-size: 18px;
    font-weight: 600;

    margin-bottom: 24px;
  }

  .text-greetings {
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: -0.32px;
    font-size: 16px;
  }

  .input {
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 89%; /* 13.35px */

    padding: 12px 0;
  }

  .quiz-card--thanks {
    padding: 30px 30px 50px 30px;
    align-items: center;
  }

  .quiz-card--thanks p {
    font-size: 18px;
  }

  .age-wrapper {
    flex-direction: column;
  }

  .quiz-option {
    flex: auto;
  }

  .quiz-option {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 166.667% */
    letter-spacing: -0.5px;
  }
}
