@charset "utf-8";

/* estilo.css */


/* ===============================
   SEÇÃO CONTATO
================================ */
.contato {
  width: 100%;
  padding: 40px 20px;
  background-image: url("../image/degrade.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* CONTAINER CENTRAL */
.contato-container {
  max-width: 1320px;
  margin: 0 auto;
  
  display: flex;
  gap: 40px;

  align-items: stretch; /* 🔥 mesma altura */
}

/* CARD BASE */
.contato-card {
  flex: 1;
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

/* MAPA DENTRO DO CARD */
.contato-mapa {
  padding: 0;              /* remove padding duplicado */
  overflow: hidden;
}

.contato-mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 18px;
}


/* ===============================
   MAPA
================================ */
.contato-mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 420px; /* ajuste fino */
  border: none;
}

/* ===============================
   FORMULÁRIO
================================ */
.contato-form {
  padding: 8px;

}

.contato-form form {
  display: flex;
  flex-direction: column;
  height: 100%;

  max-width: 580px;   /* 🔥 ajuste aqui */
  margin: 0 auto;     /* centraliza dentro do card */
}


.contato-form label {
  font-weight: 600;
  margin: 12px 0 6px;
}

.contato-form input,
.contato-form textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.contato-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contato-form button {
  margin-top: auto; /* 🔥 empurra botão para baixo */
  padding: 14px;
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.contato-form button:hover {
  background: #b80000;
}

/* ===============================
   RESPONSIVO
================================ */
@media (max-width: 900px) {
  .contato-container {
    flex-direction: column;
    gap: 24px;
  }

  .contato-mapa iframe {
    min-height: 300px;
  }
}

#alerta {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: #22c55e;
  color: #fff;

  padding: 16px 28px;
  border-radius: 10px;

  font-size: 16px;
  font-weight: 600;

  box-shadow: 0 15px 35px rgba(0,0,0,0.35);

  opacity: 0;
  visibility: hidden;   /* 🔥 ESSENCIAL */
  pointer-events: none;

  z-index: 9999;
  transition: opacity 0.35s ease;
}

#alerta.show {
  opacity: 1;
  visibility: visible; /* 🔥 ESSENCIAL */
}

.contato-form textarea {
  margin-bottom: 16px; /* antes devia estar 24px ou mais */
}

.contato-form button {
  margin-top: 0;
}

@media (min-width: 1024px) {
  .contato-form {
    height: 420px; /* MESMO valor do mapa */
  }
}

@media (min-width: 1024px) {
  .contato-form form {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ===============================
   MANTEM CENTRAL
================================ */
html,
body {
  overflow-x: hidden;
}

#alerta {
  position: fixed;
  inset: 0;
  margin: auto;

  width: max-content;
  height: max-content;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  z-index: 9999;
}

.contato {
  padding-bottom: 80px; /* OK */
  overflow: hidden;     /* 🔥 impede sobra */
}


