:root {
  --accent: #0b5ed7;
  --muted: #6b7280;
  --bg: #f7f9fc;
  --card: #fff;
  --radius: 10px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
  margin: 0;
  background: var(--bg);
  padding: 28px;
  color: #0f172a;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(8, 15, 52, 0.08);
  padding: 22px;
}

h1 {
  margin: 0 0 8px;
  font-size: 20px;
}

p.lead {
  margin: 0 0 18px;
  color: var(--muted);
}

fieldset {
  border: 1px solid #e6eefc;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 8px;
}

legend {
  font-weight: 600;
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.col-1 {
  grid-column: 1;
}

.col-2 {
  grid-column: 2;
}

.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #111827;
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="date"], 
select, 
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

button {
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

button.ghost {
  background: #fff;
  color: var(--accent);
  border: 1px solid #dbeafe;
}

button.danger {
  background: #ef4444;
}

.file-input {
  display: flex;
  gap: 8px;
  align-items: center;
}

.signature {
  display: flex;
  gap: 8px;
  align-items: center;
}

.note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .actions {
    justify-content: stretch;
    flex-direction: column-reverse;
  }
}