:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --ink: #172126;
  --muted: #5d6a72;
  --line: #d8e0e4;
  --accent: #0d766e;
  --accent-dark: #095d57;
  --danger: #a33131;
  --success: #236b3d;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(13, 118, 110, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(200, 85, 61, 0.1), transparent 42%),
    var(--bg);
  color: var(--ink);
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 16px;
}

.message-panel {
  display: grid;
  width: min(100%, 880px);
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 40px;
  align-items: start;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(23, 33, 38, 0.12);
}

.intro {
  padding-top: 6px;
}

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

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 28rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

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

.field {
  display: grid;
  gap: 8px;
}

label {
  font-size: 0.94rem;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 13px 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

input:focus,
textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 118, 110, 0.14);
}

.counter {
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.hidden-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.status[data-state="success"] {
  color: var(--success);
}

.status[data-state="error"] {
  color: var(--danger);
}

@media (max-width: 760px) {
  .page-shell {
    align-items: start;
    padding: 18px;
  }

  .message-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }

  h1 {
    font-size: 2.5rem;
  }
}

.legal-links {
  display: flex;
  gap: 16px;
  grid-column: 1 / -1;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-links a,
.back-link,
.document-panel a {
  color: var(--accent-dark);
  text-decoration: none;
}

.legal-links a:hover,
.back-link:hover,
.document-panel a:hover {
  text-decoration: underline;
}

.document-shell {
  min-height: 100vh;
  padding: 32px 16px;
}

.document-panel {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(23, 33, 38, 0.1);
}

.document-panel h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.document-panel h2 {
  margin: 30px 0 8px;
  font-size: 1.1rem;
}

.document-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.back-link {
  font-weight: 750;
}
