/* Teacher application. Scoped to .apply; guide.css supplies the shell. */
.apply [hidden] { display: none !important; }
.apply form { display: grid; gap: 20px; margin-top: 28px; }
.apply fieldset { border: 1px solid var(--line); padding: 18px 20px 22px; margin: 0; min-width: 0; }
.apply legend {
  color: var(--amber); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0 8px;
}
.apply legend .num { color: var(--neon); margin-right: 10px; }
.apply legend .optional { color: var(--muted); letter-spacing: 0; text-transform: none; }
.apply .field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.apply .field:first-of-type { margin-top: 4px; }
.apply label { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.apply .req { color: var(--amber); }
.apply input, .apply select, .apply textarea {
  background: #050505; border: 1px solid #2a2a2a; color: var(--neon);
  font: inherit; font-size: 15px; padding: 12px 14px; width: 100%; caret-color: var(--neon);
  border-radius: 0;
}
.apply textarea { resize: vertical; min-height: 92px; }
.apply select option { background: #050505; color: var(--neon); }
.apply input:focus, .apply select:focus, .apply textarea:focus {
  outline: none; border-color: var(--neon); box-shadow: 0 0 8px rgba(57, 255, 20, 0.35);
}
.apply input[aria-invalid="true"], .apply select[aria-invalid="true"], .apply textarea[aria-invalid="true"] {
  border-color: #ff6b6b; box-shadow: 0 0 8px rgba(255, 107, 107, 0.35);
}
.apply .hint { color: #777; font-size: 12px; line-height: 1.5; }
.apply .grid2 { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .apply .grid2 { grid-template-columns: 1fr 1fr; } }
.apply .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.apply button {
  min-height: 46px; background: var(--neon); color: #000; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 14px; letter-spacing: 0.14em;
  padding: 14px 26px; text-transform: uppercase;
}
.apply button:hover { box-shadow: 0 0 16px rgba(57, 255, 20, 0.8); }
.apply button:disabled { opacity: 0.55; cursor: wait; }
#formResult { margin-top: 18px; font-size: 14px; }
#formResult:empty { display: none; }
#formResult.err { color: #ff6b6b; }
#formResult.ok { color: var(--neon); }
.apply .confirm { border: 1px solid var(--neon); padding: 24px 26px; margin-top: 28px; }
.apply .confirm h2 { border: 0; margin: 0 0 12px; padding: 0; color: var(--neon); font-size: 1.05rem; }
.apply .confirm p:last-child { margin-bottom: 0; }
.apply .confirm:focus { outline: none; }
@media (max-width: 480px) {
  .apply fieldset { padding: 16px 14px 18px; }
  .apply .lede { margin-bottom: 24px; }
}
