.level-test-section {
  padding: 40px 16px;
  background: #f5f8fc;
  font-family: inherit;
}

.level-test-container {
  max-width: 1080px;
  margin: 0 auto;
}

.level-test-form {
  color: #07294d;
}

.level-screen {
  display: none;
}

.level-screen.is-active {
  display: block;
}

.level-card,
.level-test-header,
.level-question {
  background: #ffffff;
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(7, 41, 77, 0.06);
}

.level-card {
  padding: 34px;
}

.level-card h1,
.level-card h2 {
  margin: 0 0 18px;
  color: #07294d;
  text-align: center;
  font-weight: 800;
}

.level-card h1::after,
.level-card h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: #ffc600;
  margin: 12px auto 0;
}

.level-card p {
  font-size: 16px;
  line-height: 1.75;
  color: #26384d;
}

.level-card__subtitle,
.level-required-note {
  text-align: center;
}

.level-form-grid {
  display: grid;
  gap: 24px 28px;
  margin-top: 28px;
}

.level-form-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.level-field label {
  display: block;
  margin-bottom: 8px;
  color: #07294d;
  font-weight: 700;
  font-size: 14px;
}

.level-field input,
.level-field select,
.level-field textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  color: #07294d;
  background: #ffffff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.level-field textarea {
  min-height: 120px;
  resize: vertical;
}

.level-field input:focus,
.level-field select:focus,
.level-field textarea:focus {
  border-color: #0075c2;
  box-shadow: 0 0 0 4px rgba(0, 117, 194, 0.12);
}

.level-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.level-actions--center {
  justify-content: center;
}

.level-btn {
  min-width: 150px;
  min-height: 48px;
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.level-btn:hover {
  transform: translateY(-1px);
}

.level-btn--primary {
  background: #0075c2;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 117, 194, 0.22);
}

.level-btn--outline {
  background: #ffffff;
  color: #0075c2;
  border-color: #0075c2;
}

.level-instructions-list {
  max-width: 620px;
  margin: 22px auto;
  padding-left: 20px;
  color: #26384d;
  line-height: 1.75;
}

.level-info-box {
  max-width: 520px;
  margin: 24px auto 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: #eef6ff;
  color: #07294d;
  border-left: 4px solid #0075c2;
  font-weight: 700;
}

.level-test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  margin-bottom: 16px;
}

.level-test-header strong {
  display: block;
  color: #0075c2;
  font-size: 16px;
}

.level-test-header span {
  color: #26384d;
  font-size: 14px;
}

.level-timer {
  text-align: right;
}

.level-timer span {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.level-timer strong {
  font-size: 28px;
  color: #0075c2;
  line-height: 1;
}

.level-progress {
  height: 10px;
  background: #dbe5f1;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.level-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: #0075c2;
  border-radius: inherit;
  transition: width .25s ease;
}

.level-step {
  display: none;
}

.level-step.is-active {
  display: block;
}

.level-question {
  padding: 26px;
  margin-bottom: 22px;
}

.level-question h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: #07294d;
}

.level-question p {
  margin: 0 0 18px;
  line-height: 1.65;
  color: #26384d;
}

.level-options {
  display: grid;
  gap: 12px;
}

.level-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.level-options label:hover {
  border-color: #0075c2;
  background: #f3f9ff;
}

.level-options input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #0075c2;
}

.level-question audio {
  width: 100%;
  margin: 12px 0 20px;
}

.level-question-navigator {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.level-question-navigator button {
  min-height: 42px;
  border: 1px solid #cfd9e6;
  background: #ffffff;
  color: #07294d;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.level-question-navigator button:hover {
  border-color: #0075c2;
  color: #0075c2;
}

.level-card--timeup {
  text-align: center;
}

.level-timeup-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #eef6ff;
  color: #0075c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}

.level-field.is-error input,
.level-field.is-error select,
.level-field.is-error textarea {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.10);
}

.level-field-message {
  margin-top: 6px;
  color: #dc3545;
  font-size: 13px;
  line-height: 1.4;
}

/* Tablet */
@media (max-width: 900px) {
  .level-form-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .level-card {
    padding: 28px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .level-test-section {
    padding: 24px 12px;
  }

  .level-form-grid--3 {
    grid-template-columns: 1fr;
  }

  .level-card {
    padding: 24px 18px;
  }

  .level-test-header {
    position: sticky;
    top: 0;
    z-index: 20;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
  }

  .level-timer {
    text-align: left;
  }

  .level-actions {
    flex-direction: column;
  }

  .level-btn {
    width: 100%;
  }

  .level-question {
    padding: 20px;
  }

  .level-question-navigator {
    grid-template-columns: repeat(3, 1fr);
  }
}