.error-blank,
.form-input .error,
.form-input .error-blank { 
    display: none;
    font-size: .4em;
    top: auto;
    /* padding-top: .16667em; */
    position: absolute;
    letter-spacing: 2px;
    color: red;
    text-align: left !important;
    width: auto;
    line-height: initial;
}

.form-input.has-error > .error-blank {
    display: block;
}
.form-input.inputform.form-selected.has-errors > .error-blank.error-blank-select {
    display: block;
}

.form-input.has-error input, 
.form-input.has-error select[required], 
.form-input.has-error textarea, 
.form-input.has-error input[type="checkbox"] + label::before
{
    border-color: red;
}
.checkbox.has-error > div > .container-checkbox > .checkmark ,
.radiobox.has-error > div > .container-radiobox > .checkmark  {
  border: 0px solid red;
  /* background-color: red; */
}
.radiobox.has-error > div > .container-radiobox > .checkmark  {
  border: 1px solid red;
  /* background-color: red; */
}

select {
    word-wrap: normal;
    width: 100%;
    border: none;
    border-bottom: 1px solid;
}

/* input[type="checkbox"] {
    transform : scale(2);
    background-color: #002B4E !important;
} */
/* The container */
.container-checkbox {
    display: block;
    position: relative;
    padding-left: 2.5vw;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 2.2vw;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Hide the browser's default checkbox */
  .container-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  /* Create a custom checkbox */
  .container-checkbox .checkmark {
    position: absolute;
    top: 1.5vh;
    left: 0;
    height: 1.5vw;
    width: 1.5vw;
    border-radius: 4px;
    background-color: #eee;
  }
  
  /* On mouse-over, add a grey background color */
  .container-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
  }
  
  /* When the checkbox is checked, add a blue background */
  .container-checkbox input:checked ~ .checkmark {
    background-color: #2E6174;
  }
  
  /* Create the checkmark/indicator (hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  /* Show the checkmark when checked */
  .container-checkbox input:checked ~ .checkmark:after {
    display: block;
  }
  
  /* Style the checkmark/indicator */
  .container-checkbox .checkmark:after {
    left: 37%;
    top: 17%;
    width: 8px;
    height: 14px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .container-radiobox {
    display: block;
    position: relative;
    padding-left: 2.5vw;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 2.2vw;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Hide the browser's default checkbox */
  .container-radiobox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  /* Create a custom checkbox */
  .container-checkbox .checkmark {
    position: absolute;
    /* top: 1.5vh; */
    top: 22%;
    left: 0;
    height: 1.5vw;
    width: 1.5vw;
    border-radius: 4px;
    background-color: #eee;
  }

  .container-radiobox .checkmark {
    position: absolute;
    /* top: 1.5vh; */
    top: 26%;
    left: 0;
    height: 1.5vw;
    width: 1.5vw;
    border-radius: 50%;
    background-color: #eee;
  }
  
  /* On mouse-over, add a grey background color */
  .container-radiobox:hover input ~ .checkmark {
    background-color: #ccc;
  }
  
  /* When the checkbox is checked, add a blue background */
  .container-radiobox input:checked ~ .checkmark {
    background-color: #2E6174;
  }
  
  /* Create the checkmark/indicator (hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  /* Show the checkmark when checked */
  .container-radiobox input:checked ~ .checkmark:after {
    display: block;
  }
  
  /* Style the checkmark/indicator */
  .container-radiobox .checkmark:after {
    /* left: 37%;
    top: 17%;
    width: 8px;
    height: 14px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg); */

    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: white;  
  }

  @media screen and (max-device-width:1920px), screen and (max-width:1920px) { 
  .container-checkbox .checkmark:after {
    left: 30%;
    top: 14%;
    }
    .container-radiobox .checkmark:after {
      /* left: 30%;
      top: 14%; */
      }
  }
  @media screen and (max-device-width:1024px), screen and (max-width:1024px) { 
  .container-checkbox .checkmark:after {
    left: 31%;
    top: 15%;
    width: 6px;
    height: 11px;
  }
  .container-radiobox .checkmark:after {
    /* left: 31%;
    top: 15%;
    width: 6px;
    height: 11px; */
  }
}

@media screen and (max-device-width:768px), screen and (max-width:768px) {
  .checkmark {
    position: absolute;
    top: 1vh;
  }
  .container-checkbox .checkmark:after {
    left: 31%;
    top: 9%;
    width: 5px;
    height: 9px;
  }
  .container-radiobox .checkmark:after {
    /* left: 31%;
    top: 9%;
    width: 5px;
    height: 9px; */
  }
  .container-radiobox .checkmark {
    position: absolute;
    /* top: 1vh; */
    top: 27%;
    left: 0;
    height: 1.5vw;
    width: 1.5vw;
    border-radius: 50%;
    background-color: #eee;
  }
}


@media screen and (max-device-width:767px), screen and (max-width:767px) {
.error-blank, .form-input .error, .form-input .error-blank {
    display: none;
    font-size: 4.5vw;
    top: auto;
    padding-top: 0.067em;
    position: absolute;
    letter-spacing: 1px;
    color: red;
    text-align: left !important;
    width: inherit;
    }
.form-select {
        display: block;
        width: 100%;
        padding: 0.2rem 0rem;
        font-family: 'Kittithada_Bold75';
        font-size: 7vw;
    }
    .container-checkbox, .container-radiobox {        
        font-size: 6.2vw;  
    }
    .container-checkbox .checkmark {     
        height: 3.5vw;
        width: 3.5vw;
        top: 11%;
    }   
    .container-checkbox {     
        padding-left: 4.5vw;
        padding-left: 4.5vw;
    }     
    .container-checkbox .checkmark:after {
      left: 37%;
      top: 14%;
      width: 9px;
      height: 17px;
    }
    .container-radiobox .checkmark {     
      height: 3.5vw;
      width: 3.5vw;
  }   
    .container-radiobox {     
      padding-left: 4.5vw;
      padding-left: 4.5vw;
  }     
  .container-radiobox .checkmark:after {
    /* left: 37%;
    top: 14%;
    width: 9px;
    height: 17px; */
  }
  .container-radiobox .checkmark {   
    /* top: 2vh; */
    top: 27%;
  }
 
        
}
@media screen and (max-device-width:425px), screen and (max-width:425px) {
  .checkmark {
    position: absolute;
    top: 1.3vh;
    left: 0;
    height: 3.5vw;
    width: 3.5vw;
  }
  .container-checkbox .checkmark:after {
    left: 37%;
    top: 6%;
    width: 5px;
    height: 11px;
  }
  .container-radiobox .checkmark {
    top: 1.5vh;
}
  .container-radiobox .checkmark:after {
    /* left: 37%;
    top: 6%;
    width: 5px;
    height: 11px; */
  }
}
@media screen and (max-device-width:425px), screen and (max-width:425px) {
  .container-radiobox .checkmark {
    top: 1vh;
  }
}


@media screen and (max-device-width: 1024px) and (orientation: landscape) {

  .error-blank,
  .form-input .error,
  .form-input .error-blank { 
      display: none;
      font-size: .4em;
      top: auto;
      /* padding-top: .16667em; */
      position: absolute;
      letter-spacing: 2px;
      color: red;
      text-align: left !important;
      width: auto;
      line-height: initial;
  }
  
  .form-input.has-error > .error-blank {
      display: block;
  }
  .form-input.inputform.form-selected.has-errors > .error-blank.error-blank-select {
      display: block;
  }
  
  .form-input.has-error input, 
  .form-input.has-error select[required], 
  .form-input.has-error textarea, 
  .form-input.has-error input[type="checkbox"] + label::before
  {
      border-color: red;
  }
  .checkbox.has-error > div > .container-checkbox > .checkmark ,
  .radiobox.has-error > div > .container-radiobox > .checkmark  {
    border: 0px solid red;
    /* background-color: red; */
  }
  .radiobox.has-error > div > .container-radiobox > .checkmark  {
    border: 1px solid red;
    /* background-color: red; */
  }
  
  select {
      word-wrap: normal;
      width: 100%;
      border: none;
      border-bottom: 1px solid;
  }
  
  /* input[type="checkbox"] {
      transform : scale(2);
      background-color: #002B4E !important;
  } */
  /* The container */
  .container-checkbox {
      display: block;
      position: relative;
      padding-left: 2.5vw;
      margin-bottom: 12px;
      cursor: pointer;
      font-size: 2.2vw;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }
    
    /* Hide the browser's default checkbox */
    .container-checkbox input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
      height: 0;
      width: 0;
    }
    
    /* Create a custom checkbox */
    .container-checkbox .checkmark {
      position: absolute;
      top: 1.5vh;
      left: 0;
      height: 1.5vw;
      width: 1.5vw;
      border-radius: 4px;
      background-color: #eee;
    }
    
    /* On mouse-over, add a grey background color */
    .container-checkbox:hover input ~ .checkmark {
      background-color: #ccc;
    }
    
    /* When the checkbox is checked, add a blue background */
    .container-checkbox input:checked ~ .checkmark {
      background-color: #2E6174;
    }
    
    /* Create the checkmark/indicator (hidden when not checked) */
    .checkmark:after {
      content: "";
      position: absolute;
      display: none;
    }
    
    /* Show the checkmark when checked */
    .container-checkbox input:checked ~ .checkmark:after {
      display: block;
    }
    
    /* Style the checkmark/indicator */
    .container-checkbox .checkmark:after {
      left: 37%;
      top: 17%;
      width: 8px;
      height: 14px;
      border: solid white;
      border-width: 0 3px 3px 0;
      -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      transform: rotate(45deg);
    }
  
    .container-radiobox {
      display: block;
      position: relative;
      padding-left: 2.5vw;
      margin-bottom: 12px;
      cursor: pointer;
      font-size: 2.2vw;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }
    
    /* Hide the browser's default checkbox */
    .container-radiobox input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
      height: 0;
      width: 0;
    }
    
    /* Create a custom checkbox */
    .container-checkbox .checkmark {
      position: absolute;
      /* top: 1.5vh; */
      top: 22%;
      left: 0;
      height: 1.5vw;
      width: 1.5vw;
      border-radius: 4px;
      background-color: #eee;
    }
  
    .container-radiobox .checkmark {
      position: absolute;
      /* top: 1.5vh; */
      top: 26%;
      left: 0;
      height: 1.5vw;
      width: 1.5vw;
      border-radius: 50%;
      background-color: #eee;
    }
    
    /* On mouse-over, add a grey background color */
    .container-radiobox:hover input ~ .checkmark {
      background-color: #ccc;
    }
    
    /* When the checkbox is checked, add a blue background */
    .container-radiobox input:checked ~ .checkmark {
      background-color: #2E6174;
    }
    
    /* Create the checkmark/indicator (hidden when not checked) */
    .checkmark:after {
      content: "";
      position: absolute;
      display: none;
    }
    
    /* Show the checkmark when checked */
    .container-radiobox input:checked ~ .checkmark:after {
      display: block;
    }
    
    /* Style the checkmark/indicator */
    .container-radiobox .checkmark:after {
      /* left: 37%;
      top: 17%;
      width: 8px;
      height: 14px;
      border: solid white;
      border-width: 0 3px 3px 0;
      -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      transform: rotate(45deg); */
  
      top: 25%;
      left: 25%;
      width: 50%;
      height: 50%;
      border-radius: 50%;
      background: white;  
    }
}