/* =============================================
   CONTACTOS.CSS — Voz do Bairro
   Layout Responsivo Completo
   ============================================= */

/* =============================================
   BASE
   ============================================= */

html, body {
  height: auto;
}

/* Link ativo no header */
.nav-ativo {
  color: rgba(0, 0, 79, 0.9) !important;
  border-bottom: 2px solid rgba(0, 0, 79, 0.8);
  padding-bottom: 2px;
}

/* =============================================
   HERO
   ============================================= */

.contacto-hero {
  background: linear-gradient(135deg, rgb(0, 0, 79), rgb(0, 40, 110));
  padding: 160px 40px 80px;
  text-align: center;
}

.contacto-hero h1 {
  font-size: 50px;
  font-weight: 900;
  font-family: Montserrat, sans-serif;
  color: #ffffff;
  margin-bottom: 16px;
}

.contacto-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =============================================
   LAYOUT PRINCIPAL (Desktop / Laptop)
   ============================================= */

.contacto-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
  padding: 70px 80px 80px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

/* =============================================
   FORMULÁRIO
   ============================================= */

.contacto-form-bloco h2 {
  font-size: 22px;
  font-weight: 800;
  font-family: Montserrat, sans-serif;
  color: #111827;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacto-form-bloco h2 i {
  color: rgb(0, 0, 79);
  font-size: 20px;
  transition: 0.4s;
}

.contacto-form-sub {
  font-size: 14px;
  color: #9ca3af;
  font-family: Montserrat, sans-serif;
  margin-bottom: 30px;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cf-grupo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-grupo label {
  font-size: 13px;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  color: #374151;
}

.cf-grupo input,
.cf-grupo select,
.cf-grupo textarea {
  padding: 13px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: Montserrat, sans-serif;
  color: #374151;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.cf-grupo input:focus,
.cf-grupo select:focus,
.cf-grupo textarea:focus {
  border-color: rgba(0, 0, 79, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 0, 79, 0.06);
}

.cf-grupo textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.cf-btn-enviar {
  background: rgb(0, 0, 79);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.4s all;
  width: 100%;
}

.cf-btn-enviar:hover {
  background: rgba(0, 0, 79, 0.88);
  transform: translateY(-2px);
}

.cf-btn-enviar i {
  transition: 0.4s;
}

.cf-btn-enviar:hover i {
  transform: rotate(45deg);
}

/* Mensagem de sucesso */

.cf-sucesso {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 40px;
  text-align: center;
  border: 1px solid #d1fae5;
  border-radius: 14px;
  background: #f0fdf4;
}

.cf-sucesso i {
  font-size: 54px;
  color: #22c55e;
}

.cf-sucesso h3 {
  font-size: 22px;
  font-weight: 800;
  font-family: Montserrat, sans-serif;
  color: #111827;
  margin: 0;
}

.cf-sucesso p {
  font-size: 15px;
  color: #6b7280;
  font-family: Montserrat, sans-serif;
  margin: 0;
}

.cf-btn-voltar {
  margin-top: 8px;
  background: rgb(0, 0, 79);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cf-btn-voltar:hover {
  background: rgba(0, 0, 79, 0.85);
}

/* =============================================
   COLUNA LATERAL
   ============================================= */

.contacto-info-lateral {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ci-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.ci-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 79, 0.08);
}

.ci-icone {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 79, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgb(0, 0, 79);
  flex-shrink: 0;
}

.ci-card h4 {
  font-size: 12px;
  font-weight: 800;
  font-family: Montserrat, sans-serif;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 4px 0;
}

.ci-card span {
  font-size: 14px;
  font-weight: 600;
  font-family: Montserrat, sans-serif;
  color: #374151;
}

/* =============================================
   RESPONSIVO — TABLET
   ============================================= */

@media (max-width: 1024px) {

  .contacto-main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 40px;
  }

}

/* =============================================
   RESPONSIVO — MOBILE
   ============================================= */

@media (max-width: 640px) {

  .contacto-hero {
    padding: 130px 20px 60px;
  }

  .contacto-hero h1 {
    font-size: 34px;
  }

  .contacto-hero p {
    font-size: 15px;
  }

  .contacto-main {
    padding: 40px 20px 60px;
    gap: 30px;
  }

  .cf-grupo input,
  .cf-grupo select,
  .cf-grupo textarea {
    font-size: 16px; /* evita zoom iOS */
  }

  .ci-card {
    padding: 16px;
  }

}

/* =============================================
   RESPONSIVO — EXTRA SMALL
   ============================================= */

@media (max-width: 400px) {

  .contacto-hero h1 {
    font-size: 28px;
  }

  .cf-btn-enviar {
    font-size: 14px;
    padding: 12px 18px;
  }

}