:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --border: #e5e7ef;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: #c89b6d;
  background-image:
    radial-gradient(#b8895d 1px, transparent 1px),
    radial-gradient(#b8895d 1px, transparent 1px);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary-btn {
  background: var(--primary);
  color: #fff;
}

.primary-btn:hover {
  background: var(--primary-hover);
}

.ghost-btn {
  background: #eef2ff;
  color: var(--primary);
}

.ghost-btn:hover {
  background: #e0e7ff;
}

.danger-btn {
  background: #fee2e2;
  color: var(--danger);
}

.danger-btn:hover {
  background: #fecaca;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  padding: 14px 18px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 52px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}

input::placeholder,
textarea::placeholder {
  color: #8a8a8a;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(79, 70, 229, 0.16);
  border-color: var(--primary);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.helper-text {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: -4px;
}

@media (max-width: 700px) {
  input,
  select,
  textarea {
    padding: 14px 16px;
    border-radius: 16px;
  }

  textarea {
    min-height: 120px;
  }
}