/* ==========================================================================
   1. ELEMENTOR FORM STYLES
   ========================================================================== */

.elementor-field-group .elementor-field-textual {
  padding: 15px;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: 5px;
  border-color: #9fa1a1;
}

.elementor-form .elementor-button {
  padding: 15px !important;
  color: white !important;
  background: #f03e3e !important;
  border: 1px solid #821f1f !important;
  box-shadow: 0 1px 1px 2px #00000014;
  border-radius: 10px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.elementor-form .elementor-button:hover {
  background: #ac2525 !important;
}


/* ==========================================================================
   2. JOB LISTINGS - LAYOUT & CONTAINER
   ========================================================================== */

ul.job_listings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

ul.job_listings .job_listing,
ul.job_listings .job_listing a {
  border-radius: 12px;
}

ul.job_listings .job_listing > a {
  padding: 20px !important;
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.job_listing .rvj-col:first-child {
  flex-grow: 1;
  display: flex;
  gap: 13px;
}

.job_listings.loading > li {
  opacity: 0;
}


/* ==========================================================================
   3. JOB LISTINGS - LOGO
   ========================================================================== */

body ul.job_listings li.job_listing a img.company_logo {
  background: white;
  border: 2px solid #dddddd;
  border-radius: 50%;
  padding: 8px !important;
  width: 65px !important;
  height: 65px !important;
  top: 0 !important;
  left: 0 !important;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.03);
  position: relative !important;
  margin: -3px 0 0 -3px !important;
}


/* ==========================================================================
   4. JOB LISTINGS - CONTENT & TYPOGRAPHY
   ========================================================================== */

.rvj-job-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.rvj-job-content h3 {
  color: #212529;
  margin: 0;
  font-size: 20px !important;
  font-weight: 900 !important;
  margin-bottom: 2px !important;
}

.rvj-job-company {
  color: #212529;
  font-size: 16px;
}

.rvj-job-company span.tagline {
  line-height: 1.3 !important;
}

.rvj-job-company span.tagline:before {
  content: "- ";
}

.rvj-job-date {
  color: #818a8c;
  font-size: 15px;
  padding-left: 15px;
  margin-top: -7px;
}


/* ==========================================================================
   5. JOB LISTINGS - META TAGS/LABELS
   ========================================================================== */

.rvj-label {
  border: 1px solid #c2cccf;
  width: max-content !important;
  border-radius: 30px;
  flex-shrink: 0;
  height: max-content;
  color: #212529;
  background: #fff;
}

ul.rvj-job-meta {
  padding: 0;
  list-style: none;
  display: flex;
  margin-top: 8px;
  gap: 8px;
}

ul.rvj-job-meta li {
  border: 1px solid #c2cccf;
  width: max-content !important;
  padding: 1.5px 9px;
  border-radius: 30px;
  flex-shrink: 0;
  height: max-content;
  font-family: "Outfit", Sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #212529 !important;
  background: #fff;
}


/* ==========================================================================
   6. JOB TYPE ICONS & COLORS
   ========================================================================== */

.type-icon {
  width: 9px;
  height: 9px;
  display: inline-block;
  background: currentColor;
  border-radius: 50%;
  margin-right: 4px;
}

/* Default job type */
.job-manager .job-type .type-icon,
.job-types .job-type .type-icon,
.job_listing .job-type .type-icon {
  color: #f08d3c;
}

/* Full-time */
.job-manager .full-time .type-icon,
.job-types .full-time .type-icon,
.job_listing .full-time .type-icon {
  color: #90da36;
}

/* Part-time */
.job-manager .part-time .type-icon,
.job-types .part-time .type-icon,
.job_listing .part-time .type-icon {
  color: #f08d3c;
}

/* Temporary */
.job-manager .temporary .type-icon,
.job-types .temporary .type-icon,
.job_listing .temporary .type-icon {
  color: #d93674;
}

/* Freelance */
.job-manager .freelance .type-icon,
.job-types .freelance .type-icon,
.job_listing .freelance .type-icon {
  color: #39c;
}

/* Internship */
.job-manager .internship .type-icon,
.job-types .internship .type-icon,
.job_listing .internship .type-icon {
  color: #6033cc;
}


/* ==========================================================================
   7. JOB FILTERS - SEARCH INPUTS
   ========================================================================== */

.job_filters .search_jobs {
  padding: 0 !important;
  display: flex;
  gap: 10px;
}

.job_filters .search_jobs:after,
.job_filters .search_jobs:before {
  display: none !important;
}

.job_filters .search_jobs > div[style*="clear"] {
  display: none;
}

/* Search input pills */
.job_filters .search_keywords,
.job_filters .search_location,
.job_filters .search_categories {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.25rem !important;
  background: #ffffff;
  border-radius: 999px;
  border: 1.5px solid #c4cdcf;
  box-shadow: rgb(221, 221, 221) 0px 0px 0px 1px;
}

.job_filters .search_keywords {
  width: 38% !important;
}

.job_filters .search_location {
  width: 31% !important;
}

.job_filters .search_categories {
  width: 31% !important;
}

/* Input/select styles within pills */
.job_filters .search_keywords input,
.job_filters .search_location input,
.job_filters .search_categories select {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  margin: 0;
  width: 100% !important;
  border-radius: 0 !important;
  padding: 0.5rem 0 !important;
}

/* Search input icons */
.job_filters .search_keywords::before {
  content: "🔍";
}

.job_filters .search_location::before {
  content: "🌍";
}

.job_filters .search_categories::before {
  content: "🧪";
}

/* Search input hover/focus states */
.job_filters .search_keywords:hover,
.job_filters .search_location:hover,
.job_filters .search_categories:hover,
.job_filters .search_keywords:focus-within,
.job_filters .search_location:focus-within,
.job_filters .search_categories:focus-within {
  border-color: #818889;
  box-shadow: 0 2px 3px rgb(177 182 183 / 40%);
}


/* ==========================================================================
   8. JOB FILTERS - JOB TYPE CHECKBOXES
   ========================================================================== */

.job_filters .job_types:before {
  display: none !important;
}

html body .job_listings .job_filters ul.job_types {
  margin-top: 12px !important;
  padding-top: 10px !important;
  border-color: #dce1e3 !important;
  gap: 8px !important;
  display: flex !important;
  margin-bottom: 3px;
}

html body .job_listings .job_filters .job_types li {
  border: 0;
  padding: 0;
}

html body .job_listings .job_filters .job_types label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px dashed #c3cace;
  color: #212529;
  cursor: pointer;
  background: #f9fafb;
  opacity: 0.6;
}

html body .job_listings .job_filters .job_types label:hover {
  opacity: 1;
  background: white;
}

html body .job_listings .job_filters .job_types input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Checked state */
html body .job_listings .job_filters .job_types label:has(input[type="checkbox"]:checked) {
  background: #ffffff;
  border-style: solid;
  border-color: #d0d6d8;
  padding: 0.3rem 0.5rem 0.3rem 0.8rem;
  opacity: 1;
}

html body .job_listings .job_filters .job_types label:has(input[type="checkbox"]:checked):hover {
  background: #f5f5f5;
  color: #82868f;
}

html body .job_listings .job_filters .job_types label:has(input[type="checkbox"]:checked)::after {
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="size-5"><path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z" clip-rule="evenodd" /></svg>');
  mask-size: cover;
  width: 18px;
  height: 18px;
  display: block;
  content: "";
  background: #a1a8aa;
  margin-top: 0px;
  font-size: 0.75rem;
}


/* ==========================================================================
   9. JOB FILTERS - STATUS & ACTIONS
   ========================================================================== */

.job_filters .showing_jobs {
  font-size: 14px !important;
  font-family: "Outfit", sans-serif;
  color: #8b8f91;
}

.showing_jobs.wp-job-manager-showing-all {
  padding: 8px 0 !important;
}

/* RSS Link */
html body .job_listings a.rss_link:before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-rss-icon lucide-rss"><path d="M4 11a9 9 0 0 1 9 9"/><path d="M4 4a16 16 0 0 1 16 16"/><circle cx="5" cy="19" r="1"/></svg>');
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  content: "";
  display: inline-block;
  background-color: #fa9b2f;
  border-radius: 4px;
  margin-top: -1px;
  order: -1;
}

html body .job_listings .job_filters .showing_jobs a.rss_link {
  display: flex !important;
  gap: 3px;
  align-items: center;
  color: #fa9c2f;
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 15px;
}

html body .job_listings .job_filters .showing_jobs a.rss_link:after {
  content: "Get updates via";
  color: #212529;
  font-weight: 500;
  font-family: "Outfit", sans-serif;
  order: -2;
  margin-right: 5px;
}

html body .job_listings .job_filters .showing_jobs a.rss_link:hover {
  opacity: 0.7;
}

/* Reset Button */
html body .job_listings a.reset {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8e6e6;
  color: #f03e3f;
  border-radius: 30px;
  margin-left: 15px;
  padding: 1px 5px 1px 11px !important;
  margin-top: -3px;
  gap: 3px;
  border: 1px solid #f03e3f !important;
}

html body .job_listings a.reset:after {
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="size-5"><path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z" clip-rule="evenodd" /></svg>');
  mask-size: cover;
  width: 18px;
  height: 18px;
  display: block;
  content: "";
  background: currentColor;
  margin-top: 0px;
}


/* ==========================================================================
   10. JOB LISTINGS - EMPTY STATE
   ========================================================================== */

li.no_job_listings_found {
  padding: 78px !important;
  border: 2px dashed #dce1e3 !important;
  border-radius: 10px;
  font-size: 22px !important;
  text-align: center;
  font-weight: 600 !important;
  color: #8b8f91;
  background: #eff3f4c4 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

li.no_job_listings_found:before {
  content: "";
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-alert-icon lucide-circle-alert"><circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/></svg>');
  mask-size: cover;
  background: #979a9cd1;
  width: 50px;
  height: 50px;
  display: block;
}

.select2-container--default .select2-selection--multiple {
  padding: 1px 2px 1px 1px!important;
}

/* ==========================================================================
   11. SELECT2 INPUT
   ========================================================================== */

.job-manager-form fieldset input.input-text,
.job-manager-form fieldset select,
.job-manager-form fieldset textarea,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  box-shadow: 1.5px 1.5px 1.5px #00000014
}

html .select2-container {
  width: 100% !important;
  height: max-content;
}
html .select2-container .select2-selection--single {
  height: auto;
  padding: 12px;
}
html .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-width: 8px 6px 0 6px ;
}

html .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-width: 0 6px 8px 6px;
}

html .select2-container--default .select2-selection--single .select2-selection__arrow,
html .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow {
  margin-right: 10px!important;
  margin-top: 8px!important;
}

.job-manager-form .select2-container .select2-selection--multiple .select2-selection__rendered input {
  padding: 7px !important;
  margin: 0!important;
  font-size: 1rem!important;
  color: #151515 !important;
  font-family: "Outfit", sans-serif!important;
}

.job-manager-form .select2-container .select2-selection--multiple .select2-selection__rendered li {
  margin: 0;
  display: flex;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  gap: 5px;
  align-items: center;
  padding: 4px !important;
}

html .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #45b3cd;
  color: white;
  font-weight: 800;
  padding-left: 0;
  display: flex!important;
  gap: 5px;
  padding-right: 8px;
  border: 1px solid #3994aa;
  border-radius: 6px;
  overflow: hidden;
  align-items: center;
  height: max-content;
  justify-content: center;
}
html .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: white !important;
  border: 0 !important;
  position: relative;
  background: #0000002b;
  padding: 0 8px;
  font-size: 18px;
  display: flex;
  align-items: center;
}

html .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  background: rgba(0, 0, 0, 0.37);
}

/* ==========================================================================
   11. MEDIA QUERIES
   ========================================================================== */

/* ---------- Tablet (max-width: 880px) ---------- */
@media (max-width: 880px) {
  .showing_jobs {
    margin-top: 25px;
  }
}

/* ---------- Mobile (max-width: 767px) ---------- */
@media (max-width: 767px) {
  .job_filters .search_keywords,
  .job_filters .search_location,
  .job_filters .search_categories {
    padding: 0 10px !important;
    font-size: 14px;
  }

  .showing_jobs.wp-job-manager-showing-all > span,
  .showing_jobs > span {
    display: none;
  }

  body ul.job_listings li.job_listing a img.company_logo {
    visibility: visible;
    width: 50px !important;
    height: 50px !important;
  }

  ul.job_listings li.job_listing a,
  ul.job_listings li.no_job_listings_found a {
    padding: 15px !important;
  }

  .rvj-job-date {
    font-size: 13px;
    margin-top: -2px;
  }

  .rvj-job-company span.tagline {
    font-size: 13px !important;
  }

  .rvj-job-content h3 {
    margin-bottom: 6px !important;
    font-size: 18px !important;
  }

  ul.rvj-job-meta {
    margin-top: 15px !important;
  }

  .job_filters .showing_jobs {
    gap: 10px;
    font-size: 14px !important;
    margin-bottom: 12px !important;
    margin-top: 12px;
  }

  html body .job_listings a.reset {
    margin: 0;
  }

  html .elementor-element-8bfd703 .job_filters .showing_jobs {
    display: flex !important;
    align-items: center;
    margin-bottom: 3px;
    padding: 10px 15px 0 0 !important;
  }

  html body .job_listings .job_filters .showing_jobs a.rss_link {
    margin-bottom: 0;
    padding: 0 !important;
  }

  html body .job_listings a.reset {
    font-size: 13px;
  }
  html body .job_listings .job_filters .showing_jobs a.rss_link::after {
    font-size: 13px;
  }
  html body .job_listings .job_filters .showing_jobs a.rss_link {
    font-size: 13px;
  }
  html body .job_listings a.rss_link::before {
    width: 16px;
    height: 16px;
    font-size: 20px;
    background-size: 13px;
  }
}

/* ---------- Small Mobile (max-width: 620px) ---------- */
@media (max-width: 620px) {
  html .elementor-element-8bfd703 .job_filters .showing_jobs {
    padding: 10px 10px 0 !important;
  }
  body ul.job_listings li.job_listing a img.company_logo {
    width: 40px !important;
    height: 40px !important;
  }

  .search_jobs_container {
    position: relative;
    overflow: hidden;
    display: block;
  }


  .search_jobs {
    overflow: scroll;
  }

  .job_filters .search_keywords,
  .job_filters .search_location,
  .job_filters .search_categories {
    width: 200px!important;
    flex-shrink: 0;
  }

  .job_filters .search_jobs {
    padding: 0 12px !important;
    gap: 8px;
  }


  .search_jobs_container:after,
  .job_types_container:after {
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    right: 0;
    width: 35px;
    top: 0;
    background: linear-gradient(90deg,rgba(241, 245, 246, 0) 0%, rgba(241, 245, 246, 0.67) 50%, rgb(241, 245, 246) 100%);
    padding: 0 15px;
    pointer-events: none;
  }

  .job_listing .rvj-col:first-child {
    gap: 10px;
  }

  .job_types_container {
    position: relative;
    display: block;
    overflow: hidden;
  }

  html body .job_listings .job_filters ul.job_types {
    padding: 10px;
    border-bottom: 1px solid #dce1e3;
    overflow: scroll;
    gap: 5px !important;
  }

  .job_filters .job_types li {
    margin: 0 0 !important;
  }

  .job_filters .job_types li label {
    white-space: nowrap;
  }

  div.job_listings ul.job_listings {
    margin: 0;
    padding: 0 10px;
  }
}

/* ---------- Extra Small Mobile (max-width: 369px) ---------- */
@media (max-width: 369px) {
  ul.rvj-job-meta li {
    font-size: 11px;
  }

  div.job_listings ul.job_listings {
    padding: 0;
    gap: 0;
  }

  div.job_listings {
    margin-bottom: 0;
  }
  ul.job_listings .job_listing > a, ul.job_listings .job_listing {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  ul.job_listings .job_listing:not(:last-child) {
    border-bottom: 0 !important;
  }

  body ul.job_listings li.job_listing a img.company_logo {
    width: 35px !important;
    height: 35px !important;
  }

  .job_listing .rvj-col:first-child {
    gap: 7px;
  }

  ul.job_listings li.job_listing a,
  ul.job_listings li.no_job_listings_found a {
    padding: 11px 9px !important;
  }

  .rvj-job-company {
    font-size: 13px;
  }

  ul.rvj-job-meta {
    margin-top: 10px !important;
  }

  .rvj-job-content h3 {
    font-size: 16px !important;
    margin-bottom: 3px !important;
  }

  .rvj-job-date {
    margin-top: -1px;
  }
}