.contact-hero {
  background-color: #1a202c; /* Dark background for the top section */
  color: #fff;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.contact-content-wrapper {
  display: flex;
  max-width: 1200px;
  width: 100%;
  gap: 40px; /* Space between info and form sections */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center; /* Center items when wrapped */
}

/* --- NEW Redesigned Contact Info Section --- */
.contact-info-section {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 25px; /* Space between the new cards */
}

.contact-info-section h1 {
  font-size: 3em;
  margin-bottom: 0; /* Adjusted margin */
  color: #edf2f7;
  line-height: 1.2;
}

.contact-info-section .description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 15px; /* Adjusted margin */
  color: #cbd5e0;
  max-width: 500px; /* Prevents text from becoming too wide */
}

.contact-card {
  display: flex;
  align-items: center;
  background-color: #2d3748; /* Same as form for consistency */
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-icon {
  flex-shrink: 0; /* Prevents the icon circle from shrinking */
  width: 50px;
  height: 50px;
  background-color: #667eea; /* Accent color */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
}

.card-icon i {
  color: #fff;
  font-size: 1.4em;
}

.card-content h4 {
  margin: 0 0 5px 0;
  font-size: 1.1em;
  color: #e2e8f0;
}

.card-content p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
  color: #cbd5e0;
}

.card-content a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s ease;
}
.card-content a:hover {
  color: #a7b7fd;
}

/* Contact Form Section */
.contact-form-section {
  flex: 1;
  min-width: 350px; /* Minimum width before wrapping */
  background-color: #2d3748; /* Slightly lighter dark background for the form */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.contact-form-section h2 {
  font-size: 2em;
  margin-bottom: 25px;
  color: #fff;
  text-align: center;
}

.mandatory-message {
  text-align: center;
  font-size: 0.9em;
  color: #cbd5e0;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #4a5568; /* Darker border */
  border-radius: 6px;
  background-color: #4a5568; /* Input background */
  color: #e2e8f0;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.character-counter {
  font-size: 0.85em;
  color: #cbd5e0;
  text-align: right;
  display: block;
  margin-top: 5px;
}

.contact-form-section button[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background-color: #667eea; /* Submit button accent color */
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 30px;
}

.contact-form-section button[type="submit"]:hover {
  background-color: #5a67d8;
  transform: translateY(-2px);
}

.required {
  color: #fc8181; /* Red for required asterisk */
  margin-left: 2px;
}

#form-message {
  font-weight: 600;
}

/* Full Width Map Section */
.full-width-map {
  width: 100%;
  margin-top: 0; /* Remove top margin */
  padding: 50px 0; /* Vertical padding */
  background-color: #fff; /* White background for the map section */
  text-align: center;
}

.full-width-map h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #1a202c;
}

.full-width-map iframe {
  width: 100%; /* Make iframe truly full width */
  max-width: 100%; /* Ensure it doesn't overflow */
  height: 500px; /* Increased height for better visibility */
  display: block; /* Remove extra space below iframe */
}

/* ==========================================================================
   Global Footer Styles (New)
   ========================================================================== */

.site-footer {
  background-color: #1a202c; /* Dark background */
  color: #cbd5e0; /* Light gray text color */
  padding: 50px 20px 0; /* Padding top/bottom and left/right, no bottom padding here */
}

.footer-container {
  display: flex;
  justify-content: space-around; /* Distributes sections evenly */
  flex-wrap: wrap; /* Allows sections to wrap on smaller screens */
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
  gap: 30px; /* Space between sections when they wrap */
}

.footer-section {
  flex: 1; /* Allows sections to grow */
  min-width: 250px; /* Minimum width before wrapping */
  padding: 0 15px; /* Padding for each section */
}

.footer-section h3 {
  font-size: 1.4em;
  color: #fff; /* White color for headings */
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px; /* Adjusted padding for the new look */
}

/* Underline effect for headings - NEW STYLE */
.footer-section h3::after {
  content: "";
  position: absolute;
  /* --- This is the new centering logic --- */
  left: 50%;
  transform: translateX(-50%);
  /* --- ----------------------------- --- */
  bottom: 0;
  width: 35px; /* Made the line shorter */
  height: 3px; /* Made the line thicker */
  background-color: #667eea;
}

/* Contact Section */
.footer-contact address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 15px;
}

.footer-contact p {
  margin: 10px 0;
}

.footer-contact a,
.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover {
  color: #667eea; /* Accent color on hover */
}

/* Quick Links Section */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

/* Social Media Section */
.footer-social h3 {
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 20px; /* Space between icons */
  justify-content: center; /* FIX: Centers icons horizontally */
  align-items: center; /* FIX: Aligns icons perfectly vertically */
}

.social-icons a {
  color: #fff;
  font-size: 1.5em; /* Icon size */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* General hover effect for social icons */
.social-icons a:hover {
  transform: scale(1.2); /* Slightly enlarge icon on hover */
}

/* Facebook icon brand color on hover */
.social-icons a[href*="facebook.com"]:hover {
  color: #1877f2;
}

/* Instagram icon brand gradient on hover */
.social-icons a[href*="instagram.com"]:hover i {
  /* Create the gradient background */
  background: linear-gradient(
    45deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d,
    #f56040,
    #f77737,
    #fcaf45,
    #ffdc80
  );

  /* Clip the background to the text (the icon) */
  -webkit-background-clip: text;
  background-clip: text;

  /* Make the icon color transparent so the gradient shows through */
  color: transparent;
}
/* Footer Bottom Bar */
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #2d3748; /* Separator line */
  margin-top: 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9em;
  color: #a0aec0; /* Lighter text for copyright */
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 900px) {
  .contact-content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .contact-info-section,
  .contact-form-section {
    min-width: unset;
    width: 90%;
    max-width: 550px;
  }
  .full-width-map h2 {
    font-size: 2em;
  }
  .full-width-map iframe {
    height: 350px;
  }
  .footer-container {
    text-align: left;
    align-items: flex-start; /* Aligns the sections themselves to the left */
  }

  /* Moves the heading underline to the left */
  .footer-section h3::after {
    left: 0;
    transform: none; /* Removes the horizontal centering */
  }

  /* Aligns the social media icons to the left */
  .social-icons {
    justify-content: flex-start; /* Overrides the 'center' rule */
  }
}

@media (max-width: 600px) {
  .contact-hero {
    padding: 40px 15px;
  }
  .contact-info-section,
  .contact-form-section {
    width: 100%;
  }
  .contact-form-section {
    padding: 30px 20px;
  }
  .contact-info-section h1 {
    font-size: 2.5em;
  }
  .contact-form-section h2 {
    font-size: 1.8em;
  }
  .contact-info-section .description,
  .card-content p,
  .card-content a {
    font-size: 1.05em;
  }
  .form-group label {
    font-size: 1em;
  }
  .form-group input,
  .form-group textarea,
  .contact-form-section button[type="submit"] {
    font-size: 1.1em;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .contact-card .card-content p {
    /* This is a stronger rule to force the text to wrap */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
  }
}

@media (min-width: 901px) {
  .full-width-map iframe {
    max-width: 1200px; /* Sets a maximum width for the map */
    height: 450px; /* You can adjust this height if you like */
    margin: 0 auto; /* This is key: it centers the map horizontally */
    border-radius: 8px; /* Optional: adds nice rounded corners */
  }
}
