/* General styles */
/* Hide browser select menu dropdown styles */
select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
select::-ms-expand {
	display: none;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* Bootstrap styles override */
.col-form-label {
	padding-right: 0.5rem;
}
input[type="text"]:disabled,
select:disabled.gov {
	color: #A0AEC0;
	background-color: #E2E8F0;
	border-color: #E2E8F0;
}
.form-check:not(.form-check-inline) {
	margin-bottom: 0.4rem;
	padding-left: 1.45rem;
}
input[type='radio'].form-check-input {
	margin-left: -1.45rem;
}
input[type='checkbox'].form-check-input {
	margin-right: 0.5rem;
}


/* Validation styles */
input[type="radio"]:valid ~ label,
input[type="radio"]:invalid ~ label {
	color: inherit !important;
}
.was-validated .form-control:not(:required):valid:not(.gov) {
	color: #495057;
	border-color: #ced4da;
	padding-right: 0.5rem;
	background-image: none;
}
.was-validated .form-check-input:invalid~.form-check-label,
.was-validated .form-check-input:valid~.form-check-label {
	color: #495057;
}
.was-validated .credit-limit-input:invalid {
	border: 1px solid #dc3545;
}
.was-validated .credit-limit-input:invalid + .invalid-feedback {
	display: block;
}
.was-validated .credit-limit-input:valid {
	border: 1px solid #28a745;
}
.was-validated .credit-limit-input:valid + .invalid-feedback {
	display: none;
}
.was-validated #signature_img_id:invalid ~ .img-wrapper .img-placeholder,
.was-validated #sg_ic_front_img_id:invalid ~ .img-wrapper .img-placeholder,
.was-validated #sg_ic_back_img_id:invalid ~ .img-wrapper .img-placeholder,
.was-validated #my_passport_img_id:invalid ~ .img-wrapper .img-placeholder,
.was-validated #foreigner_pass_img_id:invalid ~ .img-wrapper .img-placeholder,
.was-validated #chinese_ic_name_img_id:invalid ~ .img-wrapper .img-placeholder,
.was-validated #resadd_proof_img_id:invalid ~ .img-wrapper .img-placeholder,
.was-validated #office_address_img_id:invalid ~ .img-wrapper .img-placeholder,
.was-validated #other_address_img_id:invalid ~ .img-wrapper .img-placeholder,
.was-validated #income_doc_img_id:invalid ~ .img-wrapper .img-placeholder,
.was-validated #student_pass_img_id:invalid ~ .img-wrapper .img-placeholder,
.was-validated #matriculation_front_img_id:invalid ~ .img-wrapper .img-placeholder,
.was-validated #matriculation_back_img_id:invalid ~ .img-wrapper .img-placeholder {
	border-color: #dc3545;
}
/* .was-validated #foreigner_pass_type:invalid ~ .invalid-feedback {
	display: block;
} */
.was-validated .invalid-feedback.custom-checkbox-inline {
	margin-top: 0;
	margin-left: 0.15rem;
}


/* Sections styles */
.section-card,
.section-personal,
.section-address,
.section-employ,
.section-marketing,
.section-joint-account,
.section-declare,
.section-document {
	background-color: #F6F6F9;
	padding: 2rem;
	border-radius: 8px;
	border: 1px solid #ced4da;
}


/* Form page styles */
.loader {
	opacity: 0;
	display: none;
  width: 100%;
	height: 100%;
  position: absolute;
	top: 0;
  left: 0;
	background: white;
}
.loader.show {
	opacity: 1;
	display: block;
}
.loader.hidden {
	opacity: 0;
	display: none;
}
.loader p {
  position: absolute;
  left: 50%;
	top: 50%;
	transform: translateX(-50%);
	margin-top: 1.2rem;
	font-size: 1.4rem;
}
.dots {
  height: 12px;
  left: 50%;
	margin-bottom: -18px;
	transform: translateX(-50%);
  position: absolute;
  top: 50%;
  width: 48px;
}
.dots .dot {
  background: #aa000f;
  display: block;
  height: 12px;
  float: left;
  margin: 0 2px;
  opacity: 0;
  width: 12px;
  -webkit-animation: dot 1s cubic-bezier(0.77, 0, 0.175, 1) 0s infinite;
  -moz-animation: dot 1s cubic-bezier(0.77, 0, 0.175, 1) 0s infinite;
  animation: dot 1s cubic-bezier(0.77, 0, 0.175, 1) 0s infinite;
}
.dots .dot:nth-child(1) {
  -webkit-animation-delay: 0.15s;
  -moz-animation-delay: 0.15s;
  animation-delay: 0.15s;
}
.dots .dot:nth-child(2) {
  -webkit-animation-delay: 0.3s;
  -moz-animation-delay: 0.3s;
  animation-delay: 0.3s;
}
.dots .dot:nth-child(3) {
  -webkit-animation-delay: 0.45s;
  -moz-animation-delay: 0.45s;
  animation-delay: 0.45s;
}
@-webkit-keyframes dot {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}
@-moz-keyframes dot {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes dot {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

#form-container {
	transition: opacity 1s ease-in;
}
#form-container, #form-container.hidden {
	opacity: 0;
	pointer-events: none;
}
#form-container.show {
	opacity: 1;
	pointer-events: auto;
}

.title-icon {
	margin-right: 0.4rem;
}

.gov {
	padding-right: 4.375rem;
}
#mobile_code.gov,
#home_code.gov {
	background-position-x: calc(100% - 0.3rem);
	padding-right: 0;
}

.img-pep {
	vertical-align: text-top;
	margin-left: .5rem;
}
.popover-pep {
	width: calc(100% - 1.875rem);
	min-width: 18.25rem;
	max-width: 37.5rem;
	padding-bottom: 0;
	margin-bottom: 0;
	border-color: #0043a2;
}
.popover-pep .popover-header {
	background: #0043a2;
	color: white;
}
.popover-pep .popover-header::before {
	border: none;
}
.popover-pep[x-placement='top'] .arrow::before {
	border-top-color: #0043a2;
}
.popover-pep[x-placement='bottom'] .arrow::before,
.popover-pep[x-placement='bottom'] .arrow::after {
	border-bottom-color: #0043a2;
}
.popover-pep .popover-body {
	padding-bottom: 0;
}
.popover-pep ol {
	padding-left: 1rem;
}
.popover-pep li {
	padding-left: 0.5rem;
}
.popover-pep li:not(:last-child) {
	margin-bottom: 0.5rem;
}

.cc-existing-customer {
	display: none;
}
.existing_cc_num_div1 {
	margin-top: 0.8rem;
	margin-bottom: 1.2rem;
}
.existing_cc_num_div2 {
	margin-top: 0.8rem;
	margin-bottom: 0.4rem;
}
#existing_customer_b {
	margin-left: -1.45rem;
}
.cc-gallery {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
}
.rb-item {
	flex: 0 1 48%;
	margin-left: 2%;
	margin-bottom: 2%;
}
.rb-item img {
	height: 75px;
}
.has-zodiac .rb-item {
	margin-left: 4%;
	margin-bottom: 4%;
}
.has-zodiac .rb-item.cc-zodiac {
	flex: 0 1 25%;
}
.rb-item:nth-child(2n + 1) {
	margin-left: 0;
}
.credit-limit-input {
	width: 90px;
	text-align: right;
}

.header-bg {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 4rem 0 2rem;
	border-radius: 8px;
	background-color: #E5EEFA;
	padding: 2rem;
}
.header-bg p {
	color: #637a9c;
	line-height: 1.3;
	margin-bottom: 0.5rem;
	text-align: left;
}
.header-bg p:last-of-type {
	margin-bottom: 0;
}
.header-logo-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: 1rem 0;
	background: white;
	box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.header-logo {
	width: 50%;
	max-width: 300px;
}
.header-title,
.header-subtitle {
	color: white;
	text-align: left;
	margin-left: 2rem;
}

.asterisk {
	color: #aa000f;
	margin-left: 0.2rem;
}

.dob-wrapper,
.passport-exp-date-wrapper,
.emp-pass-exp-date-wrapper,
.student-pass-exp-date-wrapper {
	display: inline-block;
	position: relative;
}
.dob-wrapper:before,
.passport-exp-date-wrapper:before,
.emp-pass-exp-date-wrapper:before,
.student-pass-exp-date-wrapper:before {
	content: "\f073";
	font-family: 'Font Awesome 5 Free';
	color: #0043a2;
	position: absolute;
	top: 8px;
	left: 19px;
}
#dob,
#passport_exp_date,
#emp_pass_exp_date,
#student_pass_exp_date {
	padding-left: 2.4rem;
}

.student-yep,
.student-nope {
	display: none;
}

#years_of_course,
#edu_current_year {
	flex-basis: 3.125rem;
	text-align: center;
}

#contract_exp_year::-webkit-inner-spin-button,
#contract_exp_year::-webkit-outer-spin-button,
#contract_exp_month::-webkit-inner-spin-button,
#contract_exp_month::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
#contract_exp_year,
#contract_exp_month {
	-moz-appearance: textfield;
}
#contract_exp_month + div .prev,
#contract_exp_month + div .picker-switch,
#contract_exp_month + div .next {
	display: none;
}
#contract_exp_year + .bootstrap-datetimepicker-widget {
	top: 42px !important;
	left: calc(100% - (19em / 2)) !important;
}
#contract_exp_month + .bootstrap-datetimepicker-widget {
	top: 42px !important;
	left: calc(100% - (28em / 2)) !important;
}
#contract_exp_year + .bootstrap-datetimepicker-widget:before,
#contract_exp_year + .bootstrap-datetimepicker-widget:after,
#contract_exp_month + .bootstrap-datetimepicker-widget:before,
#contract_exp_month + .bootstrap-datetimepicker-widget:after {
	right: 9999px !important;
}

#noaTab .nav-link {
	display: inline-block;
	color: #495057;
}
#noaTab .nav-link::after {
	content: '';
	display: inline-block;
	width: 26px;
	height: 20px;
	margin-bottom: -0.2rem;
	padding-left: 2.1rem;
}
#noaTab .nav-link.active {
	color: #007bff;
}
#noaTab span {
	display: none;
}
#noaTabContent {
	border: 1px solid #dee2e6;
	border-top: none;
}
#noaTabContent .row {
	padding-left: 0 !important;
}
#noaTabContent .row > div:nth-of-type(2) {
	text-align: right;
}
.tab-pane,
.tab-pane > div:nth-child(odd) {
	background: #fff;
}
.tab-pane > div:nth-child(even) {
	background: #ededf6;
}

#cpfcontributions {
	display: none;
}
.cpf-list {
	width: auto;
	max-height: 295px;
	overflow: auto;
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
}
.cpf-item > div:nth-child(odd) {
	background: #fff;
}
.cpf-item > div:nth-child(even) {
	background: #ededf6;
}
.cpf-item > div:first-child {
	font-size: 1.1rem;
}
.cpf-item .col-12::after {
	content: '';
	display: inline-block;
	width: 26px;
	height: 20px;
	margin-bottom: -0.2rem;
	padding-left: 2.1rem;
}
.cpf-item .row {
	padding-left: 0 !important;
}

#prev_employment {
	margin-top: 1.6rem;
}

.promo-title {
	margin-top: 0.4rem;
	margin-bottom: 1rem;
}

.declare .frame {
	max-height: 34vh;
	overflow-y: scroll;
	border: 1px solid lightgray;
	padding: 0.4rem 0.6rem;
	background: white;
}
.declare > p {
	margin: 0 0 1rem 0;
}
.declare .frame p {
	margin: 0;
}
.declare li {
	line-height: 1.5;
}
.declare .frame > ol,
.declare ol.numeric {
	counter-reset: numeric;
	padding-left: 1.2rem;
	margin: 0;
}
.declare ol.roman {
	counter-reset: roman;
}
.declare .frame > ol > li > ol,
.declare ol.alpha {
	counter-reset: alpha;
	padding-left: 0;
}
.declare .frame > ol > li,
.declare ol.numeric > li {
	padding-left: 0.25rem;
}
.declare ol.roman > li,
.declare .frame > ol > li > ol > li,
.declare ol.alpha > li {
	list-style: none;
	position: relative;
	padding-left: 3.1rem;
	margin-left: -1.2rem;
}
.declare ol > p {
	margin-left: -1.2rem;
}
.declare > ol > li:before,
.declare .frame ol.numeric > li:before,
.declare ol.roman > li:before,
.declare .frame > ol > li > ol > li:before,
.declare ol.alpha > li:before {
	display: inline-block;
	width: 1.6rem;
	margin-right: 0.3125rem;
	margin-left: -1.9rem;
}
.declare > ol > li:before,
.declare .frame ol.numeric > li:before {
	counter-increment: numeric;
	content: counter(numeric, '.');
}
.declare ol.roman > li:before {
	counter-increment: roman;
	content:"(" counter(roman, lower-roman)") ";
}
.declare .frame > ol > li > ol > li:before,
.declare ol.alpha > li:before {
	counter-increment: alpha;
	content:"(" counter(alpha, lower-alpha)") ";
}

.fa-camera, .fa-file {
	display: inline-block;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	font-size: 1.2rem;
	color: #0043a2;
}
.upload-option {
	width: 35%;
	text-align: center;
}
.upload-option p { margin-bottom: 0.5rem; }
.select-take-picture:before, .select-upload-file:before{
	content: "\f030";
	font-family: 'Font Awesome 5 Free';
	font-size: 1.4rem;
	color: #0043a2;
	display: block;
	margin-top: 0.3rem;
}
.select-upload-file:before { content: "\f15b"; }
.upload-option-wrapper, .img-wrapper, .upload-doc, .img-wrapper-signature, .upload-doc-signature {
	width: 100%;
	padding: 1rem 1rem 0 0;
	position: relative;
}
.upload-doc, .upload-doc-signature {
	display: none;
}
.img-wrapper img, .img-wrapper-signature img {
	display: none;
	width: 100%;
}
.img-placeholder, .file-placeholder, .upload-option-placeholder {
	width: 100%;
	padding-bottom: 75%; /* keep 4:3 ratio */
	position: relative;
	border: 1px dashed #0043a2;
	background: white;
}
.file-placeholder { padding: 5rem 0.5rem; }

.uploadBtn {
	opacity: 0;
	/* width: 100%; */
	width: 0%;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
}
.change-upload-option-wrapper { 
	display: none;
	justify-content: center;
}
.btn-change-upload-option {
	background-color: white;
    border: 1px solid #0043a2;
    transition: color 300ms ease-in, background-color 300ms ease-in;
}

.file-placeholder, .upload-option-placeholder { padding-bottom: 0%; }
.upload-option-placeholder {
	display: flex;
	justify-content: space-around;
}
.upload-option-or {
	height: 100%;
	text-align: center;
	margin: auto 0;
}
.img-placeholder:before {
	content: "\f030";
	font-family: 'Font Awesome 5 Free';
	font-size: 2.4rem;
	color: #0043a2;
	position: absolute;
	top: 36%;
	left: 50%;
	transform: translate(-50%, -50%);
}
/* #foreigner_pass_type {
	width: 280px;
	padding-left: 1rem;
	margin-top: 0.3rem;
	margin-bottom: 0.3rem;
} */
#foreigner_pass_img_id ~ .img-wrapper .img-placeholder:before {
	top: 26%;
}
.upload-filename {
	margin: 0.5rem;
	text-align: center;
	overflow-wrap: break-word;
}
.upload-filename:before {
	content: "\f15b";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	line-height: 1;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 1.2rem;
    color: #0043a2;
}
.btn-upload-file {
	margin: auto;
	text-align: center;
	transform: translate(-50%,0%);
	left: 50%;
	position: relative;
	color: #0043a2;
	background-color: white;
	border: 1px solid #0043a2;
	margin-bottom: 1rem;
	transition: color 300ms ease-in, background-color 300ms ease-in;
}
.btn-take-picture {
	position: absolute;
	top: 85%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin-left: -8px;
	color: #0043a2;
	background-color: white;
	border: 1px solid #0043a2;
	transition: color 300ms ease-in, background-color 300ms ease-in;
}
.btn-take-picture:hover, .btn-upload-file:hover, .btn-change-upload-option:hover {
	color: white;
	background-color: #0043a2;
}
.btn-take-picture.retake {
	z-index: 3;
	top: 1rem;
	right: 2rem;
	left: auto;
	border: none;
	margin-left: 0;
	padding: 0.4rem 0.8rem;
	transform: none;
	color: #000;
	background: rgba(255,255,255,0.8);
	transition: color 300ms ease-in,
							background 300ms ease-in,
							opacity 300ms ease-in;
}
.btn-take-picture.retake:hover {
	color: #0043a2;
	background: rgba(255,255,255,1);
}
#foreigner_pass_img_id + div {
	position: relative;
}
#foreigner_pass_img_id + div .btn-take-picture.retake {
	right: 1.7rem;
}
.p-signature {
	position: absolute;
	top: 15%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	padding: 1.6rem 2rem 0 1.6rem;
	font-size: 0.7em;
}

.p-signature { z-index: 2; }


.custom-file-label {
	margin-left: 0.3125rem;
}

#fab-overlay {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	background-color: rgba(0,0,0,0.5);
}
#fab-overlay.show {
	display: block;
}
#fab-parent {
	position: relative;
	z-index: 20;
	opacity: 0;
	transition: opacity 300ms ease-in-out;
}
#fab-parent.show {
	opacity: 1;
}
.fab {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	right: 30px;
	bottom: 20px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	cursor: pointer;
	color: white;
	font-size: 2em;
	transition: bottom 300ms ease-in-out,
							right 300ms ease-in-out;
}
.fab img,
.fab i,
.fab button {
	position: absolute;
	transition: all 300ms ease-in-out;
	will-change: transform;
}
#fab-plus,
#fab-submit {
	box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.16), 0px 3px 10px rgba(0, 0, 0, 0.16);
}
#fab-plus {
	font-size: 1.4rem;
	background-color: #FF4081;
}
#fab-submit {
	opacity: 0;
	transition: opacity 300ms ease-in-out;
}
.inner-fabs .fab {
	width: 38px;
	height: 38px;
	right: 40px;
	bottom: 28px;
	font-size: 1.5em;
	will-change: bottom, right;
}
.inner-fabs.show .fab:nth-child(1) {
	bottom: 340px;
}
.inner-fabs.show .fab:nth-child(2) {
	bottom: 290px;
}
.inner-fabs.show .fab:nth-child(3) {
	bottom: 240px;
}
.inner-fabs.show .fab:nth-child(4) {
	bottom: 190px;
}
.inner-fabs.show .fab:nth-child(5) {
	bottom: 140px;
}
.inner-fabs.show .fab:nth-child(6) {
	bottom: 90px;
}
.inner-fabs.show .fab:nth-child(7) {
	right: 130px;
}
.inner-fabs.show #fab-submit {
	opacity: 1;
}
.inner-fabs.show + .fab i {
	-webkit-transform: rotate(135deg);
	transform: rotate(135deg);
}


/* Utility classes */
.custom-pt-4 {
	padding-top: 0.4rem !important;
}
.custom-pr-1 {
	padding-right: 1rem !important;
}

.custom-radio-inline-s {
	position: absolute;
	width: 180px;
	padding-left: 2.4rem;
}
.custom-radio-inline-m {
	position: absolute;
	width: 150px;
	padding-left: 2.8rem;
}
.custom-radio-inline-l {
	position: absolute;
	top: 0;
	width: 210px;
	padding-left: 3.8rem;
}
.custom-checkbox-inline {
	position: absolute;
	top: 100%;
	left: 1.2rem;
}
.visuallyhidden {
	position: absolute;
	overflow: hidden;
	clip: rect(0 0 0 0);
	height: 1px; width: 1px;
	margin: -1px; padding: 0; border: 0;
}
.round {
	border-radius: 50%;
}



.modal-footer-center {
	display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: .3rem;
    border-bottom-left-radius: .3rem;
}

#taxResidencyInputFieldTable tr:first-child td {
    border: none;
}

#taxResidencyInputFieldTable td, th {
	border-top: 1px solid #ced4da;
	padding: 1rem .75rem .75rem 0rem;
}

#btn_new_tax_residency_row {
    /* background-color: transparent;
    border: 1px solid #0043a2;
    color: #0043a2;
    padding: 0.5rem 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    box-shadow: none;
	transition: color 300ms ease-in-out, background-color 300ms ease-in-out; */
	color: #604959;
	border-color: #604959;
	max-width: 300px;
	width: 100%;

}

#btn_new_tax_residency_row:hover, #btn_new_tax_residency_row:focus, #btn_new_tax_residency_row:active, #btn_new_tax_residency_row.active {
    color: white;
    background-color: #604959;
    border-color: #604959;
}


@media screen and (max-width: 500px) {
	#btn_add_tax_residency {
		width:100%;
	}
}



/* iPhone 6/7/8 >= 375px */
@media screen and (min-width: 23.4375em) {
	.custom-radio-inline-s {
		width: 190px;
	}
	.p-signature,
	.p-income-doc,
	.p-chinese-ic-name {
		font-size: 1em;
	}
}

/* iPhone 6+/7+/8+ >= 414px */
@media screen and (min-width: 25.875em) {
	.p-signature,
	.p-income-doc,
	.p-chinese-ic-name {
		padding-top: 0;
	}
}

/* Bootstrap 4 Small >= 576px */
@media screen and (min-width: 36em) {
	.header-bg {
		margin-top: 5rem;
	}

	#mobile_code.gov,
	#home_code.gov,
	#regadd_block.gov,
	#regadd_street.gov,
	#regadd_floor.gov,
	#regadd_unit.gov,
	#regadd_building.gov,
	#regadd_postal.gov {
		padding-right: 0;
	}
	#regadd_block.gov,
	#regadd_floor.gov,
	#regadd_street.gov,
	#regadd_unit.gov,
	#regadd_building.gov,
	#regadd_postal.gov {
		background-position-x: calc(100% - 0.3rem);
	}

	#contract_exp_year + .bootstrap-datetimepicker-widget,
	#contract_exp_month + .bootstrap-datetimepicker-widget {
		top: 38px !important;
		left: auto !important;
	}
	#contract_exp_year + .bootstrap-datetimepicker-widget:before,
	#contract_exp_year + .bootstrap-datetimepicker-widget:after,
	#contract_exp_month + .bootstrap-datetimepicker-widget:before,
	#contract_exp_month + .bootstrap-datetimepicker-widget:after {
		right: 6px !important;
	}

	#noaTabContent .row {
		padding-left: 1rem !important;
	}
	#noaTabContent .row > div:nth-of-type(2) {
		text-align: left;
	}

	.cpf-item .row:first-child {
		padding-left: 0.25rem !important;
	}
	.cpf-item .row:not(:first-child) {
		padding-left: 1rem !important;
	}

	.img-placeholder:before {
		top: 38%;
	}

	#foreigner_pass_img_id ~ .img-wrapper .img-placeholder:before {
		top: 37%;
	}

	#fab-parent {
		display: none;
	}

	.custom-radio-inline-s {
		width: 200px;
	}
	.custom-radio-inline-l {
		width: 270px;
	}

	.p-signature,
	.p-income-doc,
	.p-chinese-ic-name {
		font-size: 0.8em;
	}
}

/* Bootstrap 4 Medium >= 768px */
@media screen and (min-width: 48em) {
	#noaTab span {
		display: inline;
	}

	.rb-item {
		flex: 0 1 32%;
		margin-left: 2%;
		margin-bottom: 2%;
	}
	.rb-item img {
		height: 100px;
	}
	.has-zodiac .rb-item {
		margin-left: 4%;
		margin-bottom: 4%;
	}
	.has-zodiac .rb-item.cc-zodiac {
		flex: 0 1 18%;
	}
	.rb-item:nth-child(2n + 1) {
		margin-left: 2%;
	}
	.has-zodiac .rb-item:nth-child(2n + 1) {
		margin-left: 4%;
	}
	.rb-item:nth-child(3n + 1) {
		margin-left: 0;
	}
	.has-zodiac .rb-item:nth-child(3n + 1) {
		margin-left: 0;
	}
	.has-zodiac .rb-item:nth-child(5n) {
		margin-left: 2%;
	}
	.has-zodiac .rb-item:nth-child(6n) {
		margin-left: 2%;
	}

	#mobile_code.gov,
	#home_code.gov,
	#regadd_block.gov,
	#regadd_floor.gov,
	#regadd_unit.gov,
	#regadd_building.gov,
	#regadd_postal.gov {
		padding-right: 0;
	}
	#regadd_block.gov,
	#regadd_floor.gov,
	#regadd_unit.gov,
	#regadd_building.gov {
		background-position-x: calc(100% - 0.3rem);
	}

	.custom-radio-inline-m {
		width: 170px;
	}
	.custom-radio-inline-l {
		width: 340px;
	}

	/* #foreigner_pass_type {
		width: 340px;
	} */
}

/* Bootstrap 4 Large >= 992px */
@media screen and (min-width: 62em) {
	.rb-item {
		flex: 0 1 24%;
		margin-left: 1%;
		margin-bottom: 1%;
	}
	.rb-item img {
		height: 125px;
	}
	.has-zodiac .rb-item {
		margin-left: 2%;
		margin-bottom: 2%;
	}
	.has-zodiac .rb-item.cc-zodiac {
		flex: 0 1 14%;
	}
	.rb-item:nth-child(2n + 1) {
		margin-left: 1%;
	}
	.has-zodiac .rb-item:nth-child(2n + 1) {
		margin-left: 2%;
	}
	.rb-item:nth-child(3n + 1) {
		margin-left: 1%;
	}
	.has-zodiac .rb-item:nth-child(3n + 1) {
		margin-left: 2%;
	}
	.has-zodiac .rb-item:nth-child(4n + 1) {
		margin-left: 0;
	}

	#mobile_code.gov,
	#home_code.gov,
	#regadd_block.gov,
	#regadd_floor.gov,
	#regadd_unit.gov,
	#regadd_postal.gov {
		padding-right: 0;
	}
	#mobile_code.gov,
	#home_code.gov {
		background-position-x: calc(100% - 0.3rem);
	}

	.custom-radio-inline-l {
		width: 270px;
	}
}

/* Between Bootstrap 4 Large >= 992px and Bootstrap 4 Extra Large < 1200px */
@media screen and (min-width: 62em) and (max-width: 1199px) {
	[for='mobile_code'] + div,
	[for='home_code'] + div,
	[for='office_code'] + div,
	[for='contact_person_code'] + div,
	[for='ref_code'] + div {
		flex: 0 0 10.5%;
		max-width: 10.5%;
	}
}

/* Bootstrap 4 Extra Large >= 1200px */
@media screen and (min-width: 75em) {
	#mobile_code.gov,
	#home_code.gov {
		background-position-x: calc(100% - 0.3rem);
		padding-right: 0;
	}

	.custom-radio-inline-l {
		width: 340px;
	}

	label[for="mobile_code"] + div,
	label[for="home_code"] + div,
	label[for="office_code"] + div,
	label[for="contact_person_code"] + div,
	label[for="ref_code"] + div {
		flex-basis: 9%;
		max-width: 9%;
	}
}

@media screen and (max-width: 575px) {
	label[for="mobile_code"] + div,
	label[for="home_code"] + div,
	label[for="office_code"] + div,
	label[for="contact_person_code"] + div,
	label[for="ref_code"] + div {
		flex-basis: 32%;
		max-width: 32%;
	}
}

@media screen and (min-width:576px) and (max-width: 767px) {
	label[for="mobile_code"] + div,
	label[for="home_code"] + div,
	label[for="office_code"] + div,
	label[for="contact_person_code"] + div,
	label[for="ref_code"] + div {
		flex-basis: 20.666667%;
		max-width: 20.666667%;
	}
	label[for="mobile_code"] + div + div,
	label[for="home_code"] + div + div,
	label[for="office_code"] + div + div,
	label[for="contact_person_code"] + div + div,
	label[for="ref_code"] + div + div {
		flex-basis: 46%;
		max-width: 46%;
	}
}

.lds-roller {
	display: inline-block;
	position: relative;
	width: 64px;
	height: 64px;
  }
  .lds-roller div {
	animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	transform-origin: 32px 32px;
  }
  .lds-roller div:after {
	content: " ";
	display: block;
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #000000;
	margin: -3px 0 0 -3px;
  }
  .lds-roller div:nth-child(1) {
	animation-delay: -0.036s;
  }
  .lds-roller div:nth-child(1):after {
	top: 50px;
	left: 50px;
  }
  .lds-roller div:nth-child(2) {
	animation-delay: -0.072s;
  }
  .lds-roller div:nth-child(2):after {
	top: 54px;
	left: 45px;
  }
  .lds-roller div:nth-child(3) {
	animation-delay: -0.108s;
  }
  .lds-roller div:nth-child(3):after {
	top: 57px;
	left: 39px;
  }
  .lds-roller div:nth-child(4) {
	animation-delay: -0.144s;
  }
  .lds-roller div:nth-child(4):after {
	top: 58px;
	left: 32px;
  }
  .lds-roller div:nth-child(5) {
	animation-delay: -0.18s;
  }
  .lds-roller div:nth-child(5):after {
	top: 57px;
	left: 25px;
  }
  .lds-roller div:nth-child(6) {
	animation-delay: -0.216s;
  }
  .lds-roller div:nth-child(6):after {
	top: 54px;
	left: 19px;
  }
  .lds-roller div:nth-child(7) {
	animation-delay: -0.252s;
  }
  .lds-roller div:nth-child(7):after {
	top: 50px;
	left: 14px;
  }
  .lds-roller div:nth-child(8) {
	animation-delay: -0.288s;
  }
  .lds-roller div:nth-child(8):after {
	top: 45px;
	left: 10px;
  }
  @keyframes lds-roller {
	0% {
	  transform: rotate(0deg);
	}
	100% {
	  transform: rotate(360deg);
	}
  }
  
/* 
.declare-checkbox {
	vertical-align: top;
	margin-bottom: 0rem;
} */

.table td {
    white-space: normal;
}

.padding-10 {
	padding: 15px 10px 10px 10px;
}
