@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&family=Source+Sans+Pro:wght@200;300;400;600;700;900&display=swap');

:root {
    --primary-color: #B30033;
    --secondary-color: #505050;
    --primary-accent-color: #E15B64;
    --secondary-accent-color: #767676;
    --primary-hover-color: #da0541;
    --clear-color: #ffd8d6;
}

#knowledgeSearcher h1,
#knowledgeSearcher h2,
#knowledgeSearcher h3,
#knowledgeSearcher h4,
#knowledgeSearcher h5,
#knowledgeSearcher h6,
#knowledgeSearcher p {
    color: inherit;
    text-decoration: none;
}

#searchSection .search_title {
    margin: 10px 0;
    @media only screen and (min-width: 576px) {  /* sm */
        margin: 20px 0;
    }
    @media only screen and (min-width: 768px) {  /* md */
        margin: 30px 0;
    }
    @media only screen and (min-width: 992px) {  /* lg */
        margin: 40px 0;
    }
    @media only screen and (min-width: 1200px) {  /* xl */
        margin: 50px 0;
    }
}

#searchSection .search_hint {
    margin: 2px 0;
}

#searchSection .search_controls .search_type {
    grid-row: 1;
}

#searchSection .search_controls .search_text {
    grid-row: 2;
    grid-column: col-start 1 / span 12;
    @media only screen and (min-width: 576px) {  /* sm */
        grid-column: col-start 3 / span 8;
    }
    @media only screen and (min-width: 768px) {  /* md */
        grid-column: col-start 3 / span 8;
    }
    @media only screen and (min-width: 992px) {  /* lg */
        grid-column: col-start 4 / span 6;
    }
    @media only screen and (min-width: 1200px) {  /* xl */
        grid-column: col-start 4 / span 6;
    }
}

#searchSection .search_controls .advanced_search_box {
    grid-row: 3;
    grid-column: col-start 1 / span 12;
    border-top: none;
    border-radius: 15px;
    margin: 1em;
    background-color: #fff;
    @media only screen and (min-width: 576px) {  /* sm */
        grid-column: col-start 3 / span 8;
    }
    @media only screen and (min-width: 768px) {  /* md */
        grid-column: col-start 3 / span 8;
    }
    @media only screen and (min-width: 992px) {  /* lg */
        grid-column: col-start 4 / span 6;
    }
    @media only screen and (min-width: 1200px) {  /* xl */
        grid-column: col-start 4 / span 6;
    }
}

#searchSection .search_controls #advanced_search_btn:hover {
    background-color: var(--clear-color);
    border-color: var(--primary-color);
    color: var(--primary-color)
}

#searchSection .search_controls .accordion {
  background-color: white;
  color: var(--secondary-color);
  border-radius: 12px;
  border: 1px solid var(--secondary-color);
  cursor: pointer;
  padding: 12px;
  width: 100%;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
}

#searchSection .search_controls .slider {
  display: grid;
  background-color: transparent;
  overflow-y: hidden;
  max-height: 450px; /* approximate max height, need to be set for transition */
  transition: max-height 0.5s ease-in-out;
  border-radius: 0 0 12px 12px;
}

#searchSection .search_controls .slider.closed {
	max-height: 0;
}

#searchSection .search_controls .options_container {
  display: grid;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
  gap: 10px;
}

#knowledgeSearcher li::marker {
    color: var(--primary-color);
}

#resultsSection .help_box {
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    margin-top: 80px;
}

#resultsSection .help_box ul {
    margin-left: 50px;
}

#resultsSection .help_box li {
    margin-bottom: 10px;
}

#resultsSection .help_box a {
    color: var(--primary-color) !important;
    margin-right: 10px !important;
    text-decoration: none !important;
}

input[type=button] {
    background-color: var(--primary-color) !important;
    color: white !important;
}

#searchSection .search_controls h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: bold;
    margin-top:  0;
    margin-bottom:  10px;
}

#searchSection .accent_background {
    background-color: var(--primary-color);
}


#searchSection .search_text .autoComplete_wrapper > ul > li mark {
    color: var(--primary-color);
    padding: 0;
}

#searchSection .search_text .autoComplete_wrapper > input,
#searchSection .search_text .autoComplete_wrapper > ul > li {
    font-size: 16px;
}

#knowledgeSearcher .hidden {
    display: none;
}

#knowledgeSearcher input[type=button] {
    cursor:pointer;
}

#searchSection .search_controls {
    margin-top: 10px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(12, [col-start] 1fr);
    grid-gap: 15px;
    grid-column-gap: 10px;
}

#searchSection #search_bar_control {
    margin-top: 0px;
    margin-bottom:  10px;
}

#searchSection .search_select {
    grid-column-start: 1;
    grid-column-end: 12;
    grid-row: 2;
    padding-left: 40px;
    @media only screen and (min-width: 768px) {  /* md */
        grid-column-start: 1;
        grid-column-end: 8;
        grid-row: 1/span 3;
    }
}

#searchSection .search_interval {
    grid-column-start: 1;
    grid-column-end: 12;
    grid-row: 1;
    padding-left: 40px;
    @media only screen and (min-width: 768px) {  /* md */
        grid-column-start: 8;
        grid-column-end: 12;
        grid-row: 1;
        padding-left: 0;
        padding-right: 40px;
    }
}

#searchSection .select_interval {
    background-color: white;
    border-radius: 7px;
    border: 1px solid var(--secondary-color);
    height: 25px;
}

#searchSection .select_interval:hover {
  border: 1px solid var(--primary-color);
  cursor: pointer;
}

#searchSection .search_contains_all {
  grid-column-start: 1;
  grid-column-end: 12;
  grid-row: 3;
  padding-left: 40px;
  padding-bottom: 10px;
  @media only screen and (min-width: 768px) {  /* md */
      grid-column-start: 1;
      grid-column-end: 12;
      grid-row: 4;
      padding-left: 40px;
      padding-right: 40px;
      padding-top: 10px;
  }
}

#searchSection .search_text {
    grid-column-start: 5;
    grid-column-end: 9;
    grid-row: 2;
    padding: 0 40px;
    position: relative;
}

#searchSection .search_text input {
    width: 100%;
}

#searchSection .search_text input[type="text"] {
    line-height: normal;
    padding: 15px 25px;
    border-radius: 30px;
    box-sizing: border-box;
    border: 0;
}

#searchSection .search_text input[type="text"]:focus-visible {
    outline: 1px solid var(--secondary-color);
    box-shadow: 0px 0px 7px var(--secondary-color);
}

#searchSection .search_text .autoComplete_wrapper {
    position: relative;
}

#searchSection #magnifying-glass {
  position: absolute;
  top: 9px;
  right: 19px;
  font-size: 22px;
}

#searchSection .selected_keywords {
  min-height: 2em;
  margin-top: 10px;
}

#searchSection .selected_keyword {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 0.15em 16px;
  float: left;
  margin: 5px;
  font-size: 14px;
}

#searchSection .selected_keyword a {
    all: unset;
    cursor: pointer;
}

#searchSection .selected_keyword .close {
    margin-left: 5px;
    color: var(--secondary-accent-color);
}

#searchSection .mandatory_keyword {
    border: 1px solid var(--secondary-color);
    background-color: var(--clear-color);
}

#searchSection .is_mandatory #mandatory_icon {
    font-size: 11px;
    vertical-align: baseline;
    color: var(--secondary-accent-color)
}

#searchSection .mandatory_keyword #mandatory_icon,
#searchSection .mandatory_keyword.selected_keyword .close {
    color: var(--primary-color);
}

#searchSection .keyword_text {
    padding: 0 5px 0 0;
}

#searchSection a:hover.is_mandatory,
#searchSection a:focus.is_mandatory {
    text-decoration: none;
    color: var(--primary-color);
}

#searchSection .search_button {
    grid-column-start: 1;
    grid-column-end: 5;
    text-align: center;
    padding: 10px 20px;
}
  
#resultsSection .results .search_button {
    padding: 15px 20px 10px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    border-top: 8px solid var(--primary-color);
}

#knowledgeSearcher .search_button input:not([type=checkbox]):not([type=radio]){
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 10px 30px;
    border-radius: 30px;
    transition: 0.2s all ease-in-out;
    background: var(--primary-color);
    color: white;
    border: 0;
    font-family: 'Open Sans';
    font-size: 15px;
}

#knowledgeSearcher .search_button input:not(:last-child):not([type=checkbox]):not([type=radio]){
    margin-right: 20px;
}

@media screen and (max-width: 720px){
    #resultsSection .results .search_button {
        flex-wrap: wrap;
        padding-right: 0;
    }

    #resultsSection .results .search_button input{
        width: 100%;
        margin-right: 0!important;
        margin-bottom: 15px;
    }
}

#knowledgeSearcher .search_button input[type='button']:hover {
    background: #126382;
    color: white;
}

#knowledgeSearcher .search_button input.search{
    background: #44abd2;
    color: white;
}

#knowledgeSearcher .search_button input.search:hover{
    background: #126382;
    color: white;
}

#knowledgeSearcher .search_button__options{
    display: flex;
    justify-content: center;
}

#searchSection #clean {
  background: rgb(149, 154, 163);
}

#searchSection #clean:hover {
  background: #171A2B;
}

#searchSection .item_check{
    display: flex;
    align-items: center;
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
  #knowledgeSearcher input[type=checkbox],
  #knowledgeSearcher input[type=radio] {
    --active: var(--primary-color);
    --active-inner: #fff;
    --focus: 2px 2px rgba(179, 0, 51, 0.3);
    --border: var(--secondary-accent-color);
    --border-hover: var(--primary-color);
    --background: #fff;
    --disabled: #f6f8ff;
    --disabled-inner: #e1e6f9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 18px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
  }
  #knowledgeSearcher input[type=checkbox]:after,
  #knowledgeSearcher input[type=radio]:after {
    content: "";
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
  }
  #knowledgeSearcher input[type=checkbox]:checked,
  #knowledgeSearcher input[type=radio]:checked {
    --b: var(--active);
    --bc: var(--active);
    --d-o: 0.3s;
    --d-t: 0.6s;
    --d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
  }
  #knowledgeSearcher input[type=checkbox]:disabled,
  #knowledgeSearcher input[type=radio]:disabled {
    --b: var(--disabled);
    cursor: not-allowed;
    opacity: 0.9;
  }
  #knowledgeSearcher input[type=checkbox]:disabled:checked,
  #knowledgeSearcher input[type=radio]:disabled:checked {
    --b: var(--disabled-inner);
    --bc: var(--border);
  }
  #knowledgeSearcher input[type=checkbox]:disabled + label,
  #knowledgeSearcher input[type=radio]:disabled + label {
    cursor: not-allowed;
  }
  #knowledgeSearcher input[type=checkbox]:hover:not(:checked):not(:disabled),
  #knowledgeSearcher input[type=radio]:hover:not(:checked):not(:disabled) {
    --bc: var(--border-hover);
  }
  #knowledgeSearcher input[type=checkbox]:focus,
  #knowledgeSearcher input[type=radio]:focus {
    box-shadow: 0 0 0 var(--focus);
  }
  #knowledgeSearcher input[type=checkbox]:not(.switch),
  #knowledgeSearcher input[type=radio]:not(.switch) {
    width: 18px;
    min-width: 18px;
  }
  #knowledgeSearcher input[type=checkbox]:not(.switch):after,
  #knowledgeSearcher input[type=radio]:not(.switch):after {
    opacity: var(--o, 0);
  }
  #knowledgeSearcher input[type=checkbox]:not(.switch):checked,
  #knowledgeSearcher input[type=radio]:not(.switch):checked {
    --o: 1;
  }
  #knowledgeSearcher input[type=checkbox] + label,
  #knowledgeSearcher input[type=radio] + label {
    font-size: 14px;
    line-height: 24px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    font-weight: normal;
    margin: 8px 0 0 8px;
  }
  #knowledgeSearcher input[type=checkbox]:not(.switch) {
    border-radius: 7px;
  }
  #knowledgeSearcher input[type=checkbox]:not(.switch):after {
    width: 6px;
    height: 9px;
    border: 2px solid var(--active-inner);
    border-top: 0;
    border-left: 0;
    left: 5px;
    top: 2px;
    transform: rotate(var(--r, 20deg));
  }
  #knowledgeSearcher input[type=checkbox]:not(.switch):checked {
    --r: 43deg;
  }
  #knowledgeSearcher input[type=checkbox].switch {
    width: 38px;
    border-radius: 11px;
  }
  #knowledgeSearcher input[type=checkbox].switch:after {
    left: 2px;
    top: 2px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: var(--ab, var(--border));
    transform: translateX(var(--x, 0));
  }
  #knowledgeSearcher input[type=checkbox].switch:checked {
    --ab: var(--active-inner);
    --x: 17px;
  }
  #knowledgeSearcher input[type=checkbox].switch:disabled:not(:checked):after {
    opacity: 0.6;
  }

  #knowledgeSearcher input[type=radio] {
    border-radius: 50%;
  }
  #knowledgeSearcher input[type=radio]:after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--active-inner);
    opacity: 0;
    transform: scale(var(--s, 0.7));
  }
  #knowledgeSearcher input[type=radio]:checked {
    --s: 0.5;
  }
}


#resultsSection .results{
    width: 1140px;
    margin: 40px auto;
    position: relative;
    font-family: 'open sans';
}

@media screen and (max-width: 1200px){

    #resultsSection .results h1,
    #resultsSection .results .search_results,
    #resultsSection .results .results_explanation,
    #resultsSection .results .search_button{
        margin: 0 30px;
    }
    #resultsSection .results{
        width: 100%;
    }
}

#resultsSection .results_explanation {
    margin-bottom: 20px !important;
}

#resultsSection #results_table {
  border-collapse: collapse;
  width: 100%;
}

#resultsSection #results_table thead {
  border-bottom: 8px solid var(--primary-color);
}

#resultsSection #results_table th{
    text-align:  left;
    padding: 15px 0;
}

#resultsSection #results_table td{
    padding: 15px 0;
    vertical-align: top;
    border-top: 1px solid #cecece;
}

#resultsSection #results_table td a{
    color: var(--primary-color);
    text-decoration: none;
}

#resultsSection #results_table td a.search{
    background: rgb(68 171 210);
    padding: 1px 5px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    font-size: 13px;
}

/* custom modal window */
#knowledgeSearcher .modal-window {
  display: none;
  position: absolute;
  width: 70%;
  left: 50%;
  transform: translate(-50%,-25%);
  z-index: 1003;
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  top: 150px;
  scroll-margin: 50px;
}

#knowledgeSearcher .modal-window.sent{
  width: 35%;
  left: 50%;
  z-index: 1005;
  padding: 0em 1em 1em;
}

#knowledgeSearcher .modal-window.active {
  display: block;
}

#knowledgeSearcher .modal-window [type=text], [type=tel], [type=email],
#knowledgeSearcher .modal-window select,
#knowledgeSearcher .modal-window textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
}

#knowledgeSearcher .modal-window label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}

#knowledgeSearcher .modal-btn{
  color: white;
  background-color: rgb(167, 167, 167);
  padding: 12px 20px;
  margin: 0.5em;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  float: right;
  font-size: 15px;
}

#knowledgeSearcher .modal-btn:hover {
  background: #171A2B; 
}

#knowledgeSearcher .send-btn {
  background-color: var(--primary-color);
}

#knowledgeSearcher .send-btn:hover {
  background: #126382; 
}

#knowledgeSearcher .modal-btn:disabled{
  cursor: default;
  pointer-events: none;
}

#knowledgeSearcher .loading-btn {
  background-color: #b87186;
}

#knowledgeSearcher .modal-window .container {
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
  margin: 0px 10px 5px;
}

#knowledgeSearcher .modal-window .col-25 {
  float: left;
  width: 25%;
  margin-top: 6px;
}

#knowledgeSearcher .modal-window .col-50 {
  float: left;
  width: 50%;
  margin-top: 6px;
}

#knowledgeSearcher .modal-window .col-60 {
  float: left;
  width: 60%;
  margin-top: 6px;
}

#knowledgeSearcher .modal-window .col-75 {
  float: left;
  width: 75%;
  margin-top: 6px;
}

#knowledgeSearcher .modal-window .col-100 {
  float: left;
  width: 100%;
  margin-top: 6px;
}

/* Clear floats after the columns */
#knowledgeSearcher .modal-window .row:after {
  content: "";
  display: table;
  clear: both;
}

@media screen and (max-width: 600px) {
  #knowledgeSearcher .modal-window .col-25, .col-75, input[type=submit] {
    width: 100%;
    margin-top: 0;
  }
}

#knowledgeSearcher textarea{
  font-family: 'Open sans', sans-serif;
  font-size: 14px;
}

#knowledgeSearcher #overlay {
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #64646454;
  display: none;
}

#knowledgeSearcher #overlay.active {
  display: block;
}

#resultsSection #def_message{
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: rgb(241, 243, 244);
  font-family: 'Open Sans';
  font-size: 15px;
  overflow-wrap: break-word;
}

#resultsSection #explanation{
  margin: 0 10px 20px;
  overflow: auto;
}

#resultsSection .centered_container{
  margin: auto;
  width: 60%;
}

#resultsSection .imgs_container{
  display: flex; 
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0 26px;
  box-sizing: border-box;
  width: 80%;
  margin: 2% auto;
}

#knowledgeSearcher .close_button{
  margin-left: 95%;
  font-weight: bold;
  font-size: 1.5em;
  cursor: pointer;
}

#knowledgeSearcher .sent_hr{
  border: 1px solid rgb(231, 235, 235);
}

@media only screen and (max-width: 768px) { 
  /* For mobile phones: */ 
  #knowledgeSearcher .centered_container {
    width: 100%; 
  } 
}

#resultsSection .kw_display {
  background-color: #e2eaf2;
  padding: 7px 10px;
  border-radius: 7px;
  margin: 5px;
  display: inline-grid;
}

#searcher_help_modal {
  top: 150px;
}

/* switch btn */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.switch-slide {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.switch-slide:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .switch-slide {
  background-color: var(--primary-color);
}

input:focus + .switch-slide {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .switch-slide:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

/* Rounded sliders */
.switch-slide.round {
  border-radius: 34px;
}

.switch-slide.round:before {
  border-radius: 50%;
}
/* switch btn end */
