/* Apply section: two-column intro + form panel, underline inputs, the dashed CV drop box, the
   question textareas apply.js adds under #questions, the privacy/agreement rows and the error
   notice (the receipt panel lives in receipt.css). Field styling keys off the form's own
   label/input/textarea elements so script-built questions need no extra classes. */

.apply { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 84px); }
.apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.apply-title { margin-bottom: 16px; }
.apply-lede { max-width: 40ch; font-size: 16px; line-height: 1.65; color: var(--mid); }

/* Form panel */
.apply-panel { min-width: 0; }
.apply-form {
  display: grid;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 34px);
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 18px; }
.apply-form label, .field { display: grid; gap: 8px; }
.field-label, .apply-form label, .questions label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}
.apply-form input:not([type="checkbox"]):not([type="file"]), .apply-form textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--chip);
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}
.apply-form input::placeholder, .apply-form textarea::placeholder { color: #8d99a3; }
.apply-form input:focus-visible { border-bottom-color: var(--blue); }
/* The underline alone is too faint a keyboard cue; restore a ring for keyboard focus only. */
.apply-form input:focus-visible, .apply-form textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.apply-form textarea {
  border: 1px solid var(--chip);
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}
.apply-form textarea:focus-visible { border-color: var(--blue); }
.questions { display: grid; gap: 18px; }
.questions label, .questions .field-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: var(--dark);
}
.questions:empty { display: none; }

/* CV drop box: the native file input sits inside the dashed box so the chosen name stays visible. */
.apply-form .dropbox {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 20px;
  border: 1px dashed var(--chip);
  background: #fbfcfc;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.dropbox:hover, .dropbox:focus-within { border-color: var(--blue); }
.dropbox-text { font-family: var(--font-body); font-size: 14.5px; letter-spacing: normal; text-transform: none; color: var(--dark); }
.dropbox-browse { color: var(--blue); font-weight: 600; }
.dropbox-hint { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); }
.dropbox-input {
  margin-top: 8px;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--dark);
}

/* Privacy notice, agreement, notices, submit */
.privacy { font-size: 13.5px; line-height: 1.6; color: var(--mid); }
.privacy:empty { display: none; }
.apply-form .agreement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: var(--dark);
}
.agreement input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--blue); }
.form-notice {
  padding: 14px 16px;
  border-left: 2px solid var(--blue);
  background: var(--paper);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--dark);
}
.apply-submit { margin-top: 4px; padding: 16px 24px; }
.apply-submit:disabled { opacity: 0.6; cursor: wait; }
.eeo { font-size: 12.5px; line-height: 1.55; color: var(--mid); }
