.finder-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 62px) 0;
  background: linear-gradient(135deg, #102a4c 0%, #193c65 58%, #e9dfca 100%);
}
.finder-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background:
    radial-gradient(circle at 78% 8%, rgba(201,150,59,.28), transparent 30%),
    repeating-linear-gradient(128deg, transparent 0 42px, rgba(255,255,255,.03) 42px 43px);
}
.finder-shell { max-width: 1320px; }
.finder-card {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 30px;
  background: #fffdf8;
  box-shadow: 0 32px 90px rgba(16,42,76,.32);
}
.finder-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(30px, 5vw, 60px);
  background: linear-gradient(145deg, #102a4c, #173b65);
  color: #fff;
}
.finder-intro::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255,255,255,.025), 0 0 0 108px rgba(255,255,255,.018);
}
.finder-eyebrow {
  position: relative;
  margin-bottom: 22px;
  color: #edcc7e;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.finder-intro h1 {
  position: relative;
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.finder-intro p {
  position: relative;
  max-width: 500px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 1.06rem;
  line-height: 1.65;
}
.finder-progress { position: relative; z-index: 1; margin-top: 48px; }
.progress-labels, .progress-bars { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.progress-labels { margin-bottom: 14px; color: rgba(255,255,255,.58); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.progress-bars span { height: 6px; border-radius: 999px; background: rgba(255,255,255,.18); }
.progress-bars span.active { background: #d7ab4d; }
.finder-workspace {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(26px, 5vw, 58px);
}
.finder-step[hidden] { display: none; }
.finder-step { animation: finder-in .24s ease; }
@keyframes finder-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.step-label {
  margin: 0 0 12px;
  color: #93671f;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.finder-step h2 {
  margin: 0;
  color: #102a4c;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.finder-step > p:not(.step-label):not(.results-instruction):not(.results-note) { margin-top: 10px; color: #6b6258; }
.budget-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; }
.budget-heading p { margin: 9px 0 0; color: #6b6258; font-size: .9rem; }
.budget-adjuster { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.budget-adjuster button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(16,42,76,.2);
  border-radius: 13px;
  background: #fff;
  color: #102a4c;
  font-weight: 800;
}
.budget-adjuster button:hover:not(:disabled) { border-color: #c9963b; background: #fffaf0; }
.budget-adjuster button:disabled { opacity: .42; cursor: not-allowed; }
#budget-display { color: #102a4c; font: 700 clamp(2rem,4vw,3.15rem)/1 Georgia,serif; letter-spacing: -.04em; }
.budget-slider-wrap { margin: 34px 0 28px; padding: 26px; border: 1px solid rgba(16,42,76,.1); border-radius: 22px; background: rgba(16,42,76,.035); }
#budget { width: 100%; accent-color: #c9963b; cursor: pointer; }
.budget-slider-wrap > div { display: flex; justify-content: space-between; margin-top: 12px; color: #756b60; font-size: .75rem; font-weight: 750; }
.choice-instruction { margin: 0 0 14px; color: #4b443d; font-size: .88rem; font-weight: 750; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.choice-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 98px;
  padding: 16px;
  border: 1px solid rgba(16,42,76,.14);
  border-radius: 17px;
  background: rgba(255,255,255,.78);
  color: #102a4c;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.choice-card:hover, .choice-card:focus-visible { transform: translateY(-2px); border-color: rgba(16,42,76,.38); box-shadow: 0 12px 28px rgba(16,42,76,.1); outline: none; }
.choice-card.choice-wide { grid-column: 1 / -1; }
.choice-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #eef2f7; font-size: 1.25rem; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { font-size: 1rem; }
.choice-card small { margin-top: 5px; color: #756b60; font-size: .74rem; line-height: 1.4; }
.choice-card b { font-size: 1.2rem; }
.detail-grid { margin-top: 28px; }
.detail-grid .choice-card { grid-template-columns: 1fr auto; min-height: 114px; }
.feature-box { margin-top: 24px; padding: 20px; border: 1px solid rgba(16,42,76,.14); border-radius: 18px; background: #fff; }
.feature-box label { color: #102a4c; }
.feature-box label span { color: #756b60; font-weight: 400; }
.feature-box p { margin: 5px 0 0; color: #6b6258; font-size: .85rem; }
.feature-box input { width: 100%; min-height: 48px; margin-top: 13px; padding: 10px 13px; border: 1px solid rgba(16,42,76,.22); border-radius: 12px; background: #fff; color: #102a4c; font: inherit; }
.feature-box input:focus { outline: 3px solid rgba(201,150,59,.35); border-color: #c9963b; }
.feature-box small { display: block; margin-top: 8px; color: #756b60; font-size: .72rem; line-height: 1.5; }
.county-group { margin: 24px 0 0; padding: 0; border: 0; }
.county-group legend { margin-bottom: 10px; color: #102a4c; font-weight: 850; }
.county-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.county-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(16,42,76,.14);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
}
.county-card:has(input:checked) { border-color: rgba(16,42,76,.5); background: #f8f2e5; box-shadow: inset 0 0 0 1px rgba(201,150,59,.14); }
.county-card input { width: 18px; height: 18px; margin-top: 2px; accent-color: #102a4c; }
.county-card strong, .county-card small { display: block; }
.county-card strong { color: #102a4c; }
.county-card small { margin-top: 4px; color: #756b60; font-size: .73rem; line-height: 1.4; }
.finder-primary {
  min-height: 50px;
  margin-top: 26px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: #102a4c;
  color: #fff;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(16,42,76,.22);
}
.finder-primary:hover:not(:disabled) { background: #1b3d66; transform: translateY(-1px); }
.finder-primary:disabled { opacity: .35; cursor: not-allowed; }
.summary-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.summary-chip { padding: 7px 11px; border: 1px solid #b18434; border-radius: 999px; background: #edcc7e; color: #102a4c; font-size: .76rem; font-weight: 800; }
.results-instruction { margin: 18px 0 0; padding: 13px 15px; border: 1px solid rgba(16,42,76,.1); border-radius: 12px; background: #f8f2e5; color: #102a4c; font-weight: 750; }
.results-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-height: 390px; margin-top: 20px; padding-right: 4px; overflow-y: auto; }
.result-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid #b18434;
  border-radius: 17px;
  background: #edcc7e;
  color: #102a4c;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.result-card:hover, .result-card:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16,42,76,.14); outline: 3px solid rgba(201,150,59,.38); outline-offset: 2px; }
.result-card strong { display: block; font-size: 1.15rem; }
.result-card small { display: inline-block; margin-top: 10px; padding: 8px 10px; border-radius: 9px; background: #102a4c; color: #fff; font-weight: 800; }
.results-note { margin: 18px 0 0; color: #756b60; font-size: .72rem; line-height: 1.55; }
.finder-navigation { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 26px; }
.finder-navigation button { min-width: 128px; min-height: 48px; padding: 10px 18px; border: 1px solid #102a4c; border-radius: 999px; font-weight: 800; }
#finder-back { background: #fff; color: #102a4c; }
#finder-back:disabled { opacity: .35; cursor: not-allowed; }
#finder-reset { background: #102a4c; color: #fff; }
.finder-navigation button:hover:not(:disabled) { filter: brightness(1.08); }

@media (max-width: 980px) {
  .finder-card { grid-template-columns: 1fr; }
  .finder-intro { min-height: 320px; }
}
@media (max-width: 640px) {
  .finder-page { padding: 16px 0 28px; }
  .finder-card { border-radius: 22px; }
  .finder-intro { min-height: 340px; padding: 28px 24px; }
  .finder-workspace { padding: 24px 18px; }
  .budget-adjuster { justify-content: flex-start; }
  #budget-display { width: 100%; order: -1; }
  .choice-grid, .county-grid, .results-grid { grid-template-columns: 1fr; }
  .choice-card.choice-wide { grid-column: auto; }
  .finder-navigation { position: sticky; bottom: 0; z-index: 4; margin: 22px -18px -24px; padding: 12px 18px 10px; background: rgba(255,253,248,.97); box-shadow: 0 -10px 20px rgba(16,42,76,.08); }
  .finder-navigation button { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .finder-step { animation: none; }
}

/* Compact, phone-first treatment aligned with the main Brock Team site */
.finder-page {
  padding: clamp(22px, 4vw, 44px) 0;
  background: linear-gradient(145deg, #102a4c 0%, #1a3d62 62%, #d8c49b 100%);
}
.finder-card {
  grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr);
  min-height: 640px;
  border-radius: 20px;
  box-shadow: 0 24px 66px rgba(7, 25, 46, .3);
}
.finder-intro {
  padding: clamp(28px, 4vw, 46px);
  background: linear-gradient(155deg, #0d2747, #173b61);
}
.finder-intro h1 {
  font-size: clamp(2.25rem, 4.3vw, 3.35rem);
  letter-spacing: -.04em;
}
.finder-intro p { margin-top: 18px; font-size: .98rem; }
.finder-progress { margin-top: 34px; }
.finder-workspace { padding: clamp(24px, 4vw, 46px); }
.finder-step h2 { font-size: clamp(1.8rem, 3.5vw, 2.55rem); }
.budget-slider-wrap { margin: 26px 0 22px; padding: 20px; border-radius: 16px; }
.choice-grid { gap: 10px; }
.choice-card { min-height: 88px; border-radius: 14px; }
.detail-grid { margin-top: 22px; }
.detail-grid .choice-card { min-height: 96px; }
.county-grid { gap: 9px; }
.county-card { min-height: 78px; border-radius: 13px; }
.finder-primary,
.finder-navigation button { border-radius: 999px; }

.feature-box {
  margin-top: 22px;
  padding: 0;
  overflow: hidden;
  border-radius: 15px;
  background: #fffaf0;
}
.feature-box summary {
  position: relative;
  padding: 16px 46px 16px 18px;
  color: #102a4c;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}
.feature-box summary::-webkit-details-marker { display: none; }
.feature-box summary::after {
  content: "+";
  position: absolute;
  right: 17px;
  top: 50%;
  color: #9a6b1a;
  font-size: 1.35rem;
  transform: translateY(-50%);
}
.feature-box[open] summary { border-bottom: 1px solid rgba(16,42,76,.12); }
.feature-box[open] summary::after { content: "−"; }
.feature-box summary:focus-visible { outline: 3px solid rgba(201,150,59,.35); outline-offset: -3px; }
.feature-box-content { padding: 18px; }
.feature-box-content p { margin-top: 5px; }
.feature-box input { margin-top: 11px; }

@media (max-width: 980px) {
  .finder-card { grid-template-columns: 1fr; min-height: 0; }
  .finder-intro { min-height: 250px; }
}

@media (max-width: 640px) {
  .finder-page { padding: 12px 0 24px; }
  .finder-card { border-radius: 16px; }
  .finder-intro { min-height: 225px; padding: 24px 20px; }
  .finder-intro h1 { font-size: clamp(2.05rem, 10vw, 2.65rem); }
  .finder-intro p { margin-top: 13px; font-size: .9rem; }
  .finder-progress { margin-top: 24px; }
  .progress-labels { margin-bottom: 9px; font-size: .54rem; }
  .finder-workspace { padding: 22px 16px; }
  .budget-slider-wrap { margin: 20px 0; padding: 17px 14px; }
  .choice-card { min-height: 82px; padding: 14px; }
  .finder-navigation { margin: 20px -16px -22px; padding: 11px 16px 9px; }
  .feature-box summary { padding: 15px 42px 15px 16px; }
  .feature-box-content { padding: 16px; }
}
