/* Container styling */
.aibpg-container {
  max-width: 700px;
  margin: 40px auto;
  position: relative;
  border: 1px solid #ccc;
  padding: 2rem;
  background: #fff;
  border-radius: 4px;
}

/* MBN Logo in top-right corner at ~80% size */
.aibpg-logo-wrap {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 80px;
  opacity: 0.9;
}
.aibpg-logo-wrap img.aibpg-logo {
  width: 100%;
  height: auto;
}

/* Step Indicators */
.aibpg-step-indicators {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.aibpg-step-indicators .aibpg-step {
  flex: 1;
  text-align: center;
  padding: 8px;
  background-color: #e9e9e9;
  margin-right: 5px;
  border-radius: 4px;
  color: #777;
  font-weight: 600;
}
.aibpg-step-indicators .aibpg-step:last-child {
  margin-right: 0;
}
.aibpg-step-indicators .aibpg-step.active {
  background-color: #3b5998;
  color: #fff;
}

/* Form Steps */
.aibpg-form-step {
  display: none;
}
.aibpg-form-step.aibpg-active-step {
  display: block;
}

/* Textareas */
.aibpg-form-step textarea {
  width: 100%;
  resize: vertical;
  padding: 8px;
  font-size: 14px;
  margin-bottom: 15px;
}

/* Navigation Buttons */
.aibpg-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.aibpg-btn {
  background-color: #3b5998;
  color: #fff;
  padding: 8px 16px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.aibpg-btn:hover {
  background-color: #2d4373;
}

/* Submit + Spinner Container */
.aibpg-submit-wrap {
  display: flex;
  align-items: center;
}

/* Loading Spinner */
#loading-spinner {
  display: none;
  margin-left: 10px;
  border: 3px solid #f3f3f3; /* Light grey */
  border-top: 3px solid #3b5998; /* Blue */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: aibpg-spin 1s linear infinite;
}

@keyframes aibpg-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Result Section */
#aibpg-result {
  display: none;
  margin-top: 30px;
}
#aibpg-plan-output {
  white-space: pre-wrap;
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 4px;
}