* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-image: url("/assets/contact.jpg");
  background-color: #083b5d;
  color: white;
  padding: 5px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

.contact-container {
  text-align: center;
  width: 100%;
  max-width: 1200px;
}

.contact-container h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.contact-container p {
  font-size: 1em;
  margin-bottom: 30px;
  color: #ccc;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  background: white;
  color: #000;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 300px;
  text-align: left;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.icon {
  position: absolute;
  top: -25px;
  left: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width: 24px;
}

.card h2 {
  font-size: 1.2em;
  margin: 40px 0 10px;
}

.card p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 20px;
}

.card a {
  display: inline-block;
  text-decoration: none;
  color: #d30000;
  font-weight: bold;
  margin-top: 10px;
  transition: color 0.2s ease;
}

.card a:hover {
  color: #2b4f04;
}

.contact-form-container {
  text-align: left;
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  padding: 20px;
  margin: 0 auto; /* Center-align the form */
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(50px);
  opacity: 0;
  animation: slideIn 1s ease-out forwards;
}

.contact-form h2 {
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1.1em;
}

textarea {
  resize: none;
}

.submit-btn {
  background-color: #d30000;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 1.1em;
  width: 100%;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #b00000;
}

.submit-btn:active {
  animation: buttonClick 0.3s ease-out;
}

@keyframes slideIn {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes buttonClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.5);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-form-container {
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

    .form-group input,
    .form-group textarea {
      font-size: 1em;
    }

    .submit-btn {
      font-size: 1em;
      padding: 10px 16px;
    }
  }

  @media (max-width: 480px) {
    .contact-container h1 {
      font-size: 2em;
    }

    .form-group input,
    .form-group textarea {
      font-size: 0.9em;
      padding: 10px;
    }

    .submit-btn {
      font-size: 0.9em;
      padding: 8px 14px;
    }
  }
}
