.professionals-section {
  background: #f7f9ff;
}

.section-tag {
  font-size: 14px;
  font-weight: 500;
  color: #4d74ff;
  border: 1px solid #b8c9ff;
  border-radius: 999px;
  padding: 8px 18px;
  background: #ffffff;
}

.section-title {
  font-size: 2.3rem;
  line-height: 1.15;
  font-weight: 700;
  color: #183153;
}

.section-subtitle {
  font-size: 1rem;
  color: #6b7280;
}

.search-wrapper {
  margin-top: 20px;
}

.search-bar {
  background: linear-gradient(135deg, #3e63ff, #2858f1);
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(40, 88, 241, 0.18);
}

.search-field {
  position: relative;
}

.search-field i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #7c87a0;
  z-index: 2;
}

.search-bar .form-control,
.search-bar .form-select,
.search-bar .btn {
  height: 56px;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}

.search-bar .form-control {
  padding-left: 44px;
}

.btn-filter {
  background: #ffffff;
  color: #2858f1;
  font-weight: 600;
  border-radius: 16px;
}

.btn-filter:hover {
  background: #eef3ff;
  color: #2858f1;
}

.results-head {
  margin-top: 8px;
}

.results-text {
  font-size: 15px;
  color: #6b7280;
}

.results-sort .form-select {
  min-width: 220px;
  border-radius: 14px;
  border: 1px solid #d9e2ff;
  height: 48px;
}

.professional-card {
  background: #ffffff;
  border: 1px solid #e8eeff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(24, 49, 83, 0.05);
  transition: 0.25s ease;
}

.professional-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(24, 49, 83, 0.08);
}

.professional-avatar {
    position: relative;
    width: 100px;
	min-width: 100px;
	height: 150px;
	object-fit: cover;
	border-radius: 8px;
	border: 4px solid #eef3ff;
    overflow: hidden;
    background-color: #f3f4f6; /* Cor de fundo cinza bem claro enquanto carrega */
}

/* Criando o efeito de Loading (Spinner) usando o pseudo-elemento ::before */
.professional-avatar::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px; /* Metade da altura */
    margin-left: -12px; /* Metade da largura */
    border: 3px solid #d8dcef; /* Cor do círculo de fundo do loading */
    border-top-color: #ff8d00; /* Cor do traço giratório (use a cor do seu sistema) */
    border-radius: 50%;
    animation: avatarSpinner 0.8s linear infinite;
    z-index: 1;
}

/* Animação para fazer o spinner girar */
@keyframes avatarSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* Garante que a imagem fique por cima do loading após carregar */
.professional-avatar img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2; /* Fica acima do ::before */
    background-color: #fff; /* Evita transparências se a foto do profissional for PNG transparente */
}

.professional-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #183153;
}

.professional-role {
  font-size: 15px;
  color: #6b7280;
}

.professional-meta span {
  font-size: 14px;
  color: #4b5563;
}

.professional-meta i {
  color: #4d74ff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #eaf1ff;
  color: #2858f1;
}

.status-badge.soft {
  background: #f3f6ff;
  color: #4f5f8a;
}

.professional-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  border: 0;
  background: #f3f6ff;
  color: #54627a;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 18px;
  transition: 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: #3e63ff;
  color: #ffffff;
}

.professional-description {
  font-size: 15px;
  line-height: 1.7;
  color: #5e6b7d;
}

.profile-link {
  font-size: 15px;
  font-weight: 600;
  color: #2858f1;
  text-decoration: none;
}

.profile-link:hover {
  color: #183153;
}

.schedule-box {
  background: #f9fbff;
  border: 1px solid #e1e9ff;
  border-radius: 22px;
  padding: 22px;
}

.schedule-title {
  font-size: 15px;
  font-weight: 700;
  color: #183153;
}

.schedule-nav {
  display: flex;
  gap: 6px;
}

.schedule-nav button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eef3ff;
  color: #2858f1;
}

.schedule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
}

.schedule-btn {
  min-width: 76px;
  height: 42px;
  border: 1px solid #d8e3ff;
  background: #ffffff;
  color: #183153;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.schedule-btn:hover,
.schedule-btn.active {
  background: #3e63ff;
  border-color: #3e63ff;
  color: #ffffff;
}

.btn-appointment {
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: #e9eefc;
  color: #7b879c;
  font-weight: 700;
}

.btn-appointment:hover {
  background: #3e63ff;
  color: #ffffff;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid #cfdcff;
  background: #ffffff;
  color: #2858f1;
  font-weight: 700;
  text-decoration: none;
}

.btn-load-more:hover {
  background: #2858f1;
  color: #ffffff;
}

.filter-search-box {
  position: relative;
}

.filter-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7c87a0;
  z-index: 2;
}

.filter-search-box .form-control {
  border: 1px solid #dbe4ff;
  padding-left: 42px;
  box-shadow: none;
}

.filter-search-box .form-control:focus {
  border-color: #ff8d00;
  box-shadow: 0 0 0 0.15rem rgba(255, 141, 0, 0.12);
}

.categorized-motives {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 4px;
}

.motivo-group {
  padding-bottom: 6px;
}

.motivo-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #183153;
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  background: #fff;
  padding: 6px 0;
  z-index: 2;
}

.filter-check.is-hidden {
  display: none !important;
}

.motivo-group.is-hidden {
  display: none !important;
}

@media (max-width: 1199.98px) {
  .professional-main {
    flex-direction: row;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.9rem;
  }

  .search-bar {
    border-radius: 22px;
    padding: 16px;
  }

  .professional-card {
    padding: 22px;
    border-radius: 22px;
  }

  .professional-main {
    flex-direction: column;
  }

  .professional-avatar img {
    width: 100%;
    height: 100%;
  }
  
  .professional-avatar {
	width: 100%;
	height: 200px;
  }

  .results-sort {
    width: 100%;
  }

  .results-sort .form-select {
    width: 100%;
  }
}

.filters-offcanvas {
  width: 360px !important;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  border-left: 1px solid #e6ecff;
}

.filters-offcanvas .offcanvas-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid #edf2ff;
}

.filters-offcanvas .offcanvas-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #183153;
}

.filters-offcanvas .offcanvas-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.filter-block {
  border-bottom: 1px solid #eef3ff;
  padding-bottom: 24px;
}

.filter-block:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 1rem;
  font-weight: 700;
  color: #183153;
  margin-bottom: 18px;
}

.price-range-wrap {
  padding-top: 4px;
}

.range-slider {
  position: relative;
  width: 100%;
  height: 24px;
}

.range-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 8px;
  width: 100%;
  pointer-events: none;
  appearance: none;
  background: none;
  margin: 0;
  z-index: 3;
}

.range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.range-slider input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff8d00;
  border: 0;
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 0 0 3px #ffffff;
}

.range-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff8d00;
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 0 3px #ffffff;
}

.slider-track {
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, #d8dcef 0%, #d8dcef 100%);
  z-index: 1;
}

.price-values {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.filter-options {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.8;
}

.filter-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ff8d00;
  flex-shrink: 0;
}

.filter-check span {
  font-size: 0.85rem;
}
.filter-check span:hover {
  color: #183153;
}

.filter-actions {
 position: sticky;
  bottom: 0px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 12px;
}

.btn-clear-filters {
  height: 50px;
  border-radius: 14px;
  border: 1px solid #d7e2ff;
  background: #fff;
  color: #2858f1;
  font-weight: 700;
}

.btn-clear-filters:hover {
  background: #f5f8ff;
  color: #2858f1;
}

.btn-apply-filters {
  height: 46px;
  border-radius: 14px;
  border: 0;
  background: #2858f1;
  color: #fff;
  font-weight: 600;
}

.btn-apply-filters:hover {
  background: #1f4be0;
  color: #fff;
}

.selected-motives-box {
  background: #f8faff;
  border: 1px solid #dfe8ff;
  border-radius: 16px;
  padding: 14px;
}

.selected-motives-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.selected-count {
  font-size: 0.92rem;
  font-weight: 700;
  color: #183153;
}

.selected-clear-all {
  border: 0;
  background: transparent;
  color: #ff8d00;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0;
}

.selected-clear-all:hover {
  color: #5e0c95;
}

.selected-motives-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-motive-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d6e2ff;
  color: #2858f1;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.selected-motive-chip button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #eef3ff;
  color: #2858f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0;
  line-height: 1;
}

.selected-motive-chip button:hover {
  background: #2858f1;
  color: #fff;
}

@media (max-width: 575.98px) {
  .filters-offcanvas {
    width: 100% !important;
    border-radius: 0;
  }

  .filter-check span {
    font-size: 1rem;
  }
}