/* ---------------- Contact Section with HTML Image ---------------- */
.contact-section {
  position: relative;
  padding: 6rem 0 2rem;
  min-height: 80vh;

}

/* Background Image */
.contact-section .contact-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Lighten the image */
}

/* Light Overlay to make image softer */
.contact-section .contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7); /* Light white layer */
  z-index: -1;
}

/* Section Title */
.section-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--slate-blue);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 8px rgb(87 167 217), 0 2px 4px rgb(87 167 217);
}
/* Form Layout */
.contact-form {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  position: relative;
  z-index: 1; /* Bring form forward */
}

.form-left,
.form-right {
  flex: 1;
  min-width: 300px;
}

/* Form Controls */
.form-group label {
  display: block;
  font-size: 1rem;
  color: var(--coconut, #333);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  color: #444;
  background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--shakespeare, #1d7bb6);
  box-shadow: 0 0 0 2px rgba(29, 123, 182, 0.2);
}

/* Custom Dropdown Arrow */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

/* Submit Button */
.submit-btn {
  /* Size */
  width: fit-content;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;

  /* Colors */
  
  background-color: var(--slate-blue);
  color: var(--white);
  border: solid 2px var(--chambray);
  border-radius: 25px;

  /* Centering */
  display: block;
  margin: 2rem auto; /* Top/bottom margin + auto left/right = centered */

  /* Interaction */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}


.submit-btn:hover {
  background-color: var(--indigo);
  transform: translateY(-2px);
  border: solid 2px var(--shakespeare);
}


/* Responsive */
@media (max-width: 768px) {
  .contact-form {
    flex-direction: column;
    gap: 2rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* === MOBILE: CENTER FORM AND DARKEN LABELS === */
@media (max-width: 768px) {
    /* Center form and make it full width */
    .contact-form {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 90%;
        margin: 0 auto;
        padding: 1rem;
    }

    .form-left,
    .form-right {
        width: 100%;
    }

    /* Make labels darker for better readability */
    .form-group label {
        color: #000 !important; /* Black text */
        font-weight: bold;
        font-size: 1rem;
    }

    /* Ensure inputs are readable */
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: white !important;
        border-color: #ccc !important;
    }

    /* Fix button alignment */
    .submit-btn {
        margin: 1.5rem auto;
    }

    /* Fix section title visibility */
    .section-title {
        color: #000 !important;
        text-shadow: none;
    }
}