h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
}

H2,
h3 {
  color: #001A33;
}

h4,
p {
  color: black;
}

.contact-hero h1 {
  padding-top: 150px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #001A33;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.contact-accent {
  color: #00B4D8;
  background: #00B4D8;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-hero p {
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
  line-height: 1.6;
}

/* Layout da Grelha */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  align-items: start;
}

/* Coluna de Informações */
.contact-info h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: #333;
  border-bottom: 2px solid var(--primary, #0056b3);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.info-item i {
  font-size: 1.25rem;
  color: var(--primary, #0056b3);
  margin-right: 1.2rem;
  margin-top: 0.25rem;
  width: 24px;
  text-align: center;
}

.info-content h4 {
  margin-bottom: 0.5rem;
  color: #222;
  font-weight: 600;
  font-size: 1.1rem;
}

.info-content p,
.info-content a {
  color: #666;
  text-decoration: none;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

.info-content a:hover {
  color: var(--primary, #0056b3);
  text-decoration: underline;
}

/* Wrapper do Formulário */
.contact-form-wrapper {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.contact-form-wrapper h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
}

/* Estilos do Formulário */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary, #0056b3);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

.contact-form-wrapper button[type="submit"] {
  width: 100%;
  cursor: pointer;
  margin-top: 0.5rem;
}

/* Mapa */
.contact-map {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 250px;
  width: 100%;
  border: 1px solid #eee;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Validação Erros */
.error-text {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  display: block;
}

.input-error {
  border-color: #dc3545 !important;
  background-color: #fff8f8 !important;
}

.input-error:focus {
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
}

@media (max-width: 768px) {
  .contact-hero h1 {
    padding-top: 150px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    order: 2;
  }

  .contact-form-wrapper {
    order: 1;
  }
}

@media (max-width: 576px) {
  .contact-hero h1 {
    font-size: 2rem;
    padding-top: 130px;
  }

  .info-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .info-item i {
    font-size: 1.2rem;
  }

  .contact-form-wrapper h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 540px) {
  .contact-hero {
    padding: 2rem 0;
  }

  .contact-hero h1 {
    font-size: 1.85rem;
  }

  .contact-form .form-group {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-hero h1 {
    font-size: 1.6rem;
    padding-top: 120px;
  }

  .info-content h4 {
    font-size: 1rem;
  }

  .info-content p,
  .info-content a {
    font-size: 0.95rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .contact-form-wrapper h3 {
    font-size: 1.3rem;
  }

  .map-container {
    height: 200px;
  }
}