/**
 * Styles for the RX Jobs Header block
 */

.rx-jobs-header {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: #fff;
  margin-bottom: 80px; /* Increased to allow space for protruding search box */
  z-index: 999;
}

.rx-jobs-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.rx-jobs-header-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  z-index: 1;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rx-jobs-header-text {
  padding-right: 50%;
}

.rx-jobs-header-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
  text-align: left;
}

.rx-jobs-header-subtitle {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #fff;
  text-align: left;
}

.rx-jobs-header-cta {
  display: inline-block;
  background-color: #fff;
  color: #333;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 150px;
}

.rx-jobs-header-cta:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rx-jobs-header-search {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 90%;
}

.search-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.search-input-container {
  width: 100%;
}

.search-input-container input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.search-filters-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-dropdown {
  flex: 1;
  min-width: 200px;
}

.search-button-container {
  min-width: 100px;
}

.search-button {
  background-color: #ff5722;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  height: 100%;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #e64a19;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .rx-jobs-header-title {
    font-size: 2.2rem;
  }
  
  .rx-jobs-header-subtitle {
    font-size: 1rem;
  }
  
  .rx-jobs-header-text {
    padding-right: 0;
  }
  
  .search-filters-container {
    flex-direction: column;
  }
  
  .filter-dropdown,
  .search-button-container {
    width: 100%;
  }
  
  .rx-jobs-header {
    margin-bottom: 120px; /* More space for stacked search fields on mobile */
  }
  
  .rx-jobs-header-search {
    bottom: -80px;
  }
}

/* Multiselect styling */
.multiselect-container {
  max-height: 300px;
  overflow-y: auto;
}

.multiselect-selected-text {
  font-size: 14px;
}

.multiselect-container .multiselect-filter {
  margin-bottom: 5px;
}

.multiselect-container .multiselect-filter input {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
}

/* Remove search icon from multiselect filter */
.rx-jobs-header .glyphicon-search {
  display: none !important;
}

/* Adjust padding for the search input without the icon */
.rx-jobs-header .multiselect-filter input.multiselect-search {
  padding-left: 10px;
  width: 100%;
}

.multiselect-container label {
  padding: 8px 20px 8px 40px;
}

.multiselect-container label.checkbox {
  margin: 0;
}

.multiselect-container .multiselect-group {
  padding: 5px 20px;
  font-weight: 600;
  background-color: #f8f9fa;
}
