.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
}

.contact-image {
  flex: 1;
  max-width: 350px;
}

.contact-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

.contact-form {
  flex: 2;
  min-width: 300px;
  background: #1c1c1c;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
  color: #fff;
}

.contact-form h2 {
  margin-top: 0;
  color: #ff4b2b;
}

.contact-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  background: #333;
  border: 1px solid #555;
  border-radius: 5px;
  color: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  margin-top: 20px;
  padding: 12px 20px;
  border: none;
  background: #ff4b2b;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #e03b1e;
}

/* Flash messages */
.flash {
  text-align: center;
  padding: 15px;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 6px;
  font-weight: bold;
  animation: fadeOut 0.5s ease 3s forwards;
}

.flash.success {
  background-color: #28a745;
  color: #fff;
}

.flash.error {
  background-color: #dc3545;
  color: #fff;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .contact-image,
  .contact-form {
    width: 90%;
  }

  .contact-image img {
    height: auto;
  }
}
