@import './vm-reset.scss';

.vmform-wrapper{
  max-width: 100%;
}

.vmform{
  padding: 15px;
  font-size: 14px;
  max-width: 100%;
  margin: 0 auto;
  position:  relative;
}

.vmform .vmform-title{
  font-size: 18px;
  margin-bottom: 1em;
  line-height: 1.2;
}

.vmform .vmform-loading{
  position:  absolute;
  width: 100%;
  top: 40%;
  margin-left: -15px;
  text-align:  center;
}

.vmform .vmform-loading img{
  display: inline-block;
}

.vmform .vmform-content{

}

.vmform .vmform-message{
  margin-bottom: 10px;
  padding: 5px;
  font-size: 12px;
  color: #FFF;
  background: #c60f13;
  border-style: solid;
}

.vmform .vmform-message h4{
  color: #FFF;
  line-height: 1.5;
}
.vmform .vmform-message p{
  color: #FFF;
  line-height: 1.5;
}

.vmform .vmform-message-at-bottom{
  margin-bottom: 5px;
  margin-top: 10px;
}

.vmform .vmform-step{
  display: none;
}
.vmform .vmform-step-active{
  display: block;
}

.vmform .vmform-row{
  border-bottom-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.vmform .vmform-actions{
  padding-left: 10px;
  padding-right: 10px;
}

.vmform .vmform-subtitle{
  font-size: 16px;
  margin-bottom: 5px;
  line-height: 1.2;
}

.vmform .vmform-field{
  display: block;
  width: 100%;
  // overflow: hidden;
  margin-bottom: 10px;
  float: left;
}

.vmform .vmform-field label.vmform-label{
  display: block;
  font-size: 14px;
  line-height: 2;
  margin-bottom: 0;
  font-weight: normal;
}

.vmform .vmform-field.vmform-field-type-checkbox.vmform-field-label-left label.vmform-label,
.vmform .vmform-field.vmform-field-type-radio.vmform-field-label-left label.vmform-label{
  line-height: 1.5;
}

.vmform .vmform-field-label-left{
  label.vmform-label{
    float: left;
    width: 25%;
    margin-right: 1%;
  }
  .vmform-control{
    float: right;
    width: 74%;
  }
}

.vmform .vmform-field-no-label .vmform-control{
  width: 100%;
}

.vmform .vmform-field .vmform-asterisk{
  color: #c60f13;
}

.vmform .vmform-sublabel{
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
  font-weight: normal;
  color: #000000;
  &.vmform-sublabel-at-bottom{
    margin-top: 4px;
  }
}

.vmform .vmform-field input.vmform-input{
  width: 100%;
  font-size: 14px;
  line-height: 30px;
  height: 30px;
  padding: 4px 8px; //line-height is 26px (buggy input line-height problem)
  border-radius: 5px;
  border-width: 1px;
  border-style: solid;
  border-color: #ddd;
  box-shadow: none;
  // outline: 0;
  box-sizing: border-box;
}

.vmform .vmform-field select.vmform-select,
.vmform .vmform-field select.vmform-date-select
{
  width: 100%;
  font-size: 14px;
  margin: 0;
  padding: 0;
  padding-left: 8px;
  border-radius: 5px;
  border: 1px solid #ddd;
  box-shadow: none;
  line-height: 20px;
  height: 30px;
  max-width: none;
  box-sizing: border-box;
}

.vmform .vmform-field .vmform-apply-3datemaskslash{
  width: 100%;
  font-size: 14px;
  margin: 0;
  padding: 0;
  border-radius: 5px;
  border: 1px solid #ddd;
  box-shadow: none;
  line-height: 20px;
  height: 30px;
  max-width: none;
  box-sizing: border-box;

  input.vmform-date-inner-3-d,
  input.vmform-date-inner-3-m,
  input.vmform-date-inner-3-y{
    border: none;
    background-color: transparent!important;
    text-align: center;
    padding: 0 8px;
    &:focus{
      box-shadow: none!important;
    }
  }
}

.vmform .vmform-field-with-error{
  input.vmform-input,
    input.vmform-date-inner-3-d,
    input.vmform-date-inner-3-m,
    input.vmform-date-inner-3-y,
    select,
    .select2-container .select2-selection--single
  {
    border-color: red;
  }
}

.vmform .vmform-field .select2-container{
  height: 30px;
  max-width: 100%;
  box-sizing: border-box;
}
.vmform .vmform-field .select2-container .select2-selection--single{
  height: 30px;
  border: 1px solid #ddd;
  max-width: 100%;
  box-sizing: border-box;
}

.vmform .vmform-field textarea{
  width: 100%;
  font-size: 14px;
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: 5px;
  box-sizing: border-box;
}

.vmform .vmform-field .vmform-control{
  display: block;
  position:  relative;
}

.vmform .vmform-field .vmform-error{
  background: #c60f13;
  color: #FFF;
  font-size: 12px;
  line-height: 1.5;
  padding: 4px 6px;
  margin: 3px 0;
  border-style: solid;

  .dashicons{
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1.09;
    margin-right: 2px;
  }
}

.vmform .vmform-field-label-left .vmform-error{
  float: right;
  width: 74%;
  box-sizing: border-box;
}

.vmform .vmform-actions{

}

.vmform .vmform-fieldset{
  border: 1px solid #CCC;
  padding: 10px;
  margin-bottom: 5px;
  overflow: hidden;
}

.vmform .vmform-fieldset .vmform-legend{
  width: auto;
  border: none;
}

.vmform .vmform-fieldset .vmform-row{
  border: none!important;
}

.vmform .vmform-radio-item{
  display: inline-block;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  &:focus {
    outline: none;
  }

  input{
    cursor: pointer;
  }

  label{
    cursor: pointer;
  }
}

.vmform .vmform-radio-item-label{
  margin-left: 5px;
  margin-right: 15px;
  line-height: 30px;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 0;
  font-weight: normal;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.vmform .vmform-date-inner{
  overflow: hidden;
  white-space: nowrap;
}
.vmform .vmform-field .vmform-date-inner .vmform-date-inner-d,
.vmform .vmform-field .vmform-date-inner .vmform-date-inner-m,
.vmform .vmform-field .vmform-date-inner .vmform-date-inner-y
{
  width: 32%;
  margin-right: 2%;
  display:  inline-block;
  position:   relative;
  vertical-align:  middle;
}
.vmform .vmform-field .vmform-date-inner input{
  vertical-align: middle;
}
.vmform .vmform-field .vmform-date-inner.vmform-apply-3datemaskslash .vmform-date-inner-d,
.vmform .vmform-field .vmform-date-inner.vmform-apply-3datemaskslash .vmform-date-inner-m,
.vmform .vmform-field .vmform-date-inner.vmform-apply-3datemaskslash .vmform-date-inner-y
{
  margin-right: 0;
  padding: 0;
}
.vmform .vmform-field .vmform-date-inner.vmform-apply-3datemaskslash .vmform-date-slash{
  display: inline-block;
  width: 2%;
  text-align: center;
}

.vmform .vmform-field .vmform-date-inner .select2-container{
  margin-right: 2%;
}

.vmform .vmform-field .vmform-date-inner .vmform-date-inner-y{
  margin-right: 0;
}

.vmform .vmform-button{
  padding: 5px 15px;
  margin: 10px 0;
  color: #FFF;
  background-color: #333;
  background-image: none;
  font-size: 16px;
  line-height: 1;
  border: none;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  margin-right: 10px;
  box-sizing:  border-box;
  overflow:  hidden;

  &:hover{
    background-color: #CCCCCC;
    color: #000000;
  }
}

.vmform .vmform-button:last-child{
  margin-right: 0;
}

.vmform .vmform-tooltip{
  display: inline-block;
  img{
    width: 16px;
    height: 16px;
    margin-left: 2px;
    position:  relative;
    top: 3px;
  }
  .dashicons{
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 30px;
    margin-left: 2px;
    color: #000;
  }
}

.vmform .vmform-progress-bar{
  height: 18px;
  border: 1px solid #CCC;
  margin: 10px 0;
  border-radius: 15px;
  overflow: hidden;
}
.vmform .vmform-progress-bar-inner{
  width: 5%;
  height: 100%;
  background-color: #444;
  background-image: -webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
  text-align: center;
  line-height: 18px;
  transition: all 0.5s ease-in-out;
}

.vmform{
  .vmform-field.vmform-width-1{
    width: 100%;
    margin-right: 0%;
  }
  .vmform-field.vmform-width-1_2{
    float: left;
    width: 49%;
    margin-right: 2%;
  }
  .vmform-field.vmform-width-1_3{
    float: left;
    width: 32%;
    margin-right: 2%;
  }
  .vmform-field.vmform-width-2_3{
    float: left;
    width: 66%;
    margin-right: 2%;
  }
}

.vmform-responsive-type-tablet .vmform{
  .vmform-field.vmform-tablet-width-1{
    width: 100%;
    margin-right: 0%;
  }
  .vmform-field.vmform-tablet-width-1_2{
    float: left;
    width: 49%;
    margin-right: 2%;
  }
  .vmform-field.vmform-tablet-width-1_3{
    float: left;
    width: 32%;
    margin-right: 2%;
  }
  .vmform-field.vmform-tablet-width-2_3{
    float: left;
    width: 66%;
    margin-right: 2%;
  }
}

.vmform-responsive-type-mobile .vmform{
  .vmform-field.vmform-mobile-width-1{
    width: 100%;
    margin-right: 0%;
  }
  .vmform-field.vmform-mobile-width-1_2{
    float: left;
    width: 49%;
    margin-right: 2%;
  }
  .vmform-field.vmform-mobile-width-1_3{
    float: left;
    width: 32%;
    margin-right: 2%;
  }
  .vmform-field.vmform-mobile-width-2_3{
    float: left;
    width: 66%;
    margin-right: 2%;
  }
}

.vmform-responsive-type-tablet .vmform,
.vmform-responsive-type-mobile .vmform,
.vmform{
  .vmform-field.vmform-column-last{
    margin-right: 0;
  }
  .vmform-field.vmform-field-align-left{
    float: left;
  }
  .vmform-field.vmform-field-align-right{
    float: right;
  }
  .vmform-field.vmform-field-align-center{
    float: none;
    display: block;
    margin: 0 auto 10px;
  }
}

.vmform .vmform-disclaimer a{
  text-decoration: none;
  box-shadow: none;
}

.vmform .vmform-indicator{
  position: absolute;
  top: 5px;
  right: 5px;
  span{
    height: 20px;
  }
  .vmform-indicator-ok{
    color: #417505;
  }
  .vmform-indicator-error{
    color: #c60f13;
  }
}

.vmform .vmform-field-type-select .vmform-indicator,
.vmform .vmform-field-type-select2 .vmform-indicator{
  right: 18px;
}

.vmform .vmform-field-type-date .vmform-indicator-is-select,
.vmform .vmform-field-type-date-1 .vmform-indicator-is-select,
.vmform .vmform-field-type-date-3 .vmform-indicator-is-select {
  right: 18px;
}

.vmform .vmform-display-type-system {
  .vmform-radio-item-checkbox,
  .vmform-radio-item-radio {
    margin-left: 1px;
    vertical-align: baseline;
    width: auto !important;
    height: auto !important;

    &:checked:before {
      display: none;
    }
  }

  .vmform-radio-item-checkbox {
    appearance: checkbox;
  }

  .vmform-radio-item-radio {
    appearance: radio;
  }
}

.vmform .vmform-display-type-svg {
  .vmform-radio-item-checkbox,
  .vmform-radio-item-radio {
    border: 0;
    margin: 0 0 0 1px;
    padding: 0;
    box-shadow: 0;
    appearance: none;
    vertical-align: middle;
    background: #fff;
    transition: .05s border-color ease-in-out;

    &:checked:before {
      display: none;
    }
  }

  .vmform-radio-item-radio {
    border-radius: 4px;
  }
}

.vmform .vmform-radio-group{
  padding-right: 24px;
}

.vmform .vmform-display-type-button {
  .vmform-radio-item {
    background: #CCC;
    border-radius: 5px;
    margin: 0 10px 10px 0;

    display: inline-table;
  }

  .vmform-radio-item-label{
    margin: 0;
    padding: 2px 15px;
    box-sizing: border-box;
    line-height: 2;

    display: table-cell;
  }

  &.vmform-display-type-button-set-width{

    .vmform-radio-item {

      display: inline-block;

      position:  relative;
      cursor: pointer;
      min-height: 16px;
    }

    .vmform-radio-item-label{

      display: inline-block;

      position: absolute;
      left: 50%;
      top: 50%;
      width: 100%;
      transform: translate(-50%, -50%);
    }

  }

  .vmform-radio-item-checkbox,
  .vmform-radio-item-radio{
    display: none;
  }

  .vmform-radio-item-active{
    background: #00a300;
    color: #FFF;

    .vmform-radio-item-label{
      color: #FFF;
    }
  }
}

.vmform .vmform-display-type-image {

  .vmform-radio-item-putbg{
    border-width: 0;
  }
  .vmform-radio-item-label{
    border-width: 0;
  }

  .vmform-radio-item {

    margin: 0 10px 10px 0;

    .vmform-radio-item-image{
      height: 60px;
      width: 150px;
      background-position: center;
      background-size: cover;
      cursor: pointer;
      margin: 0 auto;
    }
  }

  .vmform-radio-item:last-child{
    margin-right: 0;
  }

  .vmform-radio-item-label{
    display: none;
  }

  &.vmform-display-type-image-show-sublabel{
    .vmform-radio-item-label{
      display: block;
      text-align: center;
      line-height: 1.2;
      margin: 5px 0;
    }
  }

  &.vmform-display-type-image-sublabel-at-right{
    .vmform-radio-item-image-box{
      float: left;
    }
    .vmform-radio-item-label{
      float: left;
      line-height: 1.2;
      margin: 0 10px;
    }
  }

  .vmform-radio-item-radio,
  .vmform-radio-item-checkbox{
    display: none;
  }
}

.vmform .vmform-have-slider{
  .vmform-slider-sublabel{
    margin-top: 10px;
  }
}

.vmform .vmform-input-number-wrap{
  position: relative;
  &.vmform-input-number-wrap-gbp{
    .vmform-input-number{
      padding-left: 25px;
    }
    .vmform-input-number-prepend{
      position: absolute;
      left: 10px;
      top: 0;
      line-height: 2;
    }
  }
}

.vmform .vmform-address-find, .vmform .vmform-address-select{
}
.vmform .vmform-address-find-button, .vmform .vmform-address-select-button{
  border-style: solid;
  padding: 6px 10px;
  margin: 10px 0 0;
  display: inline-block;
  cursor:  pointer;
  box-shadow: none;
  line-height: 1.2;
  text-decoration: none;
}
.vmform .vmform-address-scroll{
  border-style: solid;
  border-color: #CCC;
  border-width: 1px;
  height: 120px;
  overflow-y: scroll;

  ul{
    padding: 0;
    margin: 0;
    li{
      border-bottom-style: solid;
      border-bottom-width: 1px;
      border-bottom-color: #CCC;
      padding: 6px 10px;
      line-height: 1.2;
      cursor: pointer;
      &:last-child{
        border-bottom: none;
      }
    }
  }
}
.vmform .vmform-address-box{
  border-style: solid;
  padding: 10px;
  line-height: 1.2;
}
.vmform .vmform-address-change{
  padding: 6px 10px;
}
.vmform .vmform-address-change-link{
  cursor:  pointer;
  text-decoration: none;
  line-height: 1.2;
}

/*Special*/

.vmform input[type=number]::-webkit-inner-spin-button,
.vmform input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vmform input[type=number] {
  -moz-appearance:textfield;
}

/*FrontEnd*/
.vmform-hidden{
  display: none!important;
}

.vmform-rule-hidden{
  display: none!important;
}

.vmform .clearfix:after {
  visibility: hidden;
  display: block;
  content: "";
  clear: both;
}

.vmform ::placeholder {
  text-transform: initial;
}
.vmform ::-webkit-input-placeholder {
  text-transform: initial;
}
.vmform :-moz-placeholder {
  text-transform: initial;
}
.vmform ::-moz-placeholder {
  text-transform: initial;
}
.vmform :-ms-input-placeholder {
  text-transform: initial;
}

.vmform .vmform-notice{
  background: red;
  color: #FFF;
  padding: 5px 10px;
}

.vmform-cf:before,
.vmform-cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.vmform-cf:after {
    clear: both;
}

@supports (-webkit-touch-callout: none) {
  .vmform-field input.vmform-input,
  .vmform-field select{
    line-height: normal!important;
  }
  .vmform-ios-select-box{
    position:relative;
  }
  .vmform-ios-select-box:after {
    content:"";
    width:0;
    height:0;
    position:absolute;
    pointer-events: none;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    top: 50%;
    right: .75em;
    border-top: 8px solid #CCC;
    margin-top: -3px;
  }
  .vmform-ios-select-box select.vmform-select,
  .vmform-ios-select-box select.vmform-date-select {
    -webkit-appearance: none;
  }
}

.data8-pa-countrydropdowncontainer{
  display: none!important;
}

/* Hover Addon */
.hvr-sweep-to-right-image,
.hvr-sweep-to-left-image,
.hvr-sweep-to-bottom-image,
.hvr-sweep-to-top-image
{
  display: inline-block;
  vertical-align: middle;
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  position: relative;
  transition-property: color;
  transition-duration: 0.3s;
  overflow: hidden;
}
.hvr-sweep-to-right-image:after,
.hvr-sweep-to-left-image:after,
.hvr-sweep-to-bottom-image:after,
.hvr-sweep-to-top-image:after
{
  content: "";
  position: absolute;
  z-index: 1000;
  background-color: #2098D1;
  transition-property: left, right, bottom, top;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}
.hvr-sweep-to-right-image:hover, .hvr-sweep-to-right-image:focus, .hvr-sweep-to-right-image:active,
.hvr-sweep-to-left-image:hover, .hvr-sweep-to-left-image:focus, .hvr-sweep-to-left-image:active,
.hvr-sweep-to-bottom-image:hover, .hvr-sweep-to-bottom-image:focus, .hvr-sweep-to-bottom-image:active,
.hvr-sweep-to-top-image:hover, .hvr-sweep-to-top-image:focus, .hvr-sweep-to-top-image:active
{
  color: white;
}

/* Sweep To Right */
.hvr-sweep-to-right-image:after {
  top: 0;
  left: -100%;
  right: 100%;
  bottom: 0;
}
.hvr-sweep-to-right-image:hover:after, .hvr-sweep-to-right-image:focus:after, .hvr-sweep-to-right-image:active:after {
  left: 0;
  right: 0;
}

/* Sweep To Left */
.hvr-sweep-to-left-image:after {
  top: 0;
  left: 100%;
  right: -100%;
  bottom: 0;
}
.hvr-sweep-to-left-image:hover:after, .hvr-sweep-to-left-image:focus:after, .hvr-sweep-to-left-image:active:after {
  left: 0;
  right: 0;
}

/* Sweep To Bottom */
.hvr-sweep-to-bottom-image:after {
  top: -100%;
  left: 0;
  right: 0;
  bottom: 100%;
}
.hvr-sweep-to-bottom-image:hover:after, .hvr-sweep-to-bottom-image:focus:after, .hvr-sweep-to-bottom-image:active:after {
  top: 0;
  bottom: 0;
}

/* Sweep To Top */
.hvr-sweep-to-top-image:after {
  top: 100%;
  left: 0;
  right: 0;
  bottom: -100%;
}
.hvr-sweep-to-top-image:hover:after, .hvr-sweep-to-top-image:focus:after, .hvr-sweep-to-top-image:active:after {
  top: 0;
  bottom: 0;
}
