/* Inquiry section styling */
.inquiry-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.25), rgba(245, 90, 155, 0.25));
}

.inquiry-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.inquiry-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.inquiry-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  box-sizing: border-box;
  /* Remove fixed height to allow content to expand */
}

/* Form styling adjustments */
.inquiry-card .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.inquiry-card .form-group {
  flex: 1;
}

.inquiry-card input,
.inquiry-card select,
.inquiry-card textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

.inquiry-card textarea {
  min-height: 100px;
  resize: vertical;
}

.inquiry-card .captcha-group {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
}

.inquiry-card .captcha-group input {
  flex: 2; /* Captcha input takes 2 parts */
  min-width: 0; /* Allow input to shrink properly */
}

.inquiry-card .captcha-image {
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  flex: 2; /* Captcha image takes 2 parts */
  min-width: 0; /* Allow image to shrink properly */
}

.inquiry-card .btn-primary {
  padding: 12px 15px;
  background: linear-gradient(135deg, #4a90e2, #f55a9b);
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0;
  white-space: nowrap;
  flex: 6; /* Submit button takes 6 parts */
  min-width: 0; /* Allow button to shrink properly */
  overflow: hidden;
  text-overflow: ellipsis;
}

.inquiry-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.inquiry-card .btn-primary i {
  margin-right: 8px;
}

/* Responsive design for tablets */
@media (max-width: 992px) {
  .inquiry-section {
    padding: 60px 0;
  }
  
  .inquiry-wrapper {
    padding: 0 15px;
  }
  
  .inquiry-card {
    padding: 25px;
  }
  
  .inquiry-card .form-row {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
  }
  
  .inquiry-card .captcha-group {
    flex-direction: row;
  }
  
  .inquiry-card .captcha-group input,
  .inquiry-card .captcha-image,
  .inquiry-card .btn-primary {
    flex: 1; /* On tablets, equal width */
  }
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
  .inquiry-section {
    padding: 50px 0;
  }
  
  .inquiry-wrapper {
    padding: 0 15px;
  }
  
  .inquiry-card {
    padding: 20px;
  }
  
  .inquiry-card .form-row {
    margin-bottom: 15px;
  }
  
  .inquiry-card input,
  .inquiry-card select,
  .inquiry-card textarea {
    padding: 10px 12px;
    font-size: 16px; /* Better touch target on mobile */
  }
  
  .inquiry-card .captcha-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .inquiry-card .captcha-image {
    height: 35px;
    flex: none;
    width: 100%;
  }
  
  .inquiry-card .btn-primary {
    padding: 10px;
    font-size: 14px;
    width: 100%;
    flex: none;
  }
  
  .inquiry-card .btn-primary i {
    margin-right: 8px;
  }
  
  .inquiry-card .captcha-group input,
  .inquiry-card .captcha-image,
  .inquiry-card .btn-primary {
    flex: none; /* On mobile, stack vertically */
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .inquiry-section {
    padding: 40px 0;
  }
  
  .inquiry-wrapper {
    padding: 0 10px;
  }
  
  .inquiry-card {
    padding: 15px;
  }
  
  .inquiry-card input,
  .inquiry-card select,
  .inquiry-card textarea {
    padding: 8px 10px;
    font-size: 14px;
  }
  
  .inquiry-card .captcha-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .inquiry-card .captcha-image {
    height: 30px;
    flex: none;
    width: 100%;
  }
  
  .inquiry-card .btn-primary {
    padding: 8px;
    font-size: 14px;
    width: 100%;
    flex: none;
  }
  
  .inquiry-card .btn-primary i {
    margin-right: 5px;
  }
  
  .inquiry-card .captcha-group input,
  .inquiry-card .captcha-image,
  .inquiry-card .btn-primary {
    flex: none; /* On small devices, stack vertically */
  }
}