/* ============================================================
   YVRMUN — Staff Application Form
   Dark theme. Mono labels. No border radius. Editorial.
   ============================================================ */

.staff-form {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 820px;
}

.staff-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.staff-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.staff-form__field--radios { gap: var(--space-3); }

.staff-form__field label,
.staff-form legend {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.staff-form__field fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.staff-form__field input[type="text"],
.staff-form__field input[type="email"],
.staff-form__field input[type="tel"],
.staff-form__field textarea,
.staff-form__field select {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  background: var(--ink-soft);
  color: var(--paper);
  border: 1px solid var(--line);
  font-size: var(--fs-base);
  font-family: inherit;
  transition: border-color 0.2s var(--ease-out),
              background 0.2s var(--ease-out);
  resize: vertical;
  border-radius: 0;
}

.staff-form__field input:focus,
.staff-form__field textarea:focus,
.staff-form__field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--ink);
}

.staff-form__field input::placeholder,
.staff-form__field textarea::placeholder {
  color: rgba(168, 168, 168, 0.4);
  font-size: var(--fs-sm);
}

.staff-form__field textarea {
  min-height: 100px;
  line-height: 1.6;
}

/* ---------- RADIO / CHECKBOX ROWS ---------- */
.radio-row,
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.radio-row label,
.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: 1px solid var(--line);
  cursor: none;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--paper);
  transition: border-color 0.2s var(--ease-out),
              background 0.2s var(--ease-out),
              color 0.2s var(--ease-out);
}

@media (hover: none) { .radio-row label, .checkbox-grid label { cursor: pointer; } }

.radio-row label:hover,
.checkbox-grid label:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.radio-row input,
.checkbox-grid input {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
}

.radio-row label:has(input:checked),
.checkbox-grid label:has(input:checked) {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

/* ---------- WORD COUNTER ---------- */
.staff-form__limit {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.1em;
}

.staff-form__counter {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  color: var(--muted);
  text-align: right;
}

.staff-form__counter.is-over { color: var(--accent); font-weight: 700; }

/* ---------- FILE INPUT ---------- */
.staff-form__field input[type="file"] {
  padding: var(--space-4);
  background: var(--ink-soft);
  border: 1px dashed var(--line);
  color: var(--muted-dark);
  cursor: none;
  font-size: var(--fs-sm);
  transition: border-color 0.2s var(--ease-out),
              background 0.2s var(--ease-out);
  font-family: var(--font-mono);
  border-radius: 0;
}

@media (hover: none) { .staff-form__field input[type="file"] { cursor: pointer; } }

.staff-form__field input[type="file"]:hover {
  border-color: var(--accent);
  background: var(--ink);
}

.staff-form__field input[type="file"]::file-selector-button {
  padding: var(--space-2) var(--space-4);
  margin-right: var(--space-4);
  background: var(--accent);
  color: var(--ink);
  border: none;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: none;
}

.staff-form__hint {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.staff-form__hint.is-error { color: var(--accent); font-weight: 500; }

/* ---------- WARNINGS / ERRORS ---------- */
.staff-form__warning {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.staff-form__error {
  padding: var(--space-4) var(--space-5);
  background: rgba(212, 245, 66, 0.08);
  border-left: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.staff-form__error--reject {
  background: rgba(212, 245, 66, 0.15);
  animation: shake 0.4s var(--ease-out);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* ---------- ACTIONS ---------- */
.staff-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.staff-form__note {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.6;
  text-transform: uppercase;
}

.staff-form button[type="submit"] {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-xs);
}

.staff-form button[type="submit"]:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---------- SUCCESS STATE ---------- */
.staff-success {
  margin-top: var(--space-8);
  padding: var(--space-10);
  background: var(--ink-soft);
  border: 1px solid var(--accent);
  text-align: left;
  max-width: 640px;
  animation: success-in 0.6s var(--ease-spring);
}

@keyframes success-in {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.staff-success__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.staff-success__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--paper);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.staff-success__code {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding: var(--space-5);
  background: var(--ink);
  border: 1px solid var(--line);
  margin-bottom: var(--space-4);
  user-select: all;
}

.staff-success__copy {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--accent);
  margin-bottom: var(--space-6);
  cursor: none;
  transition: background 0.2s var(--ease-out),
              color 0.2s var(--ease-out);
}

@media (hover: none) { .staff-success__copy { cursor: pointer; } }

.staff-success__copy:hover {
  background: var(--accent);
  color: var(--ink);
}

.staff-success__body {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  color: var(--muted-dark);
  max-width: 50ch;
  line-height: 1.7;
}

.staff-success__body a { color: var(--accent); font-weight: 500; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .staff-form__grid { grid-template-columns: 1fr; }
  .staff-form__actions { flex-direction: column; align-items: stretch; }
}