.offer-wizard {
  margin: clamp(24px, 5vw, 56px) auto 0;
  max-width: 62rem;
}

.offer-heading { margin-bottom: clamp(20px, 4vw, 38px); }

.offer-heading h1,
.offer-step h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -.05em;
  line-height: 1.16;
}

.offer-heading h1 { font-size: clamp(1.75rem, 4vw, 2.85rem); }
.offer-heading p, .offer-help { color: var(--muted); margin: 10px 0 0; }

.offer-layout:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(12rem, .45fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 4vw, 46px);
}

.offer-progress { position: sticky; top: 24px; }
.offer-progress ol { list-style: none; margin: 0; padding: 0; counter-reset: offer-step; }
.offer-progress li {
  counter-increment: offer-step;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px;
  color: var(--muted);
  border-radius: var(--radius-sm);
}
.offer-progress li::before {
  content: counter(offer-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--panel);
  font-size: .85rem;
  font-weight: 800;
  line-height: 1;
}
.offer-progress li[aria-current] { background: var(--accent-soft); color: var(--ink); font-weight: 800; }
.offer-progress li[aria-current]::before { background: var(--acid); color: var(--acid-ink); }
.offer-progress li.is-done::before { color: var(--accent-text); }
.offer-progress-note { color: var(--muted); font-size: .88rem; padding: 0 8px; }
.offer-progress-micro {
  margin: 4px 0 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 750;
}
.offer-draft-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--muted);
  font-size: .92rem;
}
.offer-model-code-tip {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.4;
}
.offer-model-code-tip p { margin: 0; }
.offer-model-code-example {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.offer-model-code-result {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 650;
}
.offer-photo-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.offer-photo-tip {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.25;
}
.offer-photo-tip-icon {
  width: 42px;
  height: 54px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--bg-elevated);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--ink);
}
@media (max-width: 520px) {
  .offer-photo-tips { grid-template-columns: 1fr; }
  .offer-photo-tip { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; }
}

#offer { min-width: 0; }
.offer-step {
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  padding: clamp(16px, 4vw, 30px);
  animation: offer-enter 260ms var(--ease) both;
  --enter-offset: 22px;
}
.offer-step--back { --enter-offset: -22px; }
@keyframes offer-enter {
  from { opacity: 0; transform: translateX(var(--enter-offset)); }
  to { opacity: 1; transform: translateX(0); }
}
.offer-step h2 { font-size: clamp(1.2rem, 3vw, 1.9rem); }
.offer-step h2:focus { outline: none; }

.offer-choice-group {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  margin: 22px 0 0;
}
.offer-choice-group legend { padding: 0; font: 800 1rem/1.35 var(--font); color: var(--ink); }
.offer-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
  gap: 8px;
  margin-top: 9px;
  align-items: stretch;
}
.offer-options--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.offer-choice {
  display: flex;
  position: relative;
  margin: 0;
  cursor: pointer;
  min-width: 0;
  height: 100%;
}
.offer-choice input { position: absolute; width: 1px; min-height: 1px; height: 1px; opacity: 0; padding: 0; }
.offer-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  text-align: center;
  line-height: 1.25;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}
.offer-options--triple .offer-choice span {
  min-height: 64px;
  padding: 12px 8px;
  font-size: 0.92rem;
  font-weight: 650;
}
.offer-choice input:checked + span { background: var(--accent-soft); border-color: var(--focus); font-weight: 800; }
.offer-choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.offer-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.offer-phone-brand { grid-column: 1 / -1; }
.offer-brand-suggestions { display: flex; flex-direction: column; align-items: flex-start; }
.offer-brand-options { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-brand-options:not(:empty) { margin-bottom: 12px; }
.offer-brand-options .offer-brand-option { min-height: 44px; padding: 6px 12px; font-size: .9rem; }
.offer-device-details, .offer-specs, .offer-photo-actions, .offer-stage-block { margin-top: 16px; }
.offer-picked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--panel);
}
.offer-picked-label { color: var(--muted); font-size: .88rem; font-weight: 650; }
.offer-picked strong { font-weight: 800; }
.offer-lineup { margin-top: 14px; }
.offer-lineup .offer-choice-group { margin-top: 0; }
.offer-lineup .offer-choice-group legend {
  font-size: .92rem;
  color: var(--muted);
  font-weight: 750;
}
.offer-specs summary { cursor: pointer; color: var(--accent-text); font-weight: 750; padding: 9px 0; }
.offer-specs summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.offer-text-button { background: transparent; color: var(--accent-text); border: none; padding: 5px 8px; min-height: 44px; }
.offer-warning {
  color: var(--alert);
  border-inline-start: 2px solid currentColor;
  background: var(--panel);
  padding: 10px 12px;
}
.offer-photo-actions, .offer-summary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-photo-actions input[hidden], #offer-back[hidden] { display: none; }
.offer-photo-status { color: var(--muted); font-size: .9rem; }
.offer-pictures { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 106px)); gap: 8px; }
.offer-picture { position: relative; }
.offer-picture img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.offer-remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 0;
  width: 44px;
  min-height: 44px;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.3rem;
}
.offer-review-list { display: grid; gap: 12px; margin: 0 0 12px; }
.offer-review-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.offer-review-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.offer-review-block-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.offer-summary-body {
  display: grid;
  gap: 12px;
}
.offer-summary-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}
.offer-summary-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: var(--bg-elevated);
}
.offer-summary-list {
  display: grid;
  gap: 8px;
  margin: 0;
}
.offer-summary-row {
  display: grid;
  grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
}
.offer-summary-row dt {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 650;
}
.offer-summary-row dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  color: var(--ink);
}
.offer-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.offer-summary-actions .button, .offer-summary-actions button { padding: 7px 10px; min-height: 44px; }
.offer-review-confirm {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.offer-location-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-weight: 750; color: var(--accent-text); }
.offer-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
  z-index: 1;
}
#feedback { color: var(--danger); padding-inline: 8px; }

@media (max-width: 680px) {
  .offer-layout:not([hidden]) { display: block; }
  .offer-progress { position: static; margin-bottom: 12px; }
  .offer-progress ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
  }
  .offer-progress li {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    min-height: 74px;
    height: 100%;
    padding: 8px 4px;
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
  }
  .offer-progress li::before {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }
  .offer-progress-note { display: none; }
  .offer-footer button { flex: 0 1 auto; }
  #offer-next { flex: 1; }
  .offer-summary-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 420px) {
  .offer-field-grid { grid-template-columns: 1fr; }
  .offer-step button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .offer-step { animation: none; }
}


.offer-contact-block { margin-top: 16px; }
.offer-contact-block h3 { margin: 0 0 .45rem; }
.offer-callback-phone[hidden] { display: none; }
.offer-callback-phone .offer-help { margin-top: .35rem; }

.offer-footer[hidden] { display: none; }
