/* ======================Contact====================================== */

.contact-section {
  width: 100%;
  padding: 2rem 1rem 7rem;
  position: relative;
  background: linear-gradient(to top right, #e0e0e0, #e7e7e7, #f6f6f6, #fafafa, #fdfdfd);
  scroll-margin-top: 80px; /* Navbar ka offset */
}

.contact-bg {
  position: absolute;
  right: 5rem;
  top: 0;
  opacity: 0.05;
  height: 100%;
}

.contact-title {
  text-align: center;
  font-size: 1.25rem;
  padding: 1.5rem 0;
  font-weight: 600;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.contact-col {
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0;
  color: #e53935;
}

.contact-fields .input-group,
.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  background: #b3eaff;
  box-shadow: 2.5px 3px 5px rgba(0, 0, 0, 0.3);
}

.input-group label {
  width: 120px;
  padding: 0.5rem;
  color: #555;
  font-weight: 500;
}

.input-group input,
.input-group select,
.input-group textarea,
textarea {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.75rem;
  font-weight: 500;
  background: #b3eaff;
  cursor: text;
  position: relative;
  z-index: 2; /* ✅ hamesha label ke upar rahe */
}

.select-group {
  position: relative;
}

.select-group .arrow {
  position: absolute;
  right: 10px;
  pointer-events: none;
}

.file-btn {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  width: 100%;
  position: relative; /* important for mobile touch */
}

#file-btn {
  background: #00adef;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  display: inline-block;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  width: 100%;   /* make full width clickable */
  z-index: 10;   /* ensure it’s above other elements */
}

#file-btn:hover {
  background: #0dbefe;
}

textarea,
.contact-col textarea {
  display: block;
  width: 100%;
  height: 295px;
  padding: 1rem;
  background: #b3eaff;
  border-radius: 5px;
  font-size: 1rem;
  color: #000;
  resize: none;
  outline: none;
  cursor: text;
  position: relative;
  z-index: 1; /* click priority */
  box-shadow: 2.5px 3px 5px rgba(0, 0, 0, 0.3);
}

#subject {
  background: #6bd6ff;
  font-size: 1rem;
  color: #000;
  padding: 1rem;
  outline: none;
  cursor: text;
  font-weight: bold;
}

#submit-btn {
  margin-top: 1.5rem;
  width: 120px;
  padding: 0.5rem;
  border: none;
  cursor: not-allowed;
  background: gray;
  color: white;
  align-self: center;
}

#submit-btn.active {
  background: #00adef;
  cursor: pointer;
}

/* 📱 Mobile fix */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-col {
    max-width: 100%;   /* ✅ full width on mobile */
  }

  textarea {
    width: 100%;   
    height: 200px;  /* optional: height thodi kam */
  }
}
