:root {
  --bg: #ffa43d;
  --surface: #fff8ec;
  --strong: #ffffff;
  --ink: #12100d;
  --muted: #6e3e07;
  --line: #d98322;
  --accent: #ff8800;
  --red: #c82116;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: #000;
  font-weight: 800;
}

.public-page {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  margin: 0 auto;
  padding: 24px;
}

.intro-panel,
.form-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.intro-panel {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.intro-panel img {
  width: min(260px, 100%);
  height: auto;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.05;
}

h2 {
  font-size: 20px;
}

.stage-note {
  border-left: 4px solid var(--accent);
  background: rgba(255, 136, 0, 0.12);
  padding: 10px 12px;
  color: #3a2208;
  font-size: 14px;
  line-height: 1.42;
}

.document-links {
  display: grid;
  gap: 8px;
}

.document-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #000;
  border-radius: 6px;
  background: #000;
  color: var(--accent);
  padding: 0 12px;
  text-decoration: none;
}

form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

label {
  display: grid;
  grid-column: span 2;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wide,
.section-title,
.technical-row,
.form-actions {
  grid-column: 1 / -1;
}

.section-title {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.section-title:first-child {
  border-top: 0;
  padding-top: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c87519;
  border-radius: 6px;
  background: var(--strong);
  color: var(--ink);
  padding: 8px 10px;
}

textarea {
  resize: vertical;
}

.technical-row {
  display: grid;
  gap: 13px;
}

.technical-row label {
  grid-column: auto;
}

.technical-row.one {
  grid-template-columns: minmax(180px, 1fr);
  max-width: 360px;
}

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

.technical-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #000;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

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

#formMessage {
  color: #000;
  font-size: 13px;
  font-weight: 900;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

@media (max-width: 820px) {
  .public-page {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .intro-panel {
    position: static;
  }

  h1 {
    font-size: 28px;
  }

  form,
  .technical-row.one,
  .technical-row.two,
  .technical-row.three {
    grid-template-columns: 1fr;
  }

  label {
    grid-column: 1 / -1;
  }
}
