/* =========================================================
   SIGNALETIQUE DEVIS — Widget
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg:            #f6f7fb;
  --surface:       #ffffff;
  --surface-2:     #fafbfd;
  --surface-3:     #f1f3f9;
  --border:        #e5e8f0;
  --border-strong: #d5d9e4;
  --text:          #0b1220;
  --text-2:        #4a5167;
  --text-3:        #7a8197;
  --text-4:        #a8afc2;

  --accent:        #3a5bff;
  --accent-2:      #6b85ff;
  --accent-soft:   #eef1ff;
  --accent-softer: #f6f8ff;
  --accent-ink:    #1b2a6b;

  --ok:       #10b981;
  --ok-soft:  #dcfce7;
  --err:      #dc2626;
  --err-soft: #fee2e2;
  --warn:     #f59e0b;

  --pad-card:   20px;
  --pad-choice: 20px 18px;
  --gap-grid:   12px;
  --radius:     14px;
  --radius-lg:  20px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===== Layout ===== */
.canvas {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
}
body.embedded .canvas {
  min-height: unset;
  padding: 0;
  background: transparent;
}
.widget {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 820px) {
  .widget { grid-template-columns: 1fr; }
}

/* ===== Stage (main form panel) ===== */
.stage {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}
.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.screen-root-inner {
  padding: 0 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ===== Company header ===== */
.company { display: flex; align-items: center; gap: 10px; }
.company-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent);
}
.company-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.company-name small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0;
}

/* ===== Screen ===== */
.screen {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  animation: fadeIn .22s var(--ease-out) both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Progress bar ===== */
.progress { margin-bottom: 4px; }
.progress-track {
  display: flex;
  gap: 4px;
  align-items: center;
}
.progress-seg {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}
.progress-seg-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .4s var(--ease-out);
}
.progress-seg.done .progress-seg-fill  { width: 100%; }
.progress-seg.active .progress-seg-fill { width: 55%; }

/* ===== Headline ===== */
.headline { display: flex; flex-direction: column; gap: 5px; }
.headline-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.headline-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
  color: var(--text);
}
.headline-sub {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.55;
}

/* ===== Back button ===== */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .18s;
  margin-top: 4px;
}
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--text); }

/* ===== Hero screen ===== */
.hero {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 16px 32px;
  gap: 20px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
  50%       { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 8%, transparent); }
}
.hero-title {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  max-width: 520px;
}
.hero-title .underline em {
  font-style: normal;
  position: relative;
  color: var(--accent);
}
.hero-sub {
  font-size: 15px;
  color: var(--text-3);
  max-width: 440px;
  line-height: 1.6;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  margin-top: 4px;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.hero-trust-item svg { width: 13px; height: 13px; color: var(--ok); flex-shrink: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .18s var(--ease-out);
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn.primary:hover {
  background: color-mix(in srgb, var(--accent) 90%, black);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-1px);
}
.btn.primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.outline {
  background: var(--surface);
  color: var(--text-2);
  border: 1.5px solid var(--border-strong);
}
.btn.outline:hover { background: var(--surface-3); color: var(--text); }
.btn.lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; justify-content: center; }

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: var(--gap-grid);
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 580px) {
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-2 { grid-template-columns: 1fr; }
}

/* ===== Choice cards ===== */
.choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: var(--pad-choice);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .18s var(--ease-out);
  text-align: left;
  font-family: inherit;
  color: var(--text);
  position: relative;
  width: 100%;
}
.choice:hover {
  border-color: var(--accent);
  background: var(--accent-softer);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 12%, transparent);
}
.choice.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.choice-illus {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-3);
}
.choice-illus svg { width: 100%; height: 56px; }
.choice-meta {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}
.choice-title {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.choice-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all .15s;
}
.choice-check svg { width: 10px; height: 10px; opacity: 0; transition: opacity .15s; }
.choice.selected .choice-check {
  background: var(--accent);
  border-color: var(--accent);
}
.choice.selected .choice-check svg { opacity: 1; color: white; }

/* ===== Form fields ===== */
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 5px; }
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.field-label .opt {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.field-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.field-input.err { border-color: var(--err); }
.field-input.err:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 14%, transparent); }
.field-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8197' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 36px; }
.field-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.field-error { font-size: 12px; color: var(--err); font-weight: 500; }
.field-hint  { font-size: 12px; color: var(--text-4); }
.field-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-top: 4px;
}

/* ===== Radio cards ===== */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
}
.radio-card:hover { border-color: var(--accent); background: var(--accent-softer); }
.radio-card.active { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input[type="radio"] { display: none; }
.radio-dot {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: all .15s;
}
.radio-dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transition: opacity .15s;
}
.radio-card.active .radio-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.radio-card.active .radio-dot::after { opacity: 1; }
.radio-body { flex: 1; min-width: 0; }
.radio-title { font-size: 13px; font-weight: 600; }
.radio-desc  { font-size: 12px; color: var(--text-3); margin-top: 1px; }

/* ===== Checkbox ===== */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}
.check input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: 5px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== Hint ===== */
.hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  background: var(--accent-softer);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 9px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.hint svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* ===== Dimensions ===== */
.dim-group {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.dim {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 120px;
}
.dim-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 5px;
}
.dim-label svg { width: 14px; height: 14px; }
.dim-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dim-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  text-align: center;
}
.dim-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.dim-unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  min-width: 24px;
}

/* ===== Dimension preview ===== */
.dim-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  position: relative;
}
.dim-preview-box {
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--ease-out);
  min-width: 60px; min-height: 40px;
}
.dim-preview-box svg { opacity: .5; }
.dim-label-w {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-ink);
  white-space: nowrap;
}
.dim-label-h {
  position: absolute;
  right: -36px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-ink);
  white-space: nowrap;
}

/* ===== Qty stepper ===== */
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
}
.qty-row-label { font-size: 14px; font-weight: 600; }
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}
.qty-stepper button {
  width: 36px; height: 36px;
  border: none;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
  line-height: 1;
}
.qty-stepper button:hover { background: var(--border); }
.qty-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.qty-stepper .val {
  width: 44px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ===== File upload ===== */
.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--surface-2);
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-softer);
}
.upload-zone-icon {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1;
}
.upload-zone-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.upload-zone-sub {
  font-size: 12px;
  color: var(--text-4);
  margin-bottom: 14px;
}
.files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
}
.file-icon { font-size: 20px; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-status {
  font-size: 11px;
  color: var(--text-4);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.file-status.ok { color: var(--ok); }
.file-status.err { color: var(--err); }
.file-remove {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: none;
  background: var(--err-soft);
  color: var(--err);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .15s;
}
.file-remove:hover { background: color-mix(in srgb, var(--err) 20%, transparent); }

/* ===== Spinners ===== */
.spinner {
  width: 26px; height: 26px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.spinner-xs {
  width: 12px; height: 12px;
  border: 1.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
}
.spinner-sm {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-init {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

/* ===== Aside ===== */
.aside {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: 20px;
}
.aside-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.aside-toggle:hover { background: var(--surface-3); }
.aside-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.aside-empty {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.aside-empty-icon { opacity: .3; }
.aside-empty-icon svg { width: 28px; height: 28px; }
.aside-body { padding: 0 12px 12px; }

/* ===== Aside item card ===== */
.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  position: relative;
}
.item-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.item-thumb svg { width: 36px; height: 36px; }
.item-body { flex: 1; min-width: 0; }
.item-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-detail { font-size: 11px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-est { font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 3px; }
.item-actions { display: flex; gap: 4px; margin-top: 5px; }
.item-btn {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--text-2);
  font-family: inherit;
  transition: background .15s;
}
.item-btn:hover { background: var(--surface-3); }
.item-btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.item-btn.danger:hover { background: var(--err-soft); }
.item-qty {
  position: absolute;
  top: -7px; right: -7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ===== Aside stats + CTA ===== */
.aside-stats {
  padding: 14px 16px;
  background: var(--accent-softer);
  border-top: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
}
.aside-stat-label { font-size: 11px; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.aside-stat-value { font-size: 24px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; margin-top: 2px; }
.aside-stat-sub   { font-size: 11px; color: color-mix(in srgb, var(--accent-ink) 60%, transparent); margin-top: 3px; line-height: 1.4; }
.aside-cta { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); }

/* ===== Success screen ===== */
.success {
  align-items: center;
  text-align: center;
  padding: 32px 16px 28px;
}
.success-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.success-mark svg { width: 26px; height: 26px; }
.success-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.success-sub {
  font-size: 14px;
  color: var(--text-3);
  max-width: 380px;
}
.price-box {
  width: 100%;
  max-width: 420px;
  padding: 20px 24px;
  background: var(--accent-soft);
  border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius);
  text-align: center;
}
.price-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 8px;
}
.price-label svg { width: 14px; height: 14px; }
.price-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--accent);
  line-height: 1;
}
.price-hint {
  font-size: 12px;
  color: var(--accent-ink);
  opacity: .7;
  margin-top: 6px;
  line-height: 1.4;
}

/* ===== Budget question ===== */
.budget-q {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.budget-q-label { font-size: 14px; font-weight: 700; }
.budget-q-hint  { font-size: 12px; color: var(--text-3); }
.budget-btns { display: flex; gap: 8px; width: 100%; }
.budget-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 10px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.budget-btn .icon svg { width: 14px; height: 14px; }
.budget-btn.yes:hover { border-color: var(--ok); background: var(--ok-soft); color: #166534; }
.budget-btn.no:hover  { border-color: var(--err); background: var(--err-soft); color: var(--err); }
.budget-ack {
  width: 100%;
  max-width: 420px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  text-align: center;
}
.budget-ack.yes { background: var(--ok-soft); border-color: var(--ok); }
.budget-ack.no  { background: var(--surface-3); }
.budget-ack-t { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.budget-ack-m { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ===== Success trust footer ===== */
.success-trust {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 420px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.success-trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-right: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.4;
}
.success-trust-item:last-child { border-right: none; }
.success-trust-icon { display: block; width: 20px; height: 20px; color: var(--accent); opacity: .65; }
.success-trust-icon svg { width: 100%; height: 100%; }
