/* Language toggle for all content */
.lang-en_US,
.lang-en_GB {
  display: none;
} 

/* Show correct language content based on HTML lang attribute */
html[lang="en-US"] .lang-en_US {
  display: block;
}
html[lang="en-GB"] .lang-en_GB {
  display: block;
}
 

/* Footer bottom row layout */
/* Make inner footer content flex and full-width */
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

/* Expand inside .span_5 container */
#copyright .span_5 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100%;
}

/* Style for left and right sections */
.footer-bottom-content .left {
  font-size: 14px;
  color: #fff;
}

.footer-bottom-content .right {
  font-size: 14px;
  margin-left: auto;
  text-align: right;
	padding-right: 40px;
}

/* Make privacy policy link styled consistently */
.footer-bottom-content .right a {
  color: #fff;
  margin-left: 16px;
}


/* Styling for text links on body of pages and posts */
/* Excludes Related Posts, Post Headers, Blog Post category links, and Announcements links - It takes into account localization as well by adding code for en-us */
.entry-content a:not(.jp-relatedposts-post-a):not(.post-header .title a):not(.blog-post-en-us):not(.announcements-us):not(.blog-post):not(.announcements),
.post-content a:not(.jp-relatedposts-post-a):not(.post-header .title a):not(.blog-post-en-us):not(.announcements-us):not(.blog-post):not(.announcements),
.page-content a:not(.jp-relatedposts-post-a):not(.post-header .title a):not(.blog-post-en-us):not(.announcements-us):not(.blog-post):not(.announcements) {
  color: #165156; /* desired blue */
}

.entry-content a:not(.jp-relatedposts-post-a):not(.post-header .title a):not(.blog-post-en-us):not(.announcements-us):not(.blog-post):not(.announcements):hover,
.post-content a:not(.jp-relatedposts-post-a):not(.post-header .title a):not(.blog-post-en-us):not(.announcements-us):not(.blog-post):not(.announcements):hover,
.page-content a:not(.jp-relatedposts-post-a):not(.post-header .title a):not(.blog-post-en-us):not(.announcements-us):not(.blog-post):not(.announcements):hover {
  color: #5C8589; /* hover color */
}

/* FAQs Questions bolded */
.toggle>.toggle-title a {
	color: #a3a3a3;
	font-size: 16px;
	font-weight: 600;
}

div[data-style="minimal"] .toggle {
	border-bottom: 2px solid #2a2a2a;
}


/* Marging and padding for Checkbox in the Contact-Us form - Formidable forms  */
#frm_field_20_container {
    margin-left: 0 !important;
	  padding-top: 4px;
}

#frm_field_19_container {
    margin-left: -20px;
}


/* hide both Privacy Policy Links and teh code below should allow eitehr US or UK to show depending on teh users location by default */
#frm_field_19_container .privacy-policy-link {
  display: none;
}

/* show US link on US pages for Privacy Policy link on Formidable Forms showing before the Submit button */
html[lang="en-US"] #frm_field_19_container .privacy-us {
  display: inline;
}

/* show UK link on UK pages for Privacy Policy link on Formidable Forms showing before the Submit button  */
html[lang="en-GB"] #frm_field_19_container .privacy-uk {
  display: inline;
}

 
/* show UK link on UK pages for Privacy Policy link on Formidable Forms showing before the Submit button  */
@media only screen and (max-width: 690px) {
    div[data-style="minimal"] .toggle > .toggle-title a {
        font-size: 16px;
        line-height: 24px;
    }
}
 

/* Custom 18px Formidable checkbox */
#frm_checkbox_20-0 input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  border: 1.5px solid #165156 !important;
  border-radius: 4px !important;
  background-color: #ffffff !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  margin: 0 8px 0 0 !important;
}

/* Checked state with larger white checkmark */
#frm_checkbox_20-0 input[type="checkbox"]:checked {
  background-color: #165156 !important;
  border-color: #165156 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5L8.5 14L15 6' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-size: 14px 14px !important;
}

/* Disable older pseudo checkmark if still present */
#frm_checkbox_20-0 input[type="checkbox"]:checked::after {
  content: none !important;
  display: none !important;
}
 
/* Adds a visible keyboard focus state to the checkbox in teh contact forms for accessibility - Formidable forms */
#frm_checkbox_20-0 input[type="checkbox"]:focus-visible {
  outline: 2px solid #165156 !important;
  outline-offset: 2px !important;
}


/* Keep original Formidable checkbox error accessible but hide it visually */
#frm_field_20_container .frm_error {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Show the checkbox error below the consent text field */
#frm_field_20_container.frm_blank_field ~ #frm_field_19_container::after {
  content: "This field cannot be blank.";
  display: block;
  margin-top: 8px;
  color: #f04438;
  font-size: 14px;
  line-height: 20px;
}


/* Consent text color */
#frm_field_19_container,
#frm_field_19_container p {
  color: #5f5f5f !important;
}

/* Privacy Policy link color */
#frm_field_19_container a {
  color: #165156 !important;
  text-decoration: underline;
}









/* Mobile: checkbox + consent copy in one row with 2 columns */
@media only screen and (max-width: 690px) {

  /* Turn the Formidable field wrapper into a grid */
  form:has(#frm_field_20_container) .frm_fields_container {
    display: grid !important;
    grid-template-columns: 0px 18px 14px minmax(0, 1fr) 0px !important;
    column-gap: 0 !important;
  }

  /* Keep all normal form fields full width */
  form:has(#frm_field_20_container) .frm_fields_container > .frm_form_field {
    grid-column: 1 / -1;
  }

  /* Checkbox field goes in the small column */
  #frm_field_20_container {
    grid-column: 2 !important;
    width: 18px !important;
    max-width: 18px !important;
    min-width: 18px !important;
    margin: 4px 0 4px 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
  }

  /* Remove empty label space */
  #frm_field_20_container > .frm_primary_label {
    display: none !important;
  }

  /* Checkbox wrapper reset */
  #frm_field_20_container .frm_opt_container,
  #frm_field_20_container .frm_checkbox,
  #frm_field_20_container .frm_checkbox label {
    width: 18px !important;
    max-width: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  /* Consent copy goes in the large text column */
  #frm_field_19_container {
    grid-column: 4 !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0px 0px 32px 0px !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    box-sizing: border-box !important;
  }

  /* Consent paragraph */
  #frm_field_19_container p {
    margin: 0 !important;
    padding: 0 !important;
    color: #5f5f5f !important;
    font-size: 14px !important;
    line-height: 26px !important;
    overflow-wrap: break-word !important;
  }

  /* Privacy Policy link */
  #frm_field_19_container a {
    color: #165156 !important;
    text-decoration: underline !important;
  }

  /* Error message below the consent copy column */
  #frm_field_20_container .frm_error {
    grid-column: 4 !important;
    margin-top: 8px !important;
    color: #B42318 !important;
    font-size: 14px !important;
    line-height: 20px !important;
  }
}