/* ── Employer removal / correction form (pages/RemoveListing.jsx) ──────────

   ⚠️ EVERY RULE BELOW IS AN OVERRIDE, and the specificity is deliberate. This
   sheet styles BARE `input` and `textarea` elements for the filter sidebar
   (~line 777): fixed `width: 13.5rem`, `text-align: center`, a grey `:hover`
   fill, and — the one that actually bit — `input:not(:placeholder-shown)`
   painting the control `--brand-fill` (#ff8000) as an "active filter" cue.

   These fields carry no `placeholder` attribute, so `:placeholder-shown` never
   matches, so `:not(:placeholder-shown)` matches ALWAYS: the form rendered
   solid orange even while empty. A plain `.removal-input` class (0,1,0) loses
   to `input:not(:placeholder-shown)` (0,1,1), which is why each rule here is
   qualified with `.removal-form` to clear it.

   Keep the qualification if you touch these. Dropping it silently hands the
   form back to the filter sidebar's styling. */
.removal-form {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
  margin: 2.4rem 0 1.2rem;
  max-width: 42rem;
}
.removal-form .removal-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.removal-form .profile-list-label {
  letter-spacing: 0.02em;
  opacity: 0.9;
  margin: 0;
}
.removal-form .removal-hint {
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.55;
}

/* The fields themselves: white, so they read as writable on a black page and
   match the submit button. Specificity beats the bare-element rules above. */
.removal-form .removal-input,
.removal-form .removal-input:hover,
.removal-form .removal-input:focus,
.removal-form .removal-input:not(:placeholder-shown) {
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background-color: #fff;
  color: #111;
  /* Left, not the sidebar's centre — these are sentences, not filter chips. */
  text-align: left;
  /* 16px floor or iOS zooms the page on focus, same as the chat composer.
     The rem half stays near 1 because this sheet's root is 16px at desktop and
     steps down to 12 — 1.5rem read as a 24px field, which towered over the
     body copy next to it. */
  font-size: max(1.05rem, 16px);
  font-family: inherit;
  line-height: 1.5;
  cursor: text;
}
.removal-form .removal-input:focus-visible {
  outline: 3px solid var(--brand-ring);
  outline-offset: 1px;
  border-color: var(--brand-fill-edge);
}
.removal-form .removal-textarea {
  resize: vertical;
  min-height: 7rem;
}

/* The radio group is a plain list — no container, no fill. The label above it
   already scopes the question, and a boxed group on a black page reads as a
   disabled panel rather than a choice. */
.removal-form .removal-radio {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  cursor: pointer;
  font-size: 1.15rem;
}
.removal-form .removal-radio input,
.removal-form .removal-radio input:hover,
.removal-form .removal-radio input:not(:placeholder-shown) {
  /* Native radio kept — a custom control would cost keyboard and screen-reader
     behaviour for nothing. Only its size and colour are ours. */
  width: 1.8rem;
  min-width: 1.8rem;
  height: 1.8rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--brand-fill);
  background: none;
  border: 0;
  cursor: pointer;
}
.removal-form .removal-submit {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.85rem 2rem;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: max(1.05rem, 16px);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.removal-form .removal-submit:hover {
  opacity: 0.85;
}
.removal-form .removal-submit:disabled {
  opacity: 0.45;
  cursor: default;
}
.removal-form .removal-result:empty {
  display: none;
}
.removal-form .removal-result {
  margin: 0;
  padding: 1.3rem 1.5rem;
  border-radius: 6px;
  border: 1px solid transparent;
  line-height: 1.55;
  font-size: 1.05rem;
}
.removal-form .removal-result--ok {
  border-color: rgba(120, 220, 150, 0.45);
  background: rgba(120, 220, 150, 0.1);
}
.removal-form .removal-result--err {
  border-color: rgba(255, 140, 140, 0.45);
  background: rgba(255, 140, 140, 0.1);
}

