.amq-quiz {
  margin: 24px auto;
  max-width: 720px;
}

.amq-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  padding: 24px;
}

.amq-quiz-image {
  border-radius: 16px;
  margin: 0 0 22px;
  overflow: hidden;
}

.amq-quiz-image img {
  display: block;
  height: auto;
  width: 100%;
}

.amq-progress {
  margin-bottom: 20px;
}

.amq-progress-text {
  color: #475569;
  font-size: 14px;
  margin-bottom: 8px;
}

.amq-progress-bar {
  background: #e5e7eb;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.amq-progress-bar span {
  background: #111827;
  display: block;
  height: 100%;
  transition: width 0.25s ease;
}

.amq-question-title {
  color: #111827;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 18px;
}

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

.amq-option {
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  transition: 0.2s ease;
}

.amq-option:hover {
  background: #f9fafb;
  border-color: #111827;
}

.amq-option input {
  margin: 0;
}

.amq-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 22px;
}

.amq-btn {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  padding: 12px 18px;
}

.amq-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.amq-btn-primary {
  background: #111827;
  color: #fff;
}

.amq-btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.amq-alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #9a3412;
  margin-top: 14px;
  padding: 10px 12px;
}

.amq-error {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #9a3412;
  margin: 18px auto;
  max-width: 720px;
  padding: 12px 14px;
}

.amq-result {
  text-align: center;
}

.amq-result-title {
  font-size: 26px;
  margin: 0 0 12px;
}

.amq-result-message {
  color: #334155;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.amq-result-extra {
  color: #64748b;
  margin-bottom: 18px;
}

.amq-result-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.amq-result-link {
  display: inline-block;
  text-decoration: none;
}

.amq-result-link:hover,
.amq-result-link:focus {
  filter: brightness(0.95);
  text-decoration: none;
}

@media (max-width: 600px) {
  .amq-card {
    padding: 18px;
  }

  .amq-actions,
  .amq-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .amq-btn,
  .amq-result-link {
    text-align: center;
    width: 100%;
  }
}
