@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  box-sizing: border-box;
}

.main-container {
  margin-left: auto;
  margin-right: auto;
  z-index: 1234;
  font-family: 'Inter';
}

.question-block {
  display: none;
}

.question-block.active {
  display: flex;
  flex-direction: column;
}

.quiz-container {
  max-width: 700px;
  width: 90%;
  margin: auto;
  font-family: sans-serif;
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  color: #000;
  font-family: 'Inter';
}

.custom-control {
  display: inline-flex;
  align-items: center;
  margin: 10px 0;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  gap: 10px;

  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ */
  user-select: none; /* Стандарт */
  -webkit-tap-highlight-color: transparent; /* убирает подсветку при тапе на мобильных */
  cursor: pointer;
}

.custom-control input[type='radio'],
.custom-control input[type='checkbox'] {
  display: none;
}

.custom-indicator {
  width: 24px;
  height: 24px;
  border: 2px solid #565656;
  background-color: white;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.custom-radio input:checked + .custom-indicator::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  background-color: #565656;
  border-radius: 50%;
}

.custom-checkbox .custom-indicator {
  border-radius: 4px;
}

.custom-checkbox input:checked + .custom-indicator::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 6px;
  width: 6px;
  height: 12px;
  border: solid #565656;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.answer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0;
}

.custom-button {
  all: unset;
  cursor: pointer;
  font-size: 16px;
  background-color: #565656;
  color: #fff;
  padding: 8px 32px;
  border-radius: 12px;
  margin-top: 24px;
  align-self: end;
}

input[type='text'] {
  all: unset;
  box-sizing: border-box;

  width: 100%;
  padding: 10px 14px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.5;
  background-color: #fff;
  margin-top: 8px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

input[type='text']:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
  outline: none;
}

.custom-input:focus {
  outline: none;
  box-shadow: none;
}
.custom-dropdown {
  position: relative;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  font-size: 16px;
  user-select: none;
}

.dropdown-display {
  padding: 10px 14px;
  border: 2px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
}

/* Стрелка вниз */
.dropdown-display::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  width: 0;
  height: 0;
  pointer-events: none;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #565656;
  transform: translateY(-50%);
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px; /* Ограничение высоты */
  overflow-y: auto;
  background: #fff;
  border: 2px solid #ccc;
  border-top: none;
  border-radius: 0 0 6px 6px;
  display: none;
  z-index: 10;

  list-style: none;
  padding-left: 0;
}

.dropdown-options.open {
  display: block;
}

.dropdown-options li {
  padding: 10px 14px;
  cursor: pointer;
}

.dropdown-options li:hover {
  background-color: #f0f0f0;
}

.caption {
  font-size: 12px;
  font-family: 'Inter';
  font-weight: 400;
  line-height: 18px;
  color: #7b858f;
  text-align: center;
  margin: 8px 0 0;
}

.modal-link {
  font-family: 'Inter';
  font-size: inherit;
  text-align: center;
  text-decoration: none;
  color: #304ac1 !important;
}

.modal-link:hover {
  text-decoration: underline;
}
