@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 16px;
  background: #f8fafc;
  color: #1f2a44;
  line-height: 1.6;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #1f2a44;
}

label, select {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
}

select {
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.2s;
}

select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

button {
  display: block;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  max-width: 240px;
  margin: 0 auto;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

#testForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 8px;
}

.question {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}

.question:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2a44;
  line-height: 1.4;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.answers label {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.answers label:hover {
  background: #f1f5f9;
}

.answers input {
  margin-right: 10px;
  accent-color: #3b82f6;
  transform: scale(1.1);
}

#result {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #1e40af;
}

.skeleton {
  height: 100px;
  background: #e5e7eb;
  border-radius: 12px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

@media (max-width: 600px) {
  body {
    padding: 12px;
  }
  h1 {
    font-size: 20px;
  }
  #testForm {
    gap: 12px;
  }
  .question {
    padding: 16px;
  }
  .title {
    font-size: 15px;
  }
  .answers label {
    font-size: 13px;
    padding: 6px;
  }
  select {
    padding: 8px;
    font-size: 14px;
  }
  button {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px;
    font-size: 14px;
  }
}