@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&family=Nunito+Sans:wght@400;600;700;800;900&display=swap');

:root {
  --orange: #fc7100;
  --cream: #fcf6e4;
  --ink: #0b0706;
  --paper: #fffdf8;
  --pale-orange: #ffe1c2;
  --line: #2a211d;
  --error: #a72608;
  --shadow: 0 16px 40px rgba(48, 22, 0, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
a { color: inherit; }

.site-header {
  align-items: center;
  background: var(--orange);
  display: flex;
  justify-content: space-between;
  min-height: 82px;
  padding: 16px clamp(20px, 5vw, 64px);
}
.wordmark {
  background: var(--ink);
  border: 2px solid var(--cream);
  border-radius: 7px;
  box-shadow: 0 0 0 2px var(--ink);
  color: var(--cream);
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  padding: 11px 18px;
  text-decoration: none;
}
.wordmark span { color: var(--orange); }
nav { display: flex; flex-wrap: wrap; gap: 22px; }
nav a {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}
nav a:hover,
nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 46px) 80px;
}
.intro { max-width: 780px; margin-bottom: 38px; }
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(2.55rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.94;
  margin: 0 0 20px;
}
.intro > p:last-child { font-size: clamp(1rem, 2vw, 1.2rem); margin: 0; max-width: 650px; }

form { display: grid; gap: 28px; }
.form-section {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}
.section-heading {
  align-items: flex-start;
  border-bottom: 3px solid var(--ink);
  display: flex;
  gap: 18px;
  margin-bottom: 30px;
  padding-bottom: 20px;
}
.section-heading > span {
  color: var(--orange);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.2rem;
  font-weight: 800;
  padding-top: 3px;
}
h2 { font-size: clamp(1.45rem, 4vw, 2.1rem); line-height: 1.05; margin: 0 0 7px; }
.section-heading p,
.conditional-title p { color: #5f554e; margin: 0; }

.field-grid { display: grid; gap: 20px; margin-bottom: 22px; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spaced-top { margin-top: 22px; }
label > span:first-child,
.field-label,
.upload-label { display: block; font-weight: 800; margin-bottom: 8px; }
label b { color: var(--orange); }
input, select, textarea, button { font: inherit; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], select, textarea {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  min-height: 48px;
  padding: 11px 13px;
  width: 100%;
}
textarea { min-height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible {
  box-shadow: 0 0 0 4px rgba(252, 113, 0, 0.28);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.project-types {
  border: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 24px;
  padding: 0;
}
.project-types label { display: block; min-width: 0; }
.project-types input { opacity: 0; position: absolute; }
.project-types span {
  align-items: center;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 62px;
  padding: 11px;
  text-align: center;
}
.project-types input:checked + span {
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}
.project-types input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(252, 113, 0, 0.32);
  outline: 2px solid var(--ink);
}

.conditional-panel {
  background: var(--cream);
  border-left: 8px solid var(--orange);
  margin: 26px 0;
  padding: 24px;
}
.conditional-panel[hidden] { display: none; }
.conditional-title {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 20px;
}
.conditional-title > span { font-family: "JetBrains Mono", monospace; font-weight: 800; }

.check-list {
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100px;
  padding: 14px;
}
.check-list label,
.consent { align-items: flex-start; display: flex; gap: 9px; }
.check-list label span { font-weight: 600; margin: 0; }
input[type="checkbox"] {
  accent-color: var(--orange);
  flex: 0 0 auto;
  height: 20px;
  margin: 1px 0 0;
  width: 20px;
}

.upload-zone {
  background: var(--cream);
  border: 3px dashed var(--ink);
  border-radius: 7px;
  cursor: pointer;
  margin-bottom: 10px;
  min-height: 150px;
  position: relative;
  transition: background 160ms ease, transform 160ms ease;
}
.upload-zone.is-dragging { background: var(--pale-orange); transform: translateY(-2px); }
.upload-zone input {
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}
.upload-copy {
  align-items: center;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  text-align: center;
}
.upload-copy strong { font-size: 1.1rem; margin-bottom: 7px; }
.upload-copy span,
.privacy-note { color: #5f554e; font-size: 0.88rem; }
.file-list { display: grid; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.file-list li {
  align-items: center;
  background: #fff;
  border: 1px solid #c9bba9;
  border-radius: 4px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}
.file-list button { background: transparent; border: 0; color: var(--error); cursor: pointer; font-weight: 800; padding: 4px; }
.consent { margin: 22px 0 12px; }
.consent > span { margin: 0; }
.privacy-note { margin: 0 0 22px; }
.field-error,
.form-error { color: var(--error); font-weight: 800; margin: -12px 0 18px; }

.submit-button {
  align-items: center;
  background: var(--orange);
  border: 3px solid var(--ink);
  border-radius: 5px;
  box-shadow: 7px 7px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 800;
  justify-content: space-between;
  min-height: 60px;
  padding: 14px 20px;
  text-transform: uppercase;
  transition: box-shadow 140ms ease, transform 140ms ease;
  width: 100%;
}
.submit-button:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(3px, 3px); }
.submit-button:disabled { cursor: wait; opacity: 0.7; }
a.submit-button { text-decoration: none; }
.honeypot,
.sr-only {
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.confirmation-card { margin: 8vh auto; max-width: 760px; }
.confirmation-card h1 { margin-top: 0; }
.confirmation-card > p:not(.eyebrow) { font-size: 1.15rem; margin-bottom: 34px; max-width: 620px; }

footer {
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  gap: 12px 30px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 64px);
  text-transform: uppercase;
}
footer a { color: var(--orange); }

@media (max-width: 780px) {
  .site-header { align-items: flex-start; gap: 20px; }
  nav { gap: 12px 18px; justify-content: flex-end; }
  .project-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three-column { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { align-items: stretch; flex-direction: column; }
  nav { justify-content: space-between; }
  main { padding-left: 14px; padding-right: 14px; }
  .form-section { border-left-width: 1px; border-right-width: 1px; padding: 22px 16px; }
  .two-column,
  .check-list { grid-template-columns: 1fr; }
  .project-types { gap: 9px; }
  .project-types span { font-size: 0.88rem; min-height: 58px; }
  .conditional-panel { border-left-width: 5px; margin-left: -6px; margin-right: -6px; padding: 20px 14px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
