/* ============================================================
   buyer-form.css — Questionnaire acquéreur public
   Mobile-first (375px → 768px+)
   Override les styles globaux de style.css (header fixed, etc.)
   ============================================================ */

/* ─── iOS zoom fix: inputs < 16px trigger zoom on focus ─── */

.buyer-form input,
.buyer-form textarea,
.buyer-form select {
  font-size: 16px;
}

/* ─── Reset : force border-box sur tout le scope ─── */

html:has(.buyer-form) {
  overflow-x: hidden;
}

.buyer-form,
.buyer-form *,
.buyer-form *::before,
.buyer-form *::after {
  box-sizing: border-box;
}

/* ─── Root layout ─── */

.buyer-form {
  min-height: 100dvh;
  background: white;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ─── Header (override global header { position: fixed; width: 100vw }) ─── */

.buyer-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: white;
  border-bottom: 1px solid var(--sp-border-light);
  flex-shrink: 0;
  min-height: 44px;
  /* override style.css global header */
  position: static;
  width: 100%;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
}

.buyer-form-logo {
  height: 22px;
  width: auto;
  max-width: 120px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ─── Agent badge (header) ─── */

.agent-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 50%;
}

.agent-badge__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.agent-badge__avatar--placeholder {
  background: var(--sp-color-primary-alpha-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-color-primary);
  font-size: 0.75rem;
}

.agent-badge__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.agent-badge__name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--sp-color-text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-badge__phone {
  font-size: 0.625rem;
  color: var(--sp-color-text-secondary);
  text-decoration: none;
}

/* ─── Progress bar ─── */

.step-progress {
  background: white;
  padding: 8px 16px;
  border-bottom: 1px solid var(--sp-border-light);
  flex-shrink: 0;
}

.step-progress__meta {
  display: none;
}

.step-progress__dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--sp-color-grey-100, #f1f5f9);
  color: var(--sp-color-text-secondary);
  text-decoration: none;
  cursor: default;
  flex-shrink: 0;
}

a.step-dot {
  cursor: pointer;
}

a.step-dot:hover {
  opacity: 0.8;
}

.step-dot--active {
  background: var(--sp-color-primary);
  color: white;
}

.step-dot--completed {
  background: var(--sp-color-primary);
  color: white;
  font-size: 0.625rem;
}

/* ─── Main content ─── */

.buyer-form-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  width: 100%;
}

.buyer-form-card {
  background: white;
  padding: 20px 16px 96px;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

.buyer-form-card--intro {
  gap: 20px;
}

/* ─── Intro — minimal with carousel ─── */

.intro-page {
  background: var(--sp-color-grey-50, #f8fafc);
}

.intro {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 0;
}

/* Agent row */
.intro__agent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
}

.intro__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.intro__avatar--placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sp-color-grey-100, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-color-text-secondary);
  font-size: 1rem;
}

.intro__agent-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.intro__agent-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sp-color-text-primary);
}

.intro__agent-role {
  font-size: 0.75rem;
  color: var(--sp-color-text-secondary);
}

/* Content */
.intro__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 24px 0;
}

.intro__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--sp-color-text-primary);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.intro__sub {
  font-size: 0.9375rem;
  color: var(--sp-color-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Carousel */
.intro__carousel {
  overflow: hidden;
  margin: 8px -24px 0;
  padding: 0 24px;
}

.intro__carousel-track {
  display: flex;
  gap: 10px;
  animation: carousel-slide 20s linear infinite;
  width: max-content;
}

.intro__carousel-img {
  width: 145px;
  height: 145px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--sp-border-light);
}

@keyframes carousel-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 5px)); }
}

/* Footer / CTA */
.intro__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.intro__btn {
  width: 100%;
  padding: 16px;
  background: var(--sp-color-primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.intro__btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.intro__footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.intro__time {
  font-size: 0.75rem;
  color: var(--sp-color-text-tertiary, #94a3b8);
}

.intro__time i {
  margin-right: 4px;
  font-size: 0.6875rem;
}

.intro__phone {
  font-size: 0.75rem;
  color: var(--sp-color-primary);
  text-decoration: none;
}

.intro__phone i {
  margin-right: 4px;
  font-size: 0.6875rem;
}

.intro__delete {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px 0;
  color: var(--sp-color-text-tertiary, #94a3b8);
  font-size: 0.75rem;
  cursor: pointer;
  justify-content: center;
  transition: color 0.15s ease;
}

.intro__delete:hover {
  color: var(--sp-color-error);
}

.intro__delete i {
  font-size: 0.625rem;
}

/* Override DS modal pour qu'elle soit compacte */
body.intro-page .sp-modal.small {
  height: auto !important;
  max-height: none !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: translateY(100%) !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 20px 20px 0 0 !important;
}

body.intro-page .sp-modal.small.active {
  transform: translateY(0) !important;
}

body.intro-page .sp-modal .sp-modal-content {
  height: auto;
}

body.intro-page .sp-modal .sp-modal-body {
  max-height: none;
  padding: 20px 24px;
}

body.intro-page .sp-modal .sp-modal-footer {
  padding: 12px 24px 24px;
  gap: 8px;
  display: flex;
  flex-direction: column;
}

body.intro-page .sp-modal .sp-modal-footer .sp-button {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

body.intro-page .sp-modal .sp-modal-confirm {
  background: var(--sp-color-error) !important;
  border-color: var(--sp-color-error) !important;
}

@media (min-width: 768px) {
  .intro-page {
    background: var(--sp-color-grey-50, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
  }

  .intro {
    background: white;
    max-width: 520px;
    margin: 24px auto;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    min-height: auto;
    padding: 0;
    overflow: hidden;
  }

  .intro__agent {
    padding: 24px 32px 0;
  }

  .intro__content {
    padding: 8px 32px 0;
  }

  .intro__title {
    font-size: 2.25rem;
  }

  .intro__carousel {
    margin: 8px 0 0;
    padding: 0 32px;
  }

  .intro__carousel-img {
    width: 155px;
    height: 155px;
    border-radius: 16px;
  }

  .intro__footer {
    padding: 24px 32px 28px;
  }

  .intro__btn {
    border-radius: 14px;
  }
}

/* ─── Sticky bottom navbar ─── */

.step-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--sp-border-light);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  z-index: 100;
}

.step-navbar .sp-button {
  flex: 1;
  min-height: 44px;
  justify-content: center;
  font-size: 0.9375rem;
}

/* ─── Step titles ─── */

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sp-color-text-primary);
  margin: 0;
}

.step-subtitle {
  font-size: 0.875rem;
  color: var(--sp-color-text-secondary);
  line-height: 1.5;
  margin: 0;
}


/* ─── Type selection grid (step 1) ─── */

.type-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.type-selection-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1.5px solid var(--sp-border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 76px;
  -webkit-tap-highlight-color: transparent;
}

.type-selection-card:active {
  transform: scale(0.97);
}

.type-selection-card__input {
  display: none;
}

.type-selection-card:has(.type-selection-card__input:checked) {
  border-color: var(--sp-color-primary);
  background: var(--sp-color-primary-alpha-10);
}

.type-selection-card__icon {
  font-size: 1.25rem;
  color: var(--sp-color-primary);
  transition: color 0.15s ease;
}

.type-selection-card--selected .type-selection-card__icon,
.type-selection-card:has(.type-selection-card__input:checked) .type-selection-card__icon {
  color: var(--sp-color-primary);
}

.type-selection-card__label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  color: var(--sp-color-text-primary);
}

/* ─── Forms: consistent gap between groups ─── */

#stepForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#stepForm .sp-form-group + .sp-form-group,
#stepForm .sp-form-group + details,
#stepForm .range-slider + .sp-form-group {
  margin-top: -4px;
}

/* ─── Section separator ─── */

.step-separator {
  border: none;
  border-top: 1px solid var(--sp-border-light);
  margin: 4px 0;
}

/* ─── Range slider (noUiSlider) ─── */

.dual-slider__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dual-slider__inputs .sp-input {
  width: 100%;
  min-width: 0;
}

.range-slider {
  margin: 44px 16px 16px;
}

.range-slider .noUi-target {
  overflow: visible;
}

.range-slider .noUi-target {
  background: var(--sp-color-grey-100, #f1f5f9);
  border: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  height: 14px;
  border-radius: 100px;
}

.range-slider .noUi-connect {
  background: var(--sp-color-primary);
  border-radius: 100px;
}

.range-slider .noUi-handle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow:
    0 0 0 1.5px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: grab;
  top: -8px;
  right: -14px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

/* Inner dot on handle */
.range-slider .noUi-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sp-color-primary);
  transition: transform 0.15s ease;
}

.range-slider .noUi-handle::after {
  display: none;
}

.range-slider .noUi-handle:hover {
  box-shadow:
    0 0 0 1.5px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.18);
  transform: scale(1.06);
}

.range-slider .noUi-handle:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.range-slider .noUi-handle:active::before {
  transform: translate(-50%, -50%) scale(1.2);
}

.range-slider .noUi-handle:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0, 57, 77, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Tooltips — tous au-dessus, fusionnés par JS quand proches */
.range-slider .noUi-origin {
  overflow: visible;
}

.range-slider .noUi-tooltip {
  display: block;
  background: var(--sp-color-text-primary, #1e293b);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.01em;
  bottom: calc(100% + 10px);
  top: auto;
}

.range-slider .noUi-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--sp-color-text-primary, #1e293b);
}

/* Merged tooltip (injected by JS) */
.range-slider-merged-tooltip {
  position: absolute;
  background: var(--sp-color-text-primary, #1e293b);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.01em;
  top: -42px;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

.range-slider-merged-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--sp-color-text-primary, #1e293b);
}

.budget-constraint-row {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.budget-constraint-row.visible {
  display: flex;
}

.slider-constraint-hint {
  font-size: 0.75rem;
  color: var(--sp-color-error);
  margin: 0;
  flex: 1;
}

.budget-adjust-btn {
  background: none;
  border: 1.5px solid var(--sp-color-primary);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sp-color-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.budget-adjust-btn:active {
  background: var(--sp-color-primary-alpha-10);
}

.surface-clear-max {
  background: none;
  border: none;
  padding: 6px 0;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--sp-color-text-tertiary, #94a3b8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.surface-clear-max:hover {
  color: var(--sp-color-text-secondary);
}

.surface-clear-max i {
  font-size: 0.625rem;
}

.budget-details {
  border: 1px solid var(--sp-border-light);
  border-radius: 10px;
  overflow: hidden;
}

.budget-details__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sp-color-text-secondary);
  list-style: none;
}

.budget-details__toggle::-webkit-details-marker {
  display: none;
}

.budget-details__toggle i {
  font-size: 0.75rem;
  color: var(--sp-color-primary);
}

.budget-details__content {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--sp-border-light);
}

/* ─── Budget chips ─── */

.chips-label {
  font-size: 0.8125rem;
  color: var(--sp-color-text-secondary);
  margin: 0 0 6px;
}

.budget-warning {
  font-size: 0.8125rem;
  color: var(--sp-color-warning);
  margin-top: 4px;
  display: none;
}

/* ─── Bien idéal (step 5) — single example ─── */

.step5-example {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step5-example__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sp-color-text-secondary);
  margin: 0;
}

.step5-example__card {
  padding: 12px 14px;
  border: 1.5px solid var(--sp-border-light);
  border-radius: 10px;
  background: var(--sp-color-grey-50, #f8fafc);
}

.step5-example__text {
  font-size: 0.8125rem;
  color: var(--sp-color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.step5-example__hint {
  font-size: 0.75rem;
  color: var(--sp-color-text-tertiary, #94a3b8);
  margin: 0;
}

/* ─── Step 5: card should not stretch ─── */

.buyer-form-card:has(.step5-intro),
.buyer-form-card:has(.step5-editor) {
  flex: 0 0 auto;
}

/* ─── Step 5 two-part layout ─── */

/* Hide redundant label from mixin — step title is enough */
.buyer-form .external-note-wrapper .sp-label {
  display: none;
}

.step5-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.step5-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--sp-color-text-primary);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.step5-subtitle {
  font-size: 0.9375rem;
  color: var(--sp-color-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* "Already known" hint */
.step5-already-known {
  font-size: 0.75rem;
  color: var(--sp-color-text-tertiary, #94a3b8);
  margin: 0;
  line-height: 1.5;
}

.step5-already-known i {
  color: var(--sp-color-success);
  font-size: 0.6875rem;
  margin-right: 2px;
}

.step5-already-known strong {
  color: var(--sp-color-text-primary);
  font-weight: 600;
}

/* CTA wrapper — push to bottom */
.step5-cta-wrapper {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step5-cta {
  gap: 8px;
  width: 100%;
  min-height: 48px;
  justify-content: center;
  font-size: 0.9375rem;
}

.step5-editor--hidden {
  display: none;
}

/* On mobile: collapse intro when editor is open, hide navbar when intro is showing */
.step5-intro--collapsed {
  display: none;
}

.step5-intro:not(.step5-intro--collapsed) ~ .step-navbar {
  display: none;
}

/* On desktop: same two-part flow, cards in grid */
@media (min-width: 768px) {
  .step5-intro--collapsed {
    display: none;
  }

}


/* ─── Step 6 compact cards + chips ─── */

.step6-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.step6-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1.5px solid var(--sp-border-light);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sp-color-text-primary);
  line-height: 1.3;
}

.step6-card input {
  display: none;
}

.step6-card i {
  font-size: 1.125rem;
  color: var(--sp-color-primary);
}

.step6-card:has(input:checked) {
  border-color: var(--sp-color-primary);
  background: var(--sp-color-primary-alpha-10);
}


/* ─── Step 7 compact form ─── */

.buyer-form-card:has(#submitBtn) {
  gap: 10px;
}

.buyer-form-card:has(#submitBtn) .sp-form-row {
  gap: 10px;
}

.step7-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.step7-rgpd input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--sp-color-primary);
  cursor: pointer;
}

.step7-rgpd__text {
  font-size: 0.75rem;
  color: var(--sp-color-text-tertiary, #94a3b8);
  line-height: 1.4;
}

/* ─── RGPD notice (step 7) ─── */

.rgpd-notice {
  background: var(--sp-color-primary-alpha-10);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.8125rem;
  color: var(--sp-color-text-secondary);
  line-height: 1.5;
}

/* ─── Delete confirm ─── */

.delete-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 32px 0;
}

.delete-confirm__icon {
  font-size: 3rem;
  color: var(--sp-color-success);
}

/* ─── Locality search (step 2) ─── */

.locality-search {
  position: relative;
}

.locality-search__input-wrapper {
  position: relative;
}

.locality-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sp-color-text-tertiary, #94a3b8);
  font-size: 0.8125rem;
  pointer-events: none;
}

.locality-search__input {
  padding-left: 38px !important;
}

.locality-search__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--sp-border-light);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 50;
  margin-top: 4px;
  max-height: 260px;
  overflow-y: auto;
}

.locality-search__dropdown.active {
  display: block;
}

.locality-search__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.9375rem;
  color: var(--sp-color-text-primary);
  cursor: pointer;
  transition: background 0.1s ease;
}

.locality-search__item:not(:last-child) {
  border-bottom: 1px solid var(--sp-border-light);
}

.locality-search__item:hover {
  background: var(--sp-color-grey-50, #f8fafc);
}

.locality-search__item:active {
  background: var(--sp-color-primary-alpha-10);
}

.locality-search__item i {
  color: var(--sp-color-primary);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.locality-search__item--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.locality-search__empty {
  padding: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--sp-color-text-tertiary, #94a3b8);
}

.locality-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.locality-chip {
  gap: 6px;
}

.locality-chip i {
  font-size: 0.625rem;
  opacity: 0.6;
}

/* ============================================================
   Desktop (768px+)
   ============================================================ */

@media (min-width: 768px) {
  .buyer-form {
    background: var(--sp-color-grey-50, #f8fafc);
  }

  .buyer-form-header {
    padding: 12px 24px;
  }

  .buyer-form-logo {
    height: 26px;
    max-width: 160px;
  }

  .agent-badge {
    max-width: none;
  }

  .agent-badge__avatar {
    width: 36px;
    height: 36px;
  }

  .agent-badge__name {
    font-size: 0.75rem;
  }

  .step-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 24px;
  }

  .step-progress__meta {
    display: flex;
    max-width: 680px;
    width: 100%;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--sp-color-text-secondary);
    margin-bottom: 8px;
  }

  .step-progress__time {
    color: var(--sp-color-text-tertiary, #94a3b8);
  }

  .step-progress__dots {
    max-width: 680px;
    width: 100%;
  }

  .buyer-form-main {
    align-items: center;
    padding: 32px 24px 40px;
  }

  .buyer-form-card {
    max-width: 640px;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
    gap: 20px;
  }

  .step-navbar {
    position: relative;
    z-index: 1;
    border-top: none;
    padding: 16px 0 0;
    justify-content: space-between;
  }

  .step-navbar .sp-button {
    flex: 0 0 auto;
    min-width: 140px;
  }

  .type-selection-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .step-title {
    font-size: 1.375rem;
  }

  .intro-title {
    font-size: 1.5rem;
  }

  .intro-agent__avatar,
  .intro-agent__avatar--placeholder {
    width: 56px;
    height: 56px;
  }
}
