/* Estate Crafters — Quote Builder (guided wizard, BOXT-style)
   Public, customer-facing. Light EC design system. */

.qw { max-width: 760px; margin: 0 auto; }

/* ---------- Progress ---------- */
.qw-progress { display: flex; align-items: center; gap: 6px; margin: 0 auto 32px; max-width: 620px; }
.qw-step { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.qw-step:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--bone); margin-left: 6px; }
.qw-step.is-done:not(:last-child)::after { background: var(--brass-400); }
.qw-step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: var(--fw-medium);
  background: var(--white); border: 1.5px solid var(--border-strong); color: var(--ink-400);
}
.qw-step.is-active .qw-step-num { background: var(--forest-800); border-color: var(--forest-800); color: var(--paper); }
.qw-step.is-done .qw-step-num { background: var(--brass-600); border-color: var(--brass-600); color: var(--forest-900); }
.qw-step-label { font-size: 12px; color: var(--ink-500); white-space: nowrap; }
.qw-step.is-active .qw-step-label { color: var(--ink-900); font-weight: var(--fw-medium); }
@media (max-width: 600px) { .qw-step-label { display: none; } .qw-step:not(:last-child)::after { margin-left: 0; } }

/* ---------- Stage ---------- */
.qw-title { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; line-height: 1.12; }
.qw-sub { font-size: 16px; color: var(--ink-600); line-height: 1.6; margin: 0 0 24px; }
.qw-back { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; color: var(--ink-500); font-size: 14px; cursor: pointer; padding: 4px 0; margin-bottom: 12px; }
.qw-back:hover { color: var(--forest-700); }
.qw-link { background: transparent; border: none; color: var(--forest-700); font-size: 14px; cursor: pointer; text-decoration: underline; padding: 0; }
.qw-note { font-size: 12px; color: var(--ink-400); line-height: 1.5; margin: 14px 0 0; }

/* ---------- Category cards (illustrated) ---------- */
.qw-cards-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.qw-card-cat {
  display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 0; overflow: hidden; cursor: pointer;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.qw-card-cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--forest-200); }
.qw-card-illo {
  height: 84px; display: flex; align-items: center; justify-content: center; position: relative;
  color: var(--brass-400); background: linear-gradient(135deg, #1F5A44 0%, #0F3D2E 60%, #08271E 100%);
}
.qw-card-illo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 72% 24%, rgba(201,162,76,0.18), transparent 60%); }
.qw-card-illo svg { position: relative; }
.qw-card-cat:hover .qw-card-illo svg { transform: scale(1.06); transition: transform var(--dur-base) var(--ease); }
.qw-card-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 5px; }
.qw-card-label { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 16px; color: var(--ink-900); line-height: 1.2; }
.qw-card-blurb { font-size: 12.5px; color: var(--ink-500); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Plain-English help ---------- */
.qw-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 22px; background: var(--forest-50); border: 1px solid var(--forest-100); border-radius: var(--radius-md); }
.qw-banner-illo { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-sm); background: linear-gradient(135deg, #1F5A44, #0F3D2E); color: var(--brass-400); display: flex; align-items: center; justify-content: center; }
.qw-banner p { margin: 0; font-size: 14px; color: var(--ink-700); line-height: 1.5; }
.qw-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-500); line-height: 1.5; }
.qw-region-inline { font-family: var(--font-body); font-size: 12px; text-transform: none; letter-spacing: normal; padding: 2px 6px; border: 1px solid var(--brass-300); border-radius: var(--radius-xs); background: var(--white); color: var(--forest-800); cursor: pointer; }

/* ---------- Job cards ---------- */
.qw-cards-job { display: flex; flex-direction: column; gap: 10px; }
.qw-card-job {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; cursor: pointer;
  padding: 16px 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.qw-card-job:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--forest-200); }
.qw-card-job-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qw-card-job-text .qw-card-label { font-size: 17px; }
.qw-card-desc { font-size: 13px; color: var(--ink-500); line-height: 1.45; }
.qw-card-from { flex-shrink: 0; font-size: 11px; color: var(--ink-500); text-align: right; line-height: 1.3; }
.qw-card-from strong { font-family: var(--font-display); font-size: 18px; color: var(--forest-800); font-variant-numeric: tabular-nums; }

/* ---------- Configure ---------- */
.qw-config { display: flex; flex-direction: column; gap: 22px; margin-bottom: 24px; }
.qw-q-label { font-family: var(--font-body); font-weight: var(--fw-medium); font-size: 15px; color: var(--ink-900); margin-bottom: 10px; }
.qw-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.qw-opt {
  font-family: var(--font-body); font-size: 14px; font-weight: var(--fw-medium); color: var(--ink-700);
  padding: 11px 16px; background: var(--white); border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--dur-fast) var(--ease);
}
.qw-opt:hover { border-color: var(--forest-400); }
.qw-opt.is-sel { background: var(--forest-800); color: var(--paper); border-color: var(--forest-800); }
.qw-opts-bool .qw-opt { min-width: 76px; text-align: center; }

.qw-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.qw-stepper button { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--paper-soft); border: none; color: var(--forest-800); cursor: pointer; transition: background var(--dur-fast) var(--ease); }
.qw-stepper button:hover { background: var(--forest-50); }
.qw-stepper-val { min-width: 96px; text-align: center; font-family: var(--font-mono); font-size: 17px; font-weight: var(--fw-medium); color: var(--ink-900); font-variant-numeric: tabular-nums; }
.qw-stepper-val em { font-style: normal; font-size: 13px; color: var(--ink-500); margin-left: 3px; }

/* ---------- Estimate bar ---------- */
.qw-estbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; background: var(--brass-50); border: 1px solid var(--brass-300); border-radius: var(--radius-md);
}
.qw-estbar-label { display: block; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-600); margin-bottom: 4px; }
.qw-estbar-label em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink-400); }
.qw-estbar-val { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 26px; color: var(--brass-800); font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- Buttons ---------- */
.qw-next {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: var(--fw-medium); font-size: 15px; padding: 13px 22px;
  background: var(--forest-800); color: var(--paper); border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--dur-fast) var(--ease); white-space: nowrap;
}
.qw-next:hover { background: var(--forest-700); }
.qw-next:disabled { opacity: 0.6; cursor: default; }
.qw-next-full { width: 100%; margin-top: 8px; padding: 15px; font-size: 16px; }
.qw-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: var(--fw-medium); font-size: 15px; padding: 13px 22px;
  background: transparent; color: var(--ink-900); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.qw-secondary:hover { background: var(--bone); }

/* ---------- Region selector ---------- */
.qw-region { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; color: var(--ink-600); }
.qw-region select { font-family: var(--font-body); font-size: 14px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--ink-900); }

/* ---------- Review ---------- */
.qw-empty { padding: 24px 0; font-size: 16px; color: var(--ink-500); }
.qw-review { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.qw-review-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.qw-review-item:last-child { border-bottom: none; }
.qw-review-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.qw-review-name { font-size: 15px; font-weight: var(--fw-medium); color: var(--ink-900); }
.qw-review-summary { font-size: 12px; color: var(--ink-500); line-height: 1.4; }
.qw-review-range { font-family: var(--font-mono); font-size: 14px; color: var(--forest-700); white-space: nowrap; flex-shrink: 0; }
.qw-review-remove { flex-shrink: 0; background: transparent; border: none; color: var(--ink-400); cursor: pointer; padding: 4px; border-radius: var(--radius-xs); }
.qw-review-remove:hover { color: var(--danger); background: rgba(185,28,28,0.06); }
.qw-grandtotal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px; margin-top: 12px; background: var(--brass-50); border: 1px solid var(--brass-300); border-radius: var(--radius-md); }
.qw-grandtotal span { font-size: 14px; color: var(--ink-700); }
.qw-grandtotal strong { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 24px; color: var(--brass-800); font-variant-numeric: tabular-nums; }
.qw-review-actions { display: flex; gap: 12px; margin-top: 18px; }
.qw-review-actions .qw-secondary, .qw-review-actions .qw-next { flex: 1; }

/* ---------- Form ---------- */
.qw-form { display: flex; flex-direction: column; gap: 12px; }
.qw-form-sec { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--forest-700); font-weight: var(--fw-semibold); margin-top: 8px; }
.qw-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qw-l { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink-600); }
.qw-l-wide { grid-column: 1 / -1; }
.qw-l input, .qw-l select, .qw-l textarea { font-family: var(--font-body); font-size: 14px; color: var(--ink-900); background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; }
.qw-l input:focus, .qw-l select:focus, .qw-l textarea:focus { outline: none; border-color: var(--forest-800); }
.qw-l textarea { resize: vertical; }
.qw-form-total { padding: 14px 16px; background: var(--forest-50); border-radius: var(--radius-sm); font-size: 14px; color: var(--ink-700); margin-top: 6px; }
.qw-form-total strong { color: var(--brass-800); font-family: var(--font-display); font-size: 17px; }
.qw-form-error { background: rgba(185,28,28,0.06); color: var(--danger); border: 1px solid rgba(185,28,28,0.18); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.qw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.qw-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--ink-600); line-height: 1.5; margin-top: 4px; }
.qw-consent input { margin-top: 2px; accent-color: var(--forest-800); flex-shrink: 0; }
.qw-consent a { color: var(--forest-700); text-decoration: underline; }

/* ---------- Trust strip + FAQ (static page) ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); }
.trust-strip li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-700); font-weight: var(--fw-medium); }
.trust-strip svg { color: var(--brass-700); flex-shrink: 0; }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 17px; color: var(--ink-900); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 22px; color: var(--brass-700); margin-left: 16px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--ink-600); }

/* ---------- Success ---------- */
.qw-success { max-width: 560px; margin: 30px auto; text-align: center; padding: 30px 20px; }
.qw-success-mark { width: 64px; height: 64px; border-radius: var(--radius-full); background: var(--forest-50); color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.qw-success h2 { font-size: 32px; margin: 0 0 12px; }
.qw-success p { font-size: 16px; color: var(--ink-600); line-height: 1.6; margin: 0 0 14px; }
.qw-success-range strong { color: var(--brass-800); }
.qw-success .btn { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .qw-cards-cat { grid-template-columns: repeat(2, 1fr); }
  .qw-card-job { flex-direction: column; align-items: flex-start; gap: 8px; }
  .qw-card-from { text-align: left; }
  .qw-estbar { flex-direction: column; align-items: stretch; }
  .qw-estbar .qw-next { width: 100%; }
  .qw-review-actions { flex-direction: column; }
  .qw-form-grid { grid-template-columns: 1fr; }
}
