:root {
  --ink: #003f88;
  --ink-2: #0055aa;
  --muted: #5f6b7a;
  --ring: rgba(0, 85, 170, 0.25);
  --ok: #16a34a;
  --err: #dc2626;
}

/* Fun but professional polish */
.segmented {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.segmented input[type="radio"] {
  display: none;
}
.segmented label.btn {
  cursor: pointer;
  user-select: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #f7f9ff;
  color: #0f172a;
  transition: transform 0.06s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.segmented label.btn:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 63, 136, 0.12);
}
.segmented input[type="radio"]:checked + label.btn {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(0, 63, 136, 0.45);
  background: #eef5ff;
}

.hint {
  font-size: 0.9rem;
  color: var(--muted);
}

.choices {
  display: grid;
  gap: 0.4rem;
}
.choices.stack .choice {
  display: block;
}
.choice input {
  margin-right: 0.5rem;
  transform: translateY(1px);
}

/* Actions */
.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-primary {
  padding: 10px 20px;
  background: var(--ink-2);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 85, 170, 0.25);
  transition: transform 0.06s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-primary:hover {
  background: #003f88;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 63, 136, 0.28);
}
.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Toast */
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  min-width: 260px;
  max-width: 90vw;
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: none;
}
.toast.show {
  display: block;
}

/* Existing design foundation */
.question {
  margin: 18px 0 6px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}
.question label {
  margin-bottom: 8px;
  font-weight: 600;
  display: block;
}
form.is-submitting {
  opacity: 0.7;
  pointer-events: none;
}

/* Layout */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
}
header {
  background: #fff;
  padding: 20px 15px;
  text-align: center;
}
.site-title {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.divider {
  width: 90%;
  border: 1px solid black;
  margin: 0 auto;
}
main {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

/* Responsive */
@media (max-width: 600px) {
  .site-title {
    font-size: 2rem;
  }
  main {
    margin: 15px;
    padding: 15px;
  }
  button {
    width: 100%;
  }
}
