.contact-section {
  height: calc(100vh - 80px - 48px); /* Account for header + footer */
  padding: 0 3rem;
  display: flex;
  align-items: center;
}

.contact-wrapper {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
}

/* --- RIGHT: FORM --- */
.contact-form {
  flex: 2;
  background-color: black;
  color: white;
  padding: 1rem 1rem;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-family: "Oswald", sans-serif;
  height: 100%;
}

.form-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  height: 100%;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
}

textarea {
  flex-grow: 1;               /* ✅ stretch to fill space */
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  resize: none;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  border: none;
  min-height: 120px;
}

.g-recaptcha {
  margin: 0.5rem 0;
  display: flex;
  justify-content: center;
}

.submit-button {
  background-color: white;
  color: black;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  font-size: 18px;
  width: 100%;        /* ✅ make it full width */
  align-self: stretch; 
  transition: 0.3s;
}

.submit-button:hover {
    background-color: rgb(59, 59, 59);
    color: white;
}

/* --- LEFT: IMAGE WITH OVERLAY AND TEXT --- */
.contact-info-image {
  flex: 1;
  position: relative;
  height: 100%;
  background-image: url('../images/KJ-\(GNA-180824\)---RD-1.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}
.contact-heading {
  position: absolute;
  top: 20px;
  left: 35px;
  z-index: 2;
  color: white;
  font-size: 40px;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
}
.contact-details {
  position: absolute;
  bottom: 25px;
  left: 35px;
  z-index: 2;
  color: white;
  font-family: "Oswald", sans-serif;
  text-align: left;
}

.contact-details h2 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.contact-details h3 {
  font-weight: 400;
  font-size: 1.5rem;
  margin-top: 2rem;
  color: rgb(175, 175, 175);
}

.contact-details p {
  font-size: 1.5rem;
  font-weight: 400;
}


.contact-button.active::after {
  content: '';
  position: absolute;
  bottom: 4px; /* Adjust this to move the dot up or down */
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: white;
  border-radius: 50%;
}


.contact-button {
  position: relative; /* Required for ::after to position correctly */
  background-color: black;
  color: white;
  padding: 7px 15px;
  border-radius: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-icon {
  filter: invert();
  width: 40px;
  height: 40px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  transition: scale 0.3s ease;
}

.social-icon:hover {
  scale: 1.1;
  filter: invert(50);
  opacity: 1;
}

@media (max-width: 810px) {
  
  html {
    scroll-behavior: smooth;
  }

  .contact-button.active::after {
  content: '';
  position: absolute;
  bottom: 0px; /* Adjust this to move the dot up or down */
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: white;
  border-radius: 50%;
  }
}


@media (max-width: 810px) {
  .contact-button.active::after {
  content: '';
  position: absolute;
  bottom: 0px; /* Adjust this to move the dot up or down */
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: white;
  border-radius: 50%;
  }
  
  /* MOBILE STYLES */
  html, body {
    overflow-y: auto;
  }
  
  .contact-section {
    height: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 0px;
    padding-bottom: 0px;
    min-height: 0;
    display: block;
  }
  
  .contact-wrapper {
    flex-direction: column;
    height: auto;
    gap: 2rem;
  }
  
  /* Form comes first */
  .contact-form {
    order: 1;
    height: auto;
    min-height: 70vh;
    padding: 1.5rem;
    border-radius: 10px;
  }
  
  /* Contact info comes second */
  .contact-info-image {
    order: 2;
    height: 50vh;
    border-radius: 10px;
    flex: none;
  }
  
  .form-title {
    font-size: 2.5rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-heading {
    font-size: 2.5rem;
    top: 15px;
    left: 20px;
  }
  
  .contact-details h2 {
    font-size: 2.5rem;
  }
  
  .contact-details h3 {
    font-size: 1.25rem;
  }
  
  .contact-details p {
    font-size: 1.25rem;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
  }
  
  .g-recaptcha {
    transform: scale(0.85); /* Scale down on mobile */
    transform-origin: center;
  }
}

/* Small screens */
@media (max-width: 480px) {

  .contact-form {
    min-height: 80vh;
  }
  
  .form-title {
    font-size: 2rem;
  }
  
  .contact-heading {
    font-size: 2rem;
  }
  
  .contact-details h2 {
    font-size: 2rem;
  }
  
  .contact-details h3 {
    font-size: 1.1rem;
  }
  
  .contact-details p {
    font-size: 1.1rem;
  }
}

@media (max-width:1125px) and (min-width:811px) {
  .contact-details {
    left: 30px;
    padding-right: 30px;
  }
}