@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Nunito:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ════════════════════════════════════════════════════════
   TOKENS
════════════════════════════════════════════════════════ */
:root {
  --azul-primario: #1A6FD4;
  --azul-claro:    #E6F1FB;
  --azul-medio:    #185FA5;
  --azul-borda:    #B5D4F4;
  --verde-badge:   #E1F5EE;
  --verde-texto:   #0F6E56;
  --surface:       #F7FAFF;
  --texto-principal: #1a1a1a;
  --texto-secundario: #555;
  --texto-fraco: #888;

  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
}

/* ════════════════════════════════════════════════════════
   RESET
════════════════════════════════════════════════════════ */
*, *::before, *::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* ════════════════════════════════════════════════════════
   TIPOGRAFIA BASE
════════════════════════════════════════════════════════ */
h1, h2, h3, li, strong { font-family: "Manrope", "Nunito", sans-serif; }
p, a, label, input, select, textarea, button { font-family: "Inter", "Nunito", sans-serif; }

h1 { font-size: 2rem;    font-weight: 800; line-height: 1.2; color: var(--texto-principal); }
h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--texto-principal); }
h3 { font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
p  { font-size: 0.95rem; line-height: 1.7; color: var(--texto-secundario); }

a { text-decoration: none; color: var(--texto-principal); cursor: pointer; }
option, span { cursor: pointer; }

/* ════════════════════════════════════════════════════════
   HEADER PADRÃO (novo padrão do site)
════════════════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  animation: fadeIn 0.4s ease;
}

.wrapper header {
  position: static;
  width: auto;
  animation: none;
  background: none;
  box-shadow: none;
  z-index: auto;
}

.top-header {
  padding: 2px 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.top-header .interface {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.interface {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 4%;
}

.logotipo img {
  width: 120px;
  transition: 0.3s;
}

.logotipo img:hover {
  transform: scale(1.08) rotate(-2deg);
}

.btn-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin-left: 10px;
  border-radius: 50%;
  border: 1.5px solid #016366;
  color: #016366;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-social a:hover {
  background: #00bfff;
  color: #fff;
  border-color: #00bfff;
  transform: translateY(-3px);
}

.bottom-header {
  background: rgba(1, 99, 102, 0.6);
  padding-bottom: 0;
}

.bottom-header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

.bottom-header nav ul li {
  position: relative;
}

.bottom-header nav ul li a {
  display: block;
  padding: 14px 22px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: 0.3s;
}

.bottom-header nav ul li a:hover {
  background: #00bfff;
  transform: translateY(-2px);
}

.area-usuario {
  display: flex;
  align-items: center;
  gap: 10px;
}

.area-usuario a {
  padding: 7px 18px;
  background: #016366;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}

.area-usuario a:hover {
  background: #00bfff;
  transform: translateY(-2px);
}

#usuarioLogado {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #016366;
  font-weight: 600;
}

#usuarioLogado button {
  padding: 5px 14px;
  border: none;
  background: #e53935;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.3s;
}

#usuarioLogado button:hover {
  background: #c62828;
}
#nomeUsuario a {
  background: transparent !important;
  padding: 0 !important;
  color: #016366 !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#nomeUsuario a:hover {
  background: transparent !important;
  transform: none !important;
  color: #00bfff !important;
}

/* ════════════════════════════════════════════════════════
   MAIN / HERO
════════════════════════════════════════════════════════ */
main {
  margin: 0 var(--sp-8);
  padding-top: 120px;
  padding-bottom: var(--sp-10);
}

.agendamento {
  margin-top: var(--sp-6);
  max-width: 560px;
}

.agendamento h1 { margin-bottom: var(--sp-2); }

.agendamento > p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto-secundario);
}

/* ════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL (2 colunas)
════════════════════════════════════════════════════════ */
.quebra {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: row;
  gap: var(--sp-8);
  align-items: flex-start;
}

.coluna-esquerda {
  flex-shrink: 0;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

aside {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════
   CALENDÁRIO
════════════════════════════════════════════════════════ */
.wrapper {
  width: 100%;
  background: var(--surface);
  border: 0.5px solid var(--azul-borda);
  border-radius: 12px;
  padding: var(--sp-3);
}

.wrapper header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-2);
}

.icons { display: flex; gap: var(--sp-1); }

.wrapper header .icons span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  transition: background 0.15s;
}

.wrapper header .icons span:hover { background: #e8edf5; }
.wrapper header .current-date { font-size: 1.1rem; font-weight: 800; }

.calendar { margin-top: var(--sp-1); }

.calendar ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  text-align: center;
}

.calendar .days { margin-bottom: var(--sp-1); }

.calendar li {
  color: #333;
  width: calc(100% / 7);
  font-size: 14px;
}

.calendar .weeks li {
  font-weight: 600;
  font-size: 12px;
  color: var(--texto-fraco);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: default;
  margin-bottom: var(--sp-1);
}

.calendar .days li {
  z-index: 1;
  cursor: pointer;
  position: relative;
  margin-top: var(--sp-2);
}

.days li.inactive { color: #bbb; }
.days li.active   { color: #fff; font-weight: 700; }

.days li::before {
  position: absolute;
  content: "";
  left: 50%; top: 50%;
  height: 36px; width: 36px;
  z-index: -1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.15s;
}

.days li.active::before             { background: var(--azul-primario); }
.days li:not(.active):hover::before { background: #e8edf5; }

.material-symbols-rounded img { height: 15px; display: block; }

/* ════════════════════════════════════════════════════════
   ESPECIALIDADE
════════════════════════════════════════════════════════ */
.especialidade {
  width: 100%;
  background-color: var(--surface);
  border: 0.5px solid var(--azul-borda);
  border-radius: 12px;
  padding: var(--sp-3);
}

.especialidade h2 {
  margin-bottom: var(--sp-3);
  font-size: 1rem;
  font-weight: 700;
  color: var(--texto-principal);
}

optgroup {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

optgroup label {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: "Inter";
  font-size: 0.95rem;
  color: var(--texto-principal);
  cursor: pointer;
}

optgroup input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--azul-primario);
  cursor: pointer;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   CARD DE PROFISSIONAL
════════════════════════════════════════════════════════ */
.medico {
  display: flex;
  flex-direction: row;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface);
  border: 0.5px solid var(--azul-borda);
  border-radius: 16px;
  margin-bottom: var(--sp-4);
  min-width: 0;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.medico:hover {
  border-color: var(--azul-primario);
  box-shadow: 0 4px 18px rgba(26, 111, 212, 0.12);
  transform: translateY(-2px);
}

.medico.selecionado {
  border-color: var(--azul-primario) !important;
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.15) !important;
}

.medico .badge-selecionado {
  display: none;
  background: var(--azul-primario);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
  font-family: "Inter", sans-serif;
}

.medico.selecionado .badge-selecionado { display: inline; }

.medico.oculto { display: none; }

.quadrado {
  height: 150px; width: 150px;
  min-width: 0;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

.quadrado img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.textos {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-top: var(--sp-1);
}

.ricardo-alinhado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-bottom: var(--sp-1);
}

.textos h2 { font-size: 1.15rem; font-weight: 700; }

.textos > h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azul-medio);
  margin-bottom: var(--sp-1);
}

.textos > p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--texto-secundario);
  margin-bottom: var(--sp-2);
}

.avaliacoes {
  background-color: var(--verde-badge);
  color: var(--verde-texto);
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.avaliacoes img { display: block; width: 14px; height: 14px; }

.avaliacoes p {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--verde-texto);
  line-height: 1;
}

.horarios {
  margin-top: var(--sp-2);
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
}

.horarios p {
  text-align: center;
  padding: 8px 14px;
  border: 1px solid #d0d8e8;
  color: var(--texto-secundario);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
  margin-bottom: 0;
}

.horarios p:hover {
  border-color: var(--azul-primario);
  color: var(--azul-primario);
}

.horarios p.selecionado {
  background-color: var(--azul-primario) !important;
  border-color: var(--azul-primario) !important;
  color: white !important;
}

.instrucao-horario {
  font-size: 0.82rem;
  color: var(--texto-fraco);
  margin-top: 6px;
  font-family: "Inter", sans-serif;
  font-style: italic;
}

/* ════════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════════ */
.sobreposicao-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  margin: 0;
}

.sobreposicao-modal.aberto {
  opacity: 1;
  pointer-events: all;
}

.modal {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  background: var(--surface);
  border: 0.5px solid var(--azul-borda);
  border-radius: 16px;
  padding: var(--sp-4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.25s ease;
}

.modal h2 { font-weight: 700; margin-bottom: var(--sp-4); }

.modal-fechar {
  position: absolute;
  top: 14px; right: 14px;
  background: #f0f4fb;
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  transition: background 0.2s;
  z-index: 10;
}

.modal-fechar:hover { background: #e0e7f5; color: #333; }

.modal-resumo {
  background: var(--azul-claro);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.modal-resumo-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--azul-medio);
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.modal-resumo-item i { font-size: 0.9rem; }

.linha-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: 0;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}

.campo h3 { font-size: 0.85rem; font-weight: 600; color: var(--texto-principal); }

.campo input,
.campo select,
.campo textarea {
  background: #fff;
  border: 1px solid #dde3f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: "Inter";
  color: var(--texto-principal);
  width: 100%;
  transition: border-color 0.2s;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--azul-primario);
}

.campo textarea { resize: vertical; min-height: 110px; }

.campo input.erro,
.campo select.erro,
.campo textarea.erro {
  border-color: #e53935 !important;
}

.erro-msg {
  font-size: 0.78rem;
  color: #e53935;
  font-family: "Inter", sans-serif;
  margin-top: -4px;
}

.rodape-modal {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: var(--sp-1);
}

.botao-finalizar {
  background: linear-gradient(to right, var(--azul-primario), var(--azul-medio));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.botao-finalizar p { color: #fff; font-size: 0.95rem; line-height: 1; margin: 0; }
.botao-finalizar:hover { opacity: 0.88; }

.botao-cancelar {
  background: transparent;
  border: 1px solid #d0d8e8;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--texto-secundario);
  cursor: pointer;
  transition: background 0.2s;
  font-family: "Inter", sans-serif;
}

.botao-cancelar:hover { background: #f0f4fb; }

/* ════════════════════════════════════════════════════════
   STEPPER
════════════════════════════════════════════════════════ */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  margin-top: 8px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #aab2c8;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
}

.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid #d0d8e8;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.3s;
  flex-shrink: 0;
}

.step.done .step-num   { background: #1A6FD4; border-color: #1A6FD4; color: #fff; }
.step.active .step-num { background: #fff; border-color: #1A6FD4; color: #1A6FD4; box-shadow: 0 0 0 3px #E6F1FB; }
.step.active           { color: #1A6FD4; }
.step.done             { color: #1A6FD4; }

.step-line {
  flex: 1;
  height: 2px;
  background: #d0d8e8;
  margin: 0 6px;
  min-width: 18px;
  transition: background 0.3s;
}

.step-line.done { background: #1A6FD4; }

/* ════════════════════════════════════════════════════════
   CALENDÁRIO – SELEÇÃO/ESTADOS
════════════════════════════════════════════════════════ */
.days li.selected::before { background: #016366 !important; }
.days li.selected { color: #fff !important; font-weight: 700; }
.days li.inactive { pointer-events: none; }
.days li.passado { color: #ccc !important; pointer-events: none; cursor: default; }
.days li.passado::before { background: transparent !important; }

/* ════════════════════════════════════════════════════════
   FILTRO DE ESPECIALIDADE
════════════════════════════════════════════════════════ */
.especialidade-filtro-aviso {
  font-size: 0.8rem;
  color: var(--texto-fraco);
  margin-top: 8px;
  font-family: "Inter", sans-serif;
}

/* ════════════════════════════════════════════════════════
   TOAST DE CONFIRMAÇÃO
════════════════════════════════════════════════════════ */
#rc-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: #1a2e1a;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 99999;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1), opacity 0.3s;
  opacity: 0;
  white-space: nowrap;
}

#rc-toast.visivel {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#rc-toast i { font-size: 1.1rem; color: #4ade80; }

/* ════════════════════════════════════════════════════════
   ESTADO VAZIO DE PROFISSIONAIS
════════════════════════════════════════════════════════ */
.sem-medicos {
  display: none;
  text-align: center;
  padding: 32px 16px;
  color: var(--texto-fraco);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  background: var(--surface);
  border: 0.5px dashed var(--azul-borda);
  border-radius: 12px;
  margin-bottom: 16px;
}

.sem-medicos i { font-size: 2rem; color: #c0cadc; display: block; margin-bottom: 8px; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: linear-gradient(135deg, #012f30 0%, #014547 60%, #016366 100%);
  color: rgba(255, 255, 255, 0.85);
  font-family: "Nunito", sans-serif;
}

.footer-interface {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 4%;
}

.footer-topo {
  padding: 70px 0 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-topo .footer-interface {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
}

/* COLUNAS */
.footer-col h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #00bfff;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #00bfff;
  padding-left: 6px;
}

/* BRAND */
.footer-brand img {
  width: 120px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 20px;
}

/* SOCIAL */
.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 191, 255, 0.5);
  color: #00bfff;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
}

.footer-social a:hover {
  background: #00bfff;
  color: #fff;
  border-color: #00bfff;
  transform: translateY(-3px);
}

/* CONTATO */
.footer-contato li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.footer-contato li i {
  color: #00bfff;
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* BOTTOM */
.footer-bottom {
  padding: 20px 0;
}

.footer-bottom .footer-interface {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-heart {
  color: #00bfff;
  font-size: 1rem;
}

/* ════════════════════════════════════════════════════════
   ANIMAÇÕES
════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalIn {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVIDADE
════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  main { margin: 0 var(--sp-5); }
  .quebra { gap: var(--sp-5); }
  .coluna-esquerda { width: 260px; }
  .quadrado { width: 130px; height: 130px; }
}

@media (max-width: 900px) {
  main { margin: 0 var(--sp-4); }
  .quebra { gap: var(--sp-4); margin-top: var(--sp-6); }
  .coluna-esquerda { width: 220px; }
  .quadrado { width: 110px; height: 110px; }
  .medico { padding: var(--sp-2) var(--sp-3); gap: var(--sp-2); }

  .footer-topo .footer-interface {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .quebra { flex-direction: column; gap: var(--sp-5); margin-top: var(--sp-4); }
  main { margin: 0 var(--sp-3); }
  .coluna-esquerda { width: 100%; flex-direction: column; gap: var(--sp-3); }
  .medico { gap: var(--sp-3); padding: var(--sp-3); }
  .quadrado { width: 110px; height: 110px; }
  .horarios { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .horarios p { flex-shrink: 0; }
  .linha-modal { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .footer-topo .footer-interface {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom .footer-interface {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  main { margin: 0 var(--sp-2); }
  .agendamento { margin-top: var(--sp-4); }
  .agendamento h1 { font-size: 1.5rem; }
  .medico { flex-direction: column; gap: var(--sp-3); }
  .quadrado { width: 100%; height: 220px; }
  .quadrado img { width: 100%; border-radius: 10px; }
  .textos { padding-top: 0; }
  .ricardo-alinhado { flex-direction: column; align-items: flex-start; }
  .modal { padding: var(--sp-3); }
  .botao-finalizar { width: 100%; justify-content: center; text-align: center; }
  .rodape-modal { justify-content: stretch; }
}
