:root {
  color-scheme: light;
  --ink: #221915;
  --muted: #665b54;
  --line: #d9d1ca;
  --field: #fffdfb;
  --paper: #f7f4ef;
  --accent: #6f4024;
  --accent-dark: #4d2b18;
  --focus: #1f6f78;
  --success: #216b45;
  --error: #a02d24;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.page-shell.small {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.intro {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.intake-form {
  display: grid;
  gap: 18px;
}

.form-section {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field-grid {
  display: grid;
  gap: 18px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 700;
}

label:last-child,
.field-grid label {
  margin-bottom: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  letter-spacing: 0;
  padding: 12px 14px;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(31, 111, 120, 0.18);
  outline: none;
}

.upload-box {
  min-height: 150px;
  align-content: center;
  margin: 0;
  padding: 22px;
  border: 1px dashed #a99c91;
  border-radius: 8px;
  background: #fbfaf8;
}

.upload-box small {
  color: var(--muted);
  font-weight: 400;
}

.file-list {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.confirmations {
  display: grid;
  gap: 14px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-weight: 600;
}

.check input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
}

button {
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 14px 22px;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

#form-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

#form-status.success {
  color: var(--success);
}

#form-status.error {
  color: var(--error);
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1040px);
    padding: 28px 0 44px;
  }

  .form-section {
    padding: 18px;
  }

  .field-grid.two {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
