/* 
question:  Lato heavy, color: blue #1557bf 
answer: Lato semibold, colour: black #000000
error question: Lato heavy, color: orange, #ff6f1c
*/

@charset "UTF-8";
html,
body {
  height: 100%;
  font-family: 'Lato';
}

:root {  
  --theme-color: #1454B8;
  --hover-color: #104393;
  --body-bg-color: #ffffff;
  --error-bg-color: #e0e0e0;
} 

*,
*:before,
*:after {
  box-sizing: border-box;
}

html,
body {
  font-size: 14px;
}

body {
  background: var(--body-bg-color);
  color: #1b1b1b;
  padding: 0;
  margin: 0;
  font-family: Lato;
  font-weight: normal;
  font-style: normal;
  line-height: 150%;
  position: relative;
  cursor: auto;
}

p{
  font-family: Lato;
  color: #1b1b1b;
}

label{
  cursor: pointer;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

.hidden{
  display: none !important;
}

#loading{
  display: none;
}
.loading-container{
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loading-spinner {
  width: 80px;
  height: 80px;
  border: 10px solid #ccc;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loading-text{
  text-align: center;
  margin: 1rem 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


.row {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 60rem;
  }
  
  .row:before,
  .row:after {
    display: none !important;
  }
  
  .row:after {
    clear: both;
  }


  .form-check-input.is-valid~.form-check-label, .was-validated .form-check-input:valid~.form-check-label{
    color: unset;
  }
  .form-check-input.is-invalid~.form-check-label, .was-validated .form-check-input:invalid~.form-check-label{
    color: unset;
  }
  .form-check-input.is-invalid, .was-validated .form-check-input:invalid{
    border-color: rgba(0,0,0,.25);
  }

  .form-check-input.is-valid, .was-validated .form-check-input:valid{
    border-color: rgba(0,0,0,.25);
  }

  .form-check-input.is-valid:checked, .was-validated .form-check-input:valid:checked{
    background-color: var(--theme-color);
  }

  .form-control{
    display: inline-block;
  }
  
  .text_wraper{
    white-space: pre-wrap;
  }
  legend{
    color: var(--theme-color);
    white-space: pre-wrap;
  }

  .invalid-alert{
    display: none;
    margin-top: 0.2rem;
    width: 135px;
    height: 27px;
    line-height: 27px;
    border-radius: 20px;
    background-color: var(--error-bg-color);
    color: var(--theme-color);
    text-align: center;
    font-size: 1rem;
  }
  .invalid-alert .material-symbols-outlined{
    margin-right: 5px;
    vertical-align: middle;
  }
  input[name$="_other"]{
    display: none;
    background-color: #ededed;
    border-radius: .5rem;
    border: 0px;
  }
  #Q1_other, #Q2_other, #Q3_other, #Q4_other, #Q5_other, #Q6_other, #Q7_other, #Q8_other, #Q9_other, #Q10_other, #Q11_other, #Q12_other, #Q13_other, #Q14_other, #Q15_other{
    display: none;
    background-color: #ededed;
    border-radius: .5rem;
    border: 0px;
  }
  .select_wrap{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .form-select{
    width: auto;
    display: inline-block;
  }
  .form-select.width100{
    width: 100%;
  }
  .form-select.width50{
    max-width: 48%;
    flex: 1;
  }
  .numberInput{
    width: 4rem !important;
  }
  .numberInput+label{
    vertical-align: middle;
    line-height: 1.3;
  }
  textarea.form-control{
    background-color: #ededed;
    border-radius: .5rem;
    border: 0px;
  }
  button[type=submit].btn{
    display: block;
    width: auto;
    min-width: 12rem;
    height: 3rem;
    margin: 0 auto;
    padding: 0 2rem;
    background-color: var(--theme-color);
    color: #fff;
    font-size: 1.15rem;
  }
  button[type=submit].btn:hover{
    color: #fff;
    background-color: var(--hover-color);
  }
  .invalid-warning{
    display: none;
    color: var(--theme-color);
    text-align: center;
    font-size: 1rem;
  }
  .invalid-warning .material-symbols-outlined{
    margin-right: 5px;
    vertical-align: middle;
  }
  .invalid-warning img{
    display: block;
    max-width: 300px;
    margin: 0 auto;
  }

  .survey_title{
      color: var(--theme-color);
  }
  .survey_title.EN{
      font-size:2.1rem;
      line-height: 1.4;
      font-family:Lato Black,Arial,Helvetica,sans-serif;
  }
  .survey_title.ZH{
      font-size:1.9rem;
      line-height: 2; 
      font-family:Lato,Arial,Helvetica,sans-serif;
  }



  table.grid-table{
    width: 100%;
  }
  table.grid-table td,
  table.grid-table th{
    max-width: 30%;
    padding: 5px 0;
    text-align: center;
    font-weight: normal;
    font-size: 14px;
  }
  table.grid-table td:first-child{
    width: 40%;
    text-align: left;
  }
  table.grid-table tr:nth-child(2n+1){
    background: #f9f9f9;
  }
  table.grid-table tr:first-child{
    background: none;
    border-bottom: 2px solid #f9f9f9;
  }
  table.grid-table tr:last-child{
    border-bottom: 2px solid #f9f9f9;
  }


  .flex-box{
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
  }
  .option-image{
    display: block;
    max-width: 300px;
    width: 300px;
    margin: 10px 30px 10px 0;
  }
  .option-image .wraper{
    display: flex;
    border-width: 2px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    background-color: white;
    border-radius: 4px;
  }
  .option-image.selected .wraper{
    border-style: solid;
    border-color: var(--theme-color);
  }
  .option-image img{
    width: 100%;
    box-sizing: border-box;
    margin: auto;
    vertical-align: middle;
  }

  .datepicker_question{
    max-width: 28rem;
  }
  .material-symbols-outlined{
    font-size: 1.25rem;
  }

  .small_question{
    width: 48%;
    display: inline-block;
  }

  @media screen and (max-width: 580px) {
      .survey_title.EN{
          font-size:1.2rem;
      }
      .survey_title.ZH{
          font-size:1rem;
      }
      table.grid-table td,
      table.grid-table th{
        font-size: 12px;
      }
      .small_question{
        width: 100%;
        float: none;
        margin: 0;
      }
      .small_question{
        margin-left: 0 !important;
      }
      .form-select.width50{
        flex: 0 0 100%;
        width: 100%;
        max-width: unset;
      }
      .form-select.width50:first-child{
        margin-bottom: 1rem;
      }
  }

@media screen and (max-width: 768px) {
    .container-fluid{
        padding:0 15px !important;
    }
}