.usa-nav__primary.main-menu-mega .dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  line-height: 1.6;
  background: $white;
  z-index: 2;
  margin-top: 0;
  padding-top: units(5); //4rem
  padding-bottom: units(5); //4rem
  border-top: 1px solid color('base-lightest');
  box-shadow: $box-shadow;

  .field--type-text-long {
    font-size: 1.5rem;
    line-height: 1.6;

    ul,
    ol {
      font-size: 1.4rem;
    }
  }

  a.usa-button {
    @extend .usa-button;
  }

  h2 {
    font-size: 4rem;
    line-height: 1;
  }

  h2.block-content__title,
  nav > h2,
  h2.heading-small {
    @extend %heading-small;
  }

  h3 {
    @extend h3.small;
  }

  nav > ul {
    @extend ul.unstyled-list;
  }

  a {
    padding-bottom: 0;
    border-bottom: 1px solid #c6cace;

    svg {
      color: $brightblue;

      &.ext {
        display: none;
      }
    }
  }

  .fontawesome-icon-inline {
    &:not(:first-child) {
      margin-left: 0.5rem;
    }

    a {
      border-bottom: 0;
    }

    svg {
      width: 1.8rem;
      height: 1.8rem;
    }
  }

  .layout--threecol-section--33-34-33 {
    .layout__region-column {
      width: 28%;

      &:first-child {
        width: 38%;
        margin-right: 2%;
      }

      &:last-child {
        width: 32%;
      }
    }
  }

  .usa-search {
    float: none;
    max-width: none;
    margin-left: 0;

    button {
      background-color: $darkblue;
    }
  }
}

.megamenu-search-block {
  max-width: 64rem;
  margin: 0 auto;

  .usa-search {
    float: none;
    max-width: none;
    margin: 0 0 2rem;
    display: flex;

    input {
      border: 1px solid color('base-lighter');
      border-width: 0 0 1px;
      font-family: family('heading');
      font-size: 3rem;
      padding: 1rem 5rem 1rem 1rem;
      max-width: none;
    }

    .usa-button--search,
    button {
      @include add-background-svg("search-primary");
      background-color: transparent;
      background-position: center center;
      background-size: units(2);
      margin-left: -4rem;
    }

    .usa-button.usa-button--search {
      width: 20px;
      text-indent: 10rem;
      margin: 0;
    }

    + .ftc-blue-box {
      padding: 2rem;
      text-align: center;
    }
  }
}
@include at-media-max('desktop') {
  .megamenu-search-block {
    margin-top: 2rem !important;
    border-width: 1px;
    input[name="query"],
    #query {
      width: calc(100% - 6rem);
      max-width: calc(100% - 6rem);
      padding-right: 1rem;
      font-size: 1.4rem;
      font-family: $sans;
      border-width: 1px 0 1px 1px;
    }
    .usa-search .usa-button.usa-button--search {
      border-width: 1px 1px 1px 0;
    }
    .usa-search + .ftc-blue-box {
      p {
        line-height: 1.4;
      }
    }
  }
}
