.buyers-page {
  --buyer-primary: #2463eb;
  --buyer-primary-soft: #edf4ff;
  --buyer-ink: #111827;
  --buyer-muted: #74809a;
  --buyer-border: #e2e8f0;
  --buyer-bg: #f4f7fb;
  color: var(--buyer-ink);
}

.buyers-page .middle-content {
  padding-bottom: 48px !important;
}

.buyers-heading {
  margin-bottom: 24px;
}

.buyers-heading h1 {
  color: var(--buyer-ink);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 750;
  letter-spacing: -.025em;
}

.buyer-filter-card {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--buyer-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .055);
}

.buyer-filter-card .form-label {
  margin-bottom: 7px;
  color: #5d687d;
  font-size: .78rem;
  font-weight: 650;
}

.buyer-filter-card .form-control,
.buyer-filter-card .form-select,
.buyer-filter-card .input-group-text {
  min-height: 43px;
  border-color: #dce3ed;
}

.buyer-room-filter {
  display: flex;
  gap: 7px;
}

.buyer-room-filter label {
  cursor: pointer;
}

.buyer-room-filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.buyer-room-filter span {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  color: #526079;
  font-weight: 700;
  transition: .18s ease;
}

.buyer-room-filter input:checked + span {
  border-color: var(--buyer-primary);
  background: var(--buyer-primary-soft);
  color: var(--buyer-primary);
}

.buyers-meta {
  margin: 0 2px 16px;
}

.buyer-quota-label {
  color: #17875f;
}

.buyer-card {
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--buyer-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 30px rgba(15, 23, 42, .07);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.buyer-card:hover {
  border-color: #cbd8ec;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .1);
  transform: translateY(-2px);
}

.buyer-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.buyer-card__heading h2 {
  margin: 0;
  color: #0b1220;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.45;
}

.buyer-card__status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eafaf3;
  color: #139669;
  font-size: .75rem;
  font-weight: 700;
}

.buyer-card__status i {
  font-size: .42rem;
}

.buyer-card__author {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 15px;
}

.buyer-card__avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--buyer-primary);
  font-size: .72rem;
  font-weight: 800;
}

.buyer-card__author strong,
.buyer-card__author time {
  display: block;
}

.buyer-card__author strong {
  margin-bottom: 1px;
  color: #162033;
  font-size: .85rem;
  line-height: 1.3;
}

.buyer-card__user-type {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: 1px;
}

.buyer-card__user-type--broker {
  background: #eef2ff;
  color: #4f46e5;
}

.buyer-card__user-type--owner {
  background: #ecfdf3;
  color: #16834a;
}

.buyer-card__author time {
  color: var(--buyer-muted);
  font-size: .73rem;
}

.buyer-card__divider {
  height: 1px;
  margin: 15px 0;
  background: var(--buyer-border);
}

.buyer-card__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0 0 18px;
}

.buyer-card__facts > div {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
}

.buyer-card__facts > div > div:last-child {
  min-width: 0;
}

.buyer-card__fact-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--buyer-primary-soft);
  color: var(--buyer-primary);
  font-size: .9rem;
}

.buyer-card__facts dt {
  margin-bottom: 2px;
  color: var(--buyer-muted);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.25;
}

.buyer-card__facts dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: #111827;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.35;
}

.buyer-card__price {
  color: var(--buyer-primary) !important;
}

.buyer-card__note {
  padding: 12px 14px;
  border-left: 3px solid #b9cdfa;
  border-radius: 0 9px 9px 0;
  background: #f8faff;
  color: #556176;
  font-size: .82rem;
  line-height: 1.55;
}

.buyer-card__note-content--collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.buyer-card__note-toggle {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--buyer-primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.buyer-card__note-toggle[hidden] {
  display: none;
}

.buyer-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--buyer-border);
}

.buyer-card__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.buyer-contact-limit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #738099;
  font-size: .78rem;
}

.buyer-contact-limit i {
  color: #8794aa;
  font-size: .9rem;
}

.buyer-contact-limit strong {
  color: #344054;
  font-weight: 800;
}

.buyer-phone-button,
.buyer-phone-button:focus,
.buyer-phone-button:hover {
  min-width: 88px;
  border-color: var(--buyer-primary);
  border-radius: 9px;
  background: var(--buyer-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}

.buyer-phone-button:hover {
  border-color: #174fd1;
  background: #174fd1;
}

.buyer-whatsapp-button,
.buyer-whatsapp-button:focus,
.buyer-whatsapp-button:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #20b45a;
  border-radius: 9px;
  background: #20b45a;
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}

.buyer-whatsapp-button:hover {
  border-color: #159449;
  background: #159449;
}

.buyer-empty,
.my-buyer-card {
  padding: 28px;
  border: 1px solid var(--buyer-border);
  border-radius: 18px;
  background: #fff;
}

.buyer-empty {
  margin-top: 20px;
  text-align: center;
}

.buyer-empty > i {
  display: block;
  margin-bottom: 10px;
  color: var(--buyer-primary);
  font-size: 2rem;
}

.my-buyer-card h2 {
  font-size: 1.1rem;
}

.my-buyer-card__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--buyer-primary-soft);
}

/* Buyer request create/edit wizard */
.buyer-form-page {
  padding-bottom: 48px;
}

.buyer-form-page > .middle-content > .row {
  margin-top: 24px;
}

.buyer-form-page .buyers-heading {
  margin-bottom: 20px;
}

.buyer-form-page .buyers-heading p {
  max-width: 620px;
  line-height: 1.6;
}

.buyer-form-card {
  overflow: hidden;
  border: 1px solid var(--buyer-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .08);
}

.buyer-wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 20px 28px;
  border-bottom: 1px solid var(--buyer-border);
  background: #f8faff;
}

.buyer-wizard-progress__item {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: #8792a6;
  text-align: left;
}

.buyer-wizard-progress__item:not(:last-child)::after {
  position: absolute;
  top: 50%;
  left: calc(100% - 2px);
  width: 22px;
  height: 1px;
  background: #dce3ed;
  content: "";
}

.buyer-wizard-progress__number {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid #dce3ed;
  border-radius: 50%;
  background: #fff;
  color: #74809a;
  font-size: .9rem;
  font-weight: 750;
  transition: .18s ease;
}

.buyer-wizard-progress__item small,
.buyer-wizard-progress__item strong {
  display: block;
}

.buyer-wizard-progress__item small {
  margin-bottom: 2px;
  color: #8792a6;
  font-size: .69rem;
}

.buyer-wizard-progress__item strong {
  color: #526079;
  font-size: .85rem;
  font-weight: 700;
}

.buyer-wizard-progress__item.is-active .buyer-wizard-progress__number,
.buyer-wizard-progress__item.is-complete .buyer-wizard-progress__number {
  border-color: var(--buyer-primary);
  background: var(--buyer-primary);
  color: #fff;
  box-shadow: 0 0 0 4px #e7efff;
}

.buyer-wizard-progress__item.is-active strong,
.buyer-wizard-progress__item.is-complete strong {
  color: #172033;
}

.buyer-wizard-mobile-status {
  display: none;
}

.buyer-form-step {
  padding: 32px;
}

.buyer-form-page [hidden] {
  display: none !important;
}

.buyer-form-step__heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}

.buyer-form-step__icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--buyer-primary-soft);
  color: var(--buyer-primary);
  font-size: 1.25rem;
}

.buyer-form-step__heading h2 {
  margin: 0 0 5px;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.4;
}

.buyer-form-step__heading p {
  margin: 0;
  color: var(--buyer-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.buyer-form-step .form-label {
  margin-bottom: 7px;
  color: #475467;
  font-size: .82rem;
  font-weight: 700;
}

.buyer-form-step .form-label span {
  color: #dc3545;
}

.buyer-form-step .form-control,
.buyer-form-step .form-select,
.buyer-form-step .input-group-text {
  min-height: 46px;
  border-color: #dce3ed;
  border-radius: 10px;
  color: #243047;
  font-size: .9rem;
}

.buyer-form-step .form-control:focus,
.buyer-form-step .form-select:focus {
  border-color: #8db0ff;
  box-shadow: 0 0 0 .2rem rgba(36, 99, 235, .12);
}

.buyer-form-step textarea.form-control {
  min-height: 100px;
}

.buyer-form-step .input-group .form-control:not(:first-child),
.buyer-form-step .input-group .input-group-text:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.buyer-form-step .input-group .form-control:not(:last-child),
.buyer-form-step .input-group .input-group-text:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.buyer-form-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
  color: #26344d;
  font-size: .9rem;
  font-weight: 750;
}

.buyer-form-subtitle > i {
  color: var(--buyer-primary);
}

.buyer-form-subtitle small {
  margin-left: auto;
  color: var(--buyer-muted);
  font-size: .75rem;
  font-weight: 400;
}

.buyer-room-filter--large span {
  width: 50px;
  height: 46px;
  border-radius: 10px;
}

.buyer-step-feedback,
.buyer-recaptcha-feedback {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #f4c7ca;
  border-radius: 10px;
  background: #fff5f5;
  color: #a52834;
  font-size: .85rem;
  line-height: 1.5;
}

.buyer-step-feedback[hidden],
.buyer-recaptcha-feedback[hidden] {
  display: none !important;
}

.buyer-advanced {
  padding: 16px 18px;
  border: 1px solid var(--buyer-border);
  border-radius: 12px;
  background: #fbfcfe;
}

.buyer-advanced summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #344054;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 700;
  list-style-position: inside;
}

.buyer-advanced summary > span > i {
  color: var(--buyer-primary);
}

.buyer-advanced summary small {
  color: var(--buyer-muted);
  font-size: .75rem;
  font-weight: 400;
}

.buyer-advanced[open] summary {
  margin-bottom: 12px;
}

.buyer-form-step .form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  padding-left: 0;
  color: #475467;
  font-size: .85rem;
}

.buyer-form-step .form-check-input {
  float: none;
  margin: 0;
}

.buyer-wizard-summary {
  margin-bottom: 24px;
  padding: 17px 19px;
  border: 1px solid #dce8ff;
  border-radius: 13px;
  background: #f6f9ff;
}

.buyer-wizard-summary > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #194eb5;
  font-size: .88rem;
}

.buyer-wizard-summary ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.buyer-wizard-summary li span,
.buyer-wizard-summary li b {
  display: block;
}

.buyer-wizard-summary li span {
  margin-bottom: 3px;
  color: var(--buyer-muted);
  font-size: .72rem;
}

.buyer-wizard-summary li b {
  overflow-wrap: anywhere;
  color: #27344b;
  font-size: .8rem;
}

.buyer-privacy-note,
.buyer-recaptcha-box {
  display: flex;
  gap: 13px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid #d5eee3;
  border-radius: 12px;
  background: #f4fbf7;
  color: #237552;
}

.buyer-privacy-note > i,
.buyer-recaptcha-box__heading > i {
  flex: 0 0 auto;
  font-size: 1.2rem;
}

.buyer-privacy-note strong,
.buyer-privacy-note span,
.buyer-recaptcha-box__heading strong,
.buyer-recaptcha-box__heading span {
  display: block;
}

.buyer-privacy-note strong,
.buyer-recaptcha-box__heading strong {
  margin-bottom: 3px;
  font-size: .86rem;
}

.buyer-privacy-note span,
.buyer-recaptcha-box__heading span {
  color: #617268;
  font-size: .8rem;
  line-height: 1.5;
}

.buyer-recaptcha-box {
  display: block;
  border-color: #dce3ed;
  background: #fbfcfe;
  color: #344054;
}

.buyer-recaptcha-box__heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.buyer-recaptcha-box__heading > i {
  color: var(--buyer-primary);
}

.buyer-recaptcha-widget {
  margin: 16px 0 0 30px;
}

.buyer-recaptcha-box .buyer-recaptcha-feedback {
  margin: 14px 0 0;
}

.buyer-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 32px;
  border-top: 1px solid var(--buyer-border);
  background: #fbfcfe;
}

.buyer-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.buyer-form-actions .btn {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .buyer-wizard-progress {
    padding: 17px 12px;
  }

  .buyer-wizard-progress__item {
    justify-content: center;
    padding: 3px;
  }

  .buyer-wizard-progress__item > span:last-child,
  .buyer-wizard-progress__item::after {
    display: none;
  }

  .buyer-form-step {
    padding: 24px 20px;
  }

  .buyer-wizard-summary ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .buyer-form-page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .buyer-form-page > .middle-content > .row {
    margin-top: 14px;
  }

  .buyer-form-page .buyers-heading {
    align-items: flex-start !important;
  }

  .buyer-form-page .buyers-heading h1 {
    font-size: 1.35rem;
  }

  .buyer-form-page .buyers-heading > a {
    width: 100%;
    justify-content: center;
  }

  .buyer-form-card {
    border-radius: 15px;
  }

  .buyer-wizard-mobile-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 0;
    color: #526079;
    font-size: .8rem;
  }

  .buyer-wizard-mobile-status strong {
    color: var(--buyer-primary);
  }

  .buyer-form-step {
    padding: 20px 17px;
  }

  .buyer-form-step__heading {
    gap: 11px;
    margin-bottom: 20px;
  }

  .buyer-form-step__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .buyer-form-step__heading h2 {
    font-size: 1.03rem;
  }

  .buyer-form-subtitle small {
    width: 100%;
    margin-left: 25px;
  }

  .buyer-wizard-summary {
    padding: 14px;
  }

  .buyer-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 15px 17px;
  }

  .buyer-form-actions > a,
  .buyer-wizard-actions,
  .buyer-wizard-actions .btn {
    width: 100%;
  }

  .buyer-wizard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .buyer-wizard-actions .buyer-wizard-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .buyer-card__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .buyer-filter-card,
  .buyer-card {
    padding: 17px;
    border-radius: 14px;
  }

  .buyer-card__heading {
    gap: 12px;
  }

  .buyer-card__heading h2 {
    font-size: .95rem;
  }

  .buyer-card__facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .buyer-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .buyer-card__footer > div,
  .buyer-card__footer form {
    width: 100%;
  }

  .buyer-card__actions {
    justify-content: stretch;
    margin-left: 0;
  }

  .buyer-card__actions > .btn,
  .buyer-card__actions > form {
    flex: 1 1 0;
  }

  .buyer-card__actions > .buyer-whatsapp-button {
    width: 42px;
    min-width: 42px;
    flex: 0 0 42px;
    padding-right: 0;
    padding-left: 0;
  }

  .buyer-card__actions > form .btn {
    width: 100%;
  }
}
