.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ensures children are centered */
  padding: 20px;
  max-width: 700px; /* a bit wider for breathing room */
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(10, 13, 23, 0.05);
  backdrop-filter: blur(190px);
  border-radius: 20px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;         /* use full width instead of 50% */
  max-width: 500px;    /* keeps it neat on large screens */
  padding: 40px;
  box-sizing: border-box;
  margin: 0 auto;      /* ensure centered */
}


/* Heading */
.form-heading h2 {
  font-size: 24px;
  color: white;
  margin-bottom: 8px;
}
.form-heading p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* Form groups */
.form-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap; /* stack on smaller screens */
}

.form-group input {
  flex: 1;
}

/* Inputs, textarea, select */
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: white;
  font-size: 14px;
  appearance: none; /* remove default browser styling */
  box-sizing: border-box;
}

/* Select styling */
select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='14' viewBox='0 0 24 24' width='14' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 40px; /* room for arrow */
  cursor: pointer;
}
select option {
  background: #202020;
  color: #fff;
  padding: 12px;
  font-family: 'Poppins', sans-serif;
}

/* File input */
input[type="file"] {
  cursor: pointer;
  padding: 12px 14px;
}
input[type="file"]::file-selector-button {
  background: #444;
  color: #fff;
  border: none;
  padding: 8px 14px;
  margin-right: 12px;
  border-radius: 5px;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
  background: #666;
}

/* Textarea */
textarea {
  height: 120px;
  resize: vertical;
}

/* Submit Button */
.submit-btn {
  background: #E3F919;
  color: #000;
  font-weight: 500;
  border: none;
  border-radius: 5px;
  padding: 12px;
  cursor: pointer;
  transition: 0.2s;
}
.submit-btn:hover {
  background: #c5dc15;
}

.file-upload-wrapper {
  position: relative;
  width: 100%; /* stretch full width */
  box-sizing: border-box;
}

.file-upload-input {
  display: none; /* hide native file input */
}

.file-upload-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  width: 100%;               /* ✅ full width like other inputs */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;    /* ✅ consistent sizing */
}


.file-upload-label:hover {
  border-color: #e3f919;
  background: rgba(255, 255, 255, 0.1);
}

.file-upload-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-upload-icon svg {
  stroke: #e3f919; /* highlight color */
}

/* ================== RESPONSIVE ================== */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  section.services {
    padding: 80px 15px;
  }

  section.services h2 {
    font-size: 30px;
  }

  section.services p.intro {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 40px;
  }

  .contact-wrapper {
    max-width: 500px;
    padding: 30px;
    margin: 40px auto;
  }
}

/* Mobiles (≤ 768px) */
@media (max-width: 768px) {
  section.services {
    padding: 60px 12px;
  }

  section.services h2 {
    font-size: 26px;
  }

  section.services p.intro {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 30px;
  }

  .contact-wrapper {
    max-width: 90%;   /* shrink into screen */
    padding: 20px;
    margin: 30px auto;
  }

  .form-heading h2 {
    font-size: 20px;
  }

  .form-heading p {
    font-size: 13px;
  }

  .form-group {
    flex-direction: column;  /* ✅ stack inputs vertically */
    gap: 12px;
  }

  input,
  textarea,
  select,
  .file-upload-label,
  .submit-btn {
    font-size: 13px;
    padding: 10px 12px;
  }

  textarea {
    height: 100px;
  }
}

/* Small Mobiles (≤ 480px) */
@media (max-width: 480px) {
  section.services h2 {
    font-size: 22px;
  }

  section.services p.intro {
    font-size: 13px;
    line-height: 18px;
  }

  .contact-wrapper {
    padding: 15px;
    border-radius: 12px;
  }

  .form-heading h2 {
    font-size: 18px;
  }

  .submit-btn {
    font-size: 13px;
    padding: 10px;
  }
}
