/* Wrapper with background */
.contact-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  background-attachment: fixed;
}

/* Card styling */
.contact-card {
  max-width: 600px;
  width: 100%;
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  animation: fadeUp 0.8s ease;
}

/* Glass card for dark theme */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Fade-in animation for glass cards */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

/* Achtergrond pseudo-element */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%) blur(4px) brightness(0.4);
  z-index: -1;
  opacity: 0.9;
  transition: background-image 0.8s ease-in-out;
}

/* Form input base styling */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  color: #fff;
}

/* Different tints per field */
#name {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

#email {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.04);
}

#message {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.03);
}

.input-error {
  color: #ff7b7b;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.form-feedback {
  color: #8ef0c7;
  margin-top: 0.75rem;
}
