html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-color: white;
  margin-bottom: 60px;
}

/* Seção de serviços */
#services-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 50px 0;
  gap: 30px;
}

#services-text {
  width: 40%;
}

#services-text h1 {
  font-size: 24px;
  color: #333;
  font-weight: bold;
}

#services-text p {
  font-size: 16px;
  color: #666;
  margin: 10px 0;
}

/* Imagem na seção de serviços */
#services-image {
  width: 45%;
  display: flex;
  justify-content: center;
}

#services-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Barra de busca */
#services-text input {
  width: 100%;
  max-width: 500px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Seção de categorias */
#categories-header {
  text-align: center;
  margin: 40px 0 20px;
}

#categories-header h2 {
  font-size: 28px;
  color: #222;
  font-weight: bold;
}

#categories-header p {
  font-size: 18px;
  color: #555;
}

/* Botões de categoria em grid */
#service-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  justify-items: center;
  align-items: start;
  padding: 30px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Estilo dos botões de categoria */
.categoria {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  cursor: pointer;
  width: 120px;
  height: 120px;
  overflow: hidden;
  padding: 10px;
  background: white;
  border: none;
  border-radius: 10px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.categoria:hover {
  transform: scale(1.1);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

.categoria img {
  width: 50px;
  height: auto;
  margin-bottom: 8px;
}

.categoria span {
  display: block;
  font-size: 16px;
  color: #333;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  width: 100%;
  line-height: 1.1;
  overflow-wrap: break-word;
  padding: 0 2px;
}

/* Link da categoria */
.categoria-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.categoria-link:focus {
  outline: none;
}

/* Painel de serviços */
.lista-servicos {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  max-width: 220px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px 0;
  list-style: none;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  max-height: 300px;
  overflow-y: auto;
}

/* ESSA LINHA É FUNDAMENTAL! */
.categoria:hover .lista-servicos,
.categoria:focus-within .lista-servicos {
  display: block;
}

/* Itens do painel */
.lista-servicos li {
  padding: 8px 16px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.lista-servicos li:last-child {
  border-bottom: none;
}

.lista-servicos li:hover {
  background-color: #f0f0f0;
}

/* Seção "Como Funciona" */
#como-funciona {
  text-align: center;
  margin: 50px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  max-width: 1100px;
}

#como-funciona h2 {
  font-size: 30px;
  color: #222;
  font-weight: bold;
  margin-bottom: 10px;
}

#como-funciona p {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

/* Estilo dos passos */
#passos {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.passo {
  width: 250px;
  text-align: center;
}

.passo-imagem {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.passo-imagem img {
  max-width: 100px;
  height: auto;
}

.passo h3 {
  font-size: 20px;
  color: #333;
  font-weight: bold;
}

.passo p {
  font-size: 16px;
  color: #666;
}

/* Adaptável para dispositivos móveis */
@media (max-width: 1200px) {
  #service-buttons {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 900px) {
  #service-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  #passos {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  #service-buttons {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
  }
  .categoria {
    width: 100px;
    height: 100px;
    padding: 6px;
  }
  .categoria img {
    width: 36px;
    margin-bottom: 6px;
  }
  .categoria span {
    font-size: 13px;
    padding: 0 2px;
  }
}


@media (max-width: 480px) {
  #service-buttons {
    grid-template-columns: repeat(2, 1fr); /* Agora são 2 colunas */
  }
  .categoria {
    width: 80px;
    height: 80px;
    padding: 3px;
  }
  .categoria img {
    width: 28px;
    margin-bottom: 4px;
  }
  .categoria span {
    font-size: 11px;
    padding: 0 1px;
  }
}

/* Seção "Quer Oferecer Seus Serviços?" */
#oferecer-servicos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  max-width: 1100px;
  margin: 50px auto;
}

.imagem-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagem-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.texto-container {
  flex: 1;
  text-align: left;
}

.texto-container h2 {
  font-size: 28px;
  color: #222;
  font-weight: bold;
  margin-bottom: 10px;
}

.texto-container p {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

.botao-registrar {
  display: inline-block;
  padding: 12px 25px;
  font-size: 18px;
  color: #000000;
  background-color: #1a83fc;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.botao-registrar:hover {
  background-color: #000fe6;
}

@media (max-width: 768px) {
  #oferecer-servicos {
    flex-direction: column;
    text-align: center;
  }

  .imagem-container, .texto-container {
    width: 100%;
  }
}

/* sdlkfjsdlkf*/

.consulta-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background-color: #fff;
    font-family: 'Segoe UI', sans-serif;
}

.text-container {
    flex: 1 1 50%;
    max-width: 600px;
}

.text-container h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.text-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin-bottom: 20px;
}

.search-container input {
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
    font-size: 1rem;
}

.img-profissionais img {
    max-width: 300px;
    width: 100%;
    height: auto;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* melhora no iOS */
}

 /* Botão flutuante com IA */
    #chat-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #007bff;
        color: white;
        padding: 14px 18px;
        border-radius: 50px;
        cursor: pointer;
        font-weight: bold;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 9999;
        transition: 0.2s;
    }
    #chat-button:hover {
        background: #0056b3;
    }

    /* Caixa de chat */
    #chat-box {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 330px;
        height: 410px;
        background: white;
        border-radius: 12px;
        display: none;
        flex-direction: column;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        z-index: 9999;
    }

    #chat-header {
        background: #007bff;
        color: white;
        padding: 12px;
        border-radius: 12px 12px 0 0;
        font-size: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #chat-close {
        cursor: pointer;
        font-size: 22px;
        margin-right: 5px;
    }

    #chat-messages {
        flex: 1;
        padding: 10px;
        overflow-y: auto;
        font-size: 14px;
    }

    .message-user {
        text-align: right;
        margin: 8px 0;
        color: white;
        background: #007bff;
        padding: 8px 10px;
        border-radius: 10px;
        display: inline-block;
        max-width: 80%;
        float: right;
        clear: both;
    }

    .message-bot {
        margin: 8px 0;
        background: #eaeaea;
        padding: 8px 10px;
        border-radius: 10px;
        display: inline-block;
        max-width: 80%;
        float: left;
        clear: both;
    }

    #chat-input-area {
        display: flex;
        border-top: 1px solid #ccc;
    }

    #chat-input {
        flex: 1;
        padding: 10px;
        border: none;
        outline: none;
    }

    #chat-send {
        width: 80px;
        border: none;
        background: #007bff;
        color: white;
        cursor: pointer;
    }.message-bot {
    white-space: normal; /* aceita quebras */
    line-height: 1.5;    /* texto mais confortável */
}
.message-user {
    white-space: normal;
    line-height: 1.5;
}.message-bot {
    white-space: pre-line;
}

/* Logo responsiva */
.logo-home {
    width: 120px;      /* tamanho ideal inicial */
    max-width: 100%;   /* nunca ultrapassa o container */
    height: auto;      /* mantém proporção */
    margin-bottom: 20px;
}

/* Telas médias */
@media (max-width: 768px) {
    .logo-home {
        width: 90px;
    }
}

/* Celulares */
@media (max-width: 480px) {
    .logo-home {
        width: 70px;
    }
}
