/* PAGE-SCOPED HAND FIX — Employment: Apply Now (/about-cae/careers/apply-now/), Kate 869ew0wug.
 * Enqueued ONLY on that route (functions.php), every rule ALSO under the page's body class.
 * Values are the design's own, in FRAME px (the page presents at zoom 0.8, so these CSS values
 * are frame px), read from page-runs/cae-aboutus-careers-applynow-v3/figma-rest/figma-dump.json:
 *   INPUT 12011:134189 1120 wide; rows '#' 12011:134190/134193/134196 = two Form cells 548 wide,
 *   24 apart, 96 high (label 28 + 12 + surface 56); rows pitch 120 (24 between rows).
 *   Resume 12011:134200 / Letter 12011:134215: label 28, 12, white panel 12011:134202 padding 24,
 *   itemSpacing 16; each option: title 28, 12, a 140-high box -- Option 1 'File' 12011:134206
 *   (#FFF, 1px #C7C6C6 dashed 8/8, radius 5) holding a 48px Light Cream disc with the 28.8px
 *   document glyph, 12, then 'Click here to upload your file' 20/28 in a 256-wide box (ONE line);
 *   Option 2 the text surface 12011:134214 (140 high, radius 4).
 */

/* The form flows (site-form--flow); this is its grid: two 548 columns, 24 gutters. */
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow.site-form--flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
  width: 100%;
  padding-inline: 0;
}

body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow > .site-form__status,
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow > .site-form__field--wide,
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow > .site-form__group {
  grid-column: 1 / -1;
}

body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow > .site-form__status {
  margin: 0;
}

/* The runtime's honeypot wrapper is not a row: out of the grid, no box (it opened a 24px row gap
 * above First Name -- measured 185 vs the drawn 160 from the band top). */
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow > .site-form__hp {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Surfaces: 56 high (14 + 28 + 14 incl. the 1px border), as the drawn Form instance. */
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__control:not(.site-form__control--textarea) {
  height: 56px;
}

/* Every label on ONE line at its drawn size; the longest ("What position are you interested
 * in?", 348 wide) fits the 548 cell at both widths. */
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__label {
  display: block;
}

/* ── RESUME / LETTER OF INTEREST / ANY ADDITIONAL MATERIALS ─────────────────────────────── */
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__group {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Label 28, then 12 to the white panel (12011:134201 -> 12011:134202). */
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__group-legend {
  float: none;
  width: 100%;
  padding: 0;
  margin: 0 0 12px;
}

body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__group-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background-color: var(--wp--preset--color--white, #ffffff);
}

body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__option {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__option-title {
  display: block;
  margin: 0;
  font-family: var(--wp--preset--font-family--acumin-pro, inherit);
  font-size: var(--wp--preset--font-size--p-2-bold, 20px);
  line-height: var(--wp--custom--line-heights--p-2-bold, 28px);
  font-weight: var(--wp--custom--font-weights--p-2-bold, 700);
  color: var(--wp--preset--color--primary-granite-gray, #767769);
}

/* Option 2: a real text area on the drawn 140 surface; it grows with the reader (resize). */
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__control--textarea {
  min-height: 140px;
  height: 140px;
  resize: vertical;
}

/* Option 1: the drawn dashed box. The native file input covers the whole box (click AND drop
 * both land on it), transparent; the drawn face shows through. */
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__dropzone {
  position: relative;
  min-width: 0;
}

body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__dropzone-face {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 140px;
  padding: 0 16px;
  border-radius: 5px;
  background-color: var(--wp--preset--color--white, #ffffff);
  /* 1px #C7C6C6, dash 8 gap 8, radius 5 -- a CSS 'dashed' border cannot carry the 8/8 dash. */
  /* stroke 2 on the box edge: the outer half is clipped, the inner 1px shows (the drawn INSIDE stroke). */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect x='0' y='0' width='100%25' height='100%25' rx='5' ry='5' fill='none' stroke='%23C7C6C6' stroke-width='2' stroke-dasharray='8 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  cursor: pointer;
}

body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__file {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
  font-size: 0;
}

body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__dropzone:focus-within .site-form__dropzone-face,
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__dropzone.is-dragover .site-form__dropzone-face {
  outline: 2px solid var(--wp--preset--color--primary-mint-green, #83b390);
  outline-offset: 2px;
}

body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__dropzone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--light-cream, #f7f4e2);
}

body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__dropzone-icon img {
  display: block;
  width: 28.8px;
  height: 28.8px;
  max-width: none;
}

/* Kate 90120269573577: "This is supposed to fit on one line: Click here to upload your file". */
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__dropzone-text {
  display: block;
  white-space: nowrap;
  font-family: var(--wp--preset--font-family--acumin-pro, inherit);
  font-size: var(--wp--preset--font-size--p-2-regular, 20px);
  line-height: var(--wp--custom--line-heights--p-2-regular, 28px);
  font-weight: var(--wp--custom--font-weights--p-2-regular, 400);
  color: var(--wp--preset--color--primary-granite-gray, #767769);
}

body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__dropzone-text strong {
  font-weight: var(--wp--custom--font-weights--p-2-bold, 700);
  color: var(--wp--preset--color--primary-evergreen, #004f39);
}

/* The chosen file's name, under the box once a file is picked (script); empty otherwise. */
body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__dropzone-chosen {
  margin: 8px 0 0;
  font-family: var(--wp--preset--font-family--acumin-pro, inherit);
  font-size: var(--wp--preset--font-size--p-3-regular, 16px);
  line-height: 24px;
  color: var(--wp--preset--color--primary-evergreen, #004f39);
  overflow-wrap: anywhere;
}

body.cae-page--cae-aboutus-careers-applynow-v3 #site-form-careers-applynow .site-form__dropzone-chosen:empty {
  display: none;
}

/* The Next pill sits 40 under the INPUT block, centred (12011:134230 at x 662 of 160..1280). */
body.cae-page--cae-aboutus-careers-applynow-v3 .cae-website-redesign-cae-aboutus-careers-applynow-v3-section-generic__actions-figma-bound-button-i12011-134230-3129-87429 {
  justify-content: center;
}
