:root {
  --bg: #f7f5f2;
  --card-bg: #ffffff;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --border: #e0ddd8;
  --primary: #b3282d;
  --primary-hover: #931f24;
  --secondary: #2f6f4e;
  --error-bg: #fdecea;
  --error-text: #91231c;
  --success-bg: #e9f6ec;
  --success-text: #1d6b34;
}

* {
  box-sizing: border-box;
}

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

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

h1 {
  margin-bottom: 0.25rem;
  font-size: 1.9rem;
}

.subtitle {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.field {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

label {
  font-size: 0.85rem;
  color: var(--muted);
}

.required {
  color: var(--primary);
}

input[type="text"],
input[type="email"] {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}

input:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

.people-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.person-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.person-row .field {
  flex: 1 1 auto;
}

.remove-btn {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.remove-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-secondary {
  background: #eef1ee;
  color: var(--secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #e2e7e2;
}

.btn-primary {
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.actions {
  text-align: center;
  margin: 1.5rem 0;
}

.hint {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}

.status.visible {
  display: block;
}

.status.error {
  background: var(--error-bg);
  color: var(--error-text);
}

.status.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.status.loading {
  background: #eef1ee;
  color: var(--muted);
}
