/*General*/
@font-face {
    font-family: 'Averta';
    src: url(../fonts/Averta-Regular.otf);
    font-weight: normal;
}
@font-face {
    font-family: 'Averta';
    src: url(../fonts/Averta-Semibold.otf);
    font-weight: 600;
}
@font-face {
    font-family: 'Averta';
    src: url(../fonts/Averta-Bold.otf);
    font-weight: 700;
}
.custom-popup.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.custom-popup .modal-wrapper{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1.125rem;
    width: 842px;
    border-radius: 10px;
    background-color: #0b0b0c;
    background-image: url('../images/bg-popup.png');
    background-position: 100% 0;
    background-repeat: no-repeat;
    color: #111111;
}
.custom-popup .modal-content{
    
    text-align: center;
    padding: 35px;
}
.custom-popup .modal-content input{
    width: 100%; 
    border-radius: var(--8, 8px);
    background: #232122;
    box-sizing: border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing: border-box;
}
.custom-popup .modal-content input[type=text]:focus{
    border: 1px solid #EEDBBF !important;
}
.custom-popup .modal-content h2 {
    margin-bottom: 15px;
    margin-top: 0;;
    font-size: 24px;
    color: #383838;
    text-align: left;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2.25rem;
}
.custom-popup label{
    color: #383838;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    opacity: 1;
    pointer-events: none;
    transition: .24s;
    font-family: inherit;
    margin-bottom: 4px;
    display: inline-block;
}
.custom-popup form{
    margin-bottom: 0;
}
.custom-popup input{
    background: #232122;
    font-style: normal;
    font-weight: 600;
    height: 54px !important;
    line-height: 23px;
    outline: 0;
    padding: 10px 12px !important;
    width: 100% !important;
    margin-bottom: 0;
    box-shadow: none !important;
    color: #a9a8a9;
    border: none !important;
}
.custom-popup .form-group {
    text-align: left;
    margin-bottom: 20px;
}
.custom-popup .form-group.btnsubmit{
  margin-top: 30px;
}
.modal a.button {
    color: #b21c4b;
    text-decoration: none;
}
.modal a.modal-close-button {
    position: absolute;
    top: 1px;
    right: 1px;
    font-size: 28px;
    width: 32px;
    height: 32px;
    color: #bfbebf;
    background-color: #373337;
    border-radius: 0 0 0 8px;
    text-decoration: none;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 10px 0px 10px;
}
.modal a.modal-close-button img{
  width: 28px;
  height: 28px;
}
.existing-user {
    margin-bottom: 15px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.125rem;
    text-align: left;
}
.existing-user a{
    color: #FBBD18;
    text-decoration: none;
}
.existing-user a:hover{
    color: #FBBD18;
}
a {
    color: #000;
}
.register-confirm-btn,
.login-confirm-btn, .support-confirm-btn, .custom-popup button[type="submit"], #btn_mainsite{
    border-radius: var(--8, 8px);
    background: #fbb752;
    border: 1px solid #f9d39a;
    display: flex;
    height: 40px;
    padding: 10px 18px;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: #272527;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    font-size: 14px;
}

.support-confirm-btn{
    height: 46px !important;
    border: none !important; 
}

.custom-popup .xac-nhan{
    color: #706f6f;
    font-family: inherit;
    font-size: .875rem;
    line-height: 1.125rem;
    margin-bottom: 20px;
    text-align: left;
}

.custom-popup button[type="submit"] .spinner{
    width: 20px;
    height: 20px;
    display: none;
    position: absolute;
    top: 50%;
    transform: translate(10px, -50%);
}

.info-content {
    margin-bottom: 20px;
}

.info-content p {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.125rem;
}

.info-content .btn {
    margin: 0;
    background-color: #FBBD18;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#thank-you-modal > .modal-content {
    padding: 60px;
}

@media (max-width: 767px){
    .custom-popup .modal-wrapper{
        width: 100%;
        height: 100%;
    }
}

/* UPDATE */

#register-modal .modal-content {
    background: linear-gradient(90deg, rgba(11, 11, 12, 0), #73644d), linear-gradient(0deg, #0b0b0c, #0b0b0c), radial-gradient(188.18% 228.19% at 134.98% -36.39%, #78674d 0, rgba(0, 0, 0, 0) 100%);
    border-radius: 10px;
    position: relative;
    padding: 1px;
  }
  
  #register-modal .modal-content::after {
    content: "";
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    left: 1px;
    background-color: #0b0b0c;
    background-image: url('../images/bg-popup.png');
    display: block;
    border-radius: 10px;
  }
  
  #register-modal .formcontent{
    background-size: 100% auto;
    position: relative;
    z-index: 1;
  }
  
  .formlogo {
    width: 60%;
    display: block;
    margin: 0px auto;
    transform: translateY(-20px);
  }
  
  .formbox {
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
  }
  
  .thumb-form {
    width: 350px;
  }
  
  .tab-content {
    flex: 1;
    padding: 1.5rem 0 0 1.5rem;
    margin: 0;
    position: relative;
    z-index: 3;
    text-align: left;
  }
  
  #form .tab-content {
    width: 100%;
    padding: 1.5rem 0 0 1.5rem;
    margin: 0;
    position: relative;
    z-index: 3;
  }
  
  #register-modal .nav-tabs {
    width: auto;
    border: none !important;
    margin: 0 0 2rem;
    padding: 6px;
    list-style: none;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    background: #272527;
    border-radius: 16px;
  }
  
  #register-modal .nav-tabs > li > a {
    position: relative;
    text-decoration: none;
    width: 100%;
    height: 100%;
    color: #f6d78e;
    display: block;
    font-size: 20px;
    font-weight: 700;
  }

  #register-modal .nav-tabs > li.active > a > img:first-child {
    display: none;
  }
  
  #register-modal .nav-tabs > li.active > a > img:last-child {
    display: block;
    position: relative;
    z-index: 1;
    height: 43px;
  }
  
  #register-modal .nav-tabs > li > a > img:first-child {
    display: block;
    height: 42px;
    margin-top: 0.5px;
  }
  
  #register-modal .nav-tabs > li > a > img:last-child {
    display: none;
    position: relative;
    height: 43px;
    z-index: 0;
  }
  
  form {
    width: 90%;
    margin: 0;
    position: relative;
  }
  
  .form-group {
    position: relative;
    margin-bottom: 1rem;
  }
  
  #form .nav-tabs {
    width: 65%;
    border: none !important;
    margin: 0 auto 2rem;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
  }
  
  #register-modal .nav-tabs > li > a {
    position: relative;
    text-decoration: none;
    width: 100%;
    height: 100%;
    color: #a9a8a9;
    display: block;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
  }
  
  #form .form-group-icon {
    position: absolute;
    left: 15px;
    top: 0;
    cursor: pointer;
    height: 46px;
    width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
  }
  
  #form .nav-tabs li {
    flex: 1;
  }
  
  #form .nav-tabs li:first-child {
    margin-right: -4.5%;
  }
  
  #form .nav-tabs li:last-child {
    margin-left: -4.5%;
  }
  
  #form .nav-tabs > li.active > a > img:first-child {
    display: none;
  }
  
  #form .nav-tabs > li.active > a > img:last-child {
    display: block;
    position: relative;
    z-index: 1;
    height: 43px;
  }
  
  #form .nav-tabs > li > a > img:first-child {
    display: block;
    height: 42px;
    margin-top: 0.5px;
  }
  
  #form .nav-tabs > li > a > img:last-child {
    display: none;
    position: relative;
    height: 43px;
    z-index: 0;
  }
  
  selector .field_form {
    background: linear-gradient(
      to right,
      rgba(118, 99, 75, 1) 0%,
      rgba(118, 99, 75, 1) 31%,
      rgba(118, 99, 75, 0) 100%
    );
    border-radius: 10px;
    padding: 1px;
  }
  
  selector .form-control {
    height: 57px;
    background: #252324 !important;
    border: none !important;
    outline: none !important;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    color: #fff !important;
    border-radius: 10px;
  }
  
  input::-webkit-input-placeholder {
    color: #a9a8a9 !important;
    font-weight: 600;
  }
  
  input:-moz-placeholder {
    color: #a9a8a9 !important;
    font-weight: 600;
  }
  
  input::-moz-placeholder {
    color: #a9a8a9 !important;
    font-weight: 600;
  }
  
  input:-ms-input-placeholder {
    color: #a9a8a9 !important;
    font-weight: 600;
  }
  .btnsubmit{
      text-align: right;
  }
  .btnsubmit button, .btnsubmit-join button {
      background: 0 0;
      border: none;
      outline: 0;
      margin: 0 auto;
      transition: ease .3s;
      text-align: right;
  }
  .btnsubmit img{
      width: 147px;
  }
  .tab-content>.tab-pane{
          display: none;
  }
  .tab-content>.active {
      display: block;
  }
  .tab-content>.active {
      display: block;
  }
  selector .register-confirm-btn:focus{
      background: none;
      outline: none;
  }
  

  #register-modal .tab-content li a{
    border-radius: 8px;
    width: 140px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #register-modal .tab-content li.active a{
    background: linear-gradient(280.08deg, #60513b -14.11%, #bda47f 121.13%);
    color: #fff;
  }

  /* cskh-modal */
#cskh-modal .modal-wrapper, #thankyou-modal .modal-wrapper {
  width: 490px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2),
              0 8px 32px rgba(0, 0, 0, 0.4);
  border-radius: 2px;            
} 
  #cskh-modal .modal-content , #thankyou-modal .modal-content {
    background-color: #0b0b0c;
    color: #fff;
  }
  #cskh-modal .modal-content{
    color: #fff;
  }
  #cskh-modal .modal-content h2{
    color: #fff;
  }

  @media (max-width: 991px){
    .tab-content{
        width: 100%;    
        padding: 0 16px;
    }
    .thumb-form{
        display: none;
    }
     #thankyou-modal .modal-content{
        padding: 30px 15px;
    }
  }

/* agree checkbox */
.agree-wrap{
    display: flex;
    align-items: center;
}

.agree-wrap span#agreeCheckbox{
    width:26px;
    display: inline-block;
    margin-right: 8px;
    cursor: pointer;
    background: #28292d;
    border: 1px solid #4e5055;
    border-radius: 6px;
    height: 26px;
}
.agree-wrap span#agreeCheckbox.checked{
    background: #ffcf87;
    border: 1px solid #ffcf87;
    position: relative;
}
.agree-wrap span#agreeCheckbox.checked::after{
    content: "";
    position: absolute;
    background: url('../images/checked.svg') no-repeat;
    height: 14px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
}
.agree-wrap span#agreeCheckbox span{
    color: #ffcf87;
}
.agree-wrap span.agree-text{
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}
.agree-wrap span.agree-text span{
    color: #ffcf87;
}
button[disabled] {
    background: #525152 !important;
    border-color: #525152 !important;
    pointer-events: none;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65) !important;
}

@media (min-width: 992px){
  .top-form{
    display: none;
  }
}
@media (max-width: 991px){
  .formbox{
    flex-direction: column;
  }
  #register-modal .nav-tabs{
    width: 100%;
  }
  #register-modal .nav-tabs li{
    width: 50%;
  }
  #register-modal .tab-content li a{
    width: 100%;
  }
  form{
    width: 100%;
  }
  #register-modal .modal-content{
    background: none;
  }
  .modal a.modal-close-button{
    top: 0;
    right: 0;
    border-radius: 0 0 0 10px;
  }
  #cskh-modal .modal-wrapper, #thankyou-modal .modal-wrapper{
    width: 90vw;
    height: auto;
  }
}
.top-form {
    width: 100%;
    margin-bottom: 20px;
}