/* quickcashhomeclose.com — mirrors the estimate.com/offers look. */
:root {
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-soft: #eff6ff;
  --red: #dc2626;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --error: #fca5a5;
  --radius: 6px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: #fff;
  background: #0b0b0b;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  background: rgba(0, 0, 0, .8) url(/bg-image.jpg) center / cover no-repeat;
  background-blend-mode: multiply;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 0 16px;
}
.wrap { width: 100%; max-width: 1024px; margin: 64px 0 96px; }
@media (min-width: 768px) { .wrap { margin-top: 80px; } }

/* ---------- section stepper ---------- */
.stepper {
  list-style: none;
  margin: 0 auto 48px;
  padding: 0;
  display: flex;
  justify-content: space-between;
  max-width: 520px;
  position: relative;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: #fff;
}
.stepper-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.stepper-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid #fff;
  transition: background .2s, color .2s;
}
.stepper-label { font-size: 12px; color: #d1d5db; }
.stepper-item.is-current .stepper-dot,
.stepper-item.is-complete .stepper-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper-item.is-current .stepper-label { color: var(--red); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

.headline {
  margin: 0 0 20px;
  text-align: center;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: balance;
}

/* ---------- step ---------- */
.fx-step { max-width: 640px; margin: 0 auto; animation: fx-in .25s ease-out; }
.fx-step--property { max-width: 760px; }
@keyframes fx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fx-step { animation: none; } }

.fx-title {
  margin: 0 0 20px;
  text-align: center;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  outline: none;
}
.fx-step--property .fx-title { font-size: 18px; }
.fx-desc { margin: -12px 0 20px; text-align: center; color: #d1d5db; font-size: 14px; }
.fx-fields, .fx-actions { max-width: 380px; margin-left: auto; margin-right: auto; }
.fx-step--property .fx-fields { max-width: none; }
.fx-step--phone .fx-fields, .fx-step--phone .fx-actions { max-width: 460px; }

/* property type cards */
.fx-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .fx-cards { grid-template-columns: repeat(5, 1fr); } }
.fx-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 104px;
  padding: 12px 8px;
  background: #fff;
  color: var(--ink);
  border: 2px solid #fff;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.fx-card:hover { border-color: var(--blue); }
.fx-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.fx-card.is-selected { border-color: var(--blue); background: var(--blue-soft); }
.fx-card-icon { color: #374151; display: grid; }
.fx-card-icon svg { width: 40px; height: 40px; }
.fx-card-label { font-size: 12px; font-weight: 600; line-height: 1.35; text-align: center; }
.fx-cards + .fx-error { text-align: center; }
@media (max-width: 639px) { .fx-card:last-child { grid-column: 1 / -1; } }

/* radio options */
.fx-options { display: grid; gap: 10px; }
.fx-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  border: 2px solid #fff;
  border-radius: var(--radius);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.fx-option:hover { border-color: var(--blue); }
.fx-option:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.fx-option.is-selected { border-color: var(--blue); background: var(--blue-soft); }
.fx-option-dot { display: none; }

/* inputs */
.fx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-row--addr { grid-template-columns: 1.6fr .9fr 1fr; }
@media (max-width: 480px) { .fx-row--addr { grid-template-columns: 1fr 1fr; } .fx-row--addr .fx-field:first-child { grid-column: 1 / -1; } }
.fx-field { margin-bottom: 12px; }
.fx-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: #e5e7eb; }
.fx-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  border: 2px solid #fff;
  border-radius: var(--radius);
  font-size: 16px;
  outline: none;
}
.fx-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .35); }
.fx-input.is-invalid { border-color: var(--red); }
.fx-select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7280' stroke-width='1.8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") right 12px center no-repeat; padding-right: 32px; }
.fx-step--value .fx-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* address autocomplete */
.fx-ac-wrap { position: relative; }
.fx-ac-list {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.fx-ac-item { padding: 10px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.fx-ac-item:hover, .fx-ac-item.is-active { background: var(--blue-soft); }
.fx-ac-main { font-weight: 600; }
.fx-ac-sec { color: var(--muted); }
.fx-link { margin-top: 8px; padding: 0; background: none; border: 0; color: #bfdbfe; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* consent */
.fx-consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #e5e7eb; cursor: pointer; }
.fx-consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); }
.fx-consent a { color: #bfdbfe; }

/* errors */
.fx-error { margin: 6px 0 0; font-size: 13px; color: var(--error); }
.fx-error:empty { display: none; }
.fx-error--step { text-align: center; }

/* actions */
.fx-actions { display: flex; gap: 10px; margin-top: 20px; }
.fx-actions--empty { display: none; }
.fx-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.fx-btn--back { background: #fff; color: var(--ink); }
.fx-btn--back:hover { background: #f3f4f6; }
.fx-btn--next { flex: 1; background: var(--blue); color: #fff; position: relative; }
.fx-btn--next:hover { background: var(--blue-dark); }
.fx-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.fx-btn.is-loading span { visibility: hidden; }
.fx-btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* success */
.fx-success { max-width: 560px; margin: 0 auto; text-align: center; animation: fx-in .3s ease-out; }
.success-title { font-size: clamp(32px, 6vw, 48px); font-weight: 700; margin-bottom: 12px; }
.success-text { color: #e5e7eb; line-height: 1.6; margin: 0 0 24px; }
.success-card { background: #fff; color: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.success-img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.success-addr { margin: 0; padding: 14px 16px; font-weight: 600; }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { top: 105%; transform: rotate(720deg) translateX(40px); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* misc */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.noscript { text-align: center; }
.footer { background: #0b0b0b; color: #9ca3af; text-align: center; font-size: 12px; padding: 20px 16px; }
.footer a { color: #d1d5db; }
.fx-disclosure { max-height: 96px; overflow-y: auto; margin: 14px 0 0; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; font-size: 12px; line-height: 1.5; color: #e5e7eb; }
.fx-disclosure a { color: #bfdbfe; }
