/* General Styling */
h1, h2 {
    text-align: center;
}

body {
  font-family: Arial, sans-serif;
  margin: 20px;
  line-height: 1.6;
}

.form-header {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
}

.loop-multi-process-selection {
  width: 100%;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: normal;
}

.mandatory {
  font-style: italic;
  color: red; /* Emphasize importance */
}

.optional {
  font-style: italic;
  color: grey;
}

form {
  max-width: 100%; /* Changed to ensure full width on smaller screens */
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 550px;
}

.loop-block {
  background-color: #e6e6e6;
  padding: 15px;
  margin-bottom: 40px;
  border-radius: 5px;
  border: 1px solid #d0d0d0;
}

input[type="submit"] {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 16px;
  display: inline-block; /* Change from block to inline-block */
  width: auto; /* Adjust width */
}

.submit-container {
  text-align: center; /* Center the button container */
}

input[type="submit"]:hover {
  background-color: #0056b3;
}

.disabled-option {
  color: #b0b0b0; /* Light gray to indicate disabled state */
  text-decoration: line-through; /* Optional: Strikethrough for visual indication */
}


textarea#json_loop_config {
  font-family: monospace;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  margin-top: 20px;
  /* resize: none; */ /* Disable manual resizing since JS handles it */
  overflow: hidden;   /* Hide overflow to prevent scrollbar */
  line-height: 1.2em; /* Define line height to help calculate textarea height */
}


/* Email form styles to match the main form */
.email-form-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-form-block {
  background-color: #e6e6e6;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #d0d0d0;
}

.email-form-header {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.email-submit-container {
  text-align: center;
  margin-top: 20px;
}

.email-submit-container input[type="submit"] {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: inline-block;
  width: auto;
}

.email-submit-container input[type="submit"]:hover {
  background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-header, .email-form-header {
    font-size: 14px;
  }

  .loop-block, .email-form-block {
    margin-bottom: 20px;
  }

  input[type="submit"], .email-submit-container input[type="submit"] {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .form-header, .email-form-header {
    font-size: 12px;
  }
}

