/* Salem Tip Line – Front-End Form */

.stl-wrapper {
  max-width: 680px;
  margin: 1.5rem auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #333;
}

.stl-masthead { margin-bottom: 1.5rem; }

.stl-edition-rule { display: none; }

.stl-kicker { display: none; }

.stl-headline {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 .5rem;
}

.stl-deck {
  font-size: .9rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* Fields */
.stl-field-group { margin-bottom: 1.1rem; }

.stl-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: #333;
  letter-spacing: normal;
  text-transform: none;
  font-family: inherit;
}
.stl-required { color: #c00; }

.stl-input,
.stl-textarea {
  width: 100%;
  padding: .5rem .6rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: inherit;
  font-size: .9rem;
  color: #333;
  box-sizing: border-box;
  background: #fff;
}
.stl-input:focus,
.stl-textarea:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
}
.stl-textarea { resize: vertical; min-height: 140px; }

.stl-char-count {
  display: block;
  text-align: right;
  font-size: .75rem;
  color: #999;
  margin-top: .2rem;
  font-family: inherit;
}

/* Category pills */
.stl-pill-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.stl-pill { cursor: pointer; }
.stl-pill input[type=radio] { display: none; }
.stl-pill span {
  display: inline-block;
  padding: .25rem .65rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: .8rem;
  color: #555;
  background: #fff;
  user-select: none;
}
.stl-pill input:checked + span { background: #0073aa; color: #fff; border-color: #0073aa; }
.stl-pill:hover span { background: #f0f0f0; }

/* Section divider */
.stl-section-divider {
  font-size: .8rem;
  color: #777;
  border-top: 1px solid #ddd;
  padding-top: .8rem;
  margin: 1.2rem 0 1rem;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.stl-section-divider::before,
.stl-section-divider::after { display: none; }

/* Anonymous toggle — native checkbox */
.stl-anon-toggle { margin-bottom: 1rem; }
.stl-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  user-select: none;
  font-size: .85rem;
}
.stl-toggle-label input { display: inline; width: auto; accent-color: #0073aa; }
.stl-toggle-track { display: none; }
.stl-toggle-thumb { display: none; }
.stl-toggle-text { font-family: inherit; font-size: .85rem; text-transform: none; letter-spacing: normal; color: #333; }
.stl-anon-note { font-size: .78rem; color: #777; margin: .25rem 0 0 1.3rem; }

/* Contact fields */
.stl-contact-fields { transition: opacity .15s; }
.stl-contact-fields.is-hidden { opacity: .3; pointer-events: none; }
.stl-field-row { display: flex; gap: .8rem; }
.stl-half { flex: 1; min-width: 0; }

/* Privacy notice */
.stl-privacy-notice {
  font-size: .78rem;
  color: #666;
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: .5rem .7rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  line-height: 1.5;
}
.stl-privacy-notice svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: #777; }

/* Submit */
.stl-submit-row { display: flex; justify-content: flex-end; }
.stl-submit-btn {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: .55rem 1.2rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: normal;
  text-transform: none;
}
.stl-submit-btn:hover { background: #005177; }
.stl-btn-arrow { display: none; }

/* Messages */
.stl-message { display: none; margin-top: .8rem; padding: .6rem .8rem; font-size: .88rem; border-radius: 3px; }
.stl-message.is-success { display: block; background: #ecf7ed; border: 1px solid #46b450; color: #2a6a2e; }
.stl-message.is-error   { display: block; background: #fbeaea; border: 1px solid #dc3232; color: #a00; }

/* Responsive */
@media (max-width: 520px) {
  .stl-field-row { flex-direction: column; gap: 0; }
}
