/* Work With Us (page-hiring.php): the job application form. The card, fields, buttons and messages are the
   event pages' (css/events.css, loaded first; the column has both classes); this adds what only this form has. */

/* At most 760px wide in every window (the store column is 980px, or 1240px from 1500px), in a paper panel just as
   wide (see events.css). One card across it. Rows: name, email and phone; the yes/no questions side by side; the
   seven days; hours and resume; the note */
#FullColumn.Hiring {
  max-width: 760px;
}
body.page-template-page-hiring #Container {
  max-width: 800px;
}
#FullColumn.Hiring .Fields.Contact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#FullColumn.Hiring .Fields.Extra {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
#FullColumn.Hiring .Questions {
  display: -ms-grid;
  display: grid;
  grid-column-gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Yes/no questions: the question, then a small Yes | No switch */
#FullColumn.Hiring fieldset.YesNo .Segments {
  max-width: 200px;
}

/* A shift choice for each day of the week: four and three to a row, all seven above 1040px (where the column
   is the full store width), two to a row on phones */
#FullColumn.Hiring .Fields.Days {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
@media all and (min-width: 1041px) {
  #FullColumn.Hiring .Fields.Days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
@media all and (max-width: 480px) {
  #FullColumn.Hiring .Fields.Days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* master.css sets appearance: none on every input; the file picker needs its own look */
#FullColumn.Hiring input[type=file] {
  -webkit-appearance: auto;
  appearance: auto;
  box-sizing: border-box;
  color: #65612f;
  display: block;
  font-family: "museo-sans-rounded", Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 8px 0 0;
  max-width: 100%;
  text-transform: none;
}
#FullColumn.Hiring input[type=file]::file-selector-button {
  background: #65612f;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-family: "museo-sans-rounded", Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 10px 0 0;
  padding: 7px 14px;
  text-transform: uppercase;
}
#FullColumn.Hiring input[type=file]:focus-visible {
  outline: 2px solid #f15c22;
  outline-offset: 2px;
}

/* Narrow windows: one field to a row */
@media all and (max-width: 640px) {
  #FullColumn.Hiring .Fields.Contact,
  #FullColumn.Hiring .Fields.Extra {
    grid-template-columns: minmax(0, 1fr);
  }
}
