/* contact page styles */

.contact-hero {
  background-image: url('/static/img/hero/page-contato.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Overlay for better text readability */
  z-index: 1;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
}

.form-label {
  font-weight: 600;
  color: #333;
}

.field-error {
  font-style: italic;
  color: var(--text-dark);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.contact-form-wrapper {
  position: relative;
  z-index: 2;
  color: white;
}

#contact-form {
  max-width: 720px;
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.1);
}

.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0,0,0,0.06);
  transition: 
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}


.contact-card:hover {
  transform: translateY(-6px);
  background-color: var(--primary);
  box-shadow: 0 30px 70px rgba(0,0,0,0.15);
}

.contact-card:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.05)
  );
  pointer-events: none;
}

.contact-card:hover h5,
.contact-card:hover p,
.contact-card:hover a {
  color: #fff;
}

.contact-card h5 {
  font-size: 1.25rem;
  color: #333;
  margin: 1rem 0 0.5rem 0;
}

.contact-card p {
  font-size: 1.15rem;
  color: #333;
  margin: 0;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 179, 164, 0.08);
  color: var(--primary);
  transition: all .4s ease;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all .4s ease;
}

.contact-card:hover .contact-icon {
  background: rgba(255,255,255,0.15);
  transform: rotate(-8deg) scale(1.1);
}

.contact-card:hover .contact-icon svg {
  stroke: #fff;
}

.site-toast {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 1100;
}

@media (max-width: 767px) {
  .site-toast {
    top: 70px;
  }
  .contact-methods-grid {
    grid-template-columns: 1fr;
  }
}