body {
  padding-top: 6.5rem;
  @media (max-width: 500px) {
    padding-top: 11rem;
  }
  @media (max-width: 412px) {
    padding-top: 12rem;
  }
}

input:-moz-placeholder,
textarea:-moz-placeholder {
  color: $color-light-grey-2;
  opacity: 1;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: $color-light-grey-2;
  opacity: 1;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: $color-light-grey-2;
  opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: $color-light-grey-2;
  opacity: 1;
}

#main {
  .inside {
    margin: 0 auto;
    width: 80vw;
    max-width: 1280px;
    padding: 3rem 0;
    min-height: 600px;
  }
  h1 {
    font-size: 2rem;
    line-height: 2.5rem;
    padding: 0 0 2rem 0;
    @media (max-width: 767px) {
      font-size: 1.25rem;
      line-height: 1.5rem;
    }
  }
  h2, h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    padding: 0 0 1.5rem 0;
    @media (max-width: 767px) {
      font-size: 1rem;
      line-height: 1.25rem;
    }
  }
  h3 {
    font-weight: bold;
    text-transform: uppercase;
  }
  h4, h5, h6 {
    font-size: 1rem;
    line-height: 1.25rem;
    padding: 0 0 0.5rem 0;
    @media (max-width: 767px) {
      font-size: 0.875rem;
      line-height: 1rem;
    }
  }
  p, ul, ol, table {
    margin: 0 0 1.5rem 0;
  }
  p {
    &.img {
      img {
        float: left;
        margin: 0 20px 20px 0;
        width: 200px;
        height: auto;
      }
    }
  }
  .mini-nav {
    padding: 0 0 1.5rem 0;
    a {
      color: $color-bim-100;
      &:before {
        content: "<< ";
      }
      &:hover {
        text-decoration: none;
      }
    }
  }
  .container {
    padding: 0 0 1.5rem 0;
  }
  .logo-bar {
    li {
      overflow: hidden;
      padding: 0 0 10px 0;
      display: flex;
      align-items: center;
      img {
        //width: 120px;
        float: left;
        margin-right: 40px;
        height: 100px;
        @media (max-width: 767px) {
          float: none;
          margin-bottom: 20px;
        }
      }
      p {
        //margin-left: 150px;
        @media (max-width: 767px) {
          margin-left: 0;
        }
      }
    }
  }
}

.btn {
  border: 1px solid $color-bim-100;
  background: $color-bim-100;
  color: $color-white;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  @include transition;
  &:hover {
    background: $color-bim-80;
    border-color: $color-bim-80;
    color: $color-white;
  }
  &[disabled] {
    opacity: 0.5;
    background: $color-black;
    border-color: $color-black;
    cursor: default;
  }
  &--inverse {
    background: $color-white;
    color: $color-bim-100;
  }
  &--correct {
    border-color: $color-bim-green;
    background: $color-bim-green;
    color: $color-white;
    &:hover {
      background: $color-white;
      border-color: $color-bim-green;
      color: $color-bim-green;
    }
  }
}

.form {
  &--row {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    #header & {
      @media (max-width: 500px) {
        padding-top: 20px;
      }
    }
    &.form--row-right {
      justify-content: flex-end;
      margin-right: 5%;
    }
  }
  &--wrapper {
    width: 270px;
    padding: 0 0 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    #header & {
      padding-bottom: 0;
      width: 200px;
      &.fw--no-width {
        width: auto;
        @media (max-width: 412px) {
          margin-top: 10px;
        }
      }
      @media (max-width: 768px) {
        width: 120px;
      }
      @media (max-width: 412px) {
        width: 110px;
      }
    }
    &.mandatory {
      label {
        font-weight: 700;
      }
    }
    label {
      display: block;
      padding: 0 0 0.25rem 0;
      font-size: 0.875rem;
      line-height: 1.5rem;
      width: 100%;
    }
    input {
      display: block;
      font-size: 1rem;
      line-height: 1.5rem;
      width: 90%;
      &[type='checkbox'] {
        width: auto;
      }
    }
    textarea {
      display: block;
      font-size: 1rem;
      line-height: 1.5rem;
      padding: 1rem;
      width: 100%;
      height: 10rem;
      @media (max-width: 1048px) {
        width: 60%;
      }
      @media (max-width: 768px) {
        width: 100%;
      }
    }
  }
  &--legal {
    padding: 0 0 1.5rem 0;
    .form--wrapper {      
      width: auto;
      max-width: 80%;
      @media (max-width: 1048px) {
        max-width: none;
      }
    }
    .form-wrapper--container {
      display: flex;
      flex-wrap: nowrap;
      justify-content: flex-start;
      align-items: start;
      @media (max-width: 1048px) {
        display: block;
      }
    }
    .form--checkbox {
      input {
        float: left;
        margin: 5px 8px 0 0;
      }
    }
  }
  &--catalogue {
    border-top: 2px solid $color-black;
    padding: 0 0 1.5rem 0;
    .form-wrapper--container {
      display: flex;
      flex-wrap: nowrap;
      justify-content: flex-start;
      align-items: start;
      @media (max-width: 1048px) {
        display: block;
      }
    }
    h3 {
      text-align: center;
      width: 100%;
    }
    .question-count {
      padding: 1.5rem 0;
      position: relative;
      p {
        padding: 0;
      }
      .progressbar {
        position: absolute;
        left: 0;
        bottom: 0;
        height: 12px;
        width: 100%;
        background: #ddd;
        div {
          position: absolute;
          left: 0;
          bottom: 0;
          height: 12px;
          width: 0;
          background: green;          
        }
      }
    }
    .catalogue-nav {
      display: flex;
      justify-content: space-between;
      padding: 0 0 1.5rem 0;
      @media (max-width: 1024px) {
        flex-wrap: wrap;
        justify-content: center;
        .save {
          width: 100%;
          text-align: center;
        }
        span:not(.btn) {
          order: 3;
          justify-content: center;
          display: flex;
          flex-wrap: wrap;
          &:first-of-type {
            order: 2;
          }
        }
        .btn {        
          order: 1;
          margin: 10px 10px 0 10px;
        }
      }
    }
    .form--wrapper {
      width: auto;
      justify-content: center;
      .btn {
        float: right;
      }
      &.left {
        justify-content: flex-start;
      }
    }
    h2 {
      font-size: 2rem;
      line-height: 3rem;
    }
    label {
      font-size: 1.5rem;
      line-height: 2rem;
      @media (max-width: 767px) {
        font-size: 1rem;
        line-height: 1.25rem;
      }
    }
    .form--checkbox {
      label {
        display: flex;        
        input {
          display: inline;
          width: auto;
          margin: 9px 10px 0 0;
          @-moz-document url-prefix() {
            margin-top: 0;
          }
        }
      }
    }
  }
  &--question {
    border-top: 2px solid $color-black;
    padding-top: 1.5rem;
  }
  .alert {
    font-size: 0.75rem;
    line-height: 1rem;
  }
}

.alert {
  color: $color-bim-100 !important;
}

#message {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 3000;
  display: none;
  color: $color-white;
  font-size: 1.5rem;
  &.success {
    background: green;
  }
  &.failure {
    background: $color-bim-100;
  }
  p {
    padding: 1.5rem;
  }
}
