:root {
  --ink: #111716;
  --charcoal: #151a18;
  --paper: #f7f3eb;
  --white: #fffdf8;
  --line: #d8d0c3;
  --muted: #6e675f;
  --copper: #a8482e;
  --gold: #dca84d;
  --teal: #2f625d;
  --success: #2f625d;
  --error: #9b3a2a;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(220, 168, 77, 0.12), transparent 28%),
    repeating-linear-gradient(90deg, rgba(17, 23, 22, 0.018) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(17, 23, 22, 0.014) 0 1px, transparent 1px 38px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}

.intro-panel,
.form-panel {
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 24px 70px rgba(17, 23, 22, 0.08);
}

.intro-panel {
  overflow: hidden;
}

.intro-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--charcoal);
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-copy,
.form-panel-inner {
  padding: 28px;
}

.intro-copy {
  display: grid;
  gap: 16px;
}

.eyebrow {
  margin: 0;
  color: var(--copper);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 0.98;
  font-weight: 500;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.04;
  font-weight: 500;
}

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

.form-kicker {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
}

.helper-card {
  padding: 18px;
  border-radius: 8px;
  background: rgba(47, 98, 93, 0.08);
  border: 1px solid rgba(47, 98, 93, 0.16);
}

.helper-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.small {
  font-size: 13px;
}

.intake-section {
  border-top: 1px solid rgba(17, 23, 22, 0.1);
}

.intake-section:first-of-type {
  border-top: 0;
}

.section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.section-toggle-copy {
  display: grid;
  gap: 4px;
}

.section-kicker {
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.08;
}

.section-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.section-summary {
  max-width: 260px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

.section-summary:not(.has-content) {
  display: none;
}

.section-body {
  display: none;
  padding: 0 0 24px;
}

.intake-section.is-open .section-body {
  display: block;
}

.intake-section.is-open .section-toggle {
  padding-bottom: 16px;
}

.question-group {
  margin-bottom: 24px;
}

.question-group:last-of-type {
  margin-bottom: 0;
}

.question-label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
}

.question-note {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.field-error {
  display: none;
  margin-top: 10px;
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 23, 22, 0.18);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

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

input:focus,
textarea:focus {
  outline: 2px solid rgba(168, 72, 46, 0.22);
  outline-offset: 2px;
  border-color: rgba(168, 72, 46, 0.4);
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.8);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.choice:hover {
  border-color: rgba(168, 72, 46, 0.28);
  background: rgba(247, 234, 216, 0.76);
}

.choice input {
  margin-top: 3px;
  accent-color: var(--copper);
}

.choice span {
  color: var(--ink);
}

.question-group.has-error .field-error {
  display: block;
}

.question-group.has-error .question-label {
  color: var(--error);
}

.question-group.has-error input[type="text"],
.question-group.has-error input[type="email"],
.question-group.has-error textarea {
  border-color: rgba(155, 58, 42, 0.56);
  background: rgba(155, 58, 42, 0.03);
}

.question-group.has-error .choice {
  border-color: rgba(155, 58, 42, 0.44);
  background: rgba(155, 58, 42, 0.04);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

.actions.actions-right-only {
  justify-content: flex-end;
}

.actions-right {
  display: flex;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  background: var(--gold);
  color: #16120c;
  border-color: rgba(255, 253, 248, 0.94);
}

.button-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: rgba(17, 23, 22, 0.16);
}

.button-dark {
  background: var(--charcoal);
  color: var(--white);
}

.status {
  min-height: 24px;
  margin-top: 16px;
  font-size: 14px;
}

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

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

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

@media (max-width: 920px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .section-toggle {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-summary {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(1120px, calc(100% - 28px));
    padding: 28px 0 56px;
  }

  .intro-copy,
  .form-panel-inner {
    padding: 22px;
  }

  .section-title {
    font-size: 21px;
  }

  .actions,
  .actions-right {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
