/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====== BODY ====== */
body {
  font-family: 'Montserrat', sans-serif;
  background: #383636; /* mesmo fundo do index */
  color: #fff;
  overflow-x: hidden;
}

/* ====== NAVBAR (MESMO DO INDEX) ====== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.90);
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

.navbar-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar-logo {
  height: 55px;
}

/* LINKS */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.navbar-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.navbar-links a:hover {
  color: #ffc400;
}

/* BOTÕES DE LOGIN */
.login-btn {
  padding: 8px 16px;
  background: #ffc400;
  color: #000;
  border-radius: 8px;
  font-weight: 600;
}

.logout-btn {
  padding: 8px 16px;
  background: #ff3b3b;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* BANDEIRA */
#flagIcon {
  width: 32px;
  height: 22px;
  border-radius: 4px;
}

/* ====== CONTEÚDO ====== */

.consultas-container {
  display: flex;
  margin-top: 120px; /* descola do navbar */
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  gap: 40px;
  padding: 40px 20px;
}

.consultas-info {
  flex: 1;
  background: #111;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.consultas-info h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ffc400;
}

.consultas-info p {
  margin-bottom: 20px;
  color: #ddd;
}

/* FORM */
.consulta-form label {
  font-weight: 600;
  margin-bottom: 5px;
}

.consulta-form input,
.consulta-form select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  margin-bottom: 18px;
  background: #222;
  color: white;
  font-size: 1rem;
}

.consulta-form input:focus,
.consulta-form select:focus {
  outline: 2px solid #ffc400;
}

.btn-agendar {
  background: #ffc400;
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.btn-agendar:hover {
  background: #ffdd55;
}

/* ====== IMAGEM ====== */
.consultas-img {
  flex: 1;
}

.consultas-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ====== FOOTER ====== */
.footer {
  margin-top: 50px;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  border-top: 1px solid #222;
}

.footer-logo {
  height: 50px;
}

.octotech-logo {
  height: 35px;
  margin-right: 10px;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 900px) {
  .consultas-container {
    flex-direction: column;
  }
  
  .consultas-img {
    order: -1;
    height: 300px;
  }
}

/* NAVBAR FIXA */
.navbar {
  position: fixed;      /* fixa no topo */
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 9999;        /* garante que fique acima de tudo */
  transition: all 0.3s ease;
  padding: 1rem 2rem;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  height: 50px;
  transition: all 0.3s ease;
}

/* Links da navbar */
.navbar-links {
  display: flex;
  gap: 1.5rem;
}

.navbar-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-links a:hover {
  color: #ffcc00;
}

/* Responsivo - mobile: transforma links em menu hamburguer */
@media (max-width: 768px) {
  .navbar-links {
    display: none; /* vamos ativar via JS */
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }
}


/* Estilo exclusivo para inputs readonly (ex: email do usuário) */
.consulta-form input[readonly] {
  background: #111 !important;   /* mais escuro que os outros */
  color: #bbb !important;        /* texto acinzentado para indicar read-only */
  cursor: not-allowed;
  border: 1px solid #222;
  opacity: 1;                    /* remove o clareamento padrão do navegador */
}

/* Ao focar, também manter escuro */
.consulta-form input[readonly]:focus {
  outline: none !important;
  background: #111 !important;
  border-color: #333;
}

/* ===== MENU HAMBÚRGUER ===== */
.hamburger {
  width: 32px;
  height: 24px;
  display: none; /* oculto no PC */
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger div {
  width: 100%;
  height: 4px;
  background: white;
  border-radius: 5px;
}

/* Esconde menu no mobile até abrir */
@media (max-width: 768px) {

  .navbar {
    padding: 10px 20px;
  }

  .navbar-logo {
    height: 45px;
  }

  #hamburger {
    display: flex;
  }

  .navbar-links {
    position: absolute;
    top: 75px;
    right: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    gap: 25px;
    padding: 30px 0;
    display: none;
    text-align: center;
    border-bottom: 2px solid #ffc400;
  }

  .navbar-links a,
  .navbar-links button {
    font-size: 1.2rem;
  }

  /* quando ativado pelo JS */
  .navbar-links.active {
    display: flex;
  }
}

/* Botão voltar */
.btn-voltar {
  background: none;
  border: none;
  color: #ffc400;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 15px;
}
