/* Global Styling */
body {
  background-color: #f9f9f9; /* Neutral background color */
  color: #333; /* Darker text for better contrast */
  font-size: 16px; /* Base font size for readability */
  line-height: 1.6; /* Improved line height for readability */
  font-family: 'Poppins', sans-serif; /* Consistent modern font */
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Section Styling */
.contact_section {
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-out forwards;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Fade-in Animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Heading */
.section_heading h2 {
  margin-top: 10vh; /* Adjusted top margin for better placement */
  font-size: 3.5rem; /* Larger font for prominent headings */
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section_heading p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 40px;
  animation: fadeInUp 1.5s ease-out;
}

/* Contact Form Styling */
.contact_form {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  box-sizing: border-box; /* Ensures padding doesn't overflow */
}

.contact_form .form_group {
  margin-bottom: 25px;
  width: 100%;
}

.contact_form .form_control {
  width: 95%;
  padding: 16px 24px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact_form .form_control:focus {
  border-color: #007bff;
  transform: scale(1.02);
  outline: none;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); /* Added box shadow on focus */
}

.contact_form .btn_primary {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact_form .btn_primary:hover {
  background: linear-gradient(90deg, #0056b3, #003c8f);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
}

/* Map Styling */
.map_container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 700px;
  margin-top: 30px;
}

.map_container iframe {
  border: none;
  width: 100%;
  height: 350px;
  transition: transform 0.3s ease;
}

.map_container iframe:hover {
  transform: scale(1.05);
}

/* Background Enhancements */
.contact_section::before,
.contact_section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.contact_section::before {
  top: -50px;
  left: -50px;
}

.contact_section::after {
  bottom: -50px;
  right: -50px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section_heading h2 {
    font-size: 2.5rem; /* Slightly smaller heading for mobile */
  }
  .section_heading p {
    font-size: 1rem; /* Adjust paragraph size for mobile */
  }

  .contact_form {
    padding: 25px; /* Reduced padding for mobile */
  }

  .map_container iframe {
    height: 250px; /* Smaller map height for mobile */
  }
  .contact_form .form_control {
    width: 85%;
    padding: 16px 24px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
}
.toast {
  position: fixed;
  top: 10%;
  right: 10%;
  z-index: 9999;
  padding: 15px 20px;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.5s ease-out;
}

.toast.success {
  background-color: #4caf50;
}

.toast.error {
  background-color: #f44336;
}

@keyframes slideIn {
  from {
      transform: translateY(-100%);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}
@media (max-width: 768px) {
    .section_heading h2 {
        font-size: 2.5rem; /* Slightly smaller heading for mobile */
    }
    .section_heading p {
        font-size: 1rem; /* Adjust paragraph size for mobile */
    }

    .contact_form {
        padding: 25px; /* Reduced padding for mobile */
    }

    .map_container iframe {
        height: 250px; /* Smaller map height for mobile */
    }
    .contact_form .form_control {
        width: 85%;
        padding: 16px 24px;
        font-size: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }
}
