/* styles.css */
.sg-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  box-sizing: border-box;
}

.sg-form-container {
  flex: 1 1 35%;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto; /* Ensure the input section always scrolls */
  max-height: 600px;
}

.sg-form-container form {
  display: flex;
  flex-direction: column;
}

.sg-form-container label {
  color: #fff;
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
  margin-top: 10px;
}

.sg-form-container input,
.sg-form-container select,
.sg-form-container textarea {
  background: #142C55;
  border: none;
  border-radius: 20px;
  box-sizing: border-box;
  color: #fff;
  font-size: 16px;
  margin-top: 5px;
  padding: 12px;
  width: 100%;
}

.sg-form-container .sg-select-wrap {
  position: relative;
  width: 100%;
}

.sg-form-container .sg-select-wrap::after {
  content: "\25BC"; /* Unicode character for down caret */
  position: absolute;
  right: 20px;
  top: 70%;
  transform: translateY(-50%);
  pointer-events: none; /* Allows clicking on select */
  color: #fff;
  font-size: 12px;
}

.sg-form-group {
  margin-top: 20px;
  text-align: left;
}

.sg-schema-output {
  flex: 1 1 60%;
  padding: 20px;
  border: none;
  border-radius: 20px;
  background-color: #fff;
  box-sizing: border-box;
  max-height: 600px; /* Ensure a consistent height */
  overflow-y: auto;
}

.sg-schema-output h3 {
  margin-top: 0;
}

#sg-schema-result {
  width: 100%;
  height: 100%;
  padding: 10px;
  border: none;
  font-family: monospace;
  font-size: 16px;
  resize: none;
  box-sizing: border-box;
  overflow-y: auto;
}

#add-faq-qa {
  background: #fff;
  border-radius: 20px;
  color: #000;
  font-size: 16px;
  margin-top: 20px;
  padding: 10px;
}

.remove-faq-qa {
  color: #f00;
  font-size: 16px;
  margin-top: 10px;
}

#sg-schema-copy {
  text-align: right;
}

#copy-schema-button {
  background: #f2fa53;
  border-radius: 50px;
  color: #000;
  font-size: 16px;
  margin-right: 20px;
  padding: 15px 25px;
  text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sg-container {
    flex-direction: column;
    gap: 10px;
  }

  .sg-form-container,
  .sg-schema-output {
    height: auto; /* Adjust height for smaller screens */
  }
}

@media (max-width: 768px) {
  .sg-container {
    flex-direction: column;
    padding: 10px;
  }

  .sg-form-container,
  .sg-schema-output {
    padding: 15px;
  }

  .sg-form-container input,
  .sg-form-container select,
  .sg-form-container textarea,
  #sg-schema-result {
    padding: 6px;
  }

  .sg-schema-output {
    max-height: 400px; /* Adjust max height for tablets */
  }

  #sg-schema-result {
    height: 400px; /* Adjust height for tablets */
  }
}

@media (max-width: 480px) {
  .sg-container {
    flex-direction: column;
  }

  .sg-form-container,
  .sg-schema-output {
    padding: 10px;
  }

  .sg-form-container input,
  .sg-form-container select,
  .sg-form-container textarea,
  #sg-schema-result {
    padding: 5px;
    font-size: 14px;
  }

  .sg-schema-output {
    max-height: 500px; /* Adjust max height for mobile */
  }

  #sg-schema-result {
    height: 500px; /* Adjust height for mobile */
  }
}