/* =================================================================
   SYNTRIX STUDIO — CAREERS PAGE STYLESHEET
   -----------------------------------------------------------------
   Loaded only on careers.html, after style.css. Everything here
   uses the same CSS variables defined in style.css's :root (--cyan,
   --gradient, --border, etc.) so it automatically matches whatever
   palette is set there — nothing to keep in sync by hand.

   Sections:
   [1] Form inputs (text / email / tel / select / textarea)
   [2] File upload (resume)
   [3] Hiring-process numbered circles
   [4] Application status modal (success / error)
   [5] Reduced-motion override for the modal
   ================================================================= */

/* -----------------------------------------------------------------
   [1] FORM INPUTS
   ----------------------------------------------------------------- */
.form-input {
  width: 100%;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 166, 0.15);
}
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 110px; }

.form-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  display: inline-block;
}

/* Disabled / "Sending..." state for the submit button */
.btn:disabled,
.btn.is-loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* -----------------------------------------------------------------
   [2] FILE UPLOAD (resume)
   ----------------------------------------------------------------- */
.file-upload-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.file-upload-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.file-upload-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.file-upload-row input[type="file"] { display: none; }
.file-upload-name { font-size: 0.8rem; color: var(--text-muted); }

/* -----------------------------------------------------------------
   [3] HIRING PROCESS (numbered vertical timeline)
   The connecting vertical line (.timeline-rail) is defined in the
   shared style.css so it matches the About-page story timeline —
   this file only adds the filled, numbered circles on top of it.
   ----------------------------------------------------------------- */
.process-num {
  background: var(--gradient);
  color: #021014;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 240, 166, 0.25);
}

/* -----------------------------------------------------------------
   [4] APPLICATION STATUS MODAL (success / error)
   ----------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 16, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.25rem;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s ease;
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.modal-overlay.open .modal-card { transform: none; }
.modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  background: rgba(0, 240, 166, 0.12);
  color: var(--cyan);
}
.modal-icon.is-error { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

/* -----------------------------------------------------------------
   [5] ACCESSIBILITY: reduced motion
   ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-card { transition: none !important; }
}
