/* ==========================================================================
   TAPEÇARIA JUMBO — Orçamento online (wizard)
   ========================================================================== */
.q-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-bottom: 100px; }
.q-card { position: relative; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3.4vw, 40px); overflow: hidden; }
.q-steps { display: flex; gap: 6px; margin-bottom: 34px; }
.q-steps button { flex: 1; text-align: left; display: grid; gap: 10px; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; }
.q-steps button::before { content: ''; height: 4px; border-radius: 4px; background: var(--surface-3); transition: background 0.4s var(--ease); }
.q-steps button.done::before, .q-steps button.on::before { background: var(--red-grad); }
.q-steps button.on { color: #fff; }
.q-steps button span { display: flex; gap: 8px; align-items: center; }
.q-steps button .ic { width: 16px; height: 16px; }
.q-pane { display: none; animation: qIn 0.5s var(--ease); }
.q-pane.on { display: block; }
@keyframes qIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.q-pane h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 10px 0 8px; }
.q-pane > p.q-sub { color: var(--muted); margin: 0 0 28px; }
.q-grid { display: grid; gap: 18px; }
.q-grid-2 { grid-template-columns: 1fr 1fr; }
.q-grid-4 { grid-template-columns: repeat(4, 1fr); }
.opt-card {
  position: relative; display: grid; gap: 10px; justify-items: start; text-align: left; padding: 20px; border-radius: 18px;
  background: var(--bg-2); border: 1px solid var(--line-2); transition: 0.3s var(--ease); min-height: 110px;
}
.opt-card:hover { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.opt-card .ic { width: 30px; height: 30px; color: var(--red-2); }
.opt-card b { font-size: 15.5px; }
.opt-card small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.opt-card .tick { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: 0.3s var(--ease); }
.opt-card .tick .ic { width: 14px; height: 14px; color: inherit; }
.opt-card.on { border-color: var(--red); background: linear-gradient(180deg, rgba(227, 20, 28, 0.12), rgba(227, 20, 28, 0.03)); box-shadow: inset 0 0 0 1px var(--red); }
.opt-card.on .tick { background: var(--red); border-color: var(--red); color: #fff; }
.opt-card .pf { font-size: 12px; font-weight: 700; color: var(--text-2); }
.q-section-label { display: block; margin: 28px 0 12px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.q-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.q-err { color: #ff7277; font-size: 14px; font-weight: 600; margin-top: 14px; display: none; align-items: center; gap: 8px; }
.q-err.show { display: flex; }

.drop { position: relative; display: grid; place-items: center; text-align: center; gap: 10px; padding: 34px 20px; border-radius: 20px; border: 1.5px dashed var(--line-2); background: var(--bg-2); cursor: pointer; transition: 0.3s; }
.drop:hover, .drop.over { border-color: var(--red); background: rgba(227, 20, 28, 0.05); }
.drop .ic { width: 36px; height: 36px; color: var(--red-2); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.thumbs div { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, 0.7); display: grid; place-items: center; }
.thumbs button .ic { width: 14px; height: 14px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; margin-top: 18px; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--bg-2); margin-top: 1px; display: grid; place-items: center; transition: 0.2s; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* resumo lateral */
.q-summary { position: sticky; top: calc(var(--nav-h) + 20px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.q-sum-preview { position: relative; height: 170px; }
.q-sum-preview .quilt-panel { position: absolute; inset: 0; }
.q-sum-preview .lbl { position: absolute; z-index: 2; left: 18px; bottom: 14px; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 18px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.q-sum-body { padding: 22px; }
.q-sum-body h3 { margin: 0 0 16px; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.q-sum-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.q-sum-row .ic { color: var(--red-2); width: 18px; height: 18px; margin-top: 2px; }
.q-sum-row small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.q-sum-row span.v { color: #fff; font-weight: 600; }
.q-sum-row span.v.empty { color: #5f5f68; font-weight: 500; }
.q-help { margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.q-help .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(31, 168, 85, 0.15); color: #2fd472; }

/* sucesso */
.q-success { text-align: center; padding: clamp(30px, 6vw, 70px) clamp(10px, 4vw, 40px); }
.q-check { width: 110px; height: 110px; margin: 0 auto 26px; position: relative; }
.q-check svg { width: 100%; height: 100%; }
.q-check circle { stroke: var(--red); stroke-width: 4; fill: none; stroke-dasharray: 320; stroke-dashoffset: 320; animation: dash 0.9s var(--ease) forwards; }
.q-check path { stroke: #fff; stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: dash 0.5s var(--ease) 0.7s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.q-proto { display: inline-flex; gap: 10px; align-items: center; padding: 10px 18px; border-radius: 999px; background: rgba(227, 20, 28, 0.12); border: 1px solid rgba(227, 20, 28, 0.35); font-weight: 800; letter-spacing: 0.08em; margin: 8px 0 18px; }
.q-success h2 { font-size: clamp(32px, 4.6vw, 54px); margin: 0 0 12px; }
.q-success p { color: var(--text-2); max-width: 52ch; margin: 0 auto 30px; }
.q-success .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .q-wrap { grid-template-columns: 1fr; }
  .q-summary { position: relative; top: 0; order: -1; display: none; }
}
@media (max-width: 640px) {
  .q-grid-2, .q-grid-4 { grid-template-columns: 1fr 1fr; }
  .q-steps button span em { display: none; }
  .q-actions .btn { flex: 1; }
  .opt-card { padding: 16px; min-height: 0; }
}
