/* =====================================================================
   Acme Pharma - careers.css
   Styles for Careers.html, Careers-<Job>.html and apply-<Job>.html.
   Uses the site's own colours (--dark-slate-blue-2, --text-color) and
   the gradient card from .career-main-content-wrapper.
   ===================================================================== */

/* Hide job pages until careers.js has checked the job is open */
html[data-job-guard] body { visibility: hidden; }
.jobs-loading { visibility: hidden; }

/* ---------- shared card look ---------- */
.job-detail, .job-card, .jobs-intro, .job-form, .job-success, .no-openings { font-family: Eina, sans-serif; }
.job-detail__body p, .job-card__summary, .jobs-intro__text, .job-success__text, .no-openings__text { font-size: inherit; line-height: inherit; }
.job-card__summary, .jobs-intro__text, .job-success__text, .no-openings__text { font-size: 17px; line-height: 1.7; }
.job-form__input, .job-form__submit, .job-form select { font-family: Eina, sans-serif; }
.career-main-content-wrapper.no-openings,
.career-main-content-wrapper.job-card,
.career-main-content-wrapper.job-detail {
  box-shadow: 0 10px 30px rgba(58, 85, 151, .12);
}

/* ---------- No current openings ---------- */
.career-main-content-wrapper.no-openings { align-items: center; text-align: center; padding: 56px 48px 44px; margin-top: 40px; }
.no-openings__icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; color: #3a5597; box-shadow: 0 4px 12px rgba(58, 85, 151, .18); margin-bottom: 22px; }
.no-openings__eyebrow, .job-eyebrow { font-family: Eina, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #3a5597; opacity: .75; margin-bottom: 6px; }
.no-openings__heading { color: var(--dark-slate-blue-2); font-family: Markpro, sans-serif; font-size: 4vw; line-height: 110%; margin: 6px 0 22px; }
.no-openings__text { max-width: 720px; margin: 0 auto 14px; font-size: 17px; line-height: 1.7; color: var(--text-color); }
.no-openings__divider { width: 64px; height: 3px; border-radius: 2px; background: #3a5597; opacity: .45; margin: 18px auto 22px; }
.no-openings__links, .job-links { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.no-openings__links { justify-content: center; }
.no-openings__link .text-span, .job-link .text-span { color: #2e2e2e; letter-spacing: 1px; font-size: 16px; }
.no-openings__link .text-span:hover, .job-link .text-span:hover { letter-spacing: 3px; }

/* ---------- Job list (Careers.html) ---------- */
.jobs-intro { text-align: center; margin: 40px auto 10px; max-width: 760px; }
.jobs-intro__heading { color: var(--dark-slate-blue-2); font-family: Markpro, sans-serif; font-size: 40px; line-height: 1.15; margin: 6px 0 10px; }
.jobs-intro__text { font-size: 17px; line-height: 1.7; color: var(--text-color); margin: 0; }
.career-main-content-wrapper.job-card { padding: 36px 40px 30px; margin-top: 30px; margin-bottom: 10px; }
.job-card__title { color: var(--dark-slate-blue-2); font-family: Markpro, sans-serif; font-size: 40px; line-height: 1.1; margin: 0 0 14px; }
.job-card__summary { font-size: 17px; line-height: 1.7; color: var(--text-color); margin: 16px 0 20px; max-width: 900px; }

.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job-meta__pill { display: inline-block; padding: 5px 12px; border-radius: 20px; background: rgba(255, 255, 255, .75); color: #3a5597; font-family: Eina, sans-serif; font-size: 13px; font-weight: 700; line-height: 1.3; }
.job-meta__pill--date { background: #3a5597; color: #fff; }

/* ---------- Job details page ---------- */
.career-main-content-wrapper.job-detail { padding: 44px 48px 36px; margin-top: 40px; }
.job-detail__title { color: var(--dark-slate-blue-2); font-family: Markpro, sans-serif; font-size: 4.2vw; line-height: 1.05; margin: 4px 0 16px; }
.job-detail__body { width: 100%; max-width: 980px; margin-top: 22px; color: var(--text-color); font-size: 17px; line-height: 1.75; }
.job-detail__body h3 { color: var(--dark-slate-blue-2); font-family: Markpro, sans-serif; font-size: 22px; line-height: 1.3; margin: 26px 0 8px; }
.job-detail__body p { margin: 0 0 14px; }
.job-detail__body ul { margin: 0 0 14px; padding-left: 22px; }
.job-detail__body li { margin-bottom: 4px; }
.job-detail .job-links { margin-top: 24px; }

/* ---------- Application form ---------- */
.job-form { width: 100%; max-width: 820px; margin-top: 24px; }
.job-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.job-form__field { margin-bottom: 18px; }
.job-form__label { display: block; margin-bottom: 6px; color: #2e2e2e; font-family: Eina, sans-serif; font-size: 14px; font-weight: 700; text-align: left; }
.job-form__label .req { color: #b3261e; margin-left: 2px; }
.job-form__label .opt { color: var(--text-color); font-weight: 400; margin-left: 4px; }
.job-form__input {
  display: block; width: 100%; min-height: 44px; margin: 0; padding: 10px 14px;
  border: 1px solid #c9cfe0; border-radius: 10px; background: #fff;
  color: #2b2a35; font-size: 16px; line-height: 1.4; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.job-form__input::placeholder { color: #8a8d99; }
.job-form__input:focus { outline: none; border-color: #3a5597; box-shadow: 0 0 0 3px rgba(58, 85, 151, .18); }
textarea.job-form__input { min-height: 130px; resize: vertical; }
.job-form__hint { margin-top: 5px; font-size: 13px; color: var(--text-color); }

.job-form__file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border: 1px dashed #9aa6cc; border-radius: 10px; background: rgba(255, 255, 255, .7); }
.job-form__file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.job-form__file-btn { display: inline-block; padding: 8px 16px; border-radius: 6px; background: #3a5597; color: #fff; font-family: Eina, sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; }
.job-form__file-btn:hover { background: #4c82b7; }
.job-form__file input[type="file"]:focus + .job-form__file-btn { box-shadow: 0 0 0 3px rgba(58, 85, 151, .3); }
.job-form__file-name { color: #2b2a35; font-size: 15px; word-break: break-all; }

.job-form__check { font-weight: 400; display: flex; align-items: flex-start; gap: 10px; color: var(--text-color); font-size: 15px; line-height: 1.5; }
.job-form__check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.job-form__check a { color: #3a5597; text-decoration: underline; }

.job-form__field--error .job-form__input,
.job-form__field--error .job-form__file { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.job-form__field--error .job-form__check { color: #b3261e; }

.job-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.job-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
.job-form__submit {
  padding: 13px 28px; border: 0; border-radius: 8px; background: #3a5597; color: #fff;
  font-family: Eina, sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 1px; cursor: pointer;
  transition: background-color .2s, letter-spacing .4s;
}
.job-form__submit:hover { background: #4c82b7; letter-spacing: 2px; }
.job-form__submit[disabled] { opacity: .6; cursor: wait; }
.job-form__status { min-height: 1.4em; margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.job-form__status--error { color: #b3261e; }
.job-form__status--ok { color: #1e7a3c; }
.job-form__status--info { color: #3a5597; }

.job-success { text-align: center; padding: 20px 0 6px; width: 100%; }
.job-success__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #1e7a3c; box-shadow: 0 4px 12px rgba(58, 85, 151, .18); margin-bottom: 14px; }
.job-success__heading { color: var(--dark-slate-blue-2); font-family: Markpro, sans-serif; font-size: 34px; margin: 0 0 10px; }
.job-success__text { max-width: 640px; margin: 0 auto 18px; font-size: 17px; line-height: 1.7; color: var(--text-color); }
.job-success .job-links { justify-content: center; }

/* ---------- responsive ---------- */
@media screen and (max-width: 991px) {
  .no-openings__heading { font-size: 44px; }
  .job-detail__title { font-size: 48px; }
}
@media screen and (max-width: 767px) {
  .career-main-content-wrapper.no-openings { padding: 40px 24px 32px; }
  .career-main-content-wrapper.job-card { padding: 28px 22px 24px; }
  .career-main-content-wrapper.job-detail { padding: 32px 22px 28px; }
  .no-openings__heading { font-size: 34px; }
  .no-openings__text { font-size: 16px; }
  .job-card__title, .jobs-intro__heading { font-size: 30px; }
  .job-detail__title { font-size: 36px; }
  .job-card__summary, .job-detail__body, .jobs-intro__text { font-size: 16px; }
  .job-form__row { grid-template-columns: 1fr; }
}
@media screen and (max-width: 479px) {
  .career-main-content-wrapper.no-openings { padding: 32px 16px 28px; margin-top: 24px; }
  .career-main-content-wrapper.job-card, .career-main-content-wrapper.job-detail { padding: 26px 16px 22px; }
  .no-openings__heading { font-size: 28px; }
  .no-openings__text { font-size: 15px; }
  .job-card__title, .jobs-intro__heading { font-size: 26px; }
  .job-detail__title { font-size: 30px; }
  .no-openings__links, .job-links { flex-direction: column; gap: 10px; }
  .job-form__actions { flex-direction: column; align-items: stretch; }
  .job-form__submit { width: 100%; }
}
