/* PAHMCJ Manuscript Submission — scoped styles
   Brand: navy #0B2545, teal #0F5257, gold #C9A227, parchment #F7F4EC */

.pahmcj-submit-root {
  --pahmcj-navy: #0B2545;
  --pahmcj-teal: #0F5257;
  --pahmcj-gold: #C9A227;
  --pahmcj-parchment: #F7F4EC;
  --pahmcj-text: #1c2b36;
  --pahmcj-border: #d8d2c2;

  max-width: 820px;
  margin: 0 auto;
  padding: 32px;
  background: var(--pahmcj-parchment);
  border: 1px solid var(--pahmcj-border);
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--pahmcj-text);
  box-sizing: border-box;
}
.pahmcj-submit-root *, .pahmcj-submit-root *::before, .pahmcj-submit-root *::after {
  box-sizing: border-box;
}

.pahmcj-form-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pahmcj-border);
}
.pahmcj-form-section:last-of-type {
  border-bottom: none;
}

.pahmcj-section-title {
  color: var(--pahmcj-navy);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--pahmcj-gold);
}

.pahmcj-field {
  margin-bottom: 16px;
}

.pahmcj-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .pahmcj-field-row { grid-template-columns: 1fr; }
}

.pahmcj-submit-root label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--pahmcj-navy);
  margin-bottom: 6px;
}

.pahmcj-submit-root .req {
  color: #b3261e;
}

.pahmcj-submit-root input[type="text"],
.pahmcj-submit-root input[type="email"],
.pahmcj-submit-root input[type="file"],
.pahmcj-submit-root select,
.pahmcj-submit-root textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--pahmcj-border);
  border-radius: 6px;
  background: #fff;
  color: var(--pahmcj-text);
  font-family: inherit;
}

.pahmcj-submit-root input:focus,
.pahmcj-submit-root select:focus,
.pahmcj-submit-root textarea:focus {
  outline: none;
  border-color: var(--pahmcj-teal);
  box-shadow: 0 0 0 3px rgba(15, 82, 87, 0.15);
}

.pahmcj-checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 14px;
  color: var(--pahmcj-text);
}
.pahmcj-checkbox-field input[type="checkbox"] {
  margin-top: 3px;
  width: auto;
}

.pahmcj-hint {
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0 0;
}

.pahmcj-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.pahmcj-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pahmcj-btn-submit {
  background: var(--pahmcj-navy);
  color: #fff;
  border: none;
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.pahmcj-btn-submit:hover {
  background: var(--pahmcj-teal);
}
.pahmcj-btn-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.pahmcj-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--pahmcj-border);
  border-top-color: var(--pahmcj-gold);
  border-radius: 50%;
  animation: pahmcj-spin 0.8s linear infinite;
}
@keyframes pahmcj-spin {
  to { transform: rotate(360deg); }
}

.pahmcj-form-message {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  display: none;
}
.pahmcj-form-message.success {
  display: block;
  background: #e7f6ec;
  color: #1c6b34;
  border: 1px solid #b7e4c7;
}
.pahmcj-form-message.error {
  display: block;
  background: #fbe9e7;
  color: #9c2b1f;
  border: 1px solid #f3b9b0;
}

/* ---------- Admin dashboard ---------- */
.pahmcj-admin-wrap .pahmcj-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.pahmcj-badge-pending { background: #9ca3af; }
.pahmcj-badge-under_review { background: #0F5257; }
.pahmcj-badge-revision_requested { background: #C9A227; color: #1c2b36; }
.pahmcj-badge-accepted { background: #1c6b34; }
.pahmcj-badge-rejected { background: #b3261e; }

.pahmcj-view-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .pahmcj-view-grid { grid-template-columns: 1fr; }
}

.pahmcj-view-main, .pahmcj-side-box {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.pahmcj-side-box h3 {
  margin-top: 0;
  color: #0B2545;
  border-bottom: 2px solid #C9A227;
  padding-bottom: 8px;
}
