/* ---------- Careers page: intro + application form ---------- */
/* Scoped to careers.html only. Reuses tokens (--blue, --ink, --gray-*, --radius,
   --ease, --max) and .section/.section-head/.card conventions already defined
   in css/style.css, loaded first. */

.careers-intro{padding-top:160px;}

/* ---------- Form card ---------- */
.form-card{
  max-width:640px;margin:0 auto;
  background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius);
  padding:40px;
  box-shadow:0 24px 60px -32px rgba(11,14,20,.14);
}
@media (max-width:640px){
  .form-card{padding:28px 20px;border-radius:16px;}
}

.form-field{display:flex;flex-direction:column;gap:8px;margin-bottom:22px;}
.form-field label{font-size:13px;font-weight:600;letter-spacing:.01em;color:var(--gray-700);}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea{
  width:100%;min-width:0;
  padding:13px 18px;min-height:44px;
  border-radius:999px;
  border:1px solid var(--gray-300);
  background:var(--gray-100);
  color:var(--ink);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:15px;
  outline:none;
  transition:border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  appearance:none;-webkit-appearance:none;
}
.form-field textarea{
  border-radius:16px;min-height:120px;resize:vertical;line-height:1.5;
}
.form-field select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a3f4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;background-size:16px;
  padding-right:44px;
  cursor:pointer;
}
.form-field input[type="text"]::placeholder,
.form-field input[type="email"]::placeholder,
.form-field input[type="tel"]::placeholder,
.form-field textarea::placeholder{color:var(--gray-500);}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  border-color:var(--blue);
  background:var(--white);
  box-shadow:0 0 0 4px rgba(24,80,225,.14);
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid{
  border-color:var(--form-error);
  background:var(--white);
}

.form-field input[type="file"]{
  width:100%;
  padding:12px 16px;min-height:44px;
  border-radius:16px;
  border:1px solid var(--gray-300);
  background:var(--gray-100);
  color:var(--gray-700);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:14px;
  transition:border-color .3s var(--ease), background .3s var(--ease);
}
.form-field input[type="file"]:focus{border-color:var(--blue);background:var(--white);}
.form-field input[type="file"].is-invalid{border-color:var(--form-error);}

.form-hint{margin:0;font-size:12.5px;color:var(--gray-500);}

/* ---------- Inline field errors (adapted from gate.css's .gate__pass-error
   red/dot pattern, re-tuned for a light background) ---------- */
:root{--form-error:#c8362a;}
.form-error{
  margin:0;font-size:13px;font-weight:500;color:var(--form-error);
  display:flex;align-items:center;gap:7px;
}
.form-error[hidden]{display:none;}
.form-error::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--form-error);flex:none;}

/* ---------- Submit-level error banner ---------- */
.form-banner{
  margin:4px 0 22px;padding:14px 18px;border-radius:14px;
  font-size:14px;font-weight:500;line-height:1.5;
  display:flex;align-items:flex-start;gap:8px;
}
.form-banner[hidden]{display:none;}
.form-banner--error{
  background:rgba(200,54,42,.07);border:1px solid rgba(200,54,42,.22);color:var(--form-error);
}
.form-banner--error::before{content:'';width:6px;height:6px;margin-top:6px;border-radius:50%;background:var(--form-error);flex:none;}

/* ---------- Honeypot: visually hidden, still reachable by naive bots that
   skip [type=hidden] but not off-screen fields ---------- */
.form-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}

/* ---------- Submit button ---------- */
.form-submit{width:100%;justify-content:center;margin-top:6px;}
.form-submit[disabled]{opacity:.6;cursor:not-allowed;}

/* ---------- Success panel ---------- */
.form-success{text-align:center;padding:12px 0 4px;}
.form-success[hidden]{display:none;}
.form-success__icon{
  width:60px;height:60px;margin:0 auto 20px;border-radius:50%;
  background:rgba(24,80,225,.08);color:var(--blue);
  display:flex;align-items:center;justify-content:center;
}
.form-success__icon svg{width:28px;height:28px;}
.form-success h3{font-size:22px;margin-bottom:10px;}
.form-success p{font-size:15px;max-width:40ch;margin:0 auto;}

@media (max-width:430px){
  .careers-intro{padding-top:140px;}
}
