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

/* 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: 1160px;
    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;
} */

.header {
    -webkit-box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    height: 63px;
}

.header .header-user {
    display: flex;
    gap: 0.5rem;
}

.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;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.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 */

/* Accordion Link Menu Start */
.accordion-link-menu .accordion-header {
    display: flex;
    font-size: 16px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    line-height: 56px;
    padding: 0 1.5rem;
    background-color: white;
    border: none;
}

@media screen and (min-width: 769px) {
    .accordion-link-menu .accordion-header {
        padding: 0 1rem;
        line-height: 3rem;
    }

    .header-center-wrap .site-links a.link:hover {
        background-color: #f4fbff;
    }
}

.accordion-link-menu .accordion-header .arrow-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.accordion-link-menu .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--fbh-neutral-alt-fill);
    /* Light grey background for sub-menu */
}

.accordion-link-menu.active .accordion-content {
    max-height: 200px;
    transition: max-height 0.3s ease-in;
}

.accordion-link-menu.active .accordion-header .arrow-icon {
    transform: rotate(180deg);
}

.accordion-link-menu .accordion-content a.link {
    padding: 0 1.5rem;
    display: block;
    background-color: var(--fbh-neutral-alt-fill);
}

.accordion-link-menu .accordion-content .link:hover {
    background-color: #e0e0e0;
}

/* Accordion Link Menu End */

/* Footer Start */

.fixed_footer {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 6rem;
    width: 100%;
    padding: 1px;
    z-index: 100;
    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: 1160px;
    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;
}

.flex-end {
    align-self: flex-end;
}

.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-63 {
    height: 63px;
}

.placeholder {
    height: 4.5rem;
}

.placeholder-large {
    height: 8rem;
}

.placeholder-xlarge {
    height: 16rem;
}

/* Aspect Ratio Containers */
.aspect-ratio-box {
    height: 0;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    /* Placeholder background */
}

.aspect-ratio-box-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aspect-ratio-box-horizontal {
    padding-bottom: 63%;
    /* Approx 1.58:1 aspect ratio (width:height) */
}

.aspect-ratio-box-vertical {
    padding-bottom: 140%;
    /* Approx 1:1.414 aspect ratio (width:height) */
}

.aspect-ratio-box-signature {
    padding-bottom: 33%;
    /* Approx 3:1 aspect ratio (width:height) */
}

.fbh-item-full-width-image {
    flex-basis: 100%;
    /* Allow the item to take full width */
    justify-content: center;
    /* Center the content horizontally */
}

.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-w-382 {
    max-width: 382px;
}

.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;
}

/* Page Progress Start */
.page-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    height: 100px;
}

.page-progress-text .title {
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
}

.page-progress-text .subtitle {}

/* Page Progress End */

.fbh-card-placeholder {
    border-radius: 0.75rem;
    background-color: var(--fbh-neutral-alt-fill);
    height: 121px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fbh-text-disabled);
}

.setImageWidth {
    width: 100%;
    height: 27%;
}

@media(max-width:1024px) {
    .setImageWidth {
        width: 980px;
        height: 27%;
    }
}

@media(max-width:768px) {
    .setImageWidth {
        width: 720px;
        height: 27%;
    }
}

@media(max-width:575px) {
    .setImageWidth {
        width: 342px;
        height: 27%;
    }
}

/*.fbh-signature-preview {
    height: 177px;
    background-color: var(--fbh-neutral-alt-fill);
    border-radius: 0.75rem;
}*/

.fbh-signature-preview {
    height: 205px;
    background-color: var(--fbh-neutral-alt-fill);
    border-radius: 0.75rem;
    padding: 1rem;
}

/*.fbh-signature {
    border-radius: 0.75rem;
    background-color: var(--fbh-neutral-alt-fill);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 177px;
    font-size: 1.25rem;
    padding: 1rem;
}*/

.fbh-signature {
    border-radius: 0.75rem;
    background-color: var(--fbh-neutral-alt-fill);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 205px;
    font-size: 1.25rem;
    padding: 1rem;
}

    /*.fbh-signature .fbh-signature-content {
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
        font-size: 1.25rem;
        background-color: white;
        color: #D9D9D9;
    }*/
.fbh-signature .fbh-signature-content {
    width: 100%;
    height: 100%;
    align-items: center;
    background-color: white;
}

.fbh-signature-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    width: 100%;
}

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

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

.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, transparent 0%, var(--fbh-neutral-alt-fill) 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');
}

.fbh-foldable-container-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    /* Adjust padding */
    background-color: var(--fbh-neutral-alt-fill);
}

.fbh-foldable-container-title {
    font-size: 14px;
    line-height: 21px;
    color: #494A57;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .fbh-foldable-container-footer {
        padding-left: 5rem;
    }

    .fbh-foldable-container-title {
        font-size: 18px;
        line-height: 22px;
        font-weight: 700;
        color: #0C0E1F;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
}

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

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

.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: 768px) {
    .fbh-mobile-only {
        display: none;
    }

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

    .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;
}

.fbh-form-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fbh-input-end-button {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .fbh-form-group-horizontal {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 2rem;
    }

    .fbh-form-group-horizontal .fbh-form-head-wrapper {
        flex: 1;
    }

    .fbh-form-group-horizontal .fbh-form-content {
        flex: 3;
        flex-direction: row;
    }

    .fbh-input-end-button {
        margin-top: 4rem;
    }
}

.fbh-responsive-cards-header {
    display: none;
    /* Hidden on mobile */
}

@media (min-width: 600px) {
    .fbh-responsive-cards {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0 1rem;
        /* No row gap, only column gap */
    }


    .fbh-responsive-cards-header {
        grid-column: 1 / -1;
        /* Span all columns */
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        background-color: var(--fbh-neutral-alt-fill);
    }

    .fbh-responsive-cards-header>div {
        padding: 0.75rem 1rem;
        font-weight: var(--fbh-font-medium);
        color: var(--fbh-text-secondary);
        text-align: center;
    }

    .fbh-responsive-cards .fbh-list-group {
        display: contents;
    }

    .fbh-responsive-cards .fbh-item {
        display: none;
    }

    .fbh-responsive-cards .fbh-item-after {
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .fbh-responsive-cards .fbh-card:last-of-type .fbh-item-after {
        border-bottom: none;
    }

    .fbh-responsive-cards .fbh-card {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        background: none;
        padding: 0.75rem 0;
        border-radius: 0;
        border-bottom: 1px solid var(--fbh-neutral-divider-stroke);
    }

    .fbh-responsive-cards .fbh-card:last-child {
        border-bottom: none;
    }

    .fbh-responsive-cards .fbh-item-after {
        display: block;
        padding: 0;
    }

    .fbh-item[data-label="備註"]+.fbh-item.fbh-item-after::before {
        content: "備註：";
    }

    .fbh-item[data-label="備註"],
    .fbh-item[data-label="備註"]+.fbh-item.fbh-item-after {
        grid-column: 1 / -1; /* Make these items span all columns */
        text-align: left; /* Align text to the left for the full-width item */
        padding-left: 0.5rem;
    }
}

.fbh-form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fbh-form-section-title {
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
}

.fbh-form-section-content {
    /* Default content styles */
}

@media (min-width: 768px) {
    .fbh-form-section {
        flex-direction: row;
        align-items: flex-start;
    }

    .fbh-form-section-title {
        flex: 1;
    }

    .fbh-form-section-content {
        flex: 3;
    }
}

@media (min-width: 768px) {
    .form-group-row {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        /* Adjust as needed for spacing between form groups */
    }

    .form-group-row>.fbh-form-group {
        flex: 1 1 calc(50% - 0.5rem);
        /* Two columns with gap */
    }

    .form-group-row>.fbh-form-group:only-child {
        flex: 1 1 100%;
        /* Full width if only one item */
    }
}