/** There is an abundance of use of the !important flag on this page. This is necessary for now due to this component being used on both a view and as a paragraph, and needing these styles to ensure they can overwrite the view styles when displayed as a paragraph component **/

.paragraph--type--search-bar {
  position: relative;
  z-index: 9;
}

.paragraph--type--search-bar .mb-3 {
  margin-bottom: 0 !important;
}

.paragraph--type--search-bar .form-row {
  background: #fff;
  width: 100%;
  max-width: 725px;
  display:flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  border: 4px solid white;
  border-radius: 5px;
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

@media only screen and (min-width: 960px) {
  .paragraph--type--search-bar .form-row {
    top: -15px;
  }
}

.paragraph--type--search-bar .form-item-keyword {
  width: calc(100% - 68px);
  height: 51px;
}

.paragraph--type--search-bar input {
  margin: 0;
  font-size: 16px;
  width: 100%;
  height: 100%;
  border-color: #64513D;
  border-width: 1px 0 1px 1px;
  border-radius: 5px 0 0 5px;
}

.paragraph--type--search-bar .form-actions .form-submit {
  background: var(--brand-link-color) url("../../assets/icon-mag-glass.svg") no-repeat center center;
  height: 51px;
  width: 68px;
  font-size: 16px;
  margin: 0 !important;
  border-radius: 0 5px 5px 0;
  padding: 0;
  text-indent: -9999px; outline: none;
}

@media only screen and (min-width: 960px) {
  .paragraph--type--search-bar .form-actions .form-submit {
    width: 214px;
    background: var(--brand-link-color);
    text-indent: 0;
  }
}

.paragraph--type--search-bar .form-submit:hover {
  border-color: transparent;
}

.paragraph--type--search-bar input:focus {
  box-shadow: 0 0 0 0.1rem var(--brand-color-primary);
}

.paragraph--type--search-bar .form-control:focus {
  border-color: transparent;
}

@media screen and (max-width: 600px) {

  .paragraph--type--search-bar #views-exposed-form-job-search-page-1 .form-group {
    width: 100% !important;
    margin: 0 !important;
  }

  .paragraph--type--search-bar .form-row {
    max-width: 100%;
  }

  .paragraph--type--search-bar .form-group .form-submit {
    width: 100% !important;
    margin: 10px auto !important;
  }

  .paragraph--type--search-bar .form-item-keyword {
    width: 95% !important;
  }
}

form[id*="views-exposed-form-articles-by-company-and-category-embed-with-filter"] .form-row {
  justify-content: center;
  margin-bottom: 15px;
}

form[id*="views-exposed-form-articles-by-company-and-category-embed-with-filter"] select[id*="edit-field-dsu-category-target-id"] {
  visibility: hidden;
}

@media (max-width: 767px) {
  form[id*="views-exposed-form-articles-by-company-and-category-embed-with-filter"] .form-item-field-dsu-category-target-id,
  form[id*="views-exposed-form-articles-by-company-and-category-embed-with-filter"] select[id*="edit-field-dsu-category-target-id"] {
    width: 100%;
  }
}

.s-hidden {
  visibility: hidden;
  padding-right: 10px;
}

.select {
  cursor: pointer;
  display: inline-block;
  position: relative;
  width: 415px;
  height: 53px;
  border-radius: 0;
  border: 2px solid #A9A390;
}

@media (max-width: 767px) {
  .select {
    width: 100%;
  }
}

.styledSelect {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #FFF url(/themes/custom/neutral/assets/dropdown-icon.png) no-repeat 97%;
  padding: 0 10px 0 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 999;
  margin: 0 0;
  padding: 0 0;
  list-style: none;
  background: #A9A390;
  color: #fff;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
}

.options li {
  margin: 0 0;
  padding: 4px 20px;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #fff;
}

.options li:hover {
  background-color: #C4BDA9;
}
