/* Theme. To restyle, set any --fx-* variable on :root (every feature on the site)
   or on .fx-est (this feature only). The values here are the defaults. */
.fx-est {
  --_accent: var(--fx-accent, #d4af37);
  --_accent-hover: var(--fx-accent-hover, #e2c158);
  --_accent-text: var(--fx-accent-text, #000);
  --_text: var(--fx-text, #f5f5f5);
  --_muted: var(--fx-muted, #b8b8b8);
  --_panel: var(--fx-panel, #181818);
  --_field: var(--fx-field, #080808);
  --_border: var(--fx-border, rgba(255,255,255,.35));
  --_demo: var(--fx-demo, #9ad1ff);
  --_font-display: var(--fx-font-display, inherit);
  --_font-body: var(--fx-font-body, inherit);
  --_space: var(--fx-space, 16px);
  --_space-sm: calc(var(--_space) * .5);
  --_space-lg: calc(var(--_space) * 1.5);
  --_radius: var(--fx-radius, 6px);
  --_radius-sm: calc(var(--_radius) * .6);
  font-family: var(--_font-body);
}
/* Instant price estimator */
.fx-est { color: var(--_text); }
.fx-est-title { margin: 0 0 .3em; font-family: var(--_font-display); font-size: clamp(2.1rem, 8vw, 3.4rem); font-weight: var(--fx-heading-weight, 800); line-height: .92; text-transform: var(--fx-heading-case, uppercase); }
.fx-est-intro { max-width: 40em; margin: 0 0 var(--_space-sm); color: var(--_muted); }
.fx-est-body { display: grid; gap: var(--_space); }
.fx-est-form, .fx-est-result { min-width: 0; padding: var(--_space); background: var(--_panel); border-radius: var(--_radius); }
.fx-est legend, .fx-est-field label { display: block; margin: 0 0 4px; padding: 0; font-size: .86rem; font-weight: 600; }
.fx-est-field { margin-bottom: 12px; }
.fx-est-field select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px;
  background: var(--_field);
  color: var(--_text);
  border: 1px solid var(--_border);
  border-radius: var(--_radius-sm);
  font: inherit;
}
.fx-est-seg, .fx-est-addons { min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.fx-est-seg-row { display: flex; gap: 6px; }
.fx-est-seg label { position: relative; flex: 1 1 0; min-width: 0; }
.fx-est-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fx-est-seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 44px;
  padding: 4px 6px;
  border: 1px solid var(--_border);
  border-radius: var(--_radius-sm);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}
.fx-est-seg input:checked + span { background: var(--_accent); border-color: var(--_accent); color: var(--_accent-text); }
.fx-est-seg input:focus-visible + span { outline: 3px solid var(--_accent); outline-offset: 2px; }
.fx-est-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.fx-est-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--_accent); }
.fx-est-check small { color: var(--_accent); font-weight: 700; }
.fx-est-check input:disabled + span { opacity: .55; }
.fx-est-result { border: 1px solid var(--_accent); }
.fx-est-result-label { margin: 0; color: var(--_accent); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fx-est-range { margin: 2px 0 var(--_space-sm); font-family: var(--_font-display); font-size: clamp(2.4rem, 11vw, 3.6rem); font-weight: var(--fx-heading-weight, 800); line-height: 1; font-variant-numeric: tabular-nums; }
.fx-est-range.is-empty { color: var(--_muted); font-family: inherit; font-size: 1rem; font-weight: 400; }
.fx-est-sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-est-detail { margin: 0 0 4px; padding: 0; list-style: none; color: var(--_muted); font-size: .88rem; }
.fx-est-detail li { padding: 2px 0; }
.fx-est-foot { margin: 12px 0 0; color: var(--_muted); font-size: .8rem; }
.fx-est-actions { display: flex; flex-wrap: wrap; gap: var(--_space-sm); margin-top: 12px; }
.fx-est .fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 40%;
  min-height: 48px;
  padding: 0 10px;
  border-radius: var(--_radius-sm);
  font-family: var(--_font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: var(--fx-heading-case, uppercase);
  text-align: center;
  cursor: pointer;
}
.fx-est .fx-btn-primary { background: var(--_accent); color: var(--_accent-text); border: 0; }
.fx-est .fx-btn-primary:hover { background: var(--_accent-hover); }
.fx-est .fx-btn-outline { background: transparent; color: var(--_text); border: 1px solid var(--_border); }
.fx-est .fx-btn[aria-disabled="true"], .fx-est .fx-btn:disabled { opacity: .45; cursor: not-allowed; }
.fx-est :focus-visible { outline: 3px solid var(--_accent); outline-offset: 2px; }

@media (min-width: 900px) {
  .fx-est-body { grid-template-columns: 1.3fr 1fr; align-items: start; gap: var(--_space-lg); }
  .fx-est-form, .fx-est-result { padding: var(--_space-lg); }
  .fx-est-result { position: sticky; top: 90px; }
}
.fx-est .fx-demo {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px dashed var(--_demo);
  border-radius: var(--_radius-sm);
  color: var(--_demo);
  font-family: var(--_font-body);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
