* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5f7;
  color: #172033;
}

.container {
  width: min(100% - 32px, 1000px);
  margin: 0 auto;
  padding: 32px 0 56px;
}

header { margin-bottom: 24px; }
h1 { margin: 0 0 8px; }
h2 { margin: 0; }
header p { margin: 0; color: #5f6878; }

.card {
  background: #fff;
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.04);
}

label, legend { font-weight: 600; }
label { display: block; margin: 14px 0; }

input, select, textarea {
  width: 100%;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #cbd2dc;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: inherit;
}

textarea { resize: vertical; min-height: 70px; }

fieldset {
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 18px 0;
}

.radio {
  font-weight: 500;
  margin: 8px 0;
}

.radio input {
  width: auto;
  margin: 0 8px 0 0;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: #0e2b5c;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled { opacity: 0.55; cursor: not-allowed; }
button.secondary { background: #6b7280; }

.hidden { display: none; }
.status { margin-top: 14px; min-height: 22px; color: #4b5563; }

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.review-header span { color: #667085; font-size: 14px; }
.review-empty { color: #667085; padding: 16px 0; }
.review-list { display: grid; gap: 16px; }

.question {
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  padding: 16px;
  background: #fafbfc;
}

.question-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.question label { margin-bottom: 12px; }

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

#download { margin-top: 18px; }

@media (max-width: 700px) {
  .container { width: min(100% - 20px, 1000px); padding-top: 20px; }
  .card { padding: 16px; }
  .options-grid { grid-template-columns: 1fr; }
  .review-header { align-items: flex-start; flex-direction: column; gap: 4px; }
}
