/* ============================================================
   QUOTE WIZARD — multi-step lead capture
   Matches the editorial Mara/CC style of the rest of the site.
   ============================================================ */

:root {
  --cream: #f3ede0;
  --cream-2: #e8e1d2;
  --ink: #0d0c0a;
  --ink-soft: #2a2620;
  --copper: #d6b985;
  --copper-deep: #9d8350;
  --hairline: rgba(13,12,10,0.10);
  --bg: #f7f2e6;
}

body.quote-page {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.quote-corner {
  position: fixed;
  top: 24px;
  left: 32px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-decoration: none;
  z-index: 100;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.quote-corner:hover {
  color: var(--copper-deep);
}

.wizard {
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 32px 160px;
  position: relative;
  min-height: 100vh;
}

/* ===== STEPS — only one visible at a time, smooth transitions ===== */
.step {
  display: none;
  animation: stepIn 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.step.active {
  display: block;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== TYPOGRAPHY ===== */
.kicker, .step-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--copper-deep);
  margin-bottom: 22px;
  display: block;
}
.step h1 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.step h2 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.step h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 14px;
  color: var(--ink-soft);
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  max-width: 560px;
  color: var(--ink-soft);
  margin: 0 0 36px;
}
.hint {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  opacity: 0.75;
}
.step-meta {
  margin-top: 28px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  opacity: 0.65;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.next-btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 16px 32px;
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1),
              background 0.25s ease,
              color 0.25s ease,
              box-shadow 0.25s ease;
  border: 1px solid transparent;
}
.next-btn.primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  box-shadow: 0 6px 20px rgba(13,12,10,0.18);
}
.next-btn.primary:hover {
  transform: translateY(-2px);
  background: var(--ink-soft);
  box-shadow: 0 12px 32px rgba(13,12,10,0.25);
}
.next-btn.primary:active {
  transform: translateY(0);
}
.next-btn.ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--hairline);
}
.next-btn.ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.skip {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--ink-soft);
  opacity: 0.5;
  padding: 16px 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.skip:hover {
  opacity: 1;
  color: var(--copper-deep);
}

/* ===== CHOICE GRIDS ===== */
.choice-grid {
  display: grid;
  gap: 16px;
  margin: 8px 0 32px;
}
.choice-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.choice-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 720px) {
  .choice-grid-3, .choice-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.choice {
  appearance: none;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Instrument Sans', sans-serif;
  color: var(--ink);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              border-color 0.25s ease,
              box-shadow 0.35s ease,
              background 0.25s ease;
  min-height: 130px;
  position: relative;
}
.choice:hover {
  transform: translateY(-3px);
  border-color: var(--copper);
  box-shadow: 0 12px 28px rgba(13,12,10,0.10);
}
.choice.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(13,12,10,0.22);
}
.choice > span:not(.swatch):not(.style-img) {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.choice > small {
  font-size: 12px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  opacity: 0.65;
  margin-top: -4px;
}
.choice .ico {
  width: 64px;
  height: 48px;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.choice.selected .ico {
  color: var(--copper);
}

/* ===== STYLE IMAGE PREVIEWS (gradient placeholders for now) ===== */
.style-img {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
}
.style-img[data-bg="modern"]       { background: linear-gradient(135deg, #ddd6c4, #bcb29a); }
.style-img[data-bg="transitional"] { background: linear-gradient(135deg, #e7dec8, #c7b890); }
.style-img[data-bg="traditional"]  { background: linear-gradient(135deg, #d4c1a0, #8a6f48); }
.style-img[data-bg="farmhouse"]    { background: linear-gradient(135deg, #f0ead8, #d3b88a); }
.style-img[data-bg="contemporary"] { background: linear-gradient(135deg, #423a30, #2a2218); }
.style-img[data-bg="not-sure"]     { background: linear-gradient(135deg, #e6dec8 0% 25%, #c4a96a 25% 50%, #6b4e2c 50% 75%, #2a2218 75%); }

/* ===== COLOR SWATCHES ===== */
.swatch {
  width: 100%;
  height: 56px;
  border-radius: 8px;
  background: var(--swatch, #ccc);
  border: 1px solid var(--hairline);
}
.color-card .swatch { height: 80px; }

.hw-brass { background: linear-gradient(135deg, #d4af6e, #b08947 50%, #d4af6e); }
.hw-black { background: #1a1a1a; }
.hw-nickel { background: linear-gradient(135deg, #d8d8d8, #a8a8a8 50%, #c8c8c8); }
.hw-copper { background: linear-gradient(135deg, #c08454, #8d5d36 50%, #b07344); }

/* ===== STEP 5: DUAL ===== */
.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 16px 0 36px;
}
@media (max-width: 720px) {
  .dual { grid-template-columns: 1fr; gap: 36px; }
}
.dual-col h3 {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--copper-deep);
  margin: 0 0 16px;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  appearance: none;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
}
.pill:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}
.pill.selected {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  margin: 8px 0 32px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field:nth-of-type(1), .field:nth-of-type(5) {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .contact-form { grid-template-columns: 1fr; }
  .field:nth-of-type(1), .field:nth-of-type(5) { grid-column: auto; }
}
.field label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--copper-deep);
}
.field label .opt {
  color: var(--ink-soft);
  opacity: 0.55;
  margin-left: 4px;
}
.field input, .field textarea {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--copper-deep);
  box-shadow: 0 0 0 3px rgba(214,185,133,0.18);
}

/* ===== NAV ROW ===== */
.nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.nav-row.centered {
  justify-content: space-between;
}

/* ===== PROGRESS BAR (fixed bottom) ===== */
.progress-bar {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: rgba(247,242,230,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(13,12,10,0.10);
  border: 1px solid var(--hairline);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.progress-bar.visible {
  opacity: 1;
}
.dots {
  display: flex;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hairline);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.dot.done {
  background: var(--copper);
}
.dot.current {
  background: var(--ink);
  width: 28px;
  border-radius: 999px;
}

/* ===== RESULT PAGE ===== */
.step.result h1 {
  font-size: clamp(40px, 5.5vw, 68px);
}
.estimate {
  margin: 36px 0 32px;
  padding: 28px 32px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 16px;
  display: inline-block;
  min-width: 320px;
}
.est-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--copper);
  margin-bottom: 6px;
}
.est-range {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.est-fine {
  font-size: 12px;
  opacity: 0.7;
  max-width: 440px;
  line-height: 1.5;
}
.next-block {
  margin-top: 36px;
  max-width: 560px;
}
.next-block h3 {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--copper-deep);
  margin-bottom: 12px;
}
.next-block ol {
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.next-block.direct a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
}
.next-block.direct a:hover {
  color: var(--copper-deep);
}
.back-home {
  margin-top: 44px;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .step, .choice, .next-btn, .pill, .dot {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 720px) {
  .wizard { padding: 80px 20px 140px; }
  .quote-corner { top: 18px; left: 20px; font-size: 10px; }
  .nav-row { flex-direction: column; align-items: stretch; }
  .nav-row .next-btn { width: 100%; text-align: center; }
  .progress-bar { bottom: 18px; padding: 10px 18px; }
}
