/* General Reset */
/* Body and Main Layout */
body {
  background-color: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Full viewport height */
}

main {
  flex: 1; /* Makes the main content take up available space */
}

/* Footer positioning */
#footer-placeholder {
  margin-top: auto; /* Pushes the footer to the bottom */
}

/* Contact Section */
.contact {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #00aaff, #0055ff);
  color: #fff;
  animation: fadeIn 1.5s ease-in-out;
}

.contact h1 {
  font-size: 3rem;
}

/* Main Flex Container */
.form-map-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  gap: 40px;
  margin: 50px auto;
  padding: 0 20px;
  max-width: 1200px;
}

/* Contact Form Styling */
.form-container {
  flex: 1;
  max-width: 500px;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

form h2 {
  margin-bottom: 20px;
  color: #0078ff;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  width: 100%;
  background: #00aaff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #0055ff;
}

/* Contact Details & Map */
.map-details-container {
  flex: 1;
  max-width: 500px;
}

.contact-details {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-details h2 {
  margin-bottom: 15px;
  color: #0078ff;
}

.contact-details ul {
  list-style: none;
  line-height: 2;
}

#map-container {
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#map {
  width: 100%;
  height: 100%;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .form-map-container {
    flex-direction: column;
    align-items: center;
  }

  .form-container,
  .map-details-container {
    width: 100%;
    max-width: 90%;
  }
}
