/* ============================================================
   Galant — Creează oferta (wizard) v2
   Aligned to site tokens: paper bg, --r-sm radii, ink hierarchy.
   ============================================================ */

:root {
  --tier-buget:    #ece4d8;
  --tier-standard: #d9c8a8;
  --tier-premium:  #b89a73;
  --tier-elite:    var(--bg-ink);
  --tier-custom:   linear-gradient(135deg, var(--bg-cream-light) 0 50%, var(--bg-ink) 50% 100%);

  --error-ink: #b45353;
}

.page-oferta { background: var(--bg-paper); }

/* ---------- shell ---------- */
.wizard {
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px var(--pad-x) 80px;
}

.wiz-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: start;
}
.wiz-body:has(.wiz-aside.is-hidden) {
  grid-template-columns: 1fr;
  gap: 0;
}
.wiz-main { min-width: 0; }

/* ============================================================
   STEP BAR (wiz-top) — chips connected by progressive line
   ============================================================ */
.wiz-top {
  --progress: 0%;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid rgba(48, 40, 51, 0.08);
  border-radius: var(--r-sm);
}

.wiz-back, .wiz-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}
.wiz-back:hover, .wiz-reset:hover { background: rgba(48, 40, 51, 0.06); color: var(--ink); }
.wiz-back.is-hidden { opacity: 0; pointer-events: none; }
.wiz-back svg, .wiz-reset svg { flex-shrink: 0; }

.wiz-steps {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* progress track behind chips */
.wiz-steps::before,
.wiz-steps::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1.5px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.wiz-steps::before {
  background: rgba(48, 40, 51, 0.14);
}
.wiz-steps::after {
  background: var(--bg-ink);
  width: calc((100% - 16%) * var(--progress) / 100);
  left: 8%;
  right: auto;
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.step-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: #fff;
  border: 1px solid rgba(48, 40, 51, 0.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(48, 40, 51, 0.5);
  cursor: default;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  margin: 0 8px;
}
.step-chip.is-hidden { display: none; }
.step-chip + .step-chip { margin-left: 8px; }

.step-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(48, 40, 51, 0.06);
  color: rgba(48, 40, 51, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.step-chip.is-current {
  background: #fff;
  border-color: var(--bg-ink);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(50, 44, 54, 0.06);
}
.step-chip.is-current .step-num {
  background: var(--bg-ink);
  color: #fff;
}

.step-chip.is-done {
  background: var(--bg-ink);
  border-color: var(--bg-ink);
  color: #fff;
}
.step-chip.is-done .step-num {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.step-chip.is-done.is-clickable {
  cursor: pointer;
}
.step-chip.is-done.is-clickable:hover {
  transform: translateY(-1px);
  background: var(--ink);
  border-color: var(--ink);
}

.wiz-step-caption {
  display: none;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ============================================================
   SCREENS — heads & generic
   ============================================================ */
.wiz-screen { animation: fadeUp 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* sticky full-width band wrapping the active step's header */
.wiz-heads {
  position: sticky;
  top: 80px;
  z-index: 5;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--bg-paper);
  border-bottom: 1px solid rgba(48, 40, 51, 0.06);
}
.wiz-heads.is-hidden { display: none; }
.wiz-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 28px var(--pad-x) 26px;
}
.wiz-eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.wiz-h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}
.wiz-sub {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0 auto;
}

/* ============================================================
   STEP 1 — categorie
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(48, 40, 51, 0.08);
  border-radius: var(--r-sm);
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  min-height: 200px;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--bg-ink);
  background: var(--bg-ink);
  color: var(--bg-cream);
  box-shadow: 0 12px 32px rgba(48, 40, 51, 0.18);
}
.cat-card:hover .cat-icon {
  border-color: rgba(250, 237, 228, 0.3);
  color: var(--bg-cream);
}
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

.cat-card--commercial {
  background: var(--bg-cream-light);
}

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(48, 40, 51, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.cat-icon svg { width: 24px; height: 24px; }
.cat-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: auto;
}
.cat-desc {
  font-size: 13px;
  color: currentColor;
  opacity: 0.65;
  line-height: 1.5;
}
.cat-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 18px;
}

/* ============================================================
   STEP 2 — dimensiuni (stacked blocks)
   ============================================================ */
.dim-stack {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dim-block {
  padding: 28px 32px;
  background: #fff;
  border: 1px solid rgba(48, 40, 51, 0.08);
  border-radius: var(--r-sm);
  transition: border-color 0.25s ease;
}
.dim-block.is-invalid {
  border-color: var(--error-ink);
  animation: nudge 0.4s ease;
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.block-head { margin-bottom: 20px; }
.block-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.block-optional {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 3px 8px;
  background: var(--bg-cream-light);
  border-radius: 999px;
  font-style: normal;
}
.block-hint {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* shape grid */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.shape-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px 14px;
  background: var(--bg-cream-light);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  color: var(--ink);
}
.shape-card:hover { background: #fff; border-color: rgba(48, 40, 51, 0.14); }
.shape-card.is-selected {
  background: var(--bg-ink);
  border-color: var(--bg-ink);
  color: #fff;
}
.shape-icon {
  width: 64px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shape-icon svg { width: 100%; height: 100%; }
.shape-name { font-size: 15px; font-weight: 500; letter-spacing: -0.005em; }
.shape-meta { font-size: 12px; opacity: 0.7; }

.island-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-cream-light);
  border-radius: var(--r-sm);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}
.island-toggle:hover { background: rgba(242, 239, 235, 0.85); }
.island-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.island-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px solid rgba(48, 40, 51, 0.25);
  border-radius: 6px;
  background: #fff;
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.island-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.18s ease;
}
.island-toggle input:checked + .island-check {
  background: var(--bg-ink);
  border-color: var(--bg-ink);
}
.island-toggle input:checked + .island-check::after { transform: rotate(45deg) scale(1); }
.island-text { display: flex; flex-direction: column; gap: 2px; }
.island-text strong { font-size: 14px; font-weight: 500; color: var(--ink); }
.island-text em { font-size: 12px; font-style: normal; color: var(--ink-soft); }

/* walls grid + dim fields */
.walls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.walls-empty {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
  padding: 12px 0;
}
.dim-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dim-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.dim-label em { color: var(--ink-soft); font-style: normal; font-weight: 400; }

.dim-input-row {
  position: relative;
  display: flex;
  align-items: center;
}
.dim-input-row input {
  width: 100%;
  flex: 1;
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 12px 44px 12px 16px;
  background: rgba(242, 239, 235, 0.5);
  border: 1px solid rgba(21, 49, 49, 0.1);
  border-radius: var(--r-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dim-input-row input:focus {
  outline: none;
  border-color: var(--ink-2);
  background: #fff;
}
.dim-unit {
  position: absolute;
  right: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  pointer-events: none;
}

.dim-error {
  display: none;
  font-size: 12px;
  color: var(--error-ink);
}
.dim-field.is-invalid .dim-error { display: block; }
.dim-field.is-invalid input { border-color: var(--error-ink); background: rgba(180, 83, 83, 0.05); }

/* upload */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.upload-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--bg-cream-light);
  border: 1.5px dashed rgba(48, 40, 51, 0.2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.upload-drop:hover {
  border-color: var(--ink);
  background: #fff;
}
.upload-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(48, 40, 51, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.upload-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.upload-text strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.upload-text em {
  font-size: 12px;
  color: var(--ink-soft);
  font-style: normal;
}

.upload-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-cream-light);
  border-radius: var(--r-sm);
}
.upload-thumb {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  background-color: rgba(48, 40, 51, 0.08);
  background-size: cover;
  background-position: center;
}
.upload-thumb--doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.upload-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.upload-meta strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-meta em {
  font-size: 11px;
  color: var(--ink-soft);
  font-style: normal;
}
.upload-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(48, 40, 51, 0.14);
  background: transparent;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.upload-remove:hover {
  background: var(--error-ink);
  border-color: var(--error-ink);
  color: #fff;
}

/* ============================================================
   STEP 3 — materiale
   ============================================================ */
.tier-band {
  max-width: 880px;
  margin: 0 auto 28px;
  padding: 22px 24px 20px;
  background: #fff;
  border: 1px solid rgba(48, 40, 51, 0.08);
  border-radius: var(--r-sm);
}
.tier-band-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.tier-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tier-row .tier-chip--custom {
  display: none;
}
.tier-row .tier-chip--custom.is-selected {
  display: flex;
}
.tier-row:has(.tier-chip--custom.is-selected) {
  grid-template-columns: repeat(5, 1fr);
}

.tier-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-cream-light);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.tier-chip:hover { background: #fff; border-color: rgba(48, 40, 51, 0.14); }
.tier-chip.is-selected {
  background: #fff;
  border-color: var(--bg-ink);
  box-shadow: 0 0 0 3px rgba(50, 44, 54, 0.06);
}
.tier-chip-swatch {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid rgba(48, 40, 51, 0.08);
}
.tier-chip-swatch--custom { background: var(--tier-custom); }
.tier-chip--custom { cursor: default; pointer-events: none; }
.tier-chip-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tier-chip-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.tier-chip-desc {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tier-band-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 14px 0 0;
  line-height: 1.5;
}
.tier-band-note.is-emphasized {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(48, 40, 51, 0.06);
  border-left: 3px solid var(--bg-ink);
  padding: 10px 14px;
  border-radius: 4px;
  margin-top: 18px;
}

.mat-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.mat-block {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid rgba(48, 40, 51, 0.08);
  border-radius: var(--r-sm);
}
.mat-block-head { margin-bottom: 14px; }
.mat-block-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.mat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mat-opt {
  display: flex;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--bg-cream-light);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.mat-opt:hover { background: #fff; border-color: rgba(48, 40, 51, 0.14); }
.mat-opt.is-selected {
  background: var(--bg-ink);
  border-color: var(--bg-ink);
  color: var(--bg-cream);
}
.mat-opt-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mat-opt-label {
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  letter-spacing: -0.005em;
}
.mat-opt-desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.mat-opt.is-selected .mat-opt-desc { color: inherit; opacity: 0.7; }

/* ============================================================
   ACTIONS (next/back buttons) + STEP 4 + thanks
   ============================================================ */
.wiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 880px;
  margin: 40px auto 0;
}
.wiz-actions--center { justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-ink);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--ink); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: transparent;
  color: var(--ink);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(48, 40, 51, 0.18);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.6); }

/* contact form */
.contact-form-wiz {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px;
  background: #fff;
  border: 1px solid rgba(48, 40, 51, 0.08);
  border-radius: var(--r-sm);
}
.contact-form-wiz .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form-wiz label {
  font-family: var(--font-form);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.contact-form-wiz input {
  font-family: inherit;
  font-size: 16px;
  padding: 15px 18px;
  background: rgba(242, 239, 235, 0.5);
  border: 1px solid rgba(21, 49, 49, 0.1);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form-wiz input::placeholder { color: var(--ink-soft); }
.contact-form-wiz input:focus { outline: none; border-color: var(--ink-2); background: #fff; }
.contact-form-wiz .field-error {
  font-family: var(--font-form);
  display: none;
  font-size: 12px;
  color: var(--error-ink);
}
.contact-form-wiz .field.is-invalid .field-error { display: block; }
.contact-form-wiz .field.is-invalid input {
  border-color: var(--error-ink);
  background: rgba(180, 83, 83, 0.05);
}
.contact-form-wiz .wiz-actions { margin-top: 8px; }

/* thanks */
.wiz-thanks { padding-top: 40px; }
.thanks-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: #fff;
  border: 1px solid rgba(48, 40, 51, 0.08);
  border-radius: var(--r-sm);
}
.thanks-check {
  display: inline-flex;
  color: var(--bg-ink);
  margin-bottom: 24px;
}
.thanks-check svg circle { stroke-dasharray: 153; stroke-dashoffset: 153; animation: drawCircle 0.7s ease-out forwards; }
.thanks-check svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawCheck 0.5s 0.5s ease-out forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.thanks-h {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
}
.thanks-sub {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 32px;
}

/* ============================================================
   ASIDE (summary)
   ============================================================ */
.wiz-aside {
  position: sticky;
  top: calc(80px + var(--wiz-head-h, 180px) + 20px);
  align-self: start;
}
.wiz-aside.is-hidden { display: none; }
.aside-inner {
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid rgba(48, 40, 51, 0.08);
  border-radius: var(--r-sm);
}
.aside-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.aside-summary {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aside-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(48, 40, 51, 0.08);
}
.aside-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.aside-row dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin: 0;
}
.aside-row dd {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0;
  word-break: break-word;
}
.aside-row.is-empty dd { color: var(--ink-soft); font-weight: 400; }
.aside-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(48, 40, 51, 0.08);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.aside-pieces.is-empty { display: none; }
.aside-pieces {
  margin: 0 0 22px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(48, 40, 51, 0.08);
}
.aside-pieces-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aside-piece {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-cream-light, #f2efeb);
  border-radius: 8px;
}
.aside-piece-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.aside-piece-body strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.aside-piece-body em {
  font-size: 11px;
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.3;
  word-break: break-word;
}
.aside-piece-remove {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.aside-piece-remove:hover { background: rgba(48, 40, 51, 0.08); color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .wiz-heads {
    position: static;
    width: auto;
    margin-left: 0;
    background: transparent;
    border-bottom: none;
  }
  .wiz-head { padding: 0 0 32px; }
  .wiz-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .wiz-aside {
    position: static;
    order: -1;
  }
  .aside-inner {
    display: grid;
    grid-template-columns: auto repeat(3, 1fr);
    gap: 16px 24px;
    align-items: center;
    padding: 18px 22px;
  }
  .aside-eyebrow {
    margin: 0;
    white-space: nowrap;
  }
  .aside-summary { grid-column: span 3; flex-direction: row; gap: 0; }
  .aside-row {
    flex: 1 1 0;
    padding: 0 20px;
    border: none;
    border-right: 1px solid rgba(48, 40, 51, 0.08);
    min-width: 0;
  }
  .aside-row:first-of-type { padding-left: 0; }
  .aside-row:last-of-type { border-right: none; padding-right: 0; }
  .aside-row dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .aside-note { display: none; }

  .aside-pieces {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0 0 14px;
  }
  .aside-pieces-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .aside-piece { flex: 1 1 auto; min-width: 180px; }

  .mat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-row { grid-template-columns: repeat(2, 1fr); }
  .tier-row:has(.tier-chip--custom.is-selected) { grid-template-columns: repeat(2, 1fr); }
  .upload-grid { grid-template-columns: 1fr; }
  .shape-grid { grid-template-columns: repeat(3, 1fr); }
  .aside-inner { grid-template-columns: 1fr; }
  .aside-summary { grid-column: 1; flex-wrap: wrap; gap: 16px; }
  .aside-row { border-right: none; padding: 0; }
  .aside-eyebrow { margin-bottom: 4px; }

  /* step bar collapses */
  .step-chip .step-label { display: none; }
  .step-chip { padding: 6px 6px; }
  .step-chip + .step-chip { margin-left: 4px; }
  .wiz-step-caption { display: block; }
  .wiz-top {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 12px 14px;
  }
  .wiz-steps { grid-column: 1 / -1; grid-row: 2; }
  .wiz-step-caption { display: block; grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
}

@media (max-width: 640px) {
  .wizard { padding: 110px var(--pad-x) 60px; }
  .wiz-back, .wiz-reset { padding: 6px 10px; }
  .wiz-back span:not(.sr), .wiz-reset span:not(.sr) { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 140px; padding: 22px; }
  .wiz-h1 { font-size: 28px; }
  .wiz-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .wiz-actions .btn-primary, .wiz-actions .btn-ghost { justify-content: center; }
  .dim-block { padding: 22px 20px; }
  .contact-form-wiz { padding: 28px; }
  .thanks-card { padding: 40px 24px; }
  .thanks-h { font-size: 26px; }
  .tier-row { grid-template-columns: 1fr; }
  .tier-row:has(.tier-chip--custom.is-selected) { grid-template-columns: 1fr; }
  .shape-grid { grid-template-columns: repeat(3, 1fr); }
  .shape-name { font-size: 13px; }
}

/* ============== MOBILE AUDIT FIXES — wizard ============== */
@media (max-width: 720px) {
  /* M1 — wiz-back and wiz-reset need ≥ 44px tap targets */
  .wiz-back, .wiz-reset {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }
  /* M2 — wizard wall-count / pereti tags ≥ 13px */
  .wall-tag, .pereti-tag, .wall-pill,
  .dim-block .pill, .dim-block .tag {
    font-size: 13px !important;
  }
  /* Wizard step caption visible at all times for orientation */
  .wiz-step-caption { font-size: 13px; font-weight: 500; }
}
