/* =====================================================================
   Hiring page: why join us, the three steps to apply, and the application form
   (loaded after site.css, by the English and Spanish hiring pages)
   ===================================================================== */

/* the button in the job card */
.jobs-cta { margin: 1.15rem 0 .1rem; text-align: center; }
.jobs-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .3rem 1.8rem;
  border-radius: 99px; background: var(--red); color: var(--cream); box-shadow: 0 .2rem 0 #6E1712;
  font-weight: 700; font-size: 1.25rem; letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  transition: transform .08s ease, box-shadow .08s ease;
}
.jobs-btn:active { transform: translateY(.15rem); box-shadow: 0 .05rem 0 #6E1712; }
.jobs-btn:focus-visible { outline: .2rem solid var(--ink); outline-offset: .2rem; }
@media (hover: hover) { .jobs-btn:hover { transform: translateY(-.1rem); box-shadow: 0 .3rem 0 #6E1712; } }

/* why join us: four groups, one column on phones and two on computers */
.perks { display: grid; gap: 1.25rem; }
.perk { min-width: 0; }
.perk h3 { margin: 0 0 .5rem; font-weight: 700; font-size: 1.2rem; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase; color: var(--price); }
.perk .ticks { gap: .5rem; }

@media (min-width: 46rem) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.75rem; width: 100%; max-width: 52rem; margin: 0 auto; }
  .need-list { width: 100%; max-width: 34rem; margin: 0 auto; }
}

/* the three steps on the red band */
.apply-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 38rem; display: grid; gap: .9rem; text-align: left; }
.apply-step {
  display: flex; gap: .8rem; padding: 1rem 1.05rem 1.15rem .85rem;
  background: var(--btn-bg); color: var(--btn-ink); border-radius: 1rem; box-shadow: 0 .25rem 0 var(--btn-edge);
}
.step-num {
  flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--gold); color: var(--espresso);
  font-family: "Alegreya SC", Georgia, serif; font-weight: 700; font-size: 1.35rem; line-height: 1;
}
.step-body { flex: 1 1 auto; min-width: 0; }
.step-body h3 { margin: .35rem 0 .3rem; font-weight: 700; font-size: 1.4rem; line-height: 1.1; }
.step-body > p { margin: 0; font-weight: 500; font-size: 1.15rem; line-height: 1.3; color: var(--btn-sub); text-wrap: pretty; }
.step-download {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 3rem; margin-top: .7rem; padding: .3rem 1.2rem .3rem 1rem;
  border-radius: 99px; background: var(--espresso); color: var(--cream); font-weight: 700; font-size: 1.15rem; line-height: 1.1; text-decoration: none;
}
.step-download svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--gold); }
.step-download:focus-visible { outline: .2rem solid var(--brown); outline-offset: .2rem; }
@media (hover: hover) { .step-download:hover { background: var(--brown); } }

/* the form */
.apply-form { display: grid; gap: .8rem; margin-top: .75rem; color-scheme: light; }
.apply-form[hidden] { display: none; }
.ap-row { display: grid; gap: .8rem; }
@media (min-width: 34rem) { .ap-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ap-field { min-width: 0; }
.ap-field > label:not(.ap-file), .ap-label { display: block; margin-bottom: .2rem; font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.ap-optional { font-weight: 500; color: var(--btn-sub); }
.apply-form input[type="text"], .apply-form input[type="tel"], .apply-form input[type="email"] {
  display: block; width: 100%; min-height: 3rem; padding: .4rem .7rem; font: inherit; font-weight: 500;
  color: var(--espresso); background: #FFFDF6; border: 2px solid rgba(74, 36, 21, .35); border-radius: .6rem;
}
.apply-form input:focus-visible { outline: .2rem solid var(--gold); outline-offset: .05rem; border-color: var(--brown); }
.apply-form input[aria-invalid="true"] { border-color: var(--red); }

/* the file pickers: the real control covers the whole box, so a tap anywhere opens it */
.ap-file {
  position: relative; display: flex; align-items: center; gap: .7rem; min-height: 3.2rem; padding: .35rem .55rem;
  background: #FFFDF6; border: 2px dashed rgba(74, 36, 21, .4); border-radius: .6rem; cursor: pointer;
}
.ap-file input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ap-pick { flex: none; padding: .3rem .85rem; border-radius: 99px; background: var(--brown); color: var(--cream); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.ap-chosen { min-width: 0; overflow-wrap: anywhere; font-weight: 500; font-size: 1.02rem; line-height: 1.2; color: var(--btn-sub); }
.ap-file.has-file { border-style: solid; border-color: var(--brown); }
.ap-file.has-file .ap-chosen { color: var(--espresso); font-weight: 700; }
.ap-file:focus-within { outline: .2rem solid var(--gold); outline-offset: .05rem; }
.ap-file.is-invalid { border-color: var(--red); }

.ap-hint, .ap-fine { margin: 0; font-weight: 500; font-size: 1.02rem; line-height: 1.28; color: var(--btn-sub); }
.ap-fine a { color: var(--btn-ink); font-weight: 700; }

/* hidden from people, as a trap for robots */
.ap-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ap-send {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 3.5rem; padding: .3rem 1rem;
  border: 0; border-radius: 99px; background: var(--red); color: var(--cream); box-shadow: 0 .25rem 0 #6E1712; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.4rem; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .08s ease, box-shadow .08s ease;
}
.ap-send:active { transform: translateY(.15rem); box-shadow: 0 .08rem 0 #6E1712; }
.ap-send:focus-visible { outline: .22rem solid var(--brown); outline-offset: .2rem; }
.ap-send[disabled] { opacity: .7; cursor: progress; transform: none; }
@media (hover: hover) { .ap-send:not([disabled]):hover { background: #B9352B; } }

.ap-status { margin: 0; padding: .6rem .75rem; border-radius: .6rem; background: #FBE3DF; color: #7A1712; font-weight: 700; font-size: 1.08rem; line-height: 1.28; overflow-wrap: anywhere; }
.ap-status[hidden] { display: none; }
.ap-done { margin-top: .75rem; padding: 1rem 1.1rem; border-radius: .8rem; background: #E4F1DF; color: #1E5222; }
.ap-done[hidden] { display: none; }
.ap-done:focus { outline: none; }
.ap-done strong { display: block; font-size: 1.4rem; line-height: 1.15; }
.ap-done p { margin: .25rem 0 0; font-weight: 500; font-size: 1.15rem; line-height: 1.3; }

/* other ways to reach us */
.apply-other { margin: 1.6rem 0 .75rem; font-weight: 700; font-size: 1.3rem; line-height: 1.2; }

@media (min-width: 46rem) {
  .apply-step { gap: 1rem; padding: 1.15rem 1.4rem 1.3rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .jobs-btn, .ap-send { transition: none; }
}
