@import '../../styles/_main';

$icon-size: 120px;

.RoleOverview {
  max-width: 900px;
  margin-bottom: 200px;

  &__header {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    background-color: $c_catskill_white;
    border-radius: $border-radius;
  }

  &__title {
    font-size: 28px;
    font-weight: 700;
    color: $c_blue-ribbon;
  }

  &__icon {
    display: none;
  }

  &__image {
    width: 100%;
    max-width: 300px;
    max-height: 150px;
    margin-top: 30px;
    color: $c_blue-ribbon;
  }

  &__content {
    padding-top: 50px;
  }

  &__heading {
    margin-bottom: 40px;
    font-size: 28px;

    &--small {
      margin-bottom: 30px;
      font-size: 22px;
      font-weight: 700;
    }
  }

  &__details {
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 26px;
  }

  &__dashList {
    padding-left: 0;
    list-style-type: none;

    li {
      text-indent: -4px;

      &::before {
        content: '-';
      }
    }
  }

  &__buttons {
    padding: 40px 0 30px;
  }

  &__button:not(:last-child) {
    margin-bottom: 10px;
  }

  &__form-content {
    display: none;
    opacity: 0;

    &--visible {
      display: block;
      animation: show 1s forwards;
    }
  }

  &__form-icon {
    width: 20px;
    height: 20px;
    margin-right: 20px;
  }

  &__form-title {
    display: flex;
    align-self: center;
    padding: 40px 0 30px;
    font-size: 18px;
    line-height: 20px;
    color: $c_blue-ribbon;
  }

  &__form-input {
    margin-bottom: 30px;
  }

  &__checkbox {
    height: 33px;
    margin: 0;
  }

  &__label {
    padding-left: 16px;
  }

  &__form-accept {
    display: flex;
    margin-bottom: 30px;
  }

  &__form-label {
    font-size: 24px;
    font-weight: 600;
    line-height: 33px;

    &--small {
      margin-top: 10px;
      font-size: 14px;
      line-height: 20px;
    }
  }

  @media #{$screen-sm} {
    &__header {
      padding-top: 50px;
      padding-bottom: 50px;
    }

    &__title {
      font-size: 36px;
    }

    &__content {
      padding-top: 80px;
    }

    &__heading {
      font-size: 36px;

      &--small {
        font-size: 26px;
      }
    }

    &__details {
      font-size: 18px;
    }

    &__button {
      margin-bottom: 0;

      &:not(:last-child) {
        margin-right: 10px;
      }
    }
  }

  @media #{$screen-md} {
    &__header {
      position: relative;
      align-items: flex-start;
      align-items: center;
      flex-direction: row;
      justify-content: space-between;
      padding: 40px;
      background-image:
        url('../../assets/background/roles-page-corner-left.png'),
        url('../../assets/background/roles-page-corner-right.png');
      background-position: bottom left, top right;
      background-repeat: no-repeat;

      &-container {
        display: flex;
        align-items: center;
        min-width: 0;
      }
    }

    &__title {
      margin-right: 20px;
    }

    &__image-container {
      display: flex;
      align-items: flex-end;
      height: 120px;
    }

    &__image {
      width: auto;
      height: 100%;
      max-width: 120px;
      margin: 0;
    }

    &__icon {
      display: block;
      flex-shrink: 0;
      width: $icon-size;
      margin-right: 40px;
    }

    &__content {
      padding-right: 50px;
      padding-left: 50px;
    }

    &__lists {
      display: flex;
      justify-content: space-between;
    }

    &__list {
      width: 50%;

      &:not(:last-child) {
        margin-right: 24px;
      }
    }
  }

  @media #{media-min-width(1060px)} {
    &__image {
      max-width: none;
    }
  }

  @media #{$screen-lg} {
    &__icon {
      max-width: auto;
    }

    &__header-container {
      flex-grow: 1;
    }

    &__title {
      max-width: 330px;
      margin-right: 20px;
    }
  }
}

@keyframes show {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
