/* ════════════════════════════════════════════
   QUOTE TOOL — interactive sign designer
   ════════════════════════════════════════════ */

.quote-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}
@media (max-width: 1024px) {
  .quote-tool { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .quote-tool { gap: 16px; margin-top: 8px; }
  .quote-tool__workspace { padding: 12px; }
  .quote-tool__controls { padding: 16px; }
}

/* ── Workspace ──────────────────── */
.quote-tool__workspace {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.workspace-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.workspace-meta__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.workspace-meta__dim {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.workspace-stage {
  background: #1f1f1f;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
#qtCanvas {
  width: 100%;
  height: 100%;
  display: block;
}
.workspace-rulers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}
.qt-dim-current strong { color: var(--white); font-family: var(--font-mono); }

/* ── Controls panel ─────────────── */
.quote-tool__controls {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* Tabs */
.qt-tabs {
  display: flex;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}
.qt-tab {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.qt-tab:hover { color: var(--text); }
.qt-tab--active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Panels */
.qt-panel { display: none; }
.qt-panel--active { display: block; }

/* Form rows + labels */
.quote-tool .form-group { margin-bottom: 18px; }
.quote-tool .form-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.qt-size-readout {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-mono);
}
.quote-tool .form-input,
.quote-tool .form-select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.quote-tool .form-input:focus,
.quote-tool .form-select:focus {
  outline: none;
  border-color: var(--accent);
}
.quote-tool .form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Sliders */
.qt-slider-row {
  display: grid;
  grid-template-columns: 60px 1fr 70px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.qt-slider-row input[type="range"] {
  /* Larger touch target on mobile */
  min-height: 32px;
}
@media (max-width: 640px) {
  .qt-slider-row input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
  }
  .qt-radios { grid-template-columns: 1fr; }
}
.qt-slider-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.qt-slider-row input[type="range"] {
  width: 100%;
  appearance: none;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}
.qt-slider-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.qt-slider-row input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.qt-slider-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--white);
  text-align: right;
}

/* Radio chips */
.qt-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.qt-radio { cursor: pointer; }
.qt-radio input { position: absolute; opacity: 0; pointer-events: none; }
.qt-radio__chip {
  display: block;
  padding: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.qt-radio__chip strong { display: block; margin-bottom: 4px; color: var(--white); }
.qt-radio__chip small { color: var(--text-muted); font-size: 0.7rem; line-height: 1.4; }
.qt-radio input:checked + .qt-radio__chip {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* Quote panel */
.qt-quote {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.qt-quote__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.qt-quote__row > span:last-child {
  font-family: var(--font-mono);
  color: var(--text);
}
.qt-quote__divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}
.qt-quote__row--total {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.qt-quote__row--total > span:first-child {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.qt-quote__row--total > span:last-child {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 600;
  font-family: var(--font-h);
}
.qt-quote__note {
  font-size: 0.75rem;
  color: var(--accent);
  margin: 4px 0 8px;
  font-style: italic;
}
.qt-quote__disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
}
.qt-share-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.qt-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Subtotal row (unfinished baseline) */
.qt-quote__row--subtotal {
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.qt-quote__row--subtotal > span:first-child {
  color: var(--text);
  font-weight: 500;
}
.qt-quote__row--subtotal > span:last-child {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Finish add-on row */
.qt-quote__row--addon {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.qt-quote__row--addon > span:last-child {
  color: var(--accent);
  font-family: var(--font-mono);
}

/* Custom design CTA */
.qt-custom-cta {
  margin-top: 24px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(184,118,61,0.04);
}
.qt-custom-cta__title {
  font-family: var(--font-h);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--white);
}
.qt-custom-cta__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.qt-custom-cta__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.qt-custom-cta__link:hover { color: var(--accent-hover); }
