/* ---------------------------- */
/* GLOBAL RESET FOR COMPONENT   */
/* ---------------------------- */
.search-form,
.search-form * {
  box-sizing: border-box;
  max-width: 100%;
}
/* ---------------------------- */
/* CONTAINER                    */
/* ---------------------------- */
.search-form {
  width: 100%;
  max-width: none !important;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}
/* ---------------------------- */
/* TITLE                        */
/* ---------------------------- */
.search-form__title {
  font-size: 2.125rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 2rem 0;
  line-height: 1.3;
  font-family: "Open Sans", sans-serif;
}
/* ---------------------------- */
/* FORM LAYOUT                  */
/* ---------------------------- */
.search-form__form {
  display: flex;
  width: 100%;
}
/* ---------------------------- */
/* INPUT                        */
/* ---------------------------- */
.search-form__input {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 4px 0 0 4px;
  height: 55px;
}
/* ---------------------------- */
/* BUTTON                       */
/* ---------------------------- */
.search-form__button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: #005a5c;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  white-space: normal;
  /* let text wrap */
  text-align: center;
  height: 55px;
}
/*.search-form__button:hover {
    background-color: #54565a;
}*/
.search-form__button-text {
  margin-right: 0.5rem;
  word-break: break-word;
  /* wrap long text */
}
.search-form__button-icon {
  font-size: 1rem;
  line-height: 1;
}
/* ---------------------------- */
/* MOBILE STACKED <768px         */
/* ---------------------------- */
@media (max-width: 767px) {
  .search-form__form {
    flex-direction: column;
  }
  .search-form__input {
    border-radius: 4px;
    border-right: 1px solid #ccc;
    margin-bottom: 0.5rem;
    width: 100%;
  }
  .search-form__button {
    border-radius: 4px;
    width: 100%;
    white-space: normal;
  }
}
/*responsive search form css*/
@media (min-width: 640px) {
  .search-form {
    max-width: 640px;
    padding-right: 2rem;
    padding-left: 2rem;
  }
}
@media (min-width: 768px) {
  .search-form {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .search-form {
    max-width: 1024px;
    padding-right: 4rem;
    padding-left: 4rem;
  }
}
@media (min-width: 1280px) {
  .search-form {
    max-width: 1280px;
    padding-right: 5rem;
    padding-left: 5rem;
  }
}
@media (min-width: 1536px) {
  .search-form {
    max-width: 1536px;
  }
}
/* ---------------------------- */
/* VARIATIONS: WHEN CLASS ON OUTER WRAPPER */
/* ---------------------------- */
/* vertical layout (default) */
.search-form--vertical .search-form,
.search-form.search-form--vertical {
  display: block;
  /* title on top */
}
.search-form--vertical .search-form__title,
.search-form.search-form--vertical .search-form__title {
  text-align: center;
  margin-bottom: 2rem;
}
/* horizontal layout */
.search-form--horizontal .search-form,
.search-form.search-form--horizontal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* vertically center title & form */
  justify-content: space-between;
  gap: 1rem;
  /* space between title and form */
}
.search-form--horizontal .search-form__title,
.search-form.search-form--horizontal .search-form__title {
  margin: 0;
  flex: 0 0 auto;
  /* title keeps its width */
  text-align: left;
  /* align left horizontally */
  font-size: 1.1rem;
}
.search-form--horizontal .search-form__form,
.search-form.search-form--horizontal .search-form__form {
  flex: 1 1 auto;
  display: flex;
  width: auto;
}
/* smaller input & button automatically in horizontal layout */
.search-form--horizontal .search-form__input,
.search-form.search-form--horizontal .search-form__input {
  font-size: 1.1rem;
  /* slightly smaller text */
  height: 45px;
  /* reduced height */
  padding: 0.5rem 0.75rem;
  /* less padding */
}
.search-form--horizontal .search-form__button,
.search-form.search-form--horizontal .search-form__button {
  font-size: 0.9rem;
  /* smaller button text */
  height: 45px;
  /* reduced height */
  padding: 0.5rem 0.75rem;
  /* less padding */
}
.search-form--horizontal .search-form__button-text,
.search-form.search-form--horizontal .search-form__button-text {
  margin-right: 0.4rem;
  /* adjust spacing inside button */
}
/* ---------------------------- */
/* BUTTON COLOR VIA OUTER CLASS */
/* ---------------------------- */
/* Default button color is in .search-form__button already */
/* Blue1 #1c2758 */
.search-form--blue1 .search-form__button,
.search-form.search-form--blue1 .search-form__button {
  background-color: #1c2758;
}
.search-form--blue1 .search-form__button:hover,
.search-form.search-form--blue1 .search-form__button:hover {
  background-color: #54565a;
  /* darker on hover */
}
/* Blue2 #1D4094 */
.search-form--blue2 .search-form__button,
.search-form.search-form--blue2 .search-form__button {
  background-color: #1D4094;
}
.search-form--blue2 .search-form__button:hover,
.search-form.search-form--blue2 .search-form__button:hover {
  background-color: #2858c7;
  /* darker on hover */
}
/* Teal #005a5c */
.search-form--teal .search-form__button,
.search-form.search-form--teal .search-form__button {
  background-color: #005a5c;
}
.search-form--teal .search-form__button:hover,
.search-form.search-form--teal .search-form__button:hover {
  background-color: #004547;
  /* darker on hover */
}
/* Responsive stack on mobile even in horizontal mode */
@media (max-width: 767px) {
  .search-form--horizontal .search-form,
  .search-form.search-form--horizontal {
    flex-direction: column;
    align-items: stretch;
  }
  .search-form--horizontal .search-form__title,
  .search-form.search-form--horizontal .search-form__title {
    text-align: center;
    margin-bottom: 1rem;
  }
  .search-form--horizontal .search-form__form,
  .search-form.search-form--horizontal .search-form__form {
    width: 100%;
  }
}
