/* =========================================================
   prints16tb — quote tool (light theme)
   Class names + IDs preserved so app.js works untouched.
   ========================================================= */

.tool-head {
  padding: clamp(36px, 6vw, 64px) 0 8px;
}

.tool-head .eyebrow {
  margin-bottom: 16px;
}

.tool-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.tool-head p {
  margin-top: 14px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
}

/* ---- Progress steps ---- */
.steps {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 28px 0 8px;
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.step .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-family: var(--mono);
  transition: all 0.2s ease;
}
.step.is-active {
  color: var(--text);
}
.step.is-active .dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--sh-accent);
}
.step.is-done .dot {
  background: var(--accent-soft);
  border-color: var(--accent-soft-2);
  color: var(--accent-ink);
}
.bar {
  flex: 1;
  height: 2px;
  max-width: 56px;
  background: var(--line-strong);
  border-radius: 2px;
}

/* ---- Layout ---- */
.wrap {
  max-width: 920px;
  margin: 18px auto 0;
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
}
.card h2 {
  margin: 0 0 22px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.card h2::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: var(--accent);
  flex: none;
}
.hidden {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ---- Dropzone ---- */
.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  min-height: 200px;
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  padding: 22px;
}
.dropzone:hover,
.dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dz-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent-ink);
  font-size: 22px;
  box-shadow: var(--sh-sm);
}
.dz-title {
  margin: 14px 0 2px;
  font-weight: 700;
  font-size: 1.02rem;
}
.dz-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.dz-sub .link {
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dz-file {
  margin: 12px 0 0;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--accent-ink);
  font-weight: 600;
  word-break: break-all;
}

/* ---- Fields ---- */
.prefs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 700;
}
.field > span:first-child {
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea {
  resize: vertical;
}
.field-hint {
  color: var(--muted);
  font-weight: 500;
  font-size: 11.5px;
}

/* ---- Color swatches ---- */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.swatch:hover {
  border-color: var(--accent);
}
.swatch .chip {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(27, 25, 22, 0.18);
  flex: none;
}
.swatch.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.swatch.selected::after {
  content: "✓";
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
}

/* ---- Viewer ---- */
.preview-wrap {
  margin-top: 20px;
}
.viewer {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: radial-gradient(
      600px 320px at 50% 4%,
      rgba(255, 138, 0, 0.07),
      transparent 70%
    ),
    linear-gradient(165deg, #ffffff, #f1ede6);
  overflow: hidden;
}
.viewer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(27, 25, 22, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 25, 22, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 50% 60%, #000 30%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 60%, #000 30%, transparent 74%);
  pointer-events: none;
}
.viewer canvas {
  display: block;
  position: relative;
}
.viewer-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--mono);
  pointer-events: none;
}
.model-stats {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 13.5px;
  font-family: var(--mono);
}
.model-stats strong {
  color: var(--text);
  font-weight: 700;
}

/* ---- Quote ---- */
.quote {
  font-variant-numeric: tabular-nums;
}
.qrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.qrow .qsub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}
.qrow .qval {
  font-weight: 700;
  font-family: var(--mono);
}
.qrow.estimate-spec {
  color: var(--text-2);
  font-size: 15px;
}
.qrow.estimate-spec .qlabel {
  font-weight: 600;
}
.qrow.estimate-spec .qval {
  color: var(--text);
}
.qrow.total {
  border-bottom: none;
  padding-top: 18px;
  align-items: center;
}
.qrow.total .qlabel {
  font-size: 1.05rem;
  font-weight: 800;
}
.qrow.total .qval {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-ink);
}
.disclaimer {
  margin: 18px 0 22px;
  font-size: 13px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  padding: 12px 15px;
  border-radius: var(--r-sm);
  font-weight: 600;
}

/* ---- Tool buttons ---- */
.btn.whatsapp {
  background: var(--wa);
  color: #06240f;
  font-size: 16px;
}
.btn.whatsapp:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.3);
}
.wa-icon {
  font-size: 18px;
}

.order-id-line {
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.order-id-line strong {
  color: var(--accent-ink);
  letter-spacing: 0.04em;
  font-family: var(--mono);
}

#orderForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-error {
  color: #c0392b;
  font-size: 13.5px;
  font-weight: 600;
  min-height: 1em;
  margin: 0;
}
.send-status {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  min-height: 1em;
  margin: 12px 0 0;
}
.send-status.ok {
  color: var(--wa-deep);
  font-weight: 700;
}
.send-status.err {
  color: #c0392b;
  font-weight: 600;
}

/* ---- Tool footer slim ---- */
.tool-foot {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  text-align: center;
  padding: 26px 16px;
  color: var(--muted);
  font-size: 13.5px;
}
.tool-foot a {
  font-weight: 600;
}
.tool-foot .sep {
  color: var(--faint);
  margin: 0 8px;
}

@media (max-width: 620px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .viewer {
    height: 280px;
  }
  .card {
    padding: 22px 18px;
  }
  .step .label {
    display: none;
  }
}
