:root {
  --navy: #14213d;
  --navy-soft: #24345a;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --ink: #1f2937;
  --muted: #5b6472;
  --line: #d9dde3;
  --paper: #ffffff;
  --sand: #f7f5f1;
  --error: #b42318;
  --error-bg: #fef3f2;
  --success-bg: #ecfdf3;
  --focus: #2563eb;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Narrow content keeps the same left edge as full-width sections. */
.narrow > * {
  max-width: 720px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.wordmark {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.wordmark:hover {
  color: var(--navy);
}

.header-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

/* Hero */

.hero {
  background: var(--navy);
  color: #e8ecf4;
  padding: 72px 0 80px;
}

.hero h1 {
  color: #ffffff;
}

.eyebrow {
  color: #f6ad7b;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lede {
  font-size: 1.2rem;
  max-width: 38em;
  margin-bottom: 32px;
}

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

.hero-note {
  margin: 0;
  color: #b8c1d3;
  font-size: 0.95rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--sand);
}

.section-intro {
  color: var(--muted);
  margin-bottom: 32px;
}

.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.step p {
  color: var(--muted);
  margin: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
}

/* Form */

.form fieldset {
  border: 0;
  margin: 0 0 40px;
  padding: 0;
  min-width: 0;
}

.form legend {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0 0 8px;
  margin-bottom: 20px;
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.field {
  margin-bottom: 20px;
  min-width: 0;
}

.field-row {
  display: grid;
  gap: 0 20px;
  grid-template-columns: 1fr;
}

/* A row whose error message spans the full width under both fields. */
.field-group {
  margin-bottom: 20px;
}

.field-group .field-row {
  gap: 20px;
}

.field-group .field {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .field-row-location {
    grid-template-columns: 1fr 9rem;
  }
}

.field label,
.field .label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.optional-tag {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.875rem;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="date"],
.form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #b7bec9;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  appearance: none;
}

.form input[type="date"] {
  min-width: 0;
}

.form textarea {
  resize: vertical;
  min-height: 132px;
}

.form input:hover,
.form textarea:hover {
  border-color: #8a93a1;
}

.form input:focus,
.form textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 0;
  border-color: var(--focus);
}

.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] {
  border-color: var(--error);
  background: var(--error-bg);
}

.input-prefix {
  position: relative;
}

.input-prefix span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.form .input-prefix input {
  padding-left: 28px;
}

.field-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 6px 0 0;
}

.field-error {
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 6px 0 0;
}

.field-error:empty {
  display: none;
}

.file-drop {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 20px;
  border: 2px dashed #b7bec9;
  border-radius: var(--radius);
  background: var(--sand);
  cursor: pointer;
}

.file-drop:hover {
  border-color: var(--navy-soft);
}

.file-drop:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  border-color: var(--focus);
}

.file-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
}

.file-drop-text {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.file-list:empty {
  display: none;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
}

.file-list li + li {
  margin-top: 8px;
}

.file-list .file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list .file-size {
  color: var(--muted);
  flex-shrink: 0;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400 !important;
  cursor: pointer;
}

.checkbox input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  accent-color: var(--navy);
}

.cf-turnstile {
  margin: 8px 0 24px;
  min-height: 65px;
}

.notice {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.notice-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #fecdca;
}

.button-submit {
  width: 100%;
}

@media (min-width: 640px) {
  .button-submit {
    width: auto;
    min-width: 220px;
  }
}

/* Simple pages (thanks, privacy, 404) */

main {
  flex: 1;
}

.page {
  padding: 64px 0 80px;
}

.page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  max-width: none;
}

.page h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.page ul {
  padding-left: 1.25em;
  margin: 0 0 1em;
}

.page li {
  margin-bottom: 0.4em;
}

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--success-bg);
  color: #067647;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sand);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 32px 0;
}

.footer-inner p {
  margin: 0 0 8px;
}

.footer-inner p:last-child {
  margin: 0;
}

.site-footer strong {
  color: var(--ink);
}

@media (max-width: 479px) {
  .hero {
    padding: 48px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
