#survey {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  .content{
    width: 90%;
    max-width: 435px;
    border-radius: 10px;
    background: #fff;
    overflow-y: hidden;
  }

  .section{
    display: none;
    &.section0{
      display: block;
    }
    &__promotion{
      padding: 20px;
      text-align: center;
      font-size: 20px;
    }

    &__banner{
      img{width: 100%;}
    }
    &__content{
      width: 100%;
      height: 350px;
      padding: 20px 30px;
      display: flex;
      flex-flow: column;

      &--count{
        text-align: right;
        span{
          padding: 5px 10px;
          border-radius: 30px;
          font-size: 12px;
          color: #fff;
          background-color: #0166d0;
          display: inline-block;
          line-height: 1em;
        }
      }
      &--question{
        font-size: 20px;
        font-weight: 500;
        margin-top: 10px;
      }
      &--chooses{
        height: 100%;
        display: flex;
        flex-flow: column;
        justify-content: center;

        label{
          font-size: 14px;
          font-weight: 100;
          position: inherit;
          color: #000;
        }
        input[type="tel"]{
          width: 100%;
          border-radius: 3px;
          border: 1px solid #ddd;
          padding: 10px 15px 10px 35px;
          font-weight: 500;
          background-image: url('../../imgs/tel_input.svg');
          background-repeat: no-repeat;
          background-position: left 10px center;
        }
        input[type="email"]{
          width: 100%;
          border-radius: 3px;
          border: 1px solid #ddd;
          padding: 10px 15px 10px 40px;
          font-weight: 500;
          background-image: url('../../imgs/icon_email.svg');
          background-repeat: no-repeat;
          background-position: left 10px center;
        }
        &_error{
          font-size: 12px;
          color: red;
          margin-top: 5px;
          opacity: 0;
        }

        .rating{
          display: flex;
          justify-content: space-around;
          position: relative;
          input[type="radio"]{
            border: 0;
            width: auto;
            height: auto;
            margin: 0;
            color: #d9d9d9;
            appearance: none;
            position: relative;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: #fff;
            cursor: pointer;
            display: inline-block;
            outline: 0;
            border-radius: 50%;
            transition: all .2s ease-in-out;
            &:before{
              content: '\2605';
              font-size: 40px;
              color: inherit;
            }
            &:checked,&:hover{
              background: transparent;
              color: #edcc48;
            }
          }
          label{
            position: absolute;
            bottom: -2em;
            left: 0;
            top: unset;
            &:last-child{
              right: 0;
              left: unset;
            }
          }
        }
      }
    }
    &__thankyou{
      padding: 40px 20px;
      text-align: center;
      &--title{
        font-size: 20px;
        font-weight: 500;
        margin-top: 10px;
      }
      &--icon{
        margin: 0 auto;
        width: 80px;
        img{max-width: 100%;}
      }
      &--detail{
        margin-top: 30px;
      }
      &--codetitle{
        font-weight: 500;
      }
      &--code{
        border: 1px solid #03d447;
        border-radius: 5px;
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        overflow: hidden;
        width: fit-content;
        margin: 10px auto 0;
        input{
          border: 0;
          font-size: 23px;
          letter-spacing: .1em;
          width: 170px;
          min-width: unset;
          text-align: center;
          padding: 0;
        }
        &:before{
          content: '';
          width: 25px;
          display: block;
          mask-size: contain!important;
          -webkit-mask-size: contain!important;
          mask-repeat: no-repeat;
          -webkit-mask-repeat: no-repeat;
          mask-position: center;
          -webkit-mask-position: center;
          background-color: #03d447;
          mask-image: url(../../imgs/icon_ticket.svg);
          -webkit-mask-image: url(../../imgs/icon_ticket.svg);
          margin-left: 10px;
        }
        #copy_code{
          background-color: #03d447;
          display: flex;
          align-items: center;
          padding: 13px;
          cursor: pointer;
          &:before{
            content: '';
            width: 25px;
            height: 25px;
            display: block;
            mask-size: contain!important;
            -webkit-mask-size: contain!important;
            mask-repeat: no-repeat;
            -webkit-mask-repeat: no-repeat;
            mask-position: center;
            -webkit-mask-position: center;
            background-color: #fff;
            mask-image: url(../../imgs/icon_copy.svg);
            -webkit-mask-image: url(../../imgs/icon_copy.svg);
          }
        }
      }
      &--promotion{
        margin-top: 10px;
      }
    }
    &__control{
      display: flex;
      &--close{
        cursor: pointer;
        width: 40%;
        padding: 15px 0;
        text-align: center;
      }
      &--start{
        cursor: pointer;
        width: 60%;
        padding: 15px 0;
        text-align: center;
        background-color: #0166d0;
        color: #fff;
        font-weight: 500;
      }
      &--next{
        cursor: pointer;
        width: 100%;
        padding: 10px 0;
        text-align: center;
        background-color: #0166d0;
        color: #fff;
        font-weight: 500;
        position: relative;
        &.disabled{
          opacity: 0.5;
        }
        &:after{
          content: '';
          width: 20px;
          height: 20px;
          display: block;
          position: absolute;
          top: 10px;
          right: 30px;
          background-image: url('../../imgs/icon_arrow.svg');
          background-repeat: no-repeat;
          background-position: center;
        }
      }
      &--submit{
        cursor: pointer;
        width: 100%;
        padding: 10px 0;
        text-align: center;
        background-color: #0166d0;
        color: #fff;
        font-weight: 500;
        border: 0;
        &.disabled{
          opacity: 0.5;
        }
      }
    }
  }

  #closeSurvey{
    position: absolute;
    bottom: 5vh;
    color: #fff;
    font-size: 12px;
    text-decoration: underline;
    display: none;
  }

  .survey__type--container {
    font-size: 12px;
    text-align: right;
    a {
      color: #428bca !important;
      font-weight: 500;
    }
    a.active {
      text-decoration: underline;
    }
  }

  @media only screen and (max-width: 992px) {
    .section{
      &__content{
        width: 100%;
        height: 290px;
      }
    }
    #closeSurvey{
      bottom: 9vh;
    }
  }
}
