/* ccm-story-submit.css — "Share your story" (ccm-story-submit.html).
   Fields, buttons, panels and the two-column form layout are shared
   pieces in ccm.css. ccm-stories.css still loads for the preview (the
   story look) and keeps its older form rules for the admin review page;
   the few names this page shares with it are restyled here. */

.sts .form-intro { margin-bottom: 8px; }
.sts .form-req { margin-bottom: 16px; }
.sts-body { margin-top: 28px; }
.sts-body > .panel { margin-bottom: 28px; }
.sts-body .panel p + .sts-actions, .sts-body .panel p + .btn { margin-top: 16px; }
.sts-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.sts-offer { margin-top: 16px; }
.sts-dob { max-width: 240px; }

textarea.sts-body-input { min-height: 360px; }
.sts-count { font-size: var(--text-sm); color: var(--text-secondary); text-align: right; margin-top: 4px; }

.form-sec small {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  text-transform: none; letter-spacing: 0; color: var(--text-secondary); margin-left: 8px;
}
.sts-add { margin: 4px 0 6px; }
.sts-add:focus-within { outline: 3px solid var(--text); outline-offset: 3px; }
.sts-consent { margin-top: 12px; }

/* Photos waiting to send: thumbnail, caption, Remove */
.st-photo-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 14px; }
.st-photo-list:empty { display: none; }
.st-photo-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.st-photo-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 0; background: var(--surface); }
.st-photo-remove { font-weight: 700; }

.sts-preview-note { margin-bottom: 12px; }
.st-preview { border: 2px solid var(--border); border-radius: 0; padding: 24px; margin-bottom: 0; }
.sts-progress { font-weight: 600; color: var(--text-secondary); margin-top: 12px; }
.sts-progress:empty { display: none; }

/* An error, in words, under the button that raised it */
.st-error {
  display: none; margin-top: 16px; padding: 10px 0 10px 16px; border: 0; border-radius: 0;
  border-left: 4px solid var(--red-line); background: none;
  font-size: var(--text-base); font-weight: 700; color: var(--red-line);
}
.st-error.visible { display: block; }
.sts-empty { font-size: var(--text-md); padding: 24px 0; }

@media (max-width: 860px) {
  .form-sec small { display: block; margin: 6px 0 0; }
  .st-photo-item { grid-template-columns: 72px minmax(0, 1fr); }
  .st-photo-item img { width: 72px; height: 54px; }
  .st-photo-remove { grid-column: 2; justify-self: start; }
}
