/* Public request form — /request/ */

.rf-form {
  gap: 28px;
}

.rf-errors {
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .35);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: #fecaca;
}

.rf-section {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.rf-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 14px;
  padding: 0;
}

.rf-field {
  margin-bottom: 14px;
}

.rf-field:last-child {
  margin-bottom: 0;
}

.rf-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 6px;
}

.rf-req {
  color: var(--accent);
}

.rf-hint {
  font-size: 12px;
  color: var(--muted-2);
  margin: -2px 0 8px;
  line-height: 1.45;
}

.rf-hint--section {
  margin: -6px 0 14px;
}

.rf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .rf-row {
    grid-template-columns: 1fr;
  }
}

/* Topic pills */
.rf-section--topics {
  margin-bottom: 0;
}

.rf-disc-group {
  margin-bottom: 16px;
}

.rf-disc-group:last-child {
  margin-bottom: 0;
}

.rf-disc-name {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.rf-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rf-topic-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.rf-topic-pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.rf-topic-pill:hover {
  border-color: rgba(158, 228, 31, .35);
  color: var(--text-soft);
}

.rf-topic-input:focus-visible + .rf-topic-pill {
  box-shadow: 0 0 0 2px rgba(158, 228, 31, .25);
}

.rf-topic-input:checked + .rf-topic-pill {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(158, 228, 31, .08);
}
