// lms - views - verification flow
// ====================
@import '../base/grid-settings';
@import 'neat/neat'; // lib - Neat

// MISC: extends - button
%btn-verify-primary {
  @extend %btn-primary-green;
}

// ====================

// MISC: expandable UI
.is-expandable {

  .title-expand {
  }

  .expandable-icon {
    @include transition(all 0.25s ease-in-out 0s);
    display: inline-block;
    vertical-align: middle;
    margin-right: ($baseline/4);
  }

  // STATE: active
  &.is-ready {

    .expandable-icon {
      @include transform(rotate(-90deg));
    }

    .title-expand {
      @extend %ui-fake-link;
      color: $m-blue-d2;

      &:hover, &:focus {
        color: $m-blue;
      }
    }
  }

  // STATE: expanded
  &.is-expanded {

    .expandable-icon {
      @include transform(rotate(0));
      @include transform-origin(50% 50%);
    }
  }
}

// ====================

// VIEW: all verification steps
.verification-process,
.midcourse-reverification-process {

  // reset: box-sizing (making things so right its scary)
  * {
    @include box-sizing(border-box);
  }

  // reset: typography
  font-family: $sans-serif;

  // reset: typography - heading
  h1, h2, h3, h4, h5 ,h6 {
    @extend %t-title;
    color: $m-gray-d4;
  }

  // reset: typography - copy
  p, ol, ul, dl, input, select, textarea {
    font-family: $f-sans-serif;
    color: $m-gray-d1;
  }

  .copy {

    p, ul, li, dl, blockquote, input, select {
      margin-bottom: ($baseline*0.75);

      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  // reset: copy/text


  // reset: forms
  input,textarea {
    font-style: normal;
    font-weight: 400;
    margin-right: ($baseline/5);
    padding: ($baseline/4) ($baseline/2);
  }

  textarea {
    padding: ($baseline/2);
  }

  label {
    @extend %t-weight4;
    font-family: $sans-serif;
    font-style: normal;
    color: $m-gray-d4;
  }

  // reset: navigation (needed due to edX's new global-header styling)
  .global-new .nav-global a {
    padding-bottom: ($baseline +1);
  }

  // HACK: nasty override due to our bad input/button styling
  button, input[type="submit"], input[type="button"], button[type="submit"] {
    @include font-size(16);
    @extend %t-weight4;
    text-transform: none;
    text-shadow: none;
    letter-spacing: 0;
  }

  .checkbox label {
    display: inline-block;
  }

  input[type="checkbox"] {
    width: auto;
  }

  //  reset: lists
  .list-actions, .list-steps, .progress-steps, .list-controls, .list-fields, .list-nav, .list-help, .list-faq, .nav-wizard, .list-reqs, .list-faq, .review-tasks, .list-tips, .wrapper-photos, .field-group, .list-info {
    @extend %ui-no-list;
  }

  // ====================

  // elements: layout
  .content-wrapper {
    background: $m-gray-l4;
    padding-bottom: 0;
  }

  .container {
    background-color: $white;
    padding: ($baseline*1.5) ($baseline*1.5) ($baseline*2) ($baseline*1.5);
  }

  // ====================

  // elements: common copy
  .title {
    @extend %t-title5;
    @extend %t-weight1;
  }

  .copy {
    @extend %t-weight1;
  }

  // ====================

  // elements - controls
  .action-primary {
    @extend %btn-primary-blue;
    // needed for override due to .register a:link styling
    border: 0 !important;
    color: $white !important;
  }

  .action-confirm {
    @extend %btn-verify-primary;
    // needed for override due to .register a:link styling
    border: 0 !important;
    color: $white !important;
  }

  // ====================

  // elements: page depth

  // ====================

  // UI: reports/tables
  .wrapper-report {

    .report {
      @extend %ui-window;
      width: flex-grid(12,12);
      border-color: $m-gray-t3;
      border-collapse:collapse;

      tr {
        text-align: left;
      }

      td {
        @extend %t-weight3;
        vertical-align: middle;
        padding: ($baseline*0.75) $baseline;
        color: $m-gray-d3;
      }

      th {
        @extend %t-weight2;
        padding: ($baseline/2) $baseline;
      }

      thead {

        tr {
          border-bottom: 1px solid $m-gray-l3;
        }

        th[scope="col"] {
          @extend %t-title7;
          @extend %t-weight2;
          vertical-align: middle;
          color: $m-gray-l1;
          background: $m-gray-l4;
        }
      }

      tbody {

        tr {
          border-bottom: 1px solid $m-gray-l3;
        }
      }

      tfoot {
        background: $m-blue-t0;

        th[scope="row"] {

        }
      }
    }
  }

  // ====================

  // UI: help
  .help-item {

    .title {
      @extend %hd-lv4;
      margin-bottom: ($baseline/4);
    }

    .copy {
      @extend %copy-detail;
    }

    strong {
      color: $m-gray-d2;
    }
  }

  // ====================

  // UI : message
  .wrapper-msg {
    margin-bottom: ($baseline*1.5);
    border-bottom: ($baseline/4) solid $m-blue;
    padding: $baseline ($baseline*1.5);
    background: tint($m-blue, 95%);

    .msg {
      @include clearfix();
      max-width: grid-width(12);
      min-width: 760px;
      width: flex-grid(12);
      margin: 0 auto;
    }

    .msg-content, .msg-icon {
      display: block;
      float: left;
    }

    .msg-content {
      width: flex-grid(11,12);

      .title {
        @extend %t-title6;
        @extend %t-weight4;
      }

      .copy {
        @extend %t-copy-sub1;
      }
    }

    .msg-icon {
      width: flex-grid(1,12);
      @extend %t-icon2;
      margin-right: flex-gutter();
      text-align: center;
      color: $m-blue;
    }
  }

  // UI: error
  .wrapper-msg-error {
    border-bottom-color: $red;
    background: tint($red, 95%);

    .msg-icon {
      color: $red;
    }

    .msg-content {

      .title {
        color: $red;
      }
    }
  }

  // UI: error
  .wrapper-msg-activate {
    border-bottom-color: $m-pink;
    background: tint($m-pink, 95%);

    .msg-icon {
      color: $m-pink;
    }

    .msg-content {

      .title {
        color: $m-pink;
      }
    }
  }

  // ====================

  // UI: inline messages
  .msg-inline {

    &.msg-error {

      .copy, .copy p {
        color: $red;
      }
    }
  }

  // ====================

  // UI: page header
  .page-header {
    width: flex-grid(12,12);
    margin-bottom: 0;
    border-bottom: none;

    .title {
      @include clearfix();
      width: flex-grid(12,12);
      margin: 0;

      .sts-course, .sts-track {
        display: inline-block;
        vertical-align: middle;
      }

      .sts-track {
        width: flex-grid(3,12);
        text-align: right;

        .sts-track-value {
          @extend %copy-badge;
          display: inline-block;
          background: $verified-color-lvl3;
          color: $white;
          font-weight: 600;

          .context {
            opacity: 0.80;
            color: $white;
            letter-spacing: 0.1rem;
          }
        }

        &.professional-ed {

          .sts-track-value {
            background-color: $professional-color-lvl1;
          }
        }
      }

      .sts-label, .sts-course-org, .sts-course-number, .sts-course-name {
        @extend %t-title5;
        @extend %t-weight4;
        @include font-size(14);
        @include line-height(14);
        display: inline-block;
        color: $gray;
        text-transform: none;
      }

      .sts-label {
        margin: 0;
        border: none;
        padding: 0;
      }

      .sts-course {
        width: initial;
      }

      .sts-course-org {
        margin-right: 0;
      }

      .wrapper-sts {
        display: inline-block;
        width: flex-grid(9,12);
        margin-bottom: ($baseline/4);
      }

      .title .sts-track {
        display: inline-block;

        .sts-track-value {
          background: $verified-color-lvl3;
        }

        &.professional-ed {

          .sts-track-value {
            background-color: $professional-color-lvl1;
          }
        }
      }
    }
  }

  // ====================

  // UI : progress
  .wrapper-progress {
    position: relative;
    margin-bottom: ($baseline*1.5);
  }

  .progress-sts {
    @include size(($baseline/4));
    @extend %ui-depth1;
    position: absolute;
    top: 43px;
    left: 7%;
    display: block;
    width: 83%;
    margin: 0 auto;
    background: $m-gray-l4;

    .progress-sts-value {
      width: 0%;
      height: 100%;
      display: block;
      background: $verified-color-lvl4;
    }
  }

  .progress {
    width: flex-grid(12,12);
    margin: 0 auto;
    border-bottom: ($baseline/4) solid $m-gray-l4;

    .progress-steps {
      @include clearfix();
      position: relative;
      top: ($baseline/4);
      display: table;
      width: 100%;
    }

    .progress-step {
      @extend %ui-depth2;
      position: relative;
      display: table-cell;
      height: ($baseline*6);
      padding: $baseline $baseline ($baseline*1.5) $baseline;
      text-align: center;

      .wrapper-step-number, .step-number, .step-name {
        display: block;
      }

      .wrapper-step-number {
        @include size(($baseline*2) ($baseline*2));
        margin: 0 auto ($baseline/2) auto;
        border-radius: ($baseline*10);
        border: ($baseline/5) solid $m-gray-l4;
        background: $white;

        .step-number {
          @extend %t-title7;
          @extend %t-weight4;
          @include line-height(0);
          margin: 16px auto 0 auto;
          color: $m-gray-l1;
        }
      }

      .step-name {
        @extend %t-title7;
        @extend %t-weight4;
        color: $m-gray-l1;
      }

      // confirmation step w/ icon
      &.progress-step-icon {

        .step-number {
          margin-top: ($baseline/2);
        }
      }

      // STATE: is completed
      &.is-completed {
        border-bottom: ($baseline/5) solid $verified-color-lvl3;

        .wrapper-step-number {
          border-color: $verified-color-lvl3;
        }

        .step-number, .step-name {
          color: $m-gray-l3;
        }
      }

      // STATE: is current
      &.is-current {
        border-bottom: ($baseline/5) solid $m-blue-d1;
        opacity: 1.0;

        .wrapper-step-number {
          border-color: $m-blue-d1;
        }

        .step-number, .step-name {
          color: $m-gray-d3;
        }
      }
    }
  }

  // ====================

  // UI: reverification message
  .wrapper-reverification {
    border-bottom: ($baseline/10) solid $m-pink;
    margin-bottom: $baseline;
    padding-bottom: $baseline;
    position: relative;

    .deco-arrow {
      @include triangle($baseline, $m-pink, down);
      position: absolute;
      bottom: -($baseline);
      left: 50%;
    }
  }

  .reverification {

    .message {

      .title {
        @extend %hd-lv3;
        color: $m-pink;
      }

      .copy {
        @extend %t-copy-sub1;
      }
    }
  }

  // ====================

  // UI: slides
  .carousel {

    // carousel item
    .carousel-item {
      opacity: 0.0;
    }

    // STATE: active
    .carousel-active {
      opacity: 1.0;
    }

    // indiv slides
    .wrapper-view {

    }

    .view {
      width: flex-grid(12,12);

      > .title {
        @extend %hd-lv2;
        color: $m-blue-d1;
      }

      .instruction {
        @extend %t-copy-lead1;
        margin-bottom: $baseline;
      }
    }

    .wrapper-task {
      @include clearfix();
      width: flex-grid(12,12);
      margin: $baseline 0;

      .wrapper-help {
        float: right;
        width: flex-grid(6,12);
        padding: 0 $baseline;

        .help {
          margin-bottom: ($baseline*1.5);

          &:last-child {
            margin-bottom: 0;
          }

          .title {
            @extend %hd-lv3;
          }

          .copy {
            @extend %copy-detail;
          }

          .example {
            color: $m-gray-l2;
          }

          // help - general list
          .list-help {
            margin-top: ($baseline/2);
            color: $black;

            .help-item {
              margin-bottom: ($baseline/4);
              border-bottom: 1px solid $m-gray-l4;
              padding-bottom: ($baseline/4);

              &:last-child {
                margin-bottom: 0;
                border-bottom: none;
                padding-bottom: 0;
              }
            }

            .help-item-emphasis {
              @extend %t-weight4;
            }
          }

          // help - faq
          .list-faq {
            margin-bottom: $baseline;
          }
        }
      }

      .task {
        @extend %ui-window;
        float: left;
        width: flex-grid(6,12);
        margin-right: flex-gutter();
      }

      .controls {
        padding: ($baseline*0.75) $baseline;
        background: $m-gray-l4;

        .list-controls {
          position: relative;
        }

        .control {
          position: absolute;

          .action {
            @extend %btn-primary-blue;
            padding: ($baseline/2) ($baseline*0.75);

            *[class^="icon-"] {
              @extend %t-icon4;
              padding: ($baseline*.25) ($baseline*.5);
              display: block;
            }
          }

          // STATE: hidden
          &.is-hidden {
            visibility: hidden;
          }

          // STATE: shown
          &.is-shown {
            visibility: visible;
          }

          // STATE: approved
          &.approved {

            .action {
              @extend %btn-verify-primary;
              padding: ($baseline/2) ($baseline*0.75);
            }
          }
        }

        // control - redo
        .control-redo {
          position: absolute;
          left: ($baseline/2);
        }

        // control - take/do
        .control-do {
          left: 45%;
        }

        // control - approve
        .control-approve {
          position: absolute;
          right: ($baseline/2);
        }
      }

      .msg {
        @include clearfix();
        margin-top: ($baseline*2);

        .copy {
          float: left;
          width: flex-grid(8,12);
          margin-right: flex-gutter();
        }

        .list-actions {
          position: relative;
          top: -($baseline/2);
          float: left;
          width: flex-grid(4,12);
          text-align: right;

          .action-retakephotos a {
            @extend %btn-primary-blue;
            @include font-size(14);
            padding: ($baseline/2) ($baseline*.75);
          }
        }
      }

      .msg-followup {
        border-top: ($baseline/10) solid $m-gray-t0;
        padding-top: $baseline;
      }
    }

    // indiv slides - photo
    #wrapper-facephoto {

    }

    // indiv slides - ID
    #wrapper-idphoto {

    }

    // indiv slides - review
    #wrapper-review {

      .review-task {
        margin-bottom: ($baseline*1.5);
        padding: ($baseline*0.75) $baseline;
        border-radius: ($baseline/10);
        background: $m-gray-l4;

        &:last-child {
          margin-bottom: 0;
        }

        > .title {
          @extend %hd-lv3;
        }

        .copy {
          @extend %copy-base;

          strong {
            @extend %t-weight5;
            color: $m-gray-d4;
          }
        }
      }

      // individual task - photos
      .review-task-photos {

        .wrapper-photos {
          @include clearfix();
          width: flex-grid(12,12);
          margin: $baseline 0;

          .wrapper-photo {
            float: left;
            width: flex-grid(6,12);
            margin-right: flex-gutter();

            &:last-child {
              margin-right: 0;
            }

            .placeholder-photo {
              @extend %ui-window;
              padding: ($baseline*0.75) $baseline;

              img {
                display: block;
                width: 100%;
                margin: 0 auto;
              }
            }
          }

          .help-tips {
            margin-left: $baseline;

            .title {
              @extend %hd-lv5;
            }

            .copy {
              @extend %copy-detail;
            }

            // help - general list
            .list-tips {
              color: $black;

              .tip {
                margin-bottom: ($baseline/4);
                border-bottom: 1px solid $m-gray-t0;
                padding-bottom: ($baseline/4);

                &:last-child {
                  margin-bottom: 0;
                  border-bottom: none;
                  padding-bottom: 0;
                }
              }
            }
          }
        }
      }

      // individual task - name
      .review-task-name {
        @include clearfix();

        .copy {
          float: left;
          width: flex-grid(8,12);
          margin-right: flex-gutter();
        }

        .list-actions {
          position: relative;
          top: -($baseline);
          float: left;
          width: flex-grid(4,12);
          text-align: right;

          .action-editname a {
            @extend %btn-primary-blue;
            @include font-size(14);
            padding: ($baseline/2) ($baseline*.75);
          }
        }
      }

      // individual task - contribution
      .review-task-contribution {

        .list-fields {
          @include clearfix();
          margin: $baseline 0;

          .field {
            float: left;
            margin-right: ($baseline/2);
            padding: ($baseline/2) ($baseline*0.75);
            background: $m-gray-t0;

            &:last-child {
              margin-right: 0;
            }
          }

          .field-group-other {

            .contribution-option {
              display: inline-block;
              vertical-align: middle;
              margin-right: ($baseline/4);
              padding: 3px 0;

              &:last-child {
                margin-right: 0;
              }
            }

            .contribution-option-other1 label, .contribution-option-other2 label {
              @extend %text-sr;
            }
          }
        }
      }
    }

  }

  // UI: camera states
  .cam {

    .placeholder-cam {
      position: relative;
      width: 95%;
      height: 375px;
      margin: ($baseline/2) auto;
      background: $m-blue-l5;

      // placeholders
      .placeholder-art {
        opacity: 0.7;
        z-index: 100;

        .copy {
          position: absolute;
          top: 40%;
          margin: 0 40px;
          text-align: center;
        }
      }

      // previously defined in HTML
      video, canvas {
        position: relative;
        display: block;
        @include size(100% 100%);
        z-index: 500;
      }
    }

    .controls {
      height: ($baseline*4);
    }
  }

  // ====================

  // UI: deco - divider
  .deco-divider {
    position: relative;
    display: block;
    margin: $baseline 0 ($baseline*2) 0;
    border-top: ($baseline/5) solid $m-gray-l4;

    .copy {
      @extend %t-copy-lead1;
      @extend %t-weight4;
      position: absolute;
      top: -($baseline*1.25);
      left: calc( 50% - 46px );
      padding: ($baseline/2) ($baseline*1.5);
      background: white;
      text-align: center;
      color: $m-gray-l2;
    }
  }


  // ====================

  // UI: nav - wizard
  .nav-wizard {
    @extend %ui-well;
    @include clearfix;
    width: flex-grid(12,12);
    border-radius: ($baseline/10);
    background: $m-gray-l4;
    padding: ($baseline*.75) $baseline;

    .help-inline, .wizard-steps {

    }

    .help-inline {
      @extend %t-copy-sub1;
      float: left;
      width: flex-grid(6,12);
      margin: ($baseline*0.75) flex-gutter() 0 0;
    }

    .wizard-steps {
      float: right;
      width: flex-grid(6,12);
      text-align: right;
    }

    // STATE: is ready
    &.is-ready {
      background: $m-blue-l4;
    }

    &.is-not-ready {
      background: $m-gray-l4;

      .action-primary {
        @extend %btn-primary-disabled;
      }
    }
  }

  // ====================

  // UI: forms - payment
  .contribution-options {

    .contribution-option {
      border-radius: ($baseline/5);

      .label, label, input {
        display: inline-block;
        vertical-align: middle;
      }

      .label, label {
        margin-bottom: 0;
        padding: 6px 0;
      }

      input {
        margin-right: ($baseline/4);
      }

      .deco-denomination, .label-value, .denomination-name {
        display: inline-block;
        vertical-align: middle;
      }

      .deco-denomination {
      }

      .label-value {
        @extend %t-weight4;
      }

      .denomination-name {
        @include font-size(14);
        color: $m-gray-l1;
      }

      // specific fields
      #contribution-other-amt {
        width: ($baseline*4.5);
        padding: ($baseline/4) ($baseline/2);
      }
    }
  }

  // ====================

  // help - faq
  .list-faq {

    .faq-question {
      @extend %hd-lv3;
      border-bottom: 1px solid $m-gray-l4;
      padding-bottom: ($baseline/4);
    }

    .faq-answer {
      margin-bottom: ($baseline*1.25);
    }
  }

  // ====================

  // UI: main content
  .content-main {
    width: flex-grid(12,12);

    > .title {
      @extend %hd-lv2;
      color: $m-blue-d1;
    }

    .instruction {
      @extend %t-copy-lead1;
      margin-bottom: $baseline;
    }
  }

  // ====================

  // UI: supplemental content
  .wrapper-content-supplementary {
    margin: ($baseline*1.5) 0;
    border-top: ($baseline/4) solid $m-gray-l4;
  }

  .content-supplementary {
    @include box-sizing(border-box);
    @include outer-container;
    @include span-columns(12);

    .list-help {
      @include clearfix();

      .help-item {
        @include fill-parent;

        float: left;
        margin-right: flex-gutter();
        margin-bottom: 25px;

        &:last-child {
          margin: 0;
        }
      }
    }

    @include media( 550px ) {
      .list-help {
        .help-item {
          @include span-columns(4);
          margin-bottom: 0;

          &.help-item-technical {
            @include span-columns(8);
          }
        }
      }
    }
  }

  // ====================

  // VIEW: select a track
  &.step-select-track {
    .container {
      min-width: 0;
      max-width: 1200px;
    }

    .sts-track {
      @extend %text-sr;
    }

    .form-register-choose {
      @include clearfix();
      margin: ($baseline*2) 0;

      .deco-divider {
        @include fill-parent;
        float: left;
      }
    }

    .register-choice, .help-register {
      float: left;
    }

    .register-choice {
      @include fill-parent;
      margin: 0 flex-gutter() $baseline 0;
      border-top: ($baseline/4) solid $m-gray-d4;
      padding: $baseline ($baseline*1.5);
      background: $m-gray-l4;

      &:last-child {
        margin-bottom: 0;
      }

      .wrapper-copy, .list-actions {
        display: inline-block;
        vertical-align: middle;
      }

      .list-actions {
        @include fill-parent;
        text-align: right;
        float: right;
        margin: ($baseline/4) 0;
        border-top: none;
        clear: both;
      }

      .title {
        @extend %t-title5;
        @extend %t-weight5;
        margin-bottom: ($baseline/2);
        width: calc( 100% - 30px );
      }

      .copy {
        @extend %t-copy-base;
      }

      .action-select {
        @include fill-parent;

        input {
          @extend %t-weight4;
          padding: ($baseline/2) ($baseline*0.75);
          width: 100%;
          white-space: normal;
        }
      }
    }

    .register-choice-audit {
      border-color: $m-blue-d1;

      .deco-ribbon {
        position: relative;
        top: -($baseline*2.5);
        right: -($baseline*0.35);
        float: right;
        display: block;
        width: ($baseline*2.9);
        height: ($baseline*4.2);
      }

      .list-actions {
        margin: ($baseline) 0;
      }

      .action-select input {
        @extend %btn-primary-blue;
      }
    }

    .register-choice-certificate {
      border-color: $verified-color-lvl3;
      position: relative;

      .deco-ribbon {
        position: absolute;
        top: -10px;
        right: $baseline;
        display: block;
        width: 45px;
        height: 45px;
        background: transparent url('../images/verified-ribbon.png') no-repeat 0 0;
      }

      .action-intro, .action-select {
        display: inline-block;
        vertical-align: middle;
      }

      .action-intro {
        @include fill-parent;
        @extend %copy-detail;
        text-align: left;
      }

      .action-select input {
        @extend %btn-verify-primary;
      }

      .action-intro {

      }

      // extra register options/info
      .title-expand {
        @extend %t-copy-sub1;
        font-weight: 500 !important;
        display: inline-block;
        margin: 0;
      }

      .expandable-area {
        margin: $baseline 0;
      }
    }

    .help-register {
      @include span-columns(4);

      .title {
        @extend %hd-lv4;
        @extend %t-weight4;
        margin-top: $baseline;
        margin-bottom: ($baseline/2);
      }

      .copy {
        @extend %copy-detail;
      }
    }

    // progress indicator
    .progress-sts-value {
      width: 0%;
    }

    // contribution selection
    .field-certificate-contribution {
      margin: $baseline 0;

      .label {
        @extend %hd-lv4;
        @extend %t-weight4;
        margin-bottom: ($baseline/2);
      }
    }

    .contribution-options {
      @include clearfix();
      @include fill-parent;
      margin: 0;

      &:after{
        clear: none;
        display: none;
      }

      .field {
        @include fill-parent;
        float: left;
        margin: 0 ($baseline/2) ($baseline/2) 0;
        padding: ($baseline/2) ($baseline*0.75);
        background: $m-gray-t0;

        input {
          width: auto;
          padding: 0;
        }

        &:last-child {
          margin-right: 0;
        }
      }

      #contribution-other-amt {
        width: ($baseline*4.5);
        padding: ($baseline/4) ($baseline/2);
      }

      .field-group-other {

        .contribution-option {
          display: inline-block;
          vertical-align: middle;
          margin-right: ($baseline/4);
          padding: 1px 0;

          &:last-child {
            margin-right: 0;
          }
        }

        .contribution-option-other1 label, .contribution-option-other2 label {
          @extend %text-sr;
        }
      }
    }

    @include media(min-width 550px max-width 768px) {
      .contribution-options {
        .field {
          @include span-columns(6);

          &:nth-of-type(even) {
            margin-right: 0;
          }
        }
      }

      .register-choice {
        .list-actions {
          float: left;
          width: auto;
        }

        .action-select {
          width: initial;

          input {
            width: initial;
          }
        }
      }
    }

    @include media( $desktop ) {
      .contribution-options {
        .field {
          width: auto;
        }
      }

      .register-choice {
        .list-actions {
          @include span-columns(4);
          width: auto;
        }

        .action-select {
          width: initial;

          input {
            width: initial;
          }
        }
      }
    }

    @include media( $xl-desktop ) {
      .register-choice {
        .list-actions {
          float: right;
          clear: none;
        }
      }
    }
  }

  // VIEW: requirements
  &.step-requirements {

    .help-item-technical {
      display: none;
    }

    // progress nav
    .progress .progress-step {

      // STATE: is current
      &#progress-step0 {
        border-bottom: ($baseline/5) solid $m-blue-d1;
        opacity: 1.0;

        .wrapper-step-number {
          border-color: $m-blue-d1;
        }

        .step-number, .step-name {
          color: $m-gray-d3;
        }
      }
    }

    // progress indicator
    .progress-sts-value {
      width: 0%;
    }

    .list-reqs {
      @include clearfix();
      width: flex-grid(12,12);

      .req {
        @extend %ui-window;
        width: flex-grid(4,12);
        min-height: ($baseline*15);
        float: left;
        margin-right: flex-gutter();
        border-color: $verified-color-lvl4;
        text-align: center;

        &:last-child {
          margin-right: 0;
        }

        .title {
          @extend %t-title5;
          @extend %t-weight4;
          padding: $baseline;
          border-bottom: 1px solid $verified-color-lvl4;
          background: $verified-color-lvl5;

        }

        .placeholder-art {
          position: relative;
          display: inline-block;
          margin: $baseline 0 ($baseline/2) 0;
          padding: $baseline;
          background: $verified-color-lvl3;
          border-radius: ($baseline*10);

          *[class^="icon"] {
            @extend %t-icon1;
            color: $white;
          }

          .icon-over, .icon-under {
            position: relative;
          }

          .icon-under {
            @extend %ui-depth1;
          }

          .icon-over {
            @extend %ui-depth2;
            @extend %t-icon5;
            position: absolute;
            left: 24px;
            top: 34px;
            background: $verified-color-lvl3;
            padding: 3px 5px;
          }
        }

        .copy {
          padding: ($baseline/2) $baseline;
        }

        .copy-super, .copy-sub {
          display: block;
        }

        .copy-super {
          @extend %t-copy-base;
          margin-bottom: ($baseline/2);
          color: $verified-color-lvl1;
        }

        .copy-sub {
          @extend %t-copy-sub2;
        }

        .actions {
          padding: ($baseline/2) $baseline;
        }
      }

      // specific requirements
      .req-activate {
        float: left;
        text-align: center;
        border-color: $m-pink-l3;

        .title {
          @extend %t-title5;
          @extend %t-weight4;
          border-bottom-color: $m-pink-l3;
          background: tint($m-pink, 95%);
          color: $m-pink;
        }

        .placeholder-art {
          background: $m-pink-l1;
        }

        .copy-super {
          @extend %t-copy-lead1;
          color: $m-pink;
        }

        .copy-sub {
          @extend %t-copy-base;
        }
      }

      // CASE: account not activated
      &.account-not-activated {

        .req {
          width: flex-grid(3,12);
          min-height: ($baseline*18);
        }
      }
    }
  }

  // VIEW: take and review photos
  &.step-photos {

  }

  // VIEW: take cam photo
  &.step-photos-cam {

    // progress nav
    .progress .progress-step {

      // STATE: is completed
       &#progress-step0 {
        border-bottom: ($baseline/5) solid $verified-color-lvl3;

        .wrapper-step-number {
          border-color: $verified-color-lvl3;
        }

        .step-number, .step-name {
          color: $m-gray-l3;
        }
      }

      // STATE: is current
      &#progress-step1 {
        border-bottom: ($baseline/5) solid $m-blue-d1;
        opacity: 1.0;

        .wrapper-step-number {
          border-color: $m-blue-d1;
        }

        .step-number, .step-name {
          color: $m-gray-d3;
        }
      }
    }

    // progress indicator
    .progress-sts-value {
      width: 14%;
    }
  }

  // VIEW: take id photo
  &.step-photos-id {

    // progress nav
    .progress .progress-step {

      // STATE: is completed
       &#progress-step0, &#progress-step1 {
        border-bottom: ($baseline/5) solid $verified-color-lvl3;

        .wrapper-step-number {
          border-color: $verified-color-lvl3;
        }

        .step-number, .step-name {
          color: $m-gray-l3;
        }
      }

      // STATE: is current
      &#progress-step2 {
        border-bottom: ($baseline/5) solid $m-blue-d1;
        opacity: 1.0;

        .wrapper-step-number {
          border-color: $m-blue-d1;
        }

        .step-number, .step-name {
          color: $m-gray-d3;
        }
      }
    }

    // progress indicator
    .progress-sts-value {
      width: 36%;
    }
  }

  // VIEW: review photos
  &.step-review {

    .help-item-technical {
      display: none;
    }

    .modal.edit-name .submit input {
      color: #fff;
    }

    .modal {

      fieldset {
        margin-top: $baseline;
      }

      .close-modal {
        @include font-size(24);
        color: $m-blue-d3;

        &:hover, &:focus {
          color: $m-blue-d1;
          border: none;
        }
      }
    }

    .nav-wizard {

      .prompt-verify {
        float: left;
        width: flex-grid(6,12);
        margin: 0 flex-gutter() 0 0;

        .title {
          @extend %hd-lv4;
          margin-bottom: ($baseline/4);
        }

        .copy {
          @extend %t-copy-sub1;
          @extend %t-weight3;
        }

        .list-actions {
          margin-top: ($baseline/2);
        }

        .action-verify label  {
          @extend %t-copy-sub1;
        }
      }

      .wizard-steps {
        margin-top: ($baseline/2);

        .wizard-step {
          margin-right: flex-gutter();
          display: inline-block;
          vertical-align: middle;

          &:last-child {
            margin-right: 0;
          }
        }
      }

      .step-match {

        label {
          @extend %t-copy-sub1;
        }
      }

      .step-proceed {

      }
    }

    // progress nav
    .progress .progress-step {

      // STATE: is completed
       &#progress-step0, &#progress-step1, &#progress-step2 {
        border-bottom: ($baseline/5) solid $verified-color-lvl3;

        .wrapper-step-number {
          border-color: $verified-color-lvl3;
        }

        .step-number, .step-name {
          color: $m-gray-l3;
        }
      }

      // STATE: is current
      &#progress-step3 {
        border-bottom: ($baseline/5) solid $m-blue-d1;
        opacity: 1.0;

        .wrapper-step-number {
          border-color: $m-blue-d1;
        }

        .step-number, .step-name {
          color: $m-gray-d3;
        }
      }
    }

    // progress indicator
    .progress-sts-value {
      width: 55%;
    }
  }

  // VIEW: confirmation/receipt
  &.step-confirmation {

    .help-item-technical {
      display: none;
    }

    // progress nav
    .progress .progress-step {

      // STATE: is completed
       &#progress-step0, &#progress-step1, &#progress-step2, &#progress-step3, &#progress-step4 {
        border-bottom: ($baseline/5) solid $verified-color-lvl3;

        .wrapper-step-number {
          border-color: $verified-color-lvl3;
        }

        .step-number, .step-name {
          color: $m-gray-l3;
        }
      }

      // STATE: is current
      &#progress-step5 {
        border-bottom: ($baseline/5) solid $m-blue-d1;
        opacity: 1.0;

        .wrapper-step-number {
          border-color: $m-blue-d1;
        }

        .step-number, .step-name {
          color: $m-gray-d3;
        }
      }
    }

    // progress indicator
    .progress-sts-value {
      width: 100%;
    }

    // information elements
    .list-info {

      .info-item {
        margin-bottom: ($baseline*1.5);
        border-bottom: ($baseline/4) solid $m-gray-l4;
        padding-bottom: ($baseline*1.5);

        &:last-child {
          margin-bottom: 0;
          border-bottom: none;
          padding-bottom: 0;
        }

        > .title {
          @extend %hd-lv3;
          margin-bottom: $baseline;
        }

        .copy {
          @extend %copy-base;
          margin-bottom: $baseline;
        }
      }
    }

    // information - course
    .course-info {

      .options {

        .action-course {
          @extend %btn-primary-blue;
          @include font-size(14);
          padding: 5px 10px;
        }
      }

      .course-actions {

        .action-dashboard {
          @extend %btn-primary-blue;
        }
      }
    }

    // information - verification
    .verification-info {

    }

    // information - payment
    .payment-info {

    }

    // UI: table/report
    .wrapper-report {

      .report {

      }
    }
  }

  // VIEW: midcourse re-verification
  &.midcourse-reverification-process {

    // step-dash

    &.step-dash {

      .content-main > .title {
        @extend %t-title7;
        display: block;
        font-weight: 600;
        color: $m-gray;
      }

      .wrapper-reverify-open,
      .wrapper-reverify-status {
        display: inline-block;
        vertical-align: top;
        width: 48%;
      }

      .copy .title {
        @extend %t-title6;
        font-weight: 600;
      }

      .wrapper-reverify-status .title {
        @extend %t-title6;
        font-weight: normal;
        color: $m-gray;
      }

      .action-reverify {
        padding: ($baseline/2) ($baseline*0.75);
      }

      .reverification-list {
        margin-right: ($baseline*1.5);
        padding: 0;
        list-style-type: none;

        .item {
          box-shadow: 0 2px 5px 0 $shadow-l1 inset;
          margin: ($baseline*.75) ($baseline*.75) ($baseline*.75) 0;
          border: 1px solid $m-gray-t2;

          &.complete {
            border: 1px solid $success-color;

            .course-info {
              opacity: .5;

              .course-name {
                font-weight: normal;
              }
            }

            .reverify-status {
              @extend %t-weight4;
              border-top: 1px solid $light-gray;
              background-color: $m-gray-l4;
              color: $success-color;
            }
          }

          &.pending {
            border: 1px solid $warning-color;

            .course-info {
              opacity: .5;

              .course-name {
                font-weight: normal;
              }
            }

            .reverify-status {
              @extend %t-weight4;
              border-top: 1px solid $light-gray;
              background-color: $m-gray-l4;
              color: $warning-color;
            }
          }

          &.failed {
            border: 1px solid $alert-color;

            .course-info {
              opacity: .5;

              .course-name {
                font-weight: normal;
              }
            }

            .reverify-status {
              @extend %t-weight4;
              border-top: 1px solid $light-gray;
              background-color: $m-gray-l4;
              color: $alert-color;
            }
          }
        }

        .course-info {
          margin-bottom: ($baseline/2);
          padding: ($baseline/2) ($baseline*.75);
        }

        .course-name {
          @extend %t-title5;
          display: block;
          font-weight: bold;
        }

        .deadline {
          @extend %copy-detail;
          display: block;
          margin-top: ($baseline/4);
        }

        .reverify-status {
          background-color: $light-gray;
          padding: ($baseline/2) ($baseline*.75);
        }
      }

      .support {
        margin-top: $baseline;
        @extend %t-copy-sub1;
      }

      .wrapper-reverification-help {
        margin-top: $baseline;
        border-top: 1px solid $light-gray;
        padding-top: ($baseline*1.5);

        .faq-item {
          display: inline-block;
          vertical-align: top;
          width: flex-grid(4,12);
          padding-right: $baseline;

          &:last-child {
            padding-right: 0;
          }

          .faq-answer {
            @extend %t-copy-sub1;
          }
        }
      }
    }

    // step-photos
    &.step-photos {

      .block-photo .title {
        @extend %t-title4;
        color: $m-blue-d1;
      }

      .wrapper-task {
        @include clearfix();
        width: flex-grid(12,12);
        margin: $baseline 0;

        .wrapper-help {
          float: right;
          width: flex-grid(6,12);
          padding: 0 $baseline;

          .help {
            margin-bottom: ($baseline*1.5);

            &:last-child {
              margin-bottom: 0;
            }

            .title {
              @extend %hd-lv3;
            }

            .copy {
              @extend %copy-detail;
            }

            .example {
              color: $m-gray-l2;
            }

            // help - general list
            .list-help {
              margin-top: ($baseline/2);
              color: $black;

              .help-item {
                margin-bottom: ($baseline/4);
                border-bottom: 1px solid $m-gray-l4;
                padding-bottom: ($baseline/4);

                &:last-child {
                  margin-bottom: 0;
                  border-bottom: none;
                  padding-bottom: 0;
                }
              }

              .help-item-emphasis {
                @extend %t-weight4;
              }
            }

            // help - faq
            .list-faq {
              margin-bottom: $baseline;
            }
          }
        }

        .task {
          @extend %ui-window;
          float: left;
          width: flex-grid(6,12);
          margin-right: flex-gutter();
        }

        .controls {
          padding: ($baseline*0.75) $baseline;
          background: $m-gray-l4;

          .list-controls {
            position: relative;
          }

          .control {
            position: absolute;

            .action {
              @extend %btn-primary-blue;
              padding: ($baseline/2) ($baseline*0.75);

              *[class^="icon-"] {
                @extend %t-icon4;
                padding: ($baseline*.25) ($baseline*.5);
                display: block;
              }
            }

            // STATE: hidden
            &.is-hidden {
              visibility: hidden;
            }

            // STATE: shown
            &.is-shown {
              visibility: visible;
            }

            // STATE: approved
            &.approved {

              .action {
                @extend %btn-verify-primary;
                padding: ($baseline/2) ($baseline*0.75);
              }
            }
          }

          // control - redo
          .control-redo {
            position: absolute;
            left: ($baseline/2);
          }

          // control - take/do
          .control-do {
            left: 45%;
          }

          // control - approve
          .control-approve {
            position: absolute;
            right: ($baseline/2);
          }
        }

        .msg {
          @include clearfix();
          margin-top: ($baseline*2);

          .copy {
            float: left;
            width: flex-grid(8,12);
            margin-right: flex-gutter();
          }

          .list-actions {
            position: relative;
            top: -($baseline/2);
            float: left;
            width: flex-grid(4,12);
            text-align: right;

            .action-retakephotos a {
              @extend %btn-primary-blue;
              @include font-size(14);
              padding: ($baseline/2) ($baseline*.75);
            }
          }
        }

        .msg-followup {
          border-top: ($baseline/10) solid $m-gray-t0;
          padding-top: $baseline;
        }
      }

      .review-task {
        margin-bottom: ($baseline*1.5);
        padding: ($baseline*0.75) $baseline;
        border-radius: ($baseline/10);
        background: $m-gray-l4;

        &:last-child {
          margin-bottom: 0;
        }

        > .title {
          @extend %hd-lv3;
        }

        .copy {
          @extend %copy-base;

          strong {
            @extend %t-weight5;
            color: $m-gray-d4;
          }
        }
      }


      // individual task - name
      .review-task-name {
        @include clearfix();
        border: 1px solid $light-gray;

        .copy {
          float: left;
          width: flex-grid(8,12);
          margin-right: flex-gutter();
        }

        .list-actions {
          position: relative;
          top: -($baseline);
          float: left;
          width: flex-grid(4,12);
          text-align: right;

          .action-editname a {
            @extend %btn-primary-blue;
            @include font-size(14);
            padding: ($baseline/2) ($baseline*.75);
          }
        }
      }

      .nav-wizard {
        padding: ($baseline*.75) $baseline;

        .prompt-verify {
          float: left;
          width: flex-grid(6,12);
          margin: 0 flex-gutter() 0 0;

          .title {
            @extend %hd-lv4;
            margin-bottom: ($baseline/4);
          }

          .copy {
            @extend %t-copy-sub1;
            @extend %t-weight3;
          }

          .list-actions {
            margin-top: ($baseline/2);
          }

          .action-verify label  {
            @extend %t-copy-sub1;
          }
        }

        .wizard-steps {
          margin-top: ($baseline/2);

          .wizard-step {
            margin-right: flex-gutter();
            display: inline-block;
            vertical-align: middle;

            &:last-child {
              margin-right: 0;
            }
          }
        }
      }


      .modal {

        fieldset {
          margin-top: $baseline;
        }

        .close-modal {
          @include font-size(24);
          color: $m-blue-d3;

          &:hover, &:focus {
            color: $m-blue-d1;
            border: none;
          }
        }
      }

    }
  }

  &.step-confirmation {

    .instruction {
      display: inline-block;
      width: flex-grid(8,12);
      vertical-align: top;
    }

    .actions-next {
      display: inline-block;
      width: flex-grid(4,12);
      vertical-align: top;
      margin-top: $baseline;
    }

    .nav-item {
      display: block;
      margin: 0 0 $baseline 0;
      text-align: center;

      &.conditional:after {
        content: "or";
        display: block;
        margin: $baseline 0;
      }
    }

  }
}


//reverify notification special styles
.msg-reverify {
  .reverify-list {
    margin: ($baseline/4) 0;
  }
}

// ====================

// STATE: already verified
.register.is-verified {

  .nav-wizard .price-value {
    @extend %t-weight4;
    @include font-size(16);
    margin-top: 18px;
    color: $m-blue-d1;
  }

  // progress nav
  .progress .progress-step {

    // STATE: is completed
     &#progress-step1 {
      border-bottom: ($baseline/5) solid $verified-color-lvl3;

      .wrapper-step-number {
        border-color: $verified-color-lvl3;
      }

      .step-number, .step-name {
        color: $m-gray-l3;
      }
    }

    // STATE: is current
    &#progress-step2 {
      border-bottom: ($baseline/5) solid $m-blue-d1;
      opacity: 1.0;

      .wrapper-step-number {
        border-color: $m-blue-d1;
      }

      .step-number, .step-name {
        color: $m-gray-d3;
      }
    }
  }

  // progress indicator
  .progress-sts {
    width: 75%;
    left: 13%;
  }

  .progress-sts-value {
    width: 32% !important;
  }
}

// ====================

// STATE: upgrading registration type
.register.is-upgrading {

  .form-register-choose {
    margin-top: ($baseline*2) !important;
  }
}

// STATE: re-verifying
.register.is-not-verified {

  .help-item-emphasis {
    color: $m-pink;
  }

  // progress indicator
  .progress-sts {
    width: 72%;
    left: 15%;
  }

  // VIEW: photo
  &.step-photos {

    // progress nav
    .progress .progress-step {

      // STATE: is current
      &#progress-step1 {
        border-bottom: ($baseline/5) solid $m-blue-d1;
        opacity: 1.0;

        .wrapper-step-number {
          border-color: $m-blue-d1;
        }

        .step-number, .step-name {
          color: $m-gray-d3;
        }
      }
    }

    .progress-sts-value {
      width: 0% !important;
    }
  }

  // VIEW: ID
  &.step-photos-id {

    // progress nav
    .progress .progress-step {

      // STATE: is completed
       &#progress-step1 {
        border-bottom: ($baseline/5) solid $verified-color-lvl3;

        .wrapper-step-number {
          border-color: $verified-color-lvl3;
        }

        .step-number, .step-name {
          color: $m-gray-l3;
        }
      }

      // STATE: is current
      &#progress-step2 {
        border-bottom: ($baseline/5) solid $m-blue-d1;
        opacity: 1.0;

        .wrapper-step-number {
          border-color: $m-blue-d1;
        }

        .step-number, .step-name {
          color: $m-gray-d3;
        }
      }
    }

    .progress-sts-value {
      width: 40% !important;
    }
  }

  // VIEW: REVIEW
  &.step-review {

    // progress nav
    .progress .progress-step {

      // STATE: is completed
       &#progress-step1, &#progress-step2 {
        border-bottom: ($baseline/5) solid $verified-color-lvl3;

        .wrapper-step-number {
          border-color: $verified-color-lvl3;
        }

        .step-number, .step-name {
          color: $m-gray-l3;
        }
      }

      // STATE: is current
      &#progress-step3 {
        border-bottom: ($baseline/5) solid $m-blue-d1;
        opacity: 1.0;

        .wrapper-step-number {
          border-color: $m-blue-d1;
        }

        .step-number, .step-name {
          color: $m-gray-d3;
        }
      }
    }

    .progress-sts-value {
      width: 70% !important;
    }
  }

  &.step-confirmation {

    .content-confirmation {
      margin-bottom: ($baseline*2);
    }

    .view {

      .title {
        @extend %hd-lv2;
        color: $m-blue-d1;
      }

      .instruction {
        @extend %t-copy-lead1;
        margin-bottom: $baseline;
      }
    }
  }
}
