/* ============================================================
   ZENJOB — Ashby Job Board Custom CSS
   Uses only Ashby-approved classes + CSS variables + @rules
   Brand: Zenjob | Primary: #2D31FF | Font: Inter (Google)
   ============================================================ */

/* ── Font Import ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

/* ── Ashby CSS Variables Override ────────────────────────── */
:root {
  --colorPrimary900:        #2D31FF;
  --colorPrimary600:        #5558FF;
  --borderRadiusContainer:  12px;
  --borderRadiusControl:    999px;
  --borderRadiusButton:     999px;
  --fontFamily:             'Inter', sans-serif;
  --colorAppBackground:     #FFFFFF;
  --widthMaxJobBoard:       860px;

  --zenjob-blue:            #2D31FF;
  --zenjob-black:           #000000;
  --zenjob-white:           #FFFFFF;
  --zenjob-neon:            #DFFF6D;
  --zenjob-gray:            #F4F5F7;
  --zenjob-border:          #E2E3ED;
  --zenjob-text:            #0D0E1A;
  --zenjob-muted:           #6B6E8A;
}

/* ── Job Board Heading ("Open Positions") ────────────────── */
.ashby-job-board-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 35px;
  letter-spacing: -0.025em;
  color: var(--zenjob-black);
  line-height: 1.1;
  margin-bottom: 4px;
}

/* ── Job Count ("(6)") ───────────────────────────────────── */
.ashby-job-board-heading-count {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 35px;
  color: var(--zenjob-muted);
  letter-spacing: -0.025em;
}

/* ── "Filters:" label ────────────────────────────────────── */
.ashby-job-board-filters-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zenjob-muted);
}

/* ── "Reset filters" label ───────────────────────────────── */
.ashby-job-board-reset-filters-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--zenjob-blue);
  cursor: pointer;
  text-decoration: underline;
}

/* ── Filter Dropdowns ────────────────────────────────────── */
.ashby-job-board-filter {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--zenjob-text);
  background-color: var(--zenjob-white);
  border: 1.5px solid var(--zenjob-border);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}

.ashby-job-board-filter:hover {
  border-color: var(--zenjob-blue);
}

.ashby-job-board-filter:focus {
  border-color: var(--zenjob-blue);
  box-shadow: 0 0 0 3px rgba(45, 49, 255, 0.12);
  outline: none;
}

/* ── Department Heading ──────────────────────────────────── */
.ashby-department-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--zenjob-blue);
  border-bottom: 2px solid var(--zenjob-blue);
  padding-bottom: 8px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.ashby-department-heading-level {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zenjob-muted);
  margin-top: 28px;
  margin-bottom: 10px;
}

/* ── Job Posting Card ────────────────────────────────────── */
.ashby-job-posting-brief {
  background-color: var(--zenjob-white);
  border: 1.5px solid var(--zenjob-border);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
  cursor: pointer;
}

.ashby-job-posting-brief:hover {
  border-color: var(--zenjob-blue);
  box-shadow: 0 4px 20px rgba(45, 49, 255, 0.10);
  transform: translateY(-1px);
}

.ashby-job-posting-brief-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--zenjob-black);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ashby-job-posting-brief:hover .ashby-job-posting-brief-title {
  color: var(--zenjob-blue);
}

.ashby-job-posting-brief-details {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--zenjob-muted);
  margin-top: 4px;
}

.ashby-job-posting-brief-list {
  margin-top: 8px;
}

.ashby-job-posting-brief-department-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--zenjob-blue);
  border-bottom: 2px solid var(--zenjob-blue);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.ashby-job-posting-brief-department-heading-level {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--zenjob-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Job Posting Detail Page ─────────────────────────────── */
.ashby-job-posting-header {
  background-color: var(--zenjob-white);
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--zenjob-border);
  margin-bottom: 32px;
}

.ashby-job-posting-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 40px;
  letter-spacing: -0.025em;
  color: var(--zenjob-black);
  line-height: 1.15;
  margin-bottom: 12px;
}

.ashby-job-posting-left-pane {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--zenjob-text);
}

.ashby-job-posting-right-pane {
  font-family: 'Inter', sans-serif;
}

.ashby-job-posting-right-pane-overview-tab {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--zenjob-muted);
  padding: 10px 16px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.ashby-job-posting-right-pane-overview-tab:hover {
  color: var(--zenjob-blue);
}

.ashby-job-posting-right-pane-application-tab {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--zenjob-muted);
  padding: 10px 16px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.ashby-job-posting-right-pane-application-tab:hover {
  color: var(--zenjob-blue);
}

.ashby-job-posting-right-pane-tab-slider {
  background-color: var(--zenjob-blue);
  height: 2px;
  border-radius: 999px;
}

/* ── Back to All Jobs ────────────────────────────────────── */
.ashby-job-board-back-to-all-jobs-button {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--zenjob-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
  text-decoration: none;
}

.ashby-job-board-back-to-all-jobs-button:hover {
  color: var(--zenjob-blue);
}

/* ── Application Form ────────────────────────────────────── */
.ashby-application-form-container {
  font-family: 'Inter', sans-serif;
  background-color: var(--zenjob-white);
}

.ashby-application-form-section-container {
  margin-bottom: 32px;
}

.ashby-application-form-section-header {
  margin-bottom: 16px;
}

.ashby-application-form-section-header-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--zenjob-black);
  letter-spacing: -0.01em;
}

.ashby-application-form-section-header-description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--zenjob-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.ashby-application-form-field-entry {
  margin-bottom: 20px;
}

.ashby-application-form-question-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--zenjob-black);
  margin-bottom: 6px;
  display: block;
}

.ashby-application-form-question-description {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--zenjob-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* Submit button — black pill matching Zenjob CTAs */
.ashby-application-form-submit-button {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  background-color: var(--zenjob-black);
  color: var(--zenjob-white);
  border: none;
  border-radius: 999px;
  padding: 14px 36px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.ashby-application-form-submit-button:hover {
  background-color: var(--zenjob-blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(45, 49, 255, 0.25);
}

.ashby-application-form-success-container {
  font-family: 'Inter', sans-serif;
  text-align: center;
  padding: 64px 32px;
  color: var(--zenjob-text);
}

.ashby-application-form-failure-container {
  font-family: 'Inter', sans-serif;
  color: #D0021B;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  background-color: #FFF0F0;
  border-radius: 8px;
  border: 1px solid #FFD0D0;
}

.ashby-application-form-blocked-application-container {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--zenjob-muted);
  padding: 16px;
  border-radius: 8px;
  background-color: var(--zenjob-gray);
}

/* ── Autofill / Resume Upload ────────────────────────────── */
.ashby-application-form-autofill-uploader {
  border: 2px dashed var(--zenjob-border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  background-color: var(--zenjob-gray);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.ashby-application-form-autofill-uploader:hover {
  border-color: var(--zenjob-blue);
  background-color: rgba(45, 49, 255, 0.03);
}

.ashby-application-form-autofill-pane {
  font-family: 'Inter', sans-serif;
  border-radius: 12px;
  background-color: var(--zenjob-gray);
  padding: 16px;
}

.ashby-application-form-autofill-input-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--zenjob-black);
}

.ashby-application-form-autofill-input-description {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--zenjob-muted);
}

.ashby-application-form-autofill-input-icon {
  color: var(--zenjob-blue);
}

.ashby-application-form-autofill-input-form-alert[data-highlight="positive"] {
  color: #1A7F4B;
  background-color: #EDFAF3;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}

.ashby-application-form-autofill-input-form-alert[data-highlight="negative"] {
  color: #D0021B;
  background-color: #FFF0F0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Survey Form ─────────────────────────────────────────── */
.ashby-survey-form-container {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--zenjob-text);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .ashby-job-board-heading {
    font-size: 28px;
  }

  .ashby-job-posting-heading {
    font-size: 28px;
  }

  .ashby-job-posting-brief {
    padding: 14px 16px;
  }

  .ashby-application-form-submit-button {
    width: 100%;
    text-align: center;
  }
}
