.ctf-whistleblower-tip {
  max-width: 40rem;
  margin: 1.5rem 0;
}

.ctf-whistleblower-tip__form {
  display: block;
}

.ctf-whistleblower-tip__field {
  margin-bottom: 1.25rem;
}

.ctf-whistleblower-tip__field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #1a2a3a;
}

.ctf-whistleblower-tip__required {
  color: #dd230f;
  margin-left: 0.15rem;
}

.ctf-whistleblower-tip__optional {
  font-weight: 400;
  color: #6c757d;
  font-size: 0.9em;
}

.ctf-whistleblower-tip__control {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ctf-whistleblower-tip__control:hover {
  border-color: #adb5bd;
}

.ctf-whistleblower-tip__control:focus {
  outline: none;
}

.ctf-whistleblower-tip__control:focus-visible {
  border-color: #dd230f;
  box-shadow: 0 0 0 3px rgba(221, 35, 15, 0.12);
}

textarea.ctf-whistleblower-tip__control {
  min-height: 10rem;
  resize: vertical;
}

.ctf-whistleblower-tip__hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ctf-whistleblower-tip__actions {
  margin-top: 0.5rem;
}

.ctf-whistleblower-tip__submit {
  background-color: #dd230f;
  color: #fff;
  border: 2px solid #dd230f;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ctf-whistleblower-tip__submit:hover:not(:disabled) {
  background-color: #b81d0c;
  border-color: #b81d0c;
}

.ctf-whistleblower-tip__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(221, 35, 15, 0.25);
}

.ctf-whistleblower-tip__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ctf-whistleblower-tip__messages {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.ctf-whistleblower-tip__messages--success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.ctf-whistleblower-tip__messages--error {
  background: #fdecea;
  color: #7f1d1d;
  border: 1px solid #f5c2c0;
}

/* Editor preview chrome */
.ctf-whistleblower-tip-editor {
  border: 1px dashed #cfd8dc;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: #fafbfc;
}

.ctf-whistleblower-tip-editor__note {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #546e7a;
}

.ctf-whistleblower-tip__form--preview .ctf-whistleblower-tip__field {
  margin-bottom: 0.85rem;
}

.ctf-whistleblower-tip__form--preview textarea,
.ctf-whistleblower-tip__form--preview input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #f1f3f5;
}

.ctf-whistleblower-tip__form--preview .ctf-whistleblower-tip__submit {
  margin-top: 0.25rem;
  opacity: 0.7;
}
