/* Philosophical Maxims Form Styling - Matching Comment Form Style----------------------- */

.node-philosophical-maxims-form {
  background: #f0f4ff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1em;
  margin-top: .2em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Form field labels */
.node-philosophical-maxims-form label {
  display: block;
  margin-top: 1em;
  font-weight: bold;
}

/* First label doesn't need top margin */
.node-philosophical-maxims-form .form-item:first-child label {
  margin-top: 0;
}

/* Text inputs and textarea styling */
.node-philosophical-maxims-form textarea,
.node-philosophical-maxims-form input[type="text"] {
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Select dropdowns */
.node-philosophical-maxims-form select {
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Form actions (buttons) */
.node-philosophical-maxims-form .form-actions {
  margin-top: 1em;
}

.node-philosophical-maxims-form .form-actions input {
  padding: 0.5em 1.25em;
  font-size: 1em;
  border-radius: 4px;
}

/* Submit buttons styling */
.node-philosophical-maxims-form .form-actions input[type="submit"] {
  background-color: #3b51c5; /* Light royal blue */
  color: white;
  border: none;
  padding: 0.6em 1.5em;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 0.5em;
  transition: background-color 0.2s ease-in-out;
}

.node-philosophical-maxims-form .form-actions input[type="submit"]:hover {
  background-color: #2a3da1; /* Deeper blue on hover */
}

/* Hide filter guidelines and wrapper elements like in comment form */
.node-philosophical-maxims-form .js-filter-guidelines,
.node-philosophical-maxims-form .js-filter-wrapper > .form-wrapper:first-child {
  display: none;
}

/* File upload styling */
.node-philosophical-maxims-form .image-widget {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 1em;
  text-align: center;
}

.node-philosophical-maxims-form .form-file {
  margin: 0;
}

/* Description text */
.node-philosophical-maxims-form .description {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
}

/* CKEditor styling to match */
.node-philosophical-maxims-form .ck.ck-editor {
  border: 1px solid #ccc;
  border-radius: 4px;
}

.node-philosophical-maxims-form .ck.ck-toolbar {
  border-bottom: 1px solid #ccc;
  background-color: #f9f9f9;
}

.node-philosophical-maxims-form .ck.ck-editor__main > .ck-editor__editable {
  padding: 0.5em;
  min-height: 150px;
}

/* ==========================================
   Philosophical Maxims Edit Form Styling
   CivilSimian.com Custom Theme
   ========================================== */

/* Main container */
form#node-philosophical-maxims-edit-form {
  background-color: #f0f4ff; /* soft blue-gray tone */
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 22px 25px;
  margin: 2px auto;
  max-width: 900px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Spacing between fields */
form#node-philosophical-maxims-edit-form .form-item {
  margin-bottom: 1.3em;
}

/* Labels */
form#node-philosophical-maxims-edit-form label {
  font-weight: 600;
  color: #222;
}

/* Text fields, textareas, and selects */
form#node-philosophical-maxims-edit-form input.form-text,
form#node-philosophical-maxims-edit-form textarea.form-textarea,
form#node-philosophical-maxims-edit-form select.form-select {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

form#node-philosophical-maxims-edit-form input.form-text:focus,
form#node-philosophical-maxims-edit-form textarea.form-textarea:focus,
form#node-philosophical-maxims-edit-form select.form-select:focus {
  border-color: #6b7cff;
  outline: none;
}

/* Hide "Create new revision" */
form#node-philosophical-maxims-edit-form .form-item-revision {
  display: none !important;
}

/* Hide "About text formats" and guidelines if not needed */
form#node-philosophical-maxims-edit-form .filter-help,
form#node-philosophical-maxims-edit-form .filter-guidelines {
  display: none !important;
}

/* Buttons section */
form#node-philosophical-maxims-edit-form .form-actions {
  margin-top: 25px;
  display: flex;
  gap: 12px;
}

/* Primary button */
form#node-philosophical-maxims-edit-form .button--primary {
  background-color: #4759d1;
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 9px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

form#node-philosophical-maxims-edit-form .button--primary:hover {
  background-color: #3242a6;
}

/* Danger button */
form#node-philosophical-maxims-edit-form .button--danger {
  background-color: #723882 !important;
  border-radius: 6px !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 20px !important;
}

form#node-philosophical-maxims-edit-form .button--danger:hover {
  background-color: #c83f3f;
}
