@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap');

/* Remove arrows/spinners from input of type number */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

html {
    font-size: 16px;
}

body {
    font-family: 'PingFang SC', 'Noto Sans TC', sans-serif;
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;
    background-color: #fff;
    color: #0C0E1F;
    margin: 0;
    -webkit-user-select: none;
    /* Chrome, Safari, Opera */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.wrap-all {
    background-color: #fff;
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: left;
    word-wrap: break-word;
}

.wrapper {
    display: block;
    width: 100%;
    max-width: 578px;
    margin: 1.5rem auto;
    text-align: left;
    word-wrap: break-word;
    padding: 0 1.5rem;
}

.fbh-section-title {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.fbh-b-t {
    display: flex;
    align-items: center;
    font-weight: 500;
}

h1 {
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
}

.h1 {
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
}

h2 {
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
}

.p2 {
    font-size: 14px;
    line-height: 21px;
    color: #494A57
}

.p3 {
    font-size: 12px;
    line-height: 18px;
}

.fbh-border-bottom {
    border-bottom: 1px solid var(--fbh-neutral-divider-stroke);
}


/* Header Start */

.header {
    position: relative;
    background-color: var(--fbh-primary-100);
    height: 3rem;
    margin-bottom: 1.5rem;
}

.logo {
    background: url(../images/logo-fubon-sec.png) no-repeat 8px top;
    display: block;
    float: left;
    width: 180px;
    height: 40px;
    background-size: auto 40px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 5px auto;
    margin-left: 15px;
}

.logo-web {
    background: url(../images/logo-fubon-sec-black.svg) no-repeat center center;
    display: block;
    float: left;
    width: 180px;
    height: 40px;
    background-size: contain;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 20px auto 20px 50px;
}

.website {
    float: right;
    color: #fff;
    font-weight: 400;
    font-size: 16px;
    margin: 15px auto;
    margin-right: 15px;
    letter-spacing: .05rem;
}

.account {
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.resultIcon {
    width: 200px;
    margin-bottom: 0.75rem;
}

.resultTitle {
    margin: 0 auto;
    text-align: center;
    padding-top: 1rem;
}

.resultTitle h2 {
    margin-top: 0.75rem;
    line-height: 8px;
}

/* Header End */

/* Dropdown Start */

.fbh-dropdown {
    display: flex;
    align-items: center;
    border-width: 1px;
    border-color: var(--fbh-neutral-alt-fill);
    background-color: var(--fbh-neutral-alt-fill);
    border-radius: 0.75rem;
    min-height: 3.25rem;
    padding: calc(1rem - 3px) calc(1rem - 1px);
    cursor: pointer;
}

.fbh-dropdown .fbh-dropdown-content {
    flex-grow: 1;
}

.fbh-dropdown .fbh-dropdown-content:empty::after {
    content: attr(data-placeholder);
    color: var(--fbh-text-placeholder);
}

.fbh-dropdown .fbh-dropdown-content .fbh-subvalue {
    font-size: var(--fbh-text-p2);
    color: var(--fbh-text-secondary);
    margin-top: 2px;
}

.fbh-dropdown .fbh-dropdown-icon {
    background-color: var(--fbh-text-secondary);
    flex-shrink: 0;
    margin-left: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 7.5L10 12.5L5 7.5' stroke='%23020416' stroke-width='1.66' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 7.5L10 12.5L5 7.5' stroke='%23020416' stroke-width='1.66' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.dropdown-container {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    max-height: calc(3.5 * 3rem);
    background-color: #ffffff;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 1rem;
    overflow-y: auto;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
}

.dropdown-item-selected {
    background-color: #f4fbff;
}

.dropdown-item-selected::after {
    content: url("data:image/svg+xml,%3Csvg width='14' height='11' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.95837 11L0.208374 6.25002L1.39587 5.06252L4.95837 8.62502L12.6042 0.979187L13.7917 2.16669L4.95837 11Z' fill='%230093C1'/%3E%3C/svg%3E");
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
}

.dropdown-content a:hover {
    background-color: #f4fbff;
}


/* Dropdown End */

/* Footer Start */

.fixed_footer {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 6rem;
    width: 100%;
    padding: 1px;
    background-color: #fff;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

/* Footer End */

.fbh-btn-primary {
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    text-align: center;
    background-color: var(--fbh-primary-100);
    color: var(--fbh-text-primary-inverse);
    font-weight: var(--fbh-font-medium);
}

.btn_box,
.btn_box3 {
    display: block;
    max-width: 578px;
    margin: 0.25rem auto 1.5rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.btn_box3 .fbh-btn-secondary {
    display: inline-block;
    width: 48%;
    margin-right: 1.5%;
}

.btn_box3 .fbh-btn-primary {
    display: inline-block;
    width: 48%;
}

/* Customized styles */
.persian-green {
    color: var(--fbh-accent-persian-green);
}

.fbh-progress-step-indicator ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    width: 100%;
    margin: 0 auto;
}

.fbh-progress-step-indicator ul>li {
    flex: 1;
    min-width: 81.75px;
    --circle: 1.25rem;
    display: grid;
    row-gap: 0.5rem;
    padding: 0 0rem;
    position: relative;
    counter-increment: section;
}

.flex-center {
    display: flex;
    justify-content: center;
}

.center {
    text-align: center;
}

.fbh-input-container {
    display: flex;
    gap: 0.5rem;
}

.fbh-input-container .fbh-input {
    flex: 1;
}

.fbh-input-container .dropdown-container {
    flex: 1;
}

.fbh-input-container .dropdown-container.flex-grow-1-1 {
    flex: 1.1;
}

.fbh-input-container.fbh-disabled .fbh-dropdown {
  background-color: var(--fbh-neutral-disabled-fill);
  border-color: var(--fbh-neutral-disabled-fill);
  cursor: default;
}

.fbh-input-container.fbh-disabled .fbh-dropdown input {
  color: var(--fbh-text-secondary);
}

.fbh-input-container.fbh-disabled .fbh-dropdown .fbh-dropdown-content .fbh-subvalue {
  color: var(--fbh-text-tertiary);
}

.fbh-input-container .fbh-input.fbh-input-phone-number {
    flex-grow: 2.46;
}

.fbh-input-container .fbh-input.fbh-input-phone-extension {
    flex-grow: 1.3;
}

.fbh-input-container .fbh-input.flex-grow-0-8 {
    flex: 0.8;
}

.fbh-input.fbh-disabled {
    background-color: var(--fbh-neutral-disabled-fill);
    border-color: var(--fbh-neutral-disabled-fill);
}

.fbh-input.fbh-input-fixed-size {
    max-width: 90px;
    max-height: 56px;
}

.fbh-input input.fbh-padding-small {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.fbh-form-group .fbh-form-field-content {
    grid-area: field;
}

.fbh-ol {
    margin-block-start: 0;
    padding-inline-start: 1.25rem;
}

.placeholder {
    height: 4.5rem;
}

.placeholder-large {
    height: 8rem;
}

.line-height-1 {
    line-height: 1;
}

.fbh-text-underline {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.full-width {
    width: 100%;
}

.m-t-0 {
    margin-top: 0;
}

.m-t-half {
    margin-top: 0.5rem;
}

.m-t-1 {
    margin-top: 1rem;
}

.m-t-2 {
    margin-top: 2rem;
}

.m-t-3 {
    margin-top: 3rem;
}

.m-b-0 {
    margin-bottom: 0;
}

.m-b-half {
    margin-bottom: 0.5rem;
}

.m-b-1 {
    margin-bottom: 1rem;
}

.m-w-327 {
    max-width: 327px;
}

.m-i-s-12 {
    max-inline-size: 12rem;
}

.p-h-0 {
    padding-left: 0;
    padding-right: 0;
}

.p-h-2 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.column-gap-0 {
    column-gap: 0;
}

.js_content1 ul,
.fbh-card ul {
    list-style-type: none;
    padding-left: 0.25rem;
    margin: 0 auto;
}

.fbh-item ul {
    list-style-type: disc;
    padding-left: 1.25rem; /* Adjust as needed for proper alignment */
}

.fbh-dialog {
    max-width: 520px;
}

.resultTitle {
    margin: 0 auto;
    text-align: center;
    padding-top: 1rem;
}

.resultTitle h2 {
    margin-top: 0.75rem;
    line-height: 8px;
}

.fbh-table-header-wrapper table {
    width: 100%;
    table-layout: fixed;
}

.fbh-table-body-wrapper table {
    width: 100%;
    table-layout: fixed;
}

/* Foldable Component Styles */
.fbh-foldable-container {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.fbh-foldable-container.fbh-folded {
    max-height: calc(2 * 24px);
}

.fbh-foldable-container.fbh-folded::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    /* Height of the gradient */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    /* Allows clicking through the gradient */
}

.fbh-foldable-toggle {
    display: block;
    width: 100%;
    text-align: center;
    cursor: pointer;
    padding: 0.5rem 0;
}

.fbh-foldable-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../images/icon-arrow-up.svg');
}

.fbh-foldable-icon.fbh-folded {
    background-image: url('../images/icon-arrow-down.svg');
}

/* Media Start */
.fbh-mobile-only {
    display: block;
}

.fbh-button-web {
    display: none;
}

.fbh-fixed-footer-web {
    display: none;
}

.fbh-header-web {
    display: none;
}

.fbh-page-title-web {
    display: none;
}

@media (min-width: 992px) {
    .fbh-mobile-only {
        display: none;
    }

    .fbh-button-web {
        display: block;
    }

    .fbh-fixed-footer-web {
        display: block;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        height: 6rem;
        width: 100%;
        padding: 1.25rem 2rem;
        border-width: 1px;
        border-color: #D7D7DA;
        background-color: #fff;
    }

    .fbh-header-web {
        display: block;
        position: relative;
        background-color: white;
        height: 5rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #D7D7DA;
    }

    .fbh-center-in-web {
        text-align: center;
    }

    .fbh-page-title-web {
        display: block;
        text-align: center;
    }

}

/* Media End */

/* Loading Circle Start */
.fbh-loading-circle {
    display: none;
}

.fbh-loading-circle.is-active {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

/* Style to disable clicks on the body when loader is active */
body.loading-active {
    pointer-events: none;
    overflow: hidden;
}

.fbh-accordion-header.fbh-no-icon::after {
    content: none;
    width: 0;
    height: 0;
}

/* Loading Circle End */

.instruction-item {
    padding-left: 1.5em;
    text-indent: -1.2em;
}

.accordion-container {
    padding: 0.5rem 0.5rem 0;
}

.input-cell-margin {
    margin-bottom: 0.5rem;
}

.vertical-align {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-right-aligned {
    justify-content: space-between;
}