/* ===========================
   Newsletter Bar - Desktop
   =========================== */

.newsletter-bar {
  background-color: #0D1C6D;
  display: grid;
  grid-template-columns: 416px auto;
  align-items: flex-start;
  padding: 50px 72px;
  gap: 32px;
  font-family: 'Bloyd', sans-serif;
  box-sizing: border-box;
  width: 100%;
}

/* Inner .newsletter-bar wrapping the form - reset inherited container styles */
.newsletter-bar .newsletter-bar {
  background-color: transparent;
  padding: 0;
  display: block;
  flex: 1;
  gap: 0;
}

/* Left text column */
.newsletter-bar > div:first-child {
  flex: 0 0 auto;
  max-width: 300px;
}

.newsletter-bar .footer_text_heading {
  color: #FFFFFF;
  font-family: 'Bloyd', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px 0;
}

.newsletter-bar .footer_text {
  color: #FFFFFF;
  font-family: 'Bloyd', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

/* Form row: input + button side by side, privacy text spans full width below */
.newsletter-bar .footer_newsletter_form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.newsletter-bar .footer_newsletter_form > div:first-child {
  flex: 1;
}

.newsletter-bar .footer_newsletter_form > div:nth-child(2) {
  flex: 1;
}

.footer_newsletter_email_label{
  display: contents;
}

.newsletter-bar .footer_newsletter_form > div:nth-child(2) .footer_button {
  width: 70%;
  margin-left:15%;
}

/* Email input */
.newsletter-bar .footer_newsletter_input {
  width: 115%;
  height: 52px;
  padding: 0 20px;
  font-family: 'Bloyd', sans-serif;
  font-size: 16px;
  color: #111827;
  background-color: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
}

.newsletter-bar .footer_newsletter_input::placeholder {
  color: #9CA3AF;
}

.newsletter-bar .footer_newsletter_input:focus {
  border-color: #0367FF;
  box-shadow: 0 0 0 3px rgba(61, 95, 247, 0.2);
}

/* Subscribe button */
.newsletter-bar .footer_button {
  height: 52px;
  padding: 0 40px;
  background-color: #0367FF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.newsletter-bar .footer_button:hover {
  background-color: #0051cc;
}

.newsletter-bar .footer_button_text {
  color: #FFFFFF;
  font-family: 'Bloyd', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

@keyframes footer_spinner {
  to { transform: rotate(360deg); }
}

.newsletter-bar .footer_newsletter_input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.newsletter-bar .footer_button--loading {
  pointer-events: none;
}

.newsletter-bar .footer_button--loading .footer_button_text {
  display: none;
}

.newsletter-bar .footer_button--loading::after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: footer_spinner 0.75s linear infinite;
}

/* Privacy disclaimer - full width below input + button row */
.newsletter-bar .footer_newsletter_privacy_container {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.newsletter-bar .footer_newsletter_privacy_text {
  color: #FFFFFF;
  font-family: 'Bloyd_Condensed', sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  max-width: 100%;
}

/* Email validation error message */
.newsletter-bar .footer_newsletter_error {
  display: none;
  color: #ffdad6;
  font-family: 'Bloyd', sans-serif;
  font-size: 10px;
  font-weight: 400;
  margin-top: 5px;
  padding-left: 12px;
}

.newsletter-bar .footer_newsletter_input--error {
  border-color: #DC2626 !important;
  color: #DC2626 !important;
}

.newsletter-bar .footer_newsletter_input--fetch-error {
  border-color: #DC2626 !important;
}

/* Hide success alert by default */
.newsletter-bar .footer_newsletter_alert {
  display: none;
  gap: 16px;
  align-items: flex-start;
  color: #FFFFFF;
  font-family: 'Bloyd', sans-serif;
}

.newsletter-bar .footer_newsletter_alert p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #FFFFFF;
}

.newsletter-bar .footer_newsletter_success {
  background-color: #DBF5FF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  width: 100%;
  font-family: 'Bloyd', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #001849;
}

.newsletter-bar .footer_newsletter_success svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.newsletter-bar .footer_newsletter_success_title {
  font-weight: 700;
  margin: 0 0 4px;
  width: 100%;
}

.newsletter-bar .footer_newsletter_success_body {
  font-weight: 400;
  margin: 0;
}

/* ===========================
   Footer Utility Module - Desktop
   =========================== */

.footer_utility_module {
  background-color: #001849;
  font-family: 'Bloyd', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.footer_utility_module .footer_utility_container {
  padding: 0 80px 70px;
  box-sizing: border-box;
}

.footer_utility_module .footer_utility_text_container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Legal disclaimer paragraphs */
.footer_utility_module .footer_legal_disclaimer {
    color: #ffffff;
    font-family: 'Bloyd_Condensed', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    padding-top: 60px;
}

.footer_utility_module .footer_legal_disclaimer span {
    color: #ffffff;
}

.footer_utility_module .footer_legal_disclaimer a {
    color: #ffffff;
}

.footer_utility_module .footer_legal_disclaimer a:hover {
    opacity: 0.8;
}

/* Horizontal links row */
.footer_utility_module .footer_utility_links_container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 40px;
}

.footer_utility_module .footer_utility_links_container a {
    text-decoration: underline;
    color: #ffffff;
}

.footer_utility_module span a {
    text-decoration: underline;
    color: #ffffff;
}

.footer_utility_module .footer_utility_links_container a:hover {
    opacity: 0.8;
}

.footer_utility_module .footer_utility_link_label {
    color: #ffffff;
    font-family: 'Bloyd', sans-serif;
    font-size: 13px;
    font-weight: 400;
}

/* TrustArc cookie consent link - force match to utility link style */
.footer_utility_module #teconsent {
    text-decoration: underline;
    font-size: 16px;
}

.footer_utility_module #teconsent .truste_accessible_link {
    font-family: 'Bloyd', sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

#truste-consent-track {
    margin: 0 50px;
}

.truste_overlay {
  max-width: none !important;
}

.tc-btn-icon{
  min-height: 66px;
  line-height: 20px
}

#truste-privacy-button{
  font-size: 14px;
  text-decoration: none;
  font-weight: 400;
}

/* Legal code line */
.footer_utility_module .footer_legal_code {
  color: #FFFFFF;
  font-family: 'Bloyd', sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-align: right;
  align-self:end;
}

.footer_utility_module .wave-code-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .footer_utility_module .wave-code-desktop {
    display: none;
  }

  .footer_utility_module .wave-code-mobile {
    display: inline;
  }
}

/* ===========================
   Footer Nav Root - Desktop
   =========================== */

.footer_nav_root {
  background-color: #001849;
  font-family: 'Bloyd', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.footer_nav_root .footer_nav_inner {
  padding: 60px 80px 0;
  box-sizing: border-box;
}

/* Hide mobile accordion on desktop */
.footer_nav_root .footer_nav_mobile {
  display: none;
}

/* Desktop nav: links grid left, aside right */
.footer_nav_root .footer_nav_desktop {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

/* 3-column links grid: Products, Resources, Helpful links */
.footer_nav_root .footer_desktop_links_grid {
  display: flex;
  flex: 1;
  gap: 16px;
  align-items: flex-start;
}

.footer_nav_root .footer_desktop_section {
  flex: 1;
}

/* Section headings */
.footer_nav_root .footer_section_title {
  color: #FFFFFF;
  font-family: 'Bloyd', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px 0;
}

/* Link columns */
.footer_nav_root .footer_desktop_section_links,
.footer_nav_root .footer_static_section_links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer_nav_root .footer_link_item {
  color: #FFFFFF;
  font-family: 'Bloyd', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.footer_nav_root .footer_link_label {
  color: #FFFFFF;
  font-family: 'Bloyd', sans-serif;
  font-size: 14px;
}

.footer_nav_root .footer_link_item_static {
  cursor: default;
}

.footer_nav_root .footer_link_item_static:hover {
  text-decoration: none;
}

/* Aside: Login section + Contact card */
.footer_nav_root .footer_desktop_aside {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Contact card */
.footer_nav_root .footer_contact_card {
  background-color: #041B65;
  border-radius: 10px;
  padding: 28px;
  box-sizing: border-box;
}

.footer_nav_root .footer_contact_heading {
  color: #FFFFFF;
  font-family: 'Bloyd', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.footer_nav_root .footer_contact_list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer_nav_root .footer_contact_row {
  display: block;
  text-decoration: none;
}

.footer_nav_root .footer_contact_header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.footer_nav_root .footer_contact_title_group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.footer_nav_root .footer_contact_icon {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.footer_nav_root .footer_contact_icon_wrapper {
  width: 20px;
  height: 20px;
}

.footer_nav_root .footer_contact_icon_image {
  display: block;
  width: 20px;
  height: 20px;
}

.footer_nav_root .footer_contact_title {
  color: #FFFFFF;
  font-family: 'Bloyd', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.Email_Us{
  text-decoration: underline;
}

.footer_nav_root .footer_contact_value {
  color: #FFFFFF;
  font-family: 'Bloyd', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.footer_nav_root .footer_contact_description {
  color: #FFFFFF;
  font-family: 'Bloyd', sans-serif;
  font-size: 13px;
  font-weight: 400;
}

/* Hide mobile contact section on desktop */
.footer_nav_root .footer_contact_section {
  display: none;
}

/* Social icons */
.footer_social_section {
  margin-top: 48px;
  padding: 28px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.footer_nav_root .footer_social_list {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer_nav_root .footer_social_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.9;
}

.footer_nav_root .footer_social_link:hover {
  opacity: 1;
}

.footer_nav_root .footer_social_icon_wrapper {
  width: 24px;
  height: 24px;
}

.footer_nav_root .footer_social_icon_image {
  display: block;
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.plainLink {
  text-decoration: none !important;
  color: #FFFFFF !important;
}

.underlineLink {
  text-decoration: underline !important;
  color: #FFFFFF !important;
}

/* Show desktop wave code by default; hide mobile wave code */
.footer_legal_code .wave-code-mobile {
  display: none;
}

/* At tablet/mobile breakpoints, swap to mobile wave code */
@media (max-width: 1024px) {
  .footer_legal_code .wave-code-desktop {
    display: none;
  }

  .footer_legal_code .wave-code-mobile {
    display: inline;
  }
}

  /* ===========================
     Tablet Layout (768-1024px)
     =========================== */
  @media (768px <= width <= 1024px) {
    /* Newsletter bar: stack text above form, keep input+button on same row */
    .newsletter-bar {
      display: block;
      padding: 40px 48px;
      gap: 0;
    }

    .footer_text_heading {
      font-size: 24px;
    }

    .footer_text {
      font-size: 16px;
    }

    .newsletter-bar > div:first-child {
      max-width: 100%;
      margin-bottom: 24px;
    }

    .newsletter-bar .newsletter-bar {
      display: block;
    }

    .newsletter-bar .footer_newsletter_form {
      flex-direction: row;
      gap: 16px;
    }

    .newsletter-bar .footer_newsletter_form > div:first-child {
      flex: 1;
    }

    .newsletter-bar .footer_newsletter_form > div:nth-child(2) {
      flex: 1;
    }

    .newsletter-bar .footer_newsletter_input {
      width: 120%;
    }

    .newsletter-bar .footer_newsletter_form > div:nth-child(2) .footer_button {
      width: 80%;
      margin-left: 20%;
      padding: 12px 28px;
    }

    .newsletter-bar .footer_newsletter_success {
      width: 97%;
    }

    /* Footer nav: show mobile accordion, hide desktop grid */
    .footer_nav_root .footer_nav_inner {
      padding: 0;
    }

    .footer_nav_root .footer_nav_mobile {
      display: block;
      padding: 0 48px;
      box-sizing: border-box;
    }

    .footer_nav_root .footer_nav_desktop {
      display: none;
    }

    /* Accordion item dividers */
    .footer_accordion_item {
      border-bottom: 1px solid rgba(244, 240, 239, 0.5);
    }

    .footer_accordion_item:first-child {
      position: relative;
      padding-top: 20px;
    }

    .footer_accordion_item:first-child::before {
      content: '';
      position: absolute;
      top: 20px;
      left: 0;
      right: 0;
      border-top: 1px solid rgba(244, 240, 239, 0.5);
    }

    /* Accordion toggle button */
    .footer_accordion_control {
      display: flex;
      align-items: center;
      width: 100%;
      background: none;
      border: none;
      cursor: pointer;
      padding: 20px 0;
      font-family: 'Bloyd', sans-serif;
      color: #FFFFFF;
    }

    .footer_accordion_label {
      order: 1;
      flex: 1;
      text-align: left;
    }

    .footer_accordion_icon {
      order: 2;
      flex: 0 0 auto;
      color: #FFFFFF;
      transition: transform 200ms ease;
    }

    .footer_accordion_control[aria-expanded="true"] .footer_accordion_icon {
      transform: rotate(180deg);
    }

    .footer_accordion_item .footer_section_title {
      margin: 0;
      font-size: 18px;
    }

    .footer_accordion_panel .footer_section_links {
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 0 0 20px 0;
    }

    /* Social icons */
    .footer_nav_root .footer_social_section {
      margin-top: 0 !important;
      padding-top: 0;
    }

    /* Login static section */
    .footer_static_section {
      padding: 20px 0;
    }

    .footer_static_section .footer_section_title {
      margin: 0 0 16px 0;
    }

    .footer_static_section_links {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* Show contact section below nav */
    .footer_nav_root .footer_contact_section {
      display: block;
      padding: 24px 48px;
    }

    /* Contact list: phone and email side by side */
    .footer_contact_section .footer_contact_list {
      flex-direction: row;
      align-items: flex-start;
      gap: 64px;
    }

    .footer_contact_section .footer_contact_copy {
      padding-left: 28px;
    }

    .footer_social_section {
      margin: 0 48px -1px 48px;
      padding-bottom: 28px !important;
      border-bottom: 2px solid rgba(255, 255, 255, 0.5)
    }

    /* Utility module */
    .footer_utility_module .footer_utility_container {
      padding: 24px 48px 40px;
    }

    .footer_utility_module .footer_utility_links_container {
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 32px;
    }

    /* Utility links: single column list, left-aligned */
    .footer_utility_module .footer_utility_links_container {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }

    .tc-btn-icon {
      min-height: 0;
    }

    #truste-consent-track {
      margin: 0;
    }

  }

  /* ===========================
     Mobile Layout (≤768px)
     =========================== */
  @media (max-width: 768px) {
    /* Newsletter bar: stack text above form, both full width */
    .newsletter-bar {
      display: block;
      padding: 32px 20px;
      gap: 0;
    }

    .newsletter-bar > div:first-child {
      max-width: 100%;
      margin-bottom: 24px;
    }

    .newsletter-bar .newsletter-bar {
      display: block;
    }

    /* Stack input above button, both full width */
    .newsletter-bar .footer_newsletter_form {
      flex-direction: column;
      gap: 12px;
    }

    .newsletter-bar .footer_newsletter_form > div:first-child,
    .newsletter-bar .footer_newsletter_form > div:nth-child(2) {
      flex: none;
      width: 100%;
    }

    .newsletter-bar .footer_newsletter_input {
      width: 100%;
      max-height: 40px;
    }

    .newsletter-bar .footer_newsletter_form > div:nth-child(2) .footer_button {
      width: 100%;
      margin-left: 0;
      max-height: 43px;
    }

    .newsletter-bar .footer_button_text {
      font-size: 13px;
      font-weight: 700;
      font-family: Bloyd, sans-serif;
      color: #FCF8F8;
    }

    .newsletter-bar .footer_newsletter_success {
      margin: 0;
      box-sizing: border-box;
    }

    /* Footer nav: show mobile accordion, hide desktop grid */
    .footer_nav_root .footer_nav_inner {
      padding: 0;
    }

    .footer_nav_root .footer_nav_mobile {
      display: block;
      padding: 0 20px;
      box-sizing: border-box;
    }

    .footer_nav_root .footer_nav_desktop {
      display: none;
    }

    /* Accordion item dividers */
    .footer_accordion_item {
      border-bottom: 1px solid rgba(244, 240, 239, 0.5);
    }

    .footer_accordion_item:first-child {
      position: relative;
      padding-top: 20px;
    }

    .footer_accordion_item:first-child::before {
      content: '';
      position: absolute;
      top: 20px;
      left: 0;
      right: 0;
      border-top: 1px solid rgba(244, 240, 239, 0.5);
    }

    /* Accordion toggle button */
    .footer_accordion_control {
      display: flex;
      align-items: center;
      width: 100%;
      background: none;
      border: none;
      cursor: pointer;
      padding: 20px 0;
      font-family: 'Bloyd', sans-serif;
      color: #FFFFFF;
    }

    /* Label on left, chevron on right (DOM order is chevron first, label second) */
    .footer_accordion_label {
      order: 1;
      flex: 1;
      text-align: left;
    }

    .footer_accordion_icon {
      order: 2;
      flex: 0 0 auto;
      color: #FFFFFF;
      transition: transform 200ms ease;
    }

    /* Rotate chevron when expanded */
    .footer_accordion_control[aria-expanded="true"] .footer_accordion_icon {
      transform: rotate(180deg);
    }

    .footer_accordion_item .footer_section_title {
      margin: 0;
    }

    /* Expanded panel links */
    .footer_accordion_panel .footer_section_links {
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 0 0 20px 0;
    }

    /* Login static section */
    .footer_static_section {
      padding: 20px 0;
    }

    .footer_static_section .footer_section_title {
      margin: 0 0 16px 0;
    }

    .footer_static_section_links {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* Show mobile contact section below the nav */
    .footer_nav_root .footer_contact_section {
      display: block;
      padding: 24px 20px;
    }

    /* Contact list: stack items vertically */
    .footer_contact_section .footer_contact_list {
      flex-direction: column;
      gap: 20px;
    }

    .footer_contact_section .footer_contact_copy {
      padding-left: 28px;
    }

    .footer_social_section {
      margin: 0 6% -1px 6% !important;
      border-bottom: 2px solid rgba(255, 255, 255, 0.5)
    }

    /* Utility links: single column list, left-aligned */
    .footer_utility_module .footer_utility_links_container {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }

    /* Utility module */
    .footer_utility_module .footer_utility_container {
      padding-left: 24px;
      padding-right: 24px;
    }

    /* Cookie Consent */
    #teconsent a {
      font-family: Bloyd, sans-serif !important;
    }

    /* Errors are due to being defined in the injected TrustArc script */
    #truste-consent-button, #truste-consent-required {
      color: var(--tc-ad-button-text-color);
    }

    #truste-show-consent {
      color: var(--tc-main-color);
    }

    #teconsent .truste_accessible_link {
      color: #ffffff;
      font-family: 'Bloyd', sans-serif;
      font-size: 13px;
      font-weight: 400;
      text-decoration: none;
      cursor: pointer;
    }

    .tc-btn-icon {
      min-height: 0
    }

    #truste-consent-track {
      margin: 0;
    }
  }

