:root {
  --ink: #1d2d3c;
  --muted: #4e6275;
  --border: #b8c6d3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1.2rem;
  color: var(--ink);
  font-family: 'Times New Roman', serif;
  background: #f6f8fa;
}

.sheet {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem 1.2rem;
}

.toolbar {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 0.8rem;
}

button {
  border: 1px solid #143a58;
  background: #1a5c88;
  color: #fff;
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 0.86rem;
}

button.secondary {
  background: #fff;
  color: #143a58;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.gov-head {
  text-align: center;
  display: grid;
  gap: 0.16rem;
}

.gov-head h1 {
  font-size: 1.16rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gov-head p {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-title {
  text-align: center;
  margin: 0.9rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.field {
  display: grid;
  gap: 0.18rem;
  font-size: 0.85rem;
}

.field label {
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.34rem 0.4rem;
  font: inherit;
  font-size: 0.92rem;
}

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

.form-body {
  margin: 0.8rem 0;
  display: grid;
  gap: 0.6rem;
}

.notice-box {
  border: 1px dashed var(--border);
  padding: 0.56rem;
  font-size: 0.88rem;
  color: #30485c;
  background: #fafcfd;
}

.signature-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.signature {
  text-align: center;
}

.signature input {
  border: 0;
  border-bottom: 1px solid #667d91;
  border-radius: 0;
  text-align: center;
}

.signature small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-note {
  margin-top: 0.8rem;
  font-size: 0.76rem;
  color: var(--muted);
}

@media print {
  body {
    background: #fff;
    padding: 0;
  }

  .toolbar {
    display: none;
  }

  .sheet {
    border: 0;
    max-width: 100%;
    padding: 0.4in;
  }

  input,
  textarea,
  select {
    border-color: #666;
  }
}
