:root {
	--primary-color: #1F4592;
	--secondary-color: #1C356A;
	--background-color: #E8F2FF;
	--border-color: #CCCCCC;
	--red-color: #AD000B;
	--white-color: #ffffff;
	--body-color: #1A1C1C;
}
html { 
	scroll-behavior: smooth; 
}
section[id], div#form {
	scroll-margin-top: 106px;
}
img {
	width: auto;
	max-width: 100%;
	height: auto;
}
.py-16 {
	padding-top: 4rem;
	padding-bottom: 4rem;
}
.bg-white {
	background: var(--white-color);
}
.only-sp {
	display: none;
}

/*-- Menu --*/
#mainNavbar {
	justify-content: flex-end;
}
.main-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2rem;
}
.main-nav a {
	color: #000;
	font-size: 14px;
	text-decoration: none;
	transition: color .2s ease;
	border-bottom: 2px solid transparent;
}
.main-nav a:hover {
	color: var(--secondary-color);
	border-color: var(--secondary-color);
}
.main-nav__cta {
	background: var(--primary-color);
	border-radius: 0.5rem;
	color: var(--white-color) !important;
	text-align: center;
	padding: 12px 20px;
}
.main-nav__cta:hover {
	background: var(--secondary-color);
}

/*-- Hero --*/
.banner-container {
	display: flex;
	align-items: flex-end;
	gap: 2rem;
}
.banner-content {
	flex: 1;
}
.banner-badge {
	display: inline-block;
	background-color: var(--background-color);
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 6px 12px;
	margin-bottom: 24px;
}
.banner-title {
	font-weight: 700;
	color: var(--body-color);
	line-height: 1.5;
	margin-bottom: 24px;
	font-size: 34px;
}
.banner-title span {
	color: #DB0011;
}
.banner-desc {
	font-size: 18px;
	color: var(--body-color);
	line-height: 1.6;
	margin-bottom: 20px;
}
.banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s ease;
}
.btn-primary {
	background-color: var(--primary-color);
	color: var(--white-color);
	border: 1px solid var(--primary-color);
}
.btn-primary:hover, .btn-primary.focus, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
}
.btn-primary.focus, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled).active:focus, .btn-primary:not(:disabled):not(.disabled):active:focus, .show>.btn-primary.dropdown-toggle:focus,
.btn-secondary.focus, .btn-secondary:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, .btn-secondary:not(:disabled):not(.disabled):active:focus, .show>.btn-secondary.dropdown-toggle:focus {
	box-shadow: none;
}
.btn-primary i {
	margin-left: 8px;
	transition: transform 0.3s ease;
}
.btn-primary:hover i {
	transform: translateX(4px);
}
.btn-secondary {
	background-color: var(--white-color);
	color: var(--body-color);
	border: 1px solid var(--border-color);
}
.btn-secondary:hover, .btn-secondary.focus, .btn-secondary:focus, .btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show>.btn-secondary.dropdown-toggle {
	border-color: var(--secondary-color);
	color: var(--secondary-color);
	background-color: #fcfcfc;
}
.banner-image {
	max-width: 546px;
	width: 50%;
}
.banner-image img {
	border-radius: 20px;
}

/*-- Steps --*/
.bg-steps {
	background: url(../img/hsbc/bg-step.png) no-repeat top center;
	background-size: 100% auto;
}
.bg-steps .container > h2 {
	color: var(--primary-color);
	font-weight: bold;
	text-align: center;
    margin-bottom: 2.5rem;
}
.steps-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}
.steps-line {
    position: absolute;
    top: 1rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #E0E0E0;
    z-index: 0;
	width: 80%;
}
.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
}
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.5rem;
    background: #EEEEEE;
    border: 1px solid #E2E2E2;
    border-radius: 50%;
    font-size: 14px;
	color: #535454;
}
.step-item--active .step-number {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.step-item--active h3 {
	color: var(--secondary-color);
	font-weight: 700;
}
.step-item h3 {
	font-size: 16px;    
}
.step-item p {
    color: #5E5E5E;
    font-size: 14px;
}

/*-- Form --*/
.hsbc-form-card {
	background: var(--white-color);
	border-radius: 0.25rem;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
	position: relative;
	overflow: hidden;
	max-width: 848px;
	margin: 2rem auto 0;
}
.card-header {
	background-color: var(--secondary-color);
	color: var(--white-color);
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;	
}
.header-left {
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}
.header-right {
	font-style: italic;
	font-size: 12px;
	color: rgba(255,255,255,.8);
}
.card-body {
	padding: 40px 48px 20px;
}
.form-title-area {
	text-align: center;
	margin-bottom: 32px;
}
.form-title-area h2 {
	font-weight: 700;
	color: var(--body-color);
}
.form-title-area p {
	color: #5E5E5E;
}
.frm_style_formidable-style.with_frm_style .form-field {
	margin-bottom: 20px;
}
.frm_style_formidable-style.with_frm_style .form-field#frm_field_243_container {
	margin-bottom: 0;
}
.with_frm_style .frm_primary_label,
.with_frm_style .frm_radio label, .with_frm_style .frm_checkbox label {
	font-size: 16px;
}
.with_frm_style input[type=text], .with_frm_style input[type=tel], .with_frm_style input[type=email], .with_frm_style select {
	padding: 12px 16px;
	border: 1px solid #B1B1B1;
	border-radius: 6px;
	font-size: 16px;
}
.with_frm_style select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 40px;
	cursor: pointer;
}
.frm_style_formidable-style.with_frm_style .frm_submit button {
	width: 100%;
	background-color: var(--primary-color);
	color: var(--white-color);
	font-size: 18px;
	line-height: 28px;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
}
.frm_style_formidable-style.with_frm_style .frm_submit button:after {
	display: block;
	content: "\f3ed";
	font-family: "Font Awesome 5 Pro";
	margin: -5px 0 0 0.5rem;
}
.frm_style_formidable-style.with_frm_style .frm_submit button:hover {
	background-color: var(--secondary-color);
}
.frm_style_formidable-style.with_frm_style .frm-edit-page-btn:hover,.frm_style_formidable-style.with_frm_style input[type=submit]:hover,.frm_style_formidable-style.with_frm_style .frm_submit input[type=button]:hover,.frm_style_formidable-style.with_frm_style .frm_submit button:hover,
.frm_style_formidable-style.with_frm_style .frm-edit-page-btn:focus,.frm_style_formidable-style.with_frm_style input[type=submit]:focus,.frm_style_formidable-style.with_frm_style .frm_submit input[type=button]:focus,.frm_style_formidable-style.with_frm_style .frm_submit button:focus,.frm_style_formidable-style.with_frm_style input[type=submit]:active,.frm_style_formidable-style.with_frm_style .frm_submit input[type=button]:active,.frm_style_formidable-style.with_frm_style .frm_submit button:active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
}
.hsbc-card-grid .frm_primary_label {
	display: block;
	margin: 0 0 14px;
	color: #333;
	font-size: 15px;
	font-weight: 400;
}
.hsbc-card-grid .frm_opt_container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 14px;
}
.hsbc-card-grid .frm_radio {
	position: relative;
	min-width: 0;
	margin: 0;
}
.hsbc-card-grid .frm_radio input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
}
.hsbc-card-grid .frm_radio > label {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 118px;
	margin: 0;
	padding: 12px 13px;
	background: var(--white-color);
	border: 1px solid #efb7b7;
	border-radius: 4px;
	color: #222;
	cursor: pointer;
	transition:	border-color .2s ease, box-shadow .2s ease,	transform .2s ease;
}
.hsbc-card-grid .frm_radio > label:hover {
	border-color: #db0011;
	box-shadow: 0 3px 12px rgba(219, 0, 17, .10);
}
.hsbc-card-grid .frm_radio:has(input[type="radio"]:checked) > label {
	border: 2px solid #db0011;
	padding: 11px 12px;
	box-shadow: 0 3px 12px rgba(219, 0, 17, .10);
}
.hsbc-card-grid .frm_radio > input[type="radio"]:checked + label {
	border: 2px solid #db0011;
	padding: 11px 12px;
	box-shadow: 0 3px 12px rgba(219, 0, 17, .10);
}
.hsbc-card-grid .frm_radio:has(input[type="radio"]:focus-visible) > label {
	outline: 2px solid #376da9;
	outline-offset: 2px;
}
.hsbc-card-option {
	display: block;
	width: 100%;
	font-size: 12px;
	line-height: 1.35;
}
.hsbc-card-tag {
	display: block;
	margin: 0 0 8px;
	padding: 3px 7px;
	background: #e7e7e7;
	color: #333;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
}
.hsbc-card-main {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 7px;
}
.hsbc-card-thumb {
	display: flex;
	flex: 0 0 50px;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 28px;
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 2px;
	background: #f5f5f5;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.hsbc-card-info {
	flex: 1;
	min-width: 0;
}
.hsbc-card-name {
	display: block;
	color: #222;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}
.hsbc-card-subtitle {
	display: block;
	margin-top: 1px;
	color: #888;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.25;
}
.hsbc-card-benefit {
	display: block;
	position: relative;
	margin-top: 4px;
	padding-left: 12px;
	color: #666;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
}
.hsbc-card-benefit::before {
	content: "✓";
	position: absolute;
	top: 0;
	left: 0;
	color: #db0011;
	font-weight: 700;
}

/*-- Card --*/
.card-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.filter-btn {
	padding: 10px 24px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	background: var(--white-color);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition:	background-color 0.2s ease,	border-color 0.2s ease,	color 0.2s ease;
}
.filter-btn:hover {
	border-color: var(--secondary-color);
	color: var(--secondary-color);
}
.filter-btn.is-active {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: var(--white-color);
}
.filter-btn.is-active:hover {
	background: var(--secondary-color);
	border-color: var(--secondary-color);
	color: var(--white-color);
}
.card-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
.promo {
	font-weight: bold;
	background: url(../img/hsbc/salary.gif) no-repeat left center;
	background-size: 40px;
	padding: 12px 0 6px 3rem;
}
.promo span {
	color: var(--red-color);
}
.credit-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: 0.3s ease;
}
.credit-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.credit-card__image {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.credit-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.credit-card:hover .credit-card__image img {
    transform: scale(1.05);
}
.credit-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.credit-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--body-color);
}
.credit-card__tag {
    color: var(--red-color);
    font-weight: 700;
}
.credit-card__benefits {
    padding: 0;
    list-style: none;
}
.credit-card__benefit {
	background: url(../img/hsbc/check.png) no-repeat left 6px;
	padding-left: 1rem;  
    font-size: 13px;
    color: #000;
	margin-bottom: .75rem;
}
.credit-card__button {
    width: 100%;
    margin-top: auto;
    padding: 12px 16px;
    background: var(--white-color);
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}
.credit-card__button:hover {
	color: var(--white-color);
	border-color: var(--secondary-color);
    background: var(--secondary-color);
}

/*-- Heading --*/
h2 {
	font-weight: bold;
}
.heading {
	text-align: center;
	margin-bottom: 2.5rem;
}
.heading h2 {
	font-size: 2rem;
	font-weight: bold;
	border-bottom: 4px solid var(--secondary-color);			
	padding-bottom: 0.75rem;			
	display: inline-block;
	text-transform: uppercase;
}

/*-- Featured --*/
.bg-featured {
	background: url(../img/hsbc/bg-featured.png) no-repeat top center;
	background-size: 100% auto;
}
.list-featured {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}
.list-featured .item {
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1.5rem 1rem;
	background: var(--white-color);
}
.list-featured .item h5 {
	text-align: center;
	font-weight: bold;
	font-size: 18px;
	line-height: 1.5;
}
.list-featured .item .icon {
	margin-bottom: 1rem;
	text-align: center;
}

/*-- FAQ --*/
.list-faq > :not([hidden]) ~ :not([hidden]) {
	margin-top: 1rem;
}
details {
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	border-radius: .75rem;
	border: 1px solid #e5e7eb;
	overflow: hidden;
	background: #F9F9F9;
	transition: all 0.3s ease;
}
details summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	cursor: pointer;
	font-weight: 500;
	color: #111827;
	transition: all 0.3s ease;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem 0.75rem 0 0;
}
details[open] summary {
	border: 1px solid var(--secondary-color);    
}
details[open] > div {
	background: var(--white-color);
	padding: 1.5rem;
	border-top: 1px solid var(--secondary-color);
}
details summary i {
	transition: transform 0.3s ease;
}
details[open] summary i {
	transform: rotate(180deg);
}

/*-- TYP --*/
.typ{
	text-align: center;
}
.typ h1 {
	color: var(--primary-color);
	font-weight: bold;	
}
.typ h1.error {
	color: var(--red-color);
}
.typ h1 + p {
	margin: 0 auto 30px;
}
.typ-status {
	background: #F5F3F3;
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	box-shadow: 0 1px 2px rgba(0,0,0,.05);
	padding: 0.5rem 22px;
	max-width: 450px;
	margin: 0 auto 32px;
}
.status-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 14px;
	color: #5F5E5E;
	white-space: nowrap;
	padding: 0.75rem 0;
}
.status-row + .status-row {
	border-top: 1px solid var(--border-color);
}
.status-value {
	color: var(--body-color);
	font-weight: 700;
	text-align: right;
}
.status-value.processing, .status-value.error {
	position: relative;
	padding-left: 10px;
	color: #47AE67;
}
.status-value.error {
	color: var(--red-color);
}
.status-value.processing::before, .status-value.error::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #47AE67;
	transform: translateY(-50%);
}
.status-value.error::before {
	background: var(--red-color);
}
.typ-button {
	background: var(--primary-color);
	font-weight: bold;
	text-align: center;
	color: var(--white-color);
	max-width: 390px;
	margin: 0 auto;
	border-radius: 0.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 1rem 20px;
	text-decoration: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .22);
	transition:	background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.typ-button:hover {
	color: var(--white-color);
	background: var(--secondary-color);
	box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}
.redirect-note {
	color: #5F5E5E;
	font-size: 12px;
	margin-top: 0.5rem;
}
.redirect-note strong {
	color: var(--red-color);
}

/*-- About --*/
#aboutCF .meta-wrap {
	background: var(--white-color);
	text-align: center !important;
}
#aboutCF .meta-wrap p {
	margin-bottom: 0;
}
#aboutCF .meta-wrap i {
    color: var(--primary-color);
}

/*-- Responsive --*/
@media (max-width: 767px) {
	.py-16 {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}
	.only-pc {
		display: none;
	}
	.only-sp {
		display: block;
	}
	
	/*-- Heading --*/
	h2, .heading h2, .typ h1 {
		font-size: 24px;
	}

	/*-- Menu --*/
	#mainNavbar {
		padding: 0.5rem 0;
	}
	.main-nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}
	.main-nav > a:not(.main-nav__cta) {
		display: block;
		width: 100%;
		padding: 0.5rem 0;
	}
	.main-nav__cta {
		width: 100%;
		max-width: 248px;
		margin: 0.5rem auto;
	}
	
	/*-- Hero --*/
	.banner-container {
		flex-direction: column-reverse;
	}
	.banner-image {
		width: auto;
	}
	.banner-actions {
		gap: 0.5rem;
	}
	.btn {
		padding: 12px;
	}
	
	/*-- Steps --*/
	.bg-steps, .bg-featured {
		background-image: url(../img/hsbc/bg-featured-MB.png);
	}
	.bg-steps .container > h2 {
		text-align: left;
		font-size: 25px;
		margin-bottom: 1.25rem;
	}
	.steps-wrap {
		overflow: hidden;
	}
	.steps-wrap .steps-list {
		width: 100%;
		overflow: scroll;
	}
	.step-item {
		width: 180px;
		text-align: left;
	}
	.step-number {
		margin: 0 0 0.5rem;
	}
	.steps-line {
		width: 868px;
		left: 0;
		right: 0;
	}
	
	/*-- Form --*/
	.card-header {
		flex-direction: column;
	}
	.card-body {
		padding: 1rem;
	}
	.hsbc-card-grid .frm_opt_container {    
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
	
	/*-- Card --*/
	.card-wrap, .featured-wrap {
		overflow: scroll;
	}
	.card-filter {
		flex-wrap: nowrap;
		width: max-content;
	}
	.card-grid, .list-featured {
		width: max-content;
	}
	.credit-card, .list-featured .item {
		width: 275px;
	}
	.promo {
		display: block;
        background-position: left top;
	}
}