/* ========================================================= RESET ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================================= VARIÁVEIS ========================================================= */

:root {
  --bg-page: #f6f7f8;
  --bg-card: #ffffff;
  --bg-soft: #f7faf9;
  --bg-avatar: #e1f0ed;

  --text-primary: #10233b;
  --text-secondary: #61708a;
  --text-muted: #8a97aa;
  --text-green: #006b5b;
  --text-yellow: #f4a51c;

  --border-color: #dce5ea;
  --border-strong: #bfd4ce;

  --container-width: 1120px;
  --result-width: 980px;

  --radius-card: 18px;
  --radius-input: 10px;
  --radius-button: 12px;

  --shadow-card: 0 12px 36px rgba(15, 35, 66, 0.045);
}

/* ========================================================= BASE ========================================================= */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.45;
}

button,
select,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.layout-container {
  width: min(calc(100% - 2rem), var(--container-width));
  margin: 0 auto;
}

/* ========================================================= HERO AGENDAMENTO ========================================================= */

.layout-schedule-hero {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #edf2f4;
  padding: 2.9rem 1.5rem 1.85rem;
}

.schedule-hero-container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.component-schedule-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #006b5b;
}

.schedule-hero-title {
  margin: 0;
  font-size: clamp(1.85rem, 2.8vw, 2.15rem);
  line-height: 1.08;
  font-weight: 700;
  color: #10233b;
  letter-spacing: -0.04em;
}

.schedule-hero-title span {
  color: #006b5b;
}

.schedule-hero-description {
  max-width: 520px;
  margin: 0.65rem auto 1.25rem;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ========================================================= BOTÃO AGENDAR ========================================================= */

.button-schedule-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 10px;
  background: #006b5b;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  transition: 0.22s ease;
  box-shadow: 0 14px 34px rgba(0, 107, 91, 0.14);
}

.button-schedule-primary:hover {
  transform: translateY(-2px);
  background: #00594d;
}

.button-schedule-primary i,
.button-schedule-primary svg {
  width: 17px;
  height: 17px;
}

.schedule-hero-benefits {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 0.95rem;
  margin-top: 1.35rem;
  color: #8190a3;
  font-size: 0.74rem;
  font-weight: 400;
}

.schedule-hero-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.schedule-hero-benefits i,
.schedule-hero-benefits svg {
  width: 14px;
  height: 14px;
}

.schedule-hero-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
}

/* ========================================================= MODAL AGENDAMENTO ========================================================= */

.schedule-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.78);
}

.schedule-modal-overlay.is-open {
  display: flex;
}

.schedule-modal {
  width: min(100%, 580px);
  max-height: 92vh;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #e3eaee;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.24s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.schedule-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.55rem 1.55rem 1.25rem;
  border-bottom: 1px solid #edf2f4;
}

.schedule-modal-title-area {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.schedule-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: #e1f0ed;
  color: #006b5b;
}

.schedule-modal-icon i,
.schedule-modal-icon svg {
  width: 18px;
  height: 18px;
}

.schedule-modal-header h2 {
  margin: 0 0 0.35rem;
  color: #10233b;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.schedule-modal-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.45;
}

.schedule-modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #64748b;
  border-radius: 10px;
  transition: 0.2s ease;
}

.schedule-modal-close:hover {
  background: #f1f5f9;
  color: #10233b;
}

.schedule-modal-close i,
.schedule-modal-close svg {
  width: 20px;
  height: 20px;
}

.schedule-modal-body {
  padding: 1.55rem;
}

.schedule-field-group {
  margin-bottom: 1.45rem;
}

.schedule-field-label {
  display: block;
  margin-bottom: 0.65rem;
  color: #697789;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.schedule-type-button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 43px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 11px;
  background: #ffffff;
  color: #10233b;
  font-size: 0.88rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.schedule-type-button i,
.schedule-type-button svg {
  width: 17px;
  height: 17px;
  color: #64748b;
}

.schedule-type-button:hover,
.schedule-type-button.is-selected {
  border-color: rgba(0, 107, 91, 0.45);
  background: #eef7f4;
  color: #006b5b;
}

.schedule-type-button.is-selected i,
.schedule-type-button.is-selected svg {
  color: #006b5b;
}

.schedule-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.schedule-select {
  width: 100%;
  min-height: 43px;
  padding: 0 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 11px;
  background: #ffffff;
  color: #10233b;
  font-size: 0.88rem;
  font-weight: 400;
  outline: none;
}

.schedule-select:focus {
  border-color: rgba(0, 107, 91, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 107, 91, 0.08);
}

.schedule-modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 1rem 1.55rem 1.35rem;
  border-top: 1px solid #edf2f4;
}

.button-modal-secondary,
.button-modal-primary {
  min-height: 42px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.button-modal-secondary {
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #10233b;
}

.button-modal-secondary:hover {
  background: #f8fafc;
}

.button-modal-primary {
  border: 1px solid #006b5b;
  background: #006b5b;
  color: #ffffff;
}

.button-modal-primary:hover {
  background: #00594d;
}

.button-modal-primary:disabled {
  border-color: #a8c5be;
  background: #8db7ad;
  cursor: not-allowed;
}

/* ========================================================= BARRA DOS RESULTADOS ========================================================= */

.doctor-results-toolbar {
  display: none;
  padding: 0 1.5rem 1.65rem;
  background: #ffffff;
  border-top: none;
  border-bottom: 1px solid #edf2f4;
  margin-top: -1px;
}

.doctor-results-toolbar.is-visible {
  display: block;
}

.doctor-results-toolbar-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.doctor-results-benefits {
  display: none;
}

.doctor-active-chips {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.doctor-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 27px;
  padding: 0 0.82rem;
  border-radius: 999px;
  background: #e1f0ed;
  color: #006b5b;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 600;
}

.doctor-chip-adjust {
  background: #ffffff;
  border-color: #dbe5e7;
  color: #64748b;
  font-family: inherit;
}

.doctor-chip-adjust:hover {
  background: #f8fafc;
  color: #006b5b;
}

.doctor-chip-adjust i,
.doctor-chip-adjust svg {
  width: 14px;
  height: 14px;
}

.doctor-chip-clear {
  background: #ffffff;
  border-color: #dbe5e7;
  color: #64748b;
  font-family: inherit;
}

.doctor-chip-clear:hover {
  background: #fff5f5;
  border-color: #fecaca;
  color: #b91c1c;
}

.doctor-chip-clear i,
.doctor-chip-clear svg {
  width: 14px;
  height: 14px;
}

/* ========================================================= PÁGINA / RESULTADOS ========================================================= */

.doctor-listing-page {
  display: none;
  padding: 3.45rem 0 4rem;
  background: #f6f7f8;
}

.doctor-listing-page.is-visible {
  display: block;
}

.doctor-listing-container {
  width: 100%;
}

.doctor-listing-header {
  max-width: var(--result-width);
  margin: 0 auto 1.4rem;
}

.doctor-listing-title {
  text-align: left;
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  line-height: 1.12;
  font-weight: 700;
  color: #10233b;
  margin-bottom: 0.4rem;
  letter-spacing: -0.035em;
}

.doctor-listing-count {
  max-width: var(--result-width);
  margin: 0 auto;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.doctor-listing-filters {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.doctor-filter-select {
  width: 310px;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-input);
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 400;
  color: #10233b;
  outline: none;
}

.doctor-info-alert {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: var(--result-width);
  margin: 1.55rem auto 1.05rem;
  padding: 0.75rem 0.9rem;
  border-radius: 11px;
  border: 1px solid #d9eeea;
  background: #f5fffc;
  color: #48636a;
  font-size: 0.78rem;
  font-weight: 400;
}

.doctor-info-alert i,
.doctor-info-alert svg {
  width: 16px;
  height: 16px;
  color: #006b5b;
}

/* ========================================================= LISTA ========================================================= */

.doctor-cards-list {
  max-width: var(--result-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* ========================================================= CARD ========================================================= */

.doctor-card {
  width: 100%;
  overflow: visible;
  background: var(--bg-card);
  border: 1px solid #e3eaee;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.doctor-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.3rem 1.45rem 1.2rem;
}

.doctor-info-area {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.doctor-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 15px;
  background: #e1f0ed;
  border: 2px solid #bfd4ce;
  color: #006b5b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.doctor-info-content {
  min-width: 0;
  padding-top: 0.15rem;
}

.doctor-name-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.doctor-name-row h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.18;
  font-weight: 700;
  color: #10233b;
}

.doctor-favorite-button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-favorite-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.doctor-specialty {
  margin-top: 0.25rem;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--text-secondary);
}

.doctor-specialty span {
  margin: 0 0.25rem;
  color: #a1acba;
}

.doctor-rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.doctor-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 22px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #fff8e7;
  color: #d78900;
  font-size: 0.74rem;
  font-weight: 500;
}

.doctor-rating-star {
  color: var(--text-yellow);
  font-size: 0.86rem;
  line-height: 1;
}

.doctor-clinic-name {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ========================================================= PREÇO ========================================================= */

.doctor-price-card {
  min-width: 255px;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  border: 1px solid #bfd4ce;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.doctor-price-old,
.doctor-price-current {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.7rem 0.9rem;
}

.doctor-price-old {
  background: #ffffff;
  border-right: 1px solid #d7e6e1;
}

.doctor-price-current {
  background: #e1f0ed;
}

.doctor-price-old span,
.doctor-price-current span {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.6rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doctor-price-old span {
  color: #7b8797;
}

.doctor-price-current span {
  color: #006b5b;
}

.doctor-price-old strong {
  font-size: 0.76rem;
  font-weight: 400;
  color: #667085;
  text-decoration: line-through;
}

.doctor-price-current strong {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  color: #006b5b;
}

.doctor-price-current small {
  margin-top: 0.25rem;
  font-size: 0.66rem;
  font-weight: 600;
  color: #006b5b;
}

/* ========================================================= ENDEREÇO ========================================================= */

.doctor-address-row {
  min-height: 54px;
  padding: 0.95rem 1.45rem;
  border-top: 1px solid #e3eaee;
  border-bottom: 1px solid #e3eaee;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.4;
}

.doctor-address-row svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.3;
  color: #006b5b;
  flex-shrink: 0;
}

/* ========================================================= AGENDA ========================================================= */

.doctor-schedule-area {
  padding: 1.35rem 1.45rem 1.55rem;
  position: relative;
}

.doctor-schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
  position: relative;
}

.doctor-schedule-header h3 {
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 700;
  color: #10233b;
}

.doctor-schedule-header p {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.doctor-period {
  margin-top: 1rem;
}

.doctor-period:first-of-type {
  margin-top: 0;
}

.doctor-period-title {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.doctor-times-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.doctor-times-grid button {
  min-height: 37px;
  border: 1px solid #dce5ea;
  border-radius: 10px;
  background: #ffffff;
  color: #10233b;
  font-size: 0.84rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.doctor-times-grid button:hover {
  border-color: #95c7bb;
  background: #eef7f4;
  color: #006b5b;
  transform: translateY(-1px);
}

.doctor-times-grid button:active {
  background: #d6ebe5;
  color: #006b5b;
}

.doctor-times-grid button.is-selected {
  background: #006b5b;
  border-color: #006b5b;
  color: #ffffff;
}

.doctor-times-grid button.is-disabled,
.doctor-times-grid button:disabled {
  position: relative;
  opacity: 0.5;
  cursor: not-allowed;
  background: #f3f5f6;
  color: #7a8794;
  border-color: #d9e1e7;
}

.doctor-times-grid button.is-disabled::after,
.doctor-times-grid button:disabled::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 2px;
  background: #7a8794;
}

/* ========================================================= BOTÃO DATA / FLATPICKR ========================================================= */

.doctor-date-picker {
  position: relative;
  z-index: 50;
  display: inline-flex;
  align-items: center;
}

.doctor-date-picker > i,
.doctor-date-picker > svg {
  position: absolute;
  left: 0.9rem;
  width: 16px;
  height: 16px;
  color: #006b5b;
  stroke-width: 2.3;
  pointer-events: none;
  z-index: 2;
}

.doctor-date-input {
  min-height: 36px;
  height: 36px;
  width: 172px;
  padding: 0 0.9rem 0 2.35rem;
  border: 1px solid #abc9c1;
  border-radius: 10px;
  background: #ffffff;
  color: #006b5b;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.doctor-date-input::placeholder {
  color: #006b5b;
}

.doctor-date-input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

/* ========================================================= CALENDÁRIO FLATPICKR ========================================================= */

.flatpickr-calendar {
  width: 296px !important;
  padding: 0.85rem 0.85rem 0.9rem !important;
  border: 1px solid #dce5ea !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(15, 35, 66, 0.14) !important;
  font-family: 'Montserrat', sans-serif !important;
  overflow: hidden !important;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
  display: none !important;
}

.flatpickr-months {
  height: 34px !important;
  margin-bottom: 0.7rem !important;
  padding: 0 !important;
}

.flatpickr-months .flatpickr-month {
  height: 34px !important;
  color: #1b2736 !important;
  fill: #1b2736 !important;
}

.flatpickr-current-month {
  height: 34px !important;
  padding: 0 !important;
  left: 42px !important;
  width: calc(100% - 84px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  font-size: 0.95rem !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  height: auto !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #1b2736 !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  appearance: none !important;
}

.flatpickr-current-month input.cur-year {
  height: auto !important;
  padding: 0 !important;
  color: #1b2736 !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  top: 0.85rem !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border: 1px solid #e1e8ec !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #7b8797 !important;
  fill: #7b8797 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: 0.2s ease !important;
}

.flatpickr-prev-month {
  left: 0.85rem !important;
}

.flatpickr-next-month {
  right: 0.85rem !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: #eef7f4 !important;
  color: #006b5b !important;
  fill: #006b5b !important;
  border-color: #bfd4ce !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  width: 14px !important;
  height: 14px !important;
}

.flatpickr-weekdays {
  height: 28px !important;
  margin-bottom: 0.35rem !important;
}

.flatpickr-weekdaycontainer {
  width: 100% !important;
}

span.flatpickr-weekday {
  height: 28px !important;
  line-height: 28px !important;
  color: #61708a !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days,
.dayContainer {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

.flatpickr-days {
  padding: 0 !important;
}

.dayContainer {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}

.flatpickr-day {
  width: calc(100% / 7) !important;
  max-width: calc(100% / 7) !important;
  height: 36px !important;
  line-height: 36px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #4b5563 !important;
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.flatpickr-disabled {
  color: #cfd6df !important;
}

.flatpickr-day.today {
  border: none !important;
  color: #006b5b !important;
  font-weight: 600 !important;
}

.flatpickr-day:hover {
  background: #eef7f4 !important;
  color: #006b5b !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #006b5b !important;
  border-color: #006b5b !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  box-shadow: none !important;
}

/* ========================================================= BOTÃO AGENDAMENTO CARD ========================================================= */

.doctor-price-action-area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.doctor-card-schedule-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #007f68;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.doctor-card-schedule-button.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.doctor-card-schedule-button:hover:not(:disabled) {
  background: #006b58;
}

.doctor-card-schedule-button:disabled {
  cursor: not-allowed;
}

.doctor-card-schedule-button svg {
  width: 18px;
  height: 18px;
}

/* ========================================================= RESPONSIVO ========================================================= */

@media (max-width: 991px) {
  .doctor-listing-page {
    padding: 2.5rem 0 3rem;
  }

  .doctor-listing-header,
  .doctor-cards-list,
  .doctor-listing-count,
  .doctor-info-alert {
    max-width: 760px;
  }

  .doctor-listing-title {
    font-size: 1.85rem;
  }

  .doctor-filter-select {
    width: 250px;
  }

  .doctor-card-main {
    align-items: flex-start;
  }

  .doctor-price-card {
    min-width: 235px;
  }

  .doctor-times-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .layout-container {
    width: min(calc(100% - 1rem), var(--container-width));
  }

  .layout-schedule-hero {
    padding: 2.7rem 1rem 1.6rem;
  }

  .schedule-hero-title {
    font-size: 1.7rem;
  }

  .schedule-hero-description {
    font-size: 0.88rem;
  }

  .button-schedule-primary {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
  }

  .schedule-hero-benefits {
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1.15rem;
  }

  .schedule-hero-dot {
    display: none;
  }

  .doctor-results-toolbar {
    padding: 0 1rem 1.3rem;
  }

  .doctor-active-chips {
    justify-content: center;
  }

  .schedule-type-grid,
  .schedule-form-grid,
  .schedule-modal-footer {
    grid-template-columns: 1fr;
  }

  .schedule-modal {
    border-radius: 12px;
  }

  .schedule-modal-header,
  .schedule-modal-body,
  .schedule-modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .schedule-modal-header h2 {
    font-size: 1.08rem;
  }

  .schedule-modal-header p {
    font-size: 0.82rem;
  }

  .doctor-listing-page {
    padding: 2rem 0 1.6rem;
  }

  .doctor-listing-container {
    max-width: 390px;
    margin: 0 auto;
  }

  .doctor-listing-header {
    margin-bottom: 1rem;
  }

  .doctor-listing-title {
    font-size: 1.45rem;
    margin-bottom: 0.45rem;
  }

  .doctor-listing-filters {
    display: none;
  }

  .doctor-listing-count {
    font-size: 0.84rem;
    margin-bottom: 0.8rem;
  }

  .doctor-info-alert {
    margin: 1rem auto 0.9rem;
    font-size: 0.76rem;
  }

  .doctor-cards-list {
    gap: 1rem;
  }

  .doctor-card {
    border-radius: 16px;
    overflow: hidden;
  }

  .doctor-card-main {
    display: block;
    padding: 1.05rem 1.05rem 0;
  }

  .doctor-info-area {
    gap: 0.85rem;
    align-items: flex-start;
  }

  .doctor-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .doctor-info-content {
    width: 100%;
    min-width: 0;
  }

  .doctor-name-row {
    justify-content: space-between;
    gap: 0.6rem;
  }

  .doctor-name-row h2 {
    font-size: 1rem;
    line-height: 1.18;
  }

  .doctor-favorite-button {
    display: flex;
    margin-top: -0.15rem;
  }

  .doctor-specialty {
    font-size: 0.82rem;
    max-width: 210px;
  }

  .doctor-rating-row {
    gap: 0.55rem;
    margin-top: 0.5rem;
  }

  .doctor-rating {
    font-size: 0.74rem;
    padding: 0 0.4rem;
  }

  .doctor-clinic-name {
    font-size: 0.76rem;
  }

  .doctor-price-card {
    width: calc(100% + 2.1rem);
    min-width: 0;
    margin: 1rem -1.05rem 0;
    border-left: none;
    border-right: none;
    border-radius: 0;
    border-color: #d8e3e2;
    grid-template-columns: 1fr 1fr;
  }

  .doctor-price-old,
  .doctor-price-current {
    min-height: 78px;
    align-items: center;
    text-align: center;
    padding: 0.65rem;
  }

  .doctor-price-current strong {
    font-size: 1.16rem;
  }

  .doctor-address-row {
    min-height: 52px;
    justify-content: flex-start;
    padding: 0.9rem 1.05rem;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
  }

  .doctor-address-row span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .doctor-schedule-area {
    padding: 1.15rem 1.05rem 1.2rem;
  }

  .doctor-schedule-header {
    display: block;
    margin-bottom: 1rem;
  }

  .doctor-schedule-header h3 {
    font-size: 0.9rem;
  }

  .doctor-schedule-header p {
    font-size: 0.78rem;
    margin-bottom: 0.8rem;
  }

  .doctor-date-picker {
    width: 100%;
    display: flex;
  }

  .doctor-date-input {
    width: 100%;
    min-height: 38px;
    height: 38px;
    font-size: 0.82rem;
  }

  .doctor-period {
    margin-top: 1.15rem;
  }

  .doctor-period-title {
    font-size: 0.7rem;
    margin-bottom: 0.55rem;
  }

  .doctor-times-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .doctor-times-grid button {
    min-height: 38px;
    border-radius: 11px;
    font-size: 0.8rem;
  }

  .flatpickr-calendar {
    width: 100% !important;
    max-width: 100% !important;
  }

  .flatpickr-day {
    height: 34px !important;
    line-height: 34px !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 768px) {
  .doctor-price-action-area {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .doctor-listing-container {
    max-width: 360px;
  }

  .doctor-listing-title {
    font-size: 1.35rem;
  }

  .doctor-card-main {
    padding: 0.95rem 0.95rem 0;
  }

  .doctor-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  .doctor-name-row h2 {
    font-size: 0.96rem;
  }

  .doctor-specialty {
    font-size: 0.8rem;
  }

  .doctor-price-card {
    width: calc(100% + 1.9rem);
    margin-left: -0.95rem;
    margin-right: -0.95rem;
  }

  .doctor-address-row {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .doctor-schedule-area {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .doctor-times-grid {
    gap: 0.48rem;
  }

  .doctor-times-grid button {
    min-height: 36px;
    font-size: 0.78rem;
  }
}