/* Base layout */
body {
  font-family: system-ui, Segoe UI, Segoe, Arial;
  margin: 40px;
}

/* Form elements */
input:not([type="radio"]):not([type="checkbox"]),
textarea, select {
  font-size: 1rem;
  padding: 8px;
  margin: 6px 0;
  width: 100%;
}

/* Layout helpers */
.card {
  max-width: 900px;
  margin: auto;
}

.row {
  display: flex;
  gap: 8px;
}

.half {
  flex: 1;
}

.q {
  border: 1px solid #ddd;
  padding: 8px;
  margin: 8px 0;
  border-radius: 6px;
}

/* Don't force radio/checkbox to width 100% */
input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
  vertical-align: middle;
}

/* Make each option (radio/checkbox + label) align nicely */
[data-qtype="single"] div,
[data-qtype="multi"] div {
  display: flex;
  align-items: center;
  gap: 6px; /* spacing between input and text */
}

/* Ensure form content is left-aligned (in case parent is centered) */
[data-qtype="single"] label,
[data-qtype="multi"] label {
  text-align: left;
}

.site-footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #ddd;
  color: #555;
  font-size: 0.9rem;
}

.site-footer a {
  color: inherit;
  font-weight: bold;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
