:root {
  --earth-page: #fbf4e7;
  --earth-panel: #fffaf0;
  --earth-card: #fffdf8;
  --earth-ink: #182421;
  --earth-muted: #4d5953;
  --earth-border: #d9cfbd;
  --earth-accent: #6d1d17;
  --earth-accent-dark: #43130f;
  --earth-green: #3d6f62;
  --earth-shadow: 0 18px 45px rgba(55, 45, 30, 0.12);
}

html {
  box-sizing: border-box;
}

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

body.site-chrome-page {
  background:
    linear-gradient(180deg, rgba(109, 29, 23, 0.08), rgba(251, 244, 231, 0) 340px),
    var(--earth-page);
  color: var(--earth-ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

.acquisition-page {
  padding: clamp(1.2rem, 4vw, 3rem) 1rem clamp(2.5rem, 5vw, 4rem);
}

#wrapper {
  background: var(--earth-panel);
  border: 1px solid var(--earth-border);
  border-top: 6px solid var(--earth-accent);
  border-radius: 8px;
  box-shadow: var(--earth-shadow);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1060px;
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 2.25rem);
}

#title {
  background:
    linear-gradient(135deg, rgba(109, 29, 23, 0.10), rgba(109, 29, 23, 0) 48%),
    var(--earth-card);
  border-bottom: 1px solid var(--earth-border);
  grid-column: 1 / -1;
  margin: calc(clamp(1.2rem, 4vw, 2.25rem) * -1) calc(clamp(1.2rem, 4vw, 2.25rem) * -1) 0;
  padding: clamp(1.5rem, 4vw, 2.3rem) clamp(1.2rem, 4vw, 2.25rem);
}

#title .eyebrow {
  color: var(--earth-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

#title h1 {
  color: var(--earth-ink);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0;
}

.option-panel,
.field-panel {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--earth-border);
  border-radius: 8px;
  min-width: 0;
}

.option-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem;
}

.option-panel legend {
  color: var(--earth-ink);
  font-weight: 800;
  padding: 0 0.35rem;
}

.option-pill {
  align-items: center;
  background: var(--earth-panel);
  border: 1px solid var(--earth-border);
  border-radius: 999px;
  color: var(--earth-ink);
  cursor: pointer;
  display: inline-flex;
  flex: 1 1 12rem;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
}

.option-pill input {
  accent-color: var(--earth-accent);
}

.option-pill:has(input:checked) {
  background: #f0e4d1;
  border-color: rgba(109, 29, 23, 0.35);
  box-shadow: inset 0 0 0 1px rgba(109, 29, 23, 0.12);
}

.field-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  color: var(--earth-ink);
  font-weight: 800;
  line-height: 1.35;
}

.field input {
  background: var(--earth-card);
  border: 1px solid #bfc7c0;
  border-radius: 6px;
  color: var(--earth-ink);
  font: inherit;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.field input:focus {
  border-color: var(--earth-accent);
  box-shadow: 0 0 0 3px rgba(109, 29, 23, 0.16);
  outline: none;
}

#submitButton {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

#submitButton button {
  background: var(--earth-accent);
  border: 1px solid var(--earth-accent);
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 2.85rem;
  padding: 0.7rem 1.1rem;
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

#submitButton button:hover,
#submitButton button:focus {
  background: var(--earth-accent-dark);
  box-shadow: 0 10px 22px rgba(55, 45, 30, 0.16);
  outline: none;
  transform: translateY(-1px);
}

#water_data,
#basement_data {
  display: none !important;
  visibility: hidden !important;
}

@media (max-width: 780px) {
  .acquisition-page {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  #wrapper {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  #title {
    margin: -1rem -1rem 0;
    padding: 1.35rem 1rem;
  }

  .option-pill {
    border-radius: 6px;
    flex-basis: 100%;
  }

  #submitButton {
    justify-content: stretch;
  }

  #submitButton button {
    width: 100%;
  }
}
