:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --border: #e0ded8;
  --text: #24231f;
  --text-muted: #6b6a63;
  --accent: #1f6f5c;
  --accent-hover: #175647;
  --accent-soft: #e6f2ee;
  --warn-soft: #fdf3e3;
  --warn-border: #e8c988;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-header {
  padding: 2rem 1.5rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.app-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
}

main#app {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.step h2 {
  margin-top: 0;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }
}

.upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.upload-field input {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  color: white;
}

.btn-primary {
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--text-muted);
}

.btn-secondary:hover {
  background: var(--text);
}

.error {
  color: #b3392c;
  font-size: 0.9rem;
}

.group {
  margin-bottom: 2rem;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.group-header h3 {
  margin: 0;
}

.group-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 0.75rem;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  background: var(--bg);
}

#group-standaard .card {
  background: var(--accent-soft);
  border-color: #bfe0d5;
}

#group-controleren .card {
  background: var(--warn-soft);
  border-color: var(--warn-border);
}

.card input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.card-value {
  font-size: 0.95rem;
  word-break: break-word;
}

.card-photo-preview {
  display: block;
  max-width: 220px;
  max-height: 140px;
  border-radius: 6px;
  margin-top: 0.3rem;
  border: 1px solid var(--border);
}

.empty-state {
  color: var(--text-muted);
  padding: 1rem 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#step-done .btn {
  margin-right: 0.75rem;
}
