
/* contact General Page Styling */
/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Contact Page Layout */
.contact-page {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Page Headings */
h2, h3 {
  text-align: center;
}

/* Contact Section Layout */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

/* Contact Info (Left Side) */
.contact-info {
  flex: 1;
  min-width: 300px;
  background: #f5f5f5;
  padding: 40px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-info p {
  font-size: 16px;
  margin: 10px 0;
}

.contact-info a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Contact Form (Right Side) */
.contact-form {
  flex: 1;
  min-width: 300px;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  font-weight: bold;
}

/* Input & Textarea Styling */
.contact-form input, 
.contact-form textarea {
  width: 95%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.contact-form textarea {
  resize: vertical;
}

/* Submit Button */
.contact-form button {
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #0056b3;
}

/* Google Map */
.map-container {
  width: 100%;
  margin-top: 30px;
  text-align: center;
  margin-bottom: 50px; /* Extra space to prevent footer overlap */
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border-radius: 5px;
}

/* Map Button */
.map-btn {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  padding: 10px 12px;
  background: #1b9938;
  color: white;
  text-decoration: none;
  font-size: 13px;
  border-radius: 5px;
  transition: background 0.3s;
}

.map-btn:hover {
  background: #218838;
}

/* Ensure no horizontal scrolling */
html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Mobile Responsive Design */
@media (max-width: 500px) {
  .contact-container {
    flex-direction: column;
    align-items: center;   
    width: 96%;
    max-width: 100vw;
    overflow: hidden;
    padding: 2vw;
  }

  .contact-info, 
  .contact-form {
    width: 100%;
    min-width: unset; /* Allow flexibility */
    padding: 4vw;    
    font-size: 1rem;
    box-sizing: border-box; /* Prevent extra width calculation */
  }

  .contact-info p {
    font-size: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
    padding: 2vw;
    width: 95%; /* Ensures it does not overflow */
  }

  .contact-form button {
    font-size: 1rem;
    padding: 3vw;
    width: 100%; /* Button adjusts to full width */
  }

  .map-container {
    width: 100%;
    text-align: center;
  }

  .map-container iframe {
    width: 100%;
    height: 40vw; /* Adjust height proportionally */
    max-width: 100vw;
  }

  .map-btn {
    font-size: 0.8rem;
    padding: 2vw 3vw;
  }
}

