.c-subnav label,
.c-subnav__button {
  font-weight: initial;
  font-size: 1.125rem;
  background: #F2F2F2;
  padding: 0.25rem 30px;
  border-radius: 30px;
  border: 1px solid #bcb8b8;
  margin-bottom: 0;
  display: inline-block !important;
}

.c-subnav .fieldset-legend {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.c-subnav .form-item,
.c-subnav__button {
  margin: 0 10px 1.25rem 0;
  display: inline-block;
}

.c-subnav .form-wrapper {
  margin-bottom: 0;
}

.c-subnav__nested-menu .o-submenu-medium {
  margin-bottom: 0.75rem;
}

.c-subnav .form-checkbox {
  display: none;
}

/* Combine fields filter for text search */

.c-subnav .form-text {
  border-style: none;
  height: 2rem;
  margin-bottom: 0px;
  padding: 0 10px;
  width: 100%;
  box-shadow: none;
  background: transparent;
}

.c-subnav .form-text:focus {
  background-color: transparent;
  box-shadow: none;
}

.c-subnav .form-item-terms {
  display: block;
  background: #F7F7F7;
  padding: 10px 15px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  width: 40%;
  margin-bottom: 2.75rem;
}

.c-subnav .form-item-terms .form-text {
  background-image: url('/sites/default/files/icons/search/search_icon_dark.svg');
  background-repeat: no-repeat;
  background-position: 3px 4px;
  padding-left: 37px;
  font-size: 1.25rem;
  color: #8D8C8C;
  font-weight: 700;
}

.c-subnav .form-item-terms .form-text::placeholder {
  color: #8D8C8C;
}

.c-subnav__label {
  margin-bottom: 0.5rem;
}

/* Set subheading, legend, input, label, link and icon color properities based on top section */

.g-section-dementia-friendly .c-subnav .o-subheading-medium,
.g-section-dementia-friendly .c-subnav .o-submenu-link,
.g-section-dementia-friendly .c-subnav .o-submenu-link a {
  color: #a95981;
}

.g-section-dementia-friendly .c-subnav .highlight label,
.g-section-dementia-friendly .c-subnav__button--active { 
  background: #a95981;
}

.g-section-dementia-friendly .c-subnav .o-submenu-icon {
  fill: #a95981;
}

.g-section-planning .c-subnav .o-subheading-medium,
.g-section-planning .c-subnav .o-submenu-link,
.g-section-planning .c-subnav .o-submenu-link a {
  color: #327fc5;
}

.g-section-planning .c-subnav .highlight label,
.g-section-planning .c-subnav__button--active { 
  background: #327fc5;
}

.g-section-planning .c-subnav .o-submenu-icon {
  fill: #327fc5;
}

.g-section-civil .c-subnav .o-subheading-medium,
.g-section-civil .c-subnav .o-submenu-link,
.g-section-civil .c-subnav .o-submenu-link a {
  color: #3682aa;
}

.g-section-civil .c-subnav .highlight label,
.g-section-civil .c-subnav__button--active { 
  background: #3682aa;
}

.g-section-civil .c-subnav .o-submenu-icon {
  fill: #3682aa;
}

.g-section-care .c-subnav .o-subheading-medium,
.g-section-care .c-subnav .o-submenu-link,
.g-section-care .c-subnav .o-submenu-link a {
  color: #7778bd;
}

.g-section-care .c-subnav .highlight label,
.g-section-care .c-subnav__button--active { 
  background: #7778bd;
}

.g-section-care .c-subnav .o-submenu-icon {
  fill: #7778bd;
}

.g-section-apartments .c-subnav .o-subheading-medium,
.g-section-apartments .c-subnav .o-submenu-link,
.g-section-apartments .c-subnav .o-submenu-link a {
  color: #46c8c2;
}

.g-section-apartments .c-subnav .highlight label,
.g-section-apartments .c-subnav__button--active { 
  background: #46c8c2;
}

.g-section-apartments .c-subnav .o-submenu-icon {
  fill: #46c8c2;
}

.g-section-amenities .c-subnav .o-subheading-medium,
.g-section-amenities .c-subnav .o-submenu-link,
.g-section-amenities .c-subnav .o-submenu-link a {
  color: #e43d1c;
}

.g-section-amenities .c-subnav .highlight label,
.g-section-amenities .c-subnav__button--active { 
  background: #e43d1c;
}

.g-section-amenities .c-subnav .o-submenu-icon {
  fill: #e43d1c;
}

.g-section-villas .c-subnav .o-subheading-medium,
.g-section-villas .c-subnav .o-submenu-link,
.g-section-villas .c-subnav .o-submenu-link a {
  color: #0b6375;
}

.g-section-villas .c-subnav .highlight label,
.g-section-villas .c-subnav__button--active { 
  background: #0b6375;
}

.g-section-villas .c-subnav .o-submenu-icon {
  fill: #0b6375;
}

/* Hover states for inputs, lables, links and icons */

.c-subnav input.form-checkbox:hover,
.g-section-care .c-subnav input.form-checkbox:hover,
.g-section-apartments .c-subnav input.form-checkbox:hover,
.g-section-amenities .c-subnav input.form-checkbox:hover,
.g-section-villas .c-subnav input.form-checkbox:hover { 
  background: #262746;
  border-color: #262746; 
}

.c-subnav label:hover,
.c-subnav .o-submenu-link a:hover { 
  color: #262746;
}

/* On and hover states for selected labels and links */

.c-subnav .highlight label,
.c-subnav__button--active,
.c-subnav__button--active:hover {
  color: #fcfcfd;
}
