.sell-page {
  padding: 3rem 0;
}

.section-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-label {
  color: var(--accent-dark);
}

.section-heading h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 45rem;
}

.section-heading p.sell-description {
  max-width: 46rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 0;
}

.sell-layout {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.sell-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 6rem;
}

.sell-intro-card,
.sell-section-card {
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.sell-intro-card {
  padding: 1.5rem;
}

.sell-intro-card h2,
.sell-section-card h2 {
  font-size: 1.5rem;
  margin: 0;
}

.sell-intro-card p,
.sell-section-card p {
  color: var(--text-muted);
  margin: 0;
}

.sell-step-badge {
  color: var(--accent-gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  line-height: 1;
}

.sell-form-shell {
  min-width: 0;
}

.sell-section-card {
  padding: 1.75rem;
}

.sell-section-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.sell-section-header .sell-step-badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.sell-section-card .input-group-text {
  min-width: 3.75rem;
  justify-content: center;
}

.sell-section-card .select2-container {
  width: 100% !important;
}

.sell-section-card .select2-container--bootstrap-5 .select2-selection {
  min-height: calc(1.5em + 1rem + 2px);
  border-radius: 0.75rem;
}

@media screen and (max-width: 767px) {
  .section-heading h1 {
    font-size: 2.8rem;
  }

  #sell .container:has(.sell-layout) {
    padding: 0;
  }

  #sell .container .sell-layout {
    gap: 0;
  }

  #sell .container .sell-form-shell {
    padding: 0 .5rem;
  }

  .sell-sidebar {
    display: flex;
    flex-direction: row;
    gap: 0.65rem;
    overflow-x: auto;
    scroll-padding-left: 0.5rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sell-sidebar::-webkit-scrollbar {
    display: none;
  }

  .sell-sidebar > article {
    flex: 0 0 min(85vw, 22rem);
    scroll-snap-align: start;
    margin-bottom: 1rem;
  }

  .sell-sidebar > article:first-child {
    margin-left: 1rem;
  }

  .sell-sidebar > article:last-child {
    margin-right: 1rem;
  }
}

@media (max-width: 991.98px) {
  .sell-layout {
    grid-template-columns: 1fr;
  }

  .sell-sidebar {
    position: static;
  }
}
