/* apply.css — UI-only styles for apply.html.
   NOTE: the clean/ reference was absent in this environment, so every value
   below comes from the task's screenshot estimates. Palette anchors reused
   from index.html: page #F3EFE8, ink #2F201F, primary #B73E0B,
   cream #F3EFE8, headings Newsreader 300, body/controls Figtree. */

:root {
  --page-bg: #f3eee8;
  --ink: #2f201f;
  --body-text: #413c38;
  --card-bg: #e9e4df;
  --input-bg: #faf8f5;
  --input-border: #d9d4cd;
  --input-focus-border: #a89b88;
  --placeholder: #b5afa8;
  --label-gray: #6f6a64;
  --btn-bg: #b73e0b;
  --cream: #f3efe8;
  --focus-ring: rgba(183, 62, 11, 0.2);
  --input-height: 46px;
}

/* The index header is an absolute overlay with cream text made for a dark
   hero image. On this light page it becomes a normal in-flow bar with
   dark text so it stays readable. Markup is unchanged. */
.apply-page .header--overlay {
  position: relative;
}
.apply-page .header a,
.apply-page .header a.link-list__link,
.apply-page .header a.link-list__link:hover,
.apply-page .header .dropdown__trigger {
  color: #2F201F;
}
.apply-page .header .dropdown__trigger {
  color: #2F201F !important;
}
.apply-page .header .hamburger__slices .hamburger__slice {
  background-color: #2F201F;
}

/* ---- layout: equal 1fr 1fr columns, ~80px gap; stack below ~900px ---- */
.apply-section {
  padding: 64px 0 110px;
  background: var(--page-bg);
}
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .apply-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .apply-section {
    padding: 48px 0 80px;
  }
}

/* ---- left card ---- */
.apply-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  color: var(--body-text);
}
@media (max-width: 767px) {
  .apply-card {
    padding: 32px 26px;
  }
}
.apply-card__title {
  font-family: "Newsreader", serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 20px;
}
.apply-card__title em {
  font-style: italic;
}
.apply-card p {
  font-size: 16px;
  line-height: 1.45;
  color: var(--body-text);
  margin: 0 0 14px;
}
.apply-steps {
  margin: 12px 0 0;
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--body-text);
}
.apply-steps li {
  margin-bottom: 12px;
  padding: 0;
}
.apply-steps li:last-child {
  margin-bottom: 0;
}

/* ---- right: form ---- */
.apply-form {
  padding-top: 4px;
}
.apply-field {
  margin-bottom: 25px;
}
.apply-field > label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--label-gray);
  margin: 0 0 8px;
  padding: 0;
  line-height: 1.4;
}
.apply-required {
  color: var(--label-gray);
}

/* Pill inputs. Height/radius/border/fill per reference; placeholder
   lighter and slightly smaller than typed text. */
.apply-form .apply-input {
  height: var(--input-height);
  border: 1px solid var(--input-border);
  border-radius: 999px;
  background: var(--input-bg);
  box-shadow: inset 0 1px 2px rgba(47, 32, 31, 0.04), 0 1px 2px rgba(47, 32, 31, 0.03);
  padding-left: 16px;
  font-size: 16px;
  color: var(--ink);
  box-sizing: border-box;
}
.apply-form .apply-input::placeholder {
  font-size: 14px;
  color: var(--placeholder);
}
.apply-form .apply-input:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Envelope icon inside the email field (inline SVG, no library). */
.apply-input-wrap {
  position: relative;
  display: block;
}
.apply-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--placeholder);
  pointer-events: none;
}
.apply-form .apply-input--icon {
  padding-left: 42px;
}

/* ---- gender toggle: the selected label IS the pill ----
   Scoped under .gender-toggle with every property the site globals
   touch reset explicitly (display, margin, padding, line-height,
   width, height, position). No pseudo thumb, no offsets, no transforms.
   Selected fill reuses the primary-button colors. */
.gender-toggle {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.gender-toggle legend {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--label-gray);
}
.gender-toggle legend .req {
  color: var(--label-gray);
}
.gender-toggle__track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: var(--input-height);
  padding: 4px;
  box-sizing: border-box;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  background: var(--input-bg);
  box-shadow: inset 0 1px 2px rgba(47, 32, 31, 0.04), 0 1px 2px rgba(47, 32, 31, 0.03);
  position: relative;
  margin: 0;
}
.gender-toggle__track input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.gender-toggle__track label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
  font-weight: 400;
  color: var(--label-gray);
  background: transparent;
  position: static;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.gender-toggle__track label:hover {
  background: rgba(0, 0, 0, 0.04);
}
.gender-toggle__track input:checked + label {
  background: var(--btn-bg);
  color: #fff;
}
.gender-toggle__track input:checked + label:hover {
  background: var(--btn-bg);
}
.gender-toggle__track input:focus-visible + label {
  outline: 2px solid var(--btn-bg);
  outline-offset: 2px;
}

/* ---- legal line + submit ---- */
.apply-legal {
  text-align: center;
  font-size: 13px;
  color: var(--label-gray);
  margin: 0 0 16px;
}
.apply-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Same primary-button styling as index: burnt-orange pill, cream label;
   the shared .btn:hover brightness still applies. */
.apply-form .apply-submit {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  background-color: #B73E0B;
  border-color: #B73E0B;
  border-radius: 999px;
  color: #F3EFE8;
  font-family: "Figtree", sans-serif;
  text-align: center;
}
