body {
    font-family: Arial, "Microsoft JhengHei", sans-serif;
    ;
    background: #ddd;
}

form {
    width: 100%;
}

h4 {
    font-size: 1.7em;
}

.txt_small {
    font-size: 15px;
    color: #777;
}

.btn_txt_small{
    font-size: 0.9em;
    display: block;
    margin-top: 10px;
    margin-bottom: 15px;

}
.btn_txt_large{
    font-size: 1.5em;
    display: block;
    margin-top: 15px;
}

.formmargin>form>div,
.formmargin>div {
    margin-bottom: 15px !important;
}

.formmargin .card {
    box-shadow: 0px 0px 10px rgba(150, 150, 150, 0.2);
}

.form-control-file {
    border-radius: .25rem;
    padding: 10px;
    background: #eee;
}

.lang>div>div {
    margin-left: 10px;
}

.lang>div>div>button {
    width: 50px;
}

.grecaptcha {
    margin: 35px 0;
}

label.required::before {
    content: "*";
    color: red;
    margin-right: 5px;
}

.tncwrap {
    border: 1px solid #ccc;
    padding: 10px;
    height: 400px;
    overflow: auto;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

.tncwrap ol {
    padding-left: 20px;
}

.tncwrap ol li {
    margin-bottom: 10px;
}

.footer_remark {
    font-size: 0.8em;
}

.btn-close {
    display: block;
    width: 30px;
    height: 30px;
    border: 1px solid #ed6565;
    display: block;
    position: absolute;
    right: 15px;
    top: 10px;
    background: #ed6565;
    color: #fff;
    border-radius: 5px;
    text-align: center;
    line-height: 30px;
    font-size: 16px;
    cursor: pointer;
}

.btn-close:hover {
    background: crimson;
}

.btn-close::after {
    content: "X";
}

.btn-close.hidden {
    display: none;
}

.hidden {
    display: none;
}

.payer_doc {
    display: none;
}

.grecaptcha {
    display: none;
}

.form-check-input.error {
    outline: 2px solid #ed6565;
}

.form-control-file.error {
    border: 1px solid #ed6565;
    background-color: #ffede8;
}

input[type="text"].form-control.error,
input[type="email"].form-control.error {
    background-color: #ffede8;
    border: 1px solid #ed6565;
}

#btn_regen_otp {
    font-size: 0.8em;
    padding-left: 0px;
    padding-right: 0px;
}

#btn_regen_otp.deactive {
    background: #666 !important;
    border-color: #444 !important;
}

.form-check-input {
    position: absolute;
    padding-left: 0px;
    padding-right: 0px;
    margin-top: .3rem;
    margin-left: -1rem;
    transform: scale(1.5);
    -webkit-transform: scale(1.5);
    -moz-transform: scale(1.5);
    -ms-transform: scale(1.5);
    -o-transform: scale(1.5);
}

.form-check-label {
    margin-left: 10px;
}

.ajax-loading {
    width: 100vw;
    height: 100vh;
    background: rgba(50, 50, 50, 0.6);
    position: fixed;
    z-index: 999;
    top: 0px;
    left: 0px;
    display: none;
}

.ajax-loading.active {
    display: block;
}

.ajax-loading span {
    width: 240px;
    height: 240px;
    margin: 100px auto;
    background: #fff url(../img/loading.gif) no-repeat top center;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    overflow: hidden;
    display: block;
    text-align: center;
    padding-top: 200px;
    font-size: 0.8em;
}

.form-group.row.otp_wrap div:first-child {
    text-align: center;
    font-size: 1.4em;
    line-height: 38px;
    padding-right: 0px;
}

.form-group.row.otp_wrap div:nth-child(2) {
    padding: 0px;
}

.g-recaptcha.error {
    border: 1px solid #ed6565;
    background-color: #ffede8;
    padding: 5px;
}

.fn_hkid_digit {
    display: flex;
}

.fn_hkid_digit .form-control {
    padding: .375rem 0.3rem;
    text-align: center;
}

.fn_hkid_digit::before {
    content: "(";
    line-height: 38px;
    padding-right: 5px;
}

.fn_hkid_digit::after {
    content: ")";
    line-height: 38px;
    padding-left: 5px;
}

select.form-control.error {
    border: 1px solid #ed6565;
    background-color: #ffede8;
}

label.error {
    background-color: #ffd8cc;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border: 1px solid #ed6565;
    padding: 2px 5px;
    margin-top: 3px;
    font-size: 0.8em;
    color: #f00;
}

label.error:empty {
    display: none !important;
}

#fn_referral.form-control[readonly]{
	background-color: #fff;
}

#fn_hkidcopy-error:empty,
#fn_addresscopy-error:empty,
#fn_drivingcopy-error:empty,
#fn_staffcopy-error:empty {
    display: none !important;
}

#btn_submit_form,
#btn_submit_otp {
    min-height: 48px;
}

#spinner {
    display: none;
}

.plate_wrap {
    border: 1px solid #ced4da;
    border-radius: .25rem;
    padding: 15px 0 0 0;
    margin-bottom: 10px;
    box-shadow: inset 0px 0px 5px rgba(150, 150, 150, 0.2);
}

.plate_new {
    display: none;
}

.plate_new.active {
    display: block;
    -webkit-animation: bgblink 3s;
    /* Chrome, Safari, Opera */
    -webkit-animation-iteration-count: 3s;
    /* Chrome, Safari, Opera */
}

@-webkit-keyframes bgblink {
    from {
        border-color: #35b72c;
        box-shadow: 0px 0px 5px #35b72c;
    }
    to {
        border-color: #ced4da;
        box-shadow: 0px 0px 5px #fff;
    }
}

@keyframes bgblink {
    from {
        border-color: #35b72c;
        box-shadow: 0px 0px 5px #35b72c;
    }
    to {
        border-color: #ced4da;
        box-shadow: 0px 0px 5px #fff;
    }
}

.circlespinner {
    animation: rotate 2s linear infinite;
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -19px 0 0 -19px;
    width: 38px;
    height: 38px;
    stroke: #fff
}

.path {
    stroke: hsl(210, 70, 75);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124
    }
}