/* Wrapper just centers the section */
.query-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  background: #f8f8f8; /* page background */
}

/* Actual query box */
/* Initial hidden state */
.query-section {
  background: #002b5c;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px;
  border-radius: 4px;
  max-width: 900px; /* shrunk width */
  width: 100%;
  opacity: 0;
  transform: translateY(80px); /* start below */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When visible */
.query-section.show {
  opacity: 1;
  transform: translateY(0);
}


.query-left h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.query-left h2 span {
  color: #1abc9c;
}

.query-left p {
  line-height: 1.6;
  max-width: 450px;
  color: #ddd;
}

.query-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.query-form input,
.query-form select,
.query-form textarea {
  padding: 12px;
  border: none;
  background: #234272;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
}

.query-form input::placeholder,
.query-form textarea::placeholder {
  color: #bbb;
}

.query-form .input-row {
  display: flex;
  gap: 10px;
}

.query-form textarea {
  min-height: 90px;
  resize: none;
}

.recaptcha-box {
  background: #fff;
  color: #333;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}

.btn-submit {
  background: #f2f2f2;
  color: #1abc9c;   /* ✅ green text */
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  width: fit-content;
  margin-top: 5px;
}

.btn-submit:hover {
  background: #ddd;
  color: #148a48;   /* darker green on hover */
}


.btn-submit:hover {
  background: #ddd;
}

@media (max-width: 768px) {
  .query-section {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 25px;
  }

  .query-left p {
    max-width: 100%;
  }

  .query-form .input-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .query-wrapper {
    padding: 20px 0;
  }

  .query-section {
    padding: 20px 15px;
  }

  .query-left h2 {
    font-size: 20px;
    line-height: 1.3;
  }

  .btn-submit {
    width: 100%;
    text-align: center;
  }
}
