/* 
 * Trial Brief Page Styles - Rosewood Ridge Site
 * Web 3.0 Design System
 */

@import url('variables.css');

.trialbrief-page .container {
  /* Inherits base .container styles */
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.trialbrief-page h1 {
  /* Inherits base h1 styles */
  margin-bottom: 1rem;
}

.trialbrief-page .container > p {
  /* Style the intro paragraph */
  color: var(--text-secondary-color);
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  text-align: center;
}

/* Style individual form sections/questions */
.question-box {
  background: var(--inner-bg);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-std);
  margin-bottom: 1.5rem;
  border: 1px solid var(--accent-color);
  box-shadow: var(--box-shadow-light);
}

.question-box label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary-color);
  font-weight: 500;
  font-size: 0.95em;
}

.question-box input[type="text"],
.question-box input[type="number"],
.question-box select,
.question-box textarea {
  /* Inherit base input styles */
  width: 100%;
  box-sizing: border-box;
}

.question-box textarea {
  min-height: 120px; /* Adjust default height */
}

/* Specific adjustments for charge adder */
#trialStatementForm .question-box {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Add gap between elements */
}

#trialStatementForm .charge-adder-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap; /* Allow wrapping */
}

#trialStatementForm .charge-adder-controls label {
  margin-bottom: 0; /* Remove bottom margin for inline labels */
  flex-shrink: 0;
}

#trialStatementForm .charge-adder-controls select,
#trialStatementForm .charge-adder-controls input[type="number"] {
  width: auto; /* Allow shrinking */
  flex-grow: 1; /* Allow growing */
  min-width: 100px; /* Minimum width */
}

#trialStatementForm .charge-adder-controls input[type="number"] {
  max-width: 80px; /* Limit width of count input */
}

#trialStatementForm .charge-adder-controls button {
  flex-shrink: 0; /* Prevent button from shrinking */
  margin-left: auto; /* Push button to the right if space allows */
}

/* Button Styling */
.green-btn {
  /* Use base button styles and override background */
  display: inline-block;
  padding: 0.7rem 1.2rem; /* Adjust padding */
  background: linear-gradient(145deg, var(--success-color), #1f7733); /* Green gradient */
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-std);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: var(--box-shadow-light);
}

.green-btn:hover {
  background: linear-gradient(145deg, #3bbb55, #2f8743); /* Lighter green gradient */
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-std);
}

.green-btn:active {
  transform: scale(0.98);
  box-shadow: var(--box-shadow-light);
}

/* Center buttons below forms/output */
.multi-step-buttons,
.copy-button-container {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Output Textarea */
#docOutput {
  background-color: rgba(10, 10, 10, 0.9); /* Darker, less transparent */
  border: 1px solid var(--accent-color);
  color: var(--text-color);
  border-radius: 4px;
  padding: 0.8rem;
  font-family: monospace;
  font-size: 0.9rem;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
  width: 100%;
  box-sizing: border-box;
  min-height: 400px; /* Ensure decent height */
}

#docOutput:focus {
  outline: 0;
  border-color: var(--highlight-color);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), var(--box-shadow-glow);
}

/* Hide elements */
.hidden {
  display: none !important;
}
