:root {
  color-scheme: light;
  --green: #073f37;
  --dark: #172e27;
  --gold: #a36c38;
  --line: #cbd4cc;
  font: 16px/1.55 "Instrument Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f7f6f1; color: var(--dark); }
a { color: var(--green); text-underline-offset: 3px; }
.top {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: .5rem 1.5rem; padding: 1rem clamp(1.25rem, 6vw, 6rem);
  color: #fff; background: var(--green);
}
.top a { color: inherit; }
.brand {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 1.2rem; font-weight: 750; text-decoration: none;
}
.brand-logo { display: block; flex: none; object-fit: contain; }
.brand span { color: #f2d3a6; font-size: .85rem; }
main { width: min(100% - 2rem, 48rem); margin: clamp(2rem, 6vw, 4.5rem) auto; }
.intro { margin-bottom: 1.4rem; }
h1 { font-size: clamp(2.2rem, 5.8vw, 3.6rem); line-height: 1.05; letter-spacing: -.045em; margin: 0 0 1rem; }
.intro p { max-width: 39rem; }
.free-review { margin: 0; color: var(--green); font-size: clamp(1.125rem, 3vw, 1.35rem); font-weight: 750; }
fieldset { min-width: 0; margin: 0 0 1.5rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
legend { padding: 0 .35rem; font-size: 1.2rem; font-weight: 700; }
label { display: block; font-weight: 600; }
small { display: block; color: #43574e; font-weight: 400; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  display: block; width: 100%; min-height: 2.7rem; margin-top: .3rem;
  border: 1px solid #899d91; border-radius: .4rem; padding: .45rem .65rem;
  font: inherit; color: inherit; background: #fff;
}
button { border: 1px solid transparent; border-radius: .4rem; background: var(--green); color: white; padding: .75rem 1rem; font: inherit; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .7; cursor: wait; }
.button-link {
  display: inline-block; border-radius: .4rem; background: var(--green);
  color: #fff; padding: .75rem 1rem; font-weight: 650; text-decoration: none;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.contact-note { color: #43574e; font-size: .9rem; }
.loan .field:first-child { grid-column: 1 / -1; }
.priority { padding: 0; border: 0; background: transparent; }
.priority legend { padding: 0; margin-bottom: .65rem; }
.preference-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.priority-option {
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: .45rem; cursor: pointer;
}
.priority-option input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--green); }
.priority-option strong { color: var(--green); }
.priority-option small { font-size: .9rem; margin-top: .15rem; }
.priority-option:hover, .priority-option:has(input:checked) { border-color: var(--green); }
.priority-option:has(input:checked) { background: #e7f0ea; }
.status { border-left: 3px solid var(--green); padding: .8rem; background: #fff; }
.status.error { border-color: #8a2624; color: #8a2624; }
.field-error { color: #8a2624; margin-top: .3rem; }
.optional, .field-help { color: #43574e; font-size: .875rem; font-weight: 400; }
.field-help { margin-top: .3rem; }
.credit-path { margin-top: 1.75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.guide { margin-top: 1.5rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
.guide h2 { margin-top: 0; line-height: 1.2; }
.guide ul { margin-bottom: 0; padding-left: 1.25rem; }
.guide li + li { margin-top: .5rem; }
input[aria-invalid=true] { border-color: #8a2624; }
@media (max-width: 35rem) {
  .grid { grid-template-columns: 1fr; }
  button[type="submit"], .button-link { width: 100%; text-align: center; }
}
