html {
  scroll-behavior: smooth;
}

.link-secondary {
  padding-bottom: 10px;
  border-bottom: 1px solid;
}

.paginator_active {
  z-index: 3;
  color: #fff;
  background-color: #198754;
  border-color: #198754;
}

.paginator_active:hover {
  background-color: #146c43 !important;
}

.paginator_item {
  min-width: 17.25rem;
  text-align: center;
  cursor: pointer;
  border-radius: 0.3125rem;
  padding: 0.6rem 1rem;
  margin: 0 0.3rem;
}

.paginator_item:hover {
  background-color: #f8fafd;
  border-color: #e7eaf3;
}

.subtitle_post {
  border-bottom: 0.0625rem solid rgba(33,50,91,.1);
  padding-bottom: 2rem;
  margin-bottom: 1rem;
}

.text-primary.text-highlight-warning {
  background-image: linear-gradient(to bottom,#0ab3ae3d,#0ab3ae3d);
}

.cookie-container {
  position: fixed;
  display: flex;
  z-index: 9999999999;
  bottom: -100%;
  left: 0;
  right: 0;
  width: 100%;
  align-content: center;
  align-items: center;
  padding: 1rem 2.5rem;
  background: #ffffff;
  color: #333;
  font-size: 1rem;
  gap: 2rem;
  flex-wrap: wrap;
  color: #121212;
  box-shadow: 0 0 6px 0 #e4e4e4;
  transition: 600ms;
}

div.agree {
    flex: 1 150px;
    text-align: right;
}

p.cookie-text {
    flex: 8 768px;
    margin-bottom: 0;
    font-size: 15px;
    color: #525252;
}

.cookie-container.active {
    bottom: 0;
}

.cookie-container a {
    color: #f5f6fa;
}

.cookie-btn {
    background: #198754;
    color: #fff;
    border: none;
    padding: 0.4rem 1.2rem;
    cursor: pointer;
    border-radius: 20px;
    font-size: 1rem;
}

#nav-menu-container {
  cursor: pointer;
}

#navbarNavDropdownNav {
  text-align: right;
  padding-right: 0 !important;
}

@media screen and (max-width: 768px) {
  .cookie-container {
    display: block;
  }
}

@media screen and (max-width: 768px) {
  #featuresSection {
    padding-bottom: 4rem;
  }
  #planos .p-10 {
    padding: 4rem 0.5rem !important;
  }
  #botao-cta-menu {
    margin-top: 10px;
  }
  ul#navbarNavDropdownNav {
    padding: 1rem 1rem 1rem 0rem
  }
}

/* Paleta institucional verde */
:root {
  --bs-primary: #198754;
  --bs-primary-rgb: 25, 135, 84;
  --bs-link-color: #157347;
  --bs-link-hover-color: #0f5132;
}

.btn-primary {
  --bs-btn-bg: #198754;
  --bs-btn-border-color: #198754;
  --bs-btn-hover-bg: #157347;
  --bs-btn-hover-border-color: #146c43;
  --bs-btn-active-bg: #146c43;
  --bs-btn-active-border-color: #0f5132;
}

.btn-outline-primary {
  --bs-btn-color: #198754;
  --bs-btn-border-color: #198754;
  --bs-btn-hover-bg: #198754;
  --bs-btn-hover-border-color: #198754;
  --bs-btn-active-bg: #157347;
}

.text-primary { color: #198754 !important; }
.bg-primary { background-color: #198754 !important; }
.bg-soft-primary { background-color: #e8f5ee !important; }
.link-primary, a { --bs-link-color-rgb: 21, 115, 71; }
.main_content a:not(.btn):hover,
.main_content .nav-link:hover { color: #146c43 !important; }
#header .nav-link:hover,
#header .nav-link:focus { color: #146c43 !important; }
#accordionFAQ .accordion-button,
#accordionFAQ .accordion-button:not(.collapsed),
#accordionFAQ .accordion-button:hover { color: #146c43 !important; }
::selection { color: #0b3d24; background: #b7e4c7; }
::-moz-selection { color: #0b3d24; background: #b7e4c7; }
.form-check-input:checked { background-color: #198754; border-color: #198754; }
.form-control:focus, .form-select:focus {
  border-color: #75b798;
  box-shadow: 0 0 0 .25rem rgba(25, 135, 84, .18);
}

.exchange-stream {
  max-height: 28rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: .75rem;
  background: #f4faf7;
  border: 1px solid #d1e7dd;
  border-radius: .75rem;
}

.exchange-message {
  max-width: 78%;
  padding: .75rem 1rem;
  background: #fff;
  border: 1px solid #d1e7dd;
  border-radius: .75rem;
}

.exchange-message.own { align-self: flex-end; background: #d1e7dd; }
.exchange-message strong, .exchange-message small { display: block; }
.exchange-message small { color: #6c757d; margin-bottom: .35rem; }
.exchange-message p { margin-bottom: .35rem; white-space: pre-wrap; }

.step-icon.step-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}
.step-icon-soft-primary { color: #198754 !important; background: #e8f5ee !important; }

/* Calendário do formulário público */
.date-picker-container {
  width: 100%;
  max-width: 42rem;
  padding: 1rem;
  border: 1px solid #dfe8e3;
  border-radius: .75rem;
  background: #fff;
}
.calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.calendar-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid #badbcc;
  border-radius: .5rem;
  color: #198754;
  background: #fff;
}
.calendar-header button:hover { color: #fff; background: #198754; border-color: #198754; }
.calendar-month { flex: 1; text-align: center; font-weight: 700; color: #334a3e; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.calendar-day-name { padding: .35rem .1rem; text-align: center; color: #667a70; font-size: .82rem; font-weight: 700; }
.calendar-empty-day { min-width: 0; }
.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.75rem;
  padding: .25rem;
  border: 1px solid #dfe8e3;
  border-radius: .5rem;
  color: #334a3e;
  background: #fff;
  font: inherit;
}
button.calendar-day:hover { color: #0f5132; background: #e8f5ee; border-color: #75b798; }
.calendar-day.today { box-shadow: inset 0 0 0 2px #75b798; }
.calendar-day.selected { color: #fff; background: #198754; border-color: #198754; }
.calendar-day.disabled { color: #adb5bd; background: #f3f5f4; cursor: not-allowed; }
.time-slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); gap: .75rem; max-width: 42rem; }
.time-slot { padding: .7rem .5rem; border: 1px solid #badbcc; border-radius: .5rem; color: #146c43; background: #fff; font-weight: 600; }
.time-slot:hover, .time-slot.selected { color: #fff; background: #198754; border-color: #198754; }

/* Agenda mensal da médica */
.monthly-calendar { width: 100%; min-width: 0; overflow: visible; }
.month-weekdays, .month-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-weekdays > div { padding: .65rem; text-align: center; font-weight: 600; color: #52645a; }
.month-day { min-width: 0; min-height: 8rem; padding: .5rem; border: 1px solid #e2ebe6; background: #fff; overflow: hidden; }
.month-day.outside { background: #f6f7f6; color: #adb5bd; }
.month-day.today { box-shadow: inset 0 0 0 2px #198754; }
.month-day-number { font-weight: 700; margin-bottom: .4rem; }
.month-event { display: block; width: 100%; margin-bottom: .35rem; padding: .35rem .45rem; border: 0; color: #0f5132; background: #d1e7dd; border-radius: .35rem; font-size: .78rem; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.month-event:hover { background: #badbcc; }
.month-event-name { margin-left: .2rem; }

@media (max-width: 767.98px) {
  .exchange-message { max-width: 92%; }
  .monthly-agenda-page { padding-left: .75rem; padding-right: .75rem; }
  .month-weekdays > div { padding: .4rem .1rem; font-size: .68rem; }
  .month-day { min-height: 4.75rem; padding: .25rem; }
  .month-day-number { margin-bottom: .2rem; font-size: .72rem; }
  .month-event { padding: .15rem 0; font-size: .57rem; text-align: center; white-space: nowrap; text-overflow: clip; }
  .month-event strong { display: block; letter-spacing: -.02em; }
  .month-event-name { display: none; }
  .date-picker-container { padding: .65rem; }
  .calendar-grid { gap: .2rem; }
  .calendar-day { min-height: 2.35rem; font-size: .82rem; }
}

/* Mantém o conteúdo amplo e consistente em telas grandes. */
@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl {
    width: 90%;
    max-width: 90%;
  }
}
