﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* 框架樣式
-------------------------------------------------- */
html,
body {
    min-height: 100%;
    margin: 0;
}

html {
    font-size: 18px;
    position: relative;
    min-height: 100%;
}

.page-content {
    padding: 20px 10px;
}

.content-section {
    padding-bottom: 40px;
}

@media (min-width: 1200px) {
    .page-content {
        padding: 30px 100px;
    }

    .content-section {
        padding-bottom: 30px;
    }
}

/* 驗證樣式
-------------------------------------------------- */
label.error {
    color: #dc3545;
    font-size: 0.875em;
}

input.error,
textarea.error,
select.error {
    border-color: #dc3545;
}

/* 字體樣式
-------------------------------------------------- */
.content-section h5 {
    font-size: 24px;
    font-weight: bold;
}

.content-section p {
    line-height: 30px;
    margin-bottom: 12px;
}

/*ul樣式*/
.square-list {
    list-style-type: square;
}

.ol-chinese-bracket {
    list-style: none;
    counter-reset: item;
    padding-left: 0px;
}

    .ol-chinese-bracket > li {
        counter-increment: item;
        display: table;
    }

        .ol-chinese-bracket > li::before {
            content: "(" counter(item, cjk-ideographic) ") ";
            display: table-cell;
            padding-right: 0.3em;
            white-space: nowrap;
        }

.ol-chinese {
    list-style: none;
    counter-reset: item;
    padding-left: 0px;
}

    .ol-chinese > li {
        counter-increment: item;
        display: table;
    }

        .ol-chinese > li::before {
            content: counter(item, cjk-ideographic) "、";
            display: table-cell;
            white-space: nowrap;
        }

ol.main-list {
    list-style-type: decimal;
    padding-left: 20px;
}

ol.sub-list {
    list-style: none;
    counter-reset: sub-item;
    padding-left: 0px;
}

    ol.sub-list > li {
        counter-increment: sub-item;
        display: table;
    }

        ol.sub-list > li::before {
            content: "(" counter(sub-item) ") ";
            display: table-cell;
            white-space: nowrap;
            padding-right: 0.3em;
        }
/* 
-------------------------------------------------- */
.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.btn-custom-fartrust {
    background-color: #d9534f;
    border-color: #d9534f;
    color: #fff;
}

.btn-custom-fartrust:hover,
.btn-custom-fartrust:focus {
    background-color: #c9302c;   /* 深一點 */
    border-color: #c9302c;
    color: #fff;
}

#toast-container .toast-title {
    font-size: 1.25rem !important;
}

#toast-container .toast-message {
    font-size: 1.25rem !important;
}

.crop {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.ratio1200x1000 {
    --bs-aspect-ratio: 83%;
}

/* 隱私權聲明
-------------------------------------------------- */
.cdk-overlay-container {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.cdk-global-overlay-wrapper, .cdk-overlay-pane {
    display: flex;
    position: absolute;
    z-index: 1000;
}

.cdk-global-overlay-wrapper, .cdk-overlay-container {
    pointer-events: none;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.cdk-overlay-pane {
    pointer-events: auto;
    box-sizing: border-box;
    max-width: 100%;
    max-height: 100%;
}

.cdk-global-overlay-wrapper, .cdk-overlay-pane {
    display: flex;
    position: absolute;
    z-index: 1000;
}

rdr-snackbar.rdr-cp {
    border-color: #ddd;
    background-color: #fff;
}

rdr-snackbar {
    background-color: #fff;
    border-color: #ddd;
    border-radius: 12px;
    border-style: solid;
    border-width: 1px;
    box-shadow: 0 3px 15px 0 rgba(0,0,0,.15);
    display: block;
    margin: 20px 20px 24px;
    max-width: 100%;
    padding: 16px;
}

rdr-snackbar-message .snackbar-message {
    align-items: center;
    display: flex;
}

rdr-snackbar-message .snackbar-message__icon {
    flex-shrink: 0;
    margin-left: 4px;
    margin-right: 16px;
}

rdr-snackbar-message.rdr-cp .snackbar-message__content {
    color: #333;
}


rdr-snackbar-message .snackbar-message__content {
    font-size: .9375rem;
    letter-spacing: -.05px;
    line-height: 1.6;
}

rdr-snackbar-message .snackbar-message__btn {
    flex-shrink: 0;
    margin-left: 16px;
    width: 64px;
}

rdr-snackbar-message .snackbar-message__close {
    align-self: flex-start;
    background-image: url(/Services/images/icon-all.svg);
    background-position: -32px 0;
    background-repeat: no-repeat;
    background-size: auto 64px;
    cursor: pointer;
    display: inline-block;
    flex-shrink: 0;
    height: 16px;
    margin-left: 12px;
    vertical-align: middle;
    width: 16px;
}

.alert-icon {
    background-image: url(/Services/images/icon-all.svg);
    background-position: -24px -72px;
    background-repeat: no-repeat;
    background-size: auto 96px;
    display: inline-block;
    height: 24px;
    vertical-align: middle;
    width: 24px;
}


.ar-1-1 {
    aspect-ratio: 1 / 1;
}

.ar-3-2 {
    aspect-ratio: 3 / 2;
}

.ar-4-3 {
    aspect-ratio: 4 / 3;
}

.ar-16-9 {
    aspect-ratio: 16 / 9;
}

.ar-2-3 {
    aspect-ratio: 2 / 3;
}

.ar-3-4 {
    aspect-ratio: 3 / 4;
}

.ar-9-16 {
    aspect-ratio: 9 / 16;
}

.adv.adv-video {
    height: calc(100vw * 0.5625) !important;
}

.adv.adv-image {
    height: calc(100vw * 0.5625) !important;
}
/* 選單樣式
-------------------------------------------------- */
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.navbar-collapse {
    position: relative;
    z-index: 1000;
}

/*改變漢堡鈕*/
.navbar-toggler {
    padding: 0 !important;
    width: 45px;
    height: 45px;
    border: none !important;
}
.navbar-toggler-icon {
    width: 100%;
    height: 100%;
    background-image: url('../images/menu.png') !important;
}

/*banner
-------------------------------------------------- */
.page-banner {
    height: 170px;
    background-image: url('../images/banner.png');
    background-position: center;
    background-size: cover;

    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner-title {
    color: #fff;
    font-size: 32px;
    line-height: 1.5;
    font-weight: 500;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*footer
-------------------------------------------------- */
.footer {
    border-top: 30px solid #e50013;
    background-color: #FFF;
    margin-bottom: 1rem;
}

.footer-logo {
    margin: 1rem 0;
    flex: 0 0 auto;
}

    .footer-logo img {
    }

.footer-info {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

.footer-icon {
    margin-right: 5px;
}

    .footer-icon img {
        width: 20px;
    }

.footer-business-time {
    margin-left: 5px;
}

.footer-notice {
    margin-top: 8px;
}

.footer-copyright {
    margin-top: 8px;
}

/*服務項目表格
-------------------------------------------------- */
.table-scroll {
    width: 100%;
    max-width: 900px;
    margin: 10px auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.project-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
}

    .project-table th,
    .project-table td {
        padding: 10px 12px;
        border: 1px solid #fff;
        vertical-align: middle;
    }

    .project-table thead th {
        background-color: #009fd9;
        color: #fff;
        text-align: center;
        font-weight: normal;
        height: 48px;
    }

    .project-table tbody tr:nth-child(odd) td {
        background-color: #ebf6fc;
    }

    .project-table tbody tr:nth-child(even) td {
        background-color: #fdf0f3;
    }

    /* 三欄寬度 */
    .project-table th:nth-child(1),
    .project-table td:nth-child(1) {
        width: 23%;
        text-align: center;
    }

    .project-table th:nth-child(2),
    .project-table td:nth-child(2) {
        width: 31%;
    }

    .project-table th:nth-child(3),
    .project-table td:nth-child(3) {
        width: 46%;
    }

/*金保法專區
-------------------------------------------------- */
.rules-card {
    border: 2px solid #b3b3b3;
    border-radius: 10px;
}
.rules-card-body {
    margin: 15px 10px;
    margin-bottom: 0px;
}

.rules-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    column-gap: 70px;
    row-gap: 6px;
    margin: 15px 10px;
}
    .rules-menu a {
        color: #000;
        text-decoration: underline;
        display: block;
    }

.rules-card h3 {
    font-size: 32px;
    font-weight: bold;
    color: #cd0011;
    margin-bottom: 18px;
}

.rules-card h5 {
    font-size: 24px;
    font-weight: bold;
}

.content-info {
    margin: 8px 0 14px;
    display: inline-block;
}

.content-info-row {
    min-height: 30px;
    box-sizing: border-box;
    padding: 2px 6px;
    background-color: #ffe9e8;
    font-size: 18px;
    line-height: 1.5;
    border-bottom: 5px solid #ffffff;
}

.content-link {
    color: #0e4daa;
    text-decoration: underline;
}

.rate-table {
    width: 380px;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 15px;
}

    .rate-table tr {
        border-bottom: 2px solid #b3b3b3;
    }

    .rate-table th {
        width: 62%;
        padding: 5px 8px 5px 0;
        text-align: left;
        font-weight: normal;
        white-space: nowrap;
    }

    .rate-table td {
        width: 38%;
        padding: 5px 0 5px 8px;
        text-align: left;
        white-space: nowrap;
    }

/*聯絡我們
-------------------------------------------------- */
.contact-form {
}

/* 每一個欄位 */
.form-group {
    margin-bottom: 20px;
}

    /* Label */
    .form-group label,
    .captcha-row > label {
        display: block;
        margin-bottom: 4px;
    }

/* 必填 */
.required {
    color: #cd0011;
    margin-left: 2px;
}

/* 輸入框 */
.form-control-custom {
    width: 50%;
    padding: 2px 5px;
    border: 0.5px solid #ccc;
    border-radius: 0;
    box-shadow: none;
}

    /* Bootstrap form-control focus */
    .form-control-custom:focus {
        border-color: #999;
        box-shadow: none;
    }

/* Select */
select.form-control-custom {
    background-color: #fff;
}

/* 內容 */
.form-group-content {
    margin-top: 14px;
}

.content-textarea {
    width: 100%;
    height: 127px;
    resize: none;
    padding: 5px;
}


/* =========================
   驗證碼
   ========================= */

.captcha-row {
    margin-top: 8px;
}

.captcha-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.captcha-input {
    width: 200px;
}

.captcha-image {
    width: 80px;
    height: 34px;
    object-fit: contain;
}

.captcha-refresh {
    width: 100px;
    height: 35px;
    padding: 0;
    border-radius: 5px;
    background-color: #cd0011;
    border: 1px solid #cd0011;
    color: #fff;
}

    .captcha-refresh:focus {
        background-color: #cd0011;
        border-color: #cd0011;
        color: #fff;
    }

    .captcha-refresh:hover {
        background-color: #8d000c;
        border-color: #8d000c;
        color: #fff;
    }


/* =========================
   按鈕
   ========================= */

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 38px;
}

.form-button {
    width: 100px;
    height: 35px;
    padding: 0;
    border-radius: 5px;
    border: 1px solid #cd0011;
    background-color: #cd0011;
    color: #fff;
}

    .form-button:focus {
        background-color: #cd0011;
        border-color: #cd0011;
        color: #fff;
    }

    .form-button:hover {
        background-color: #8d000c;
        border-color: #8d000c;
        color: #fff;
    }

/*X-Small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 1000;
        box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    }

    .rules-menu {
        margin: 0px;
    }

    .rules-card-body {
        margin: 0px;
    }
}

/*// Small devices (landscape phones, less than 768px)*/
@media (max-width: 767.98px) {
    .contact-form {
        max-width: 100%;
    }

    .form-control-custom {
        width: 100%;
    }

    .content-textarea {
        width: 100%;
    }

    .captcha-content {
        flex-wrap: wrap;
    }

    .captcha-input {
        width: 130px;
    }

    .content-info {
        margin: 6px 0 10px;
    }

    .content-info-row {
        min-height: 0;
        padding: 2px 5px;
        font-size: 16px;
        line-height: 1.5;
    }

    .rate-table {
        width: 100%;
        font-size: 16px;
    }

        .rate-table th {
            width: 55%;
            padding: 4px 6px 4px 0;
            white-space: nowrap;
        }

        .rate-table td {
            width: 45%;
            padding: 4px 0 4px 6px;
            white-space: nowrap;
        }

    .rules-menu {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
        column-gap: 0;
        row-gap: 6px;
    }

    .rules-card h3 {
        font-size: 26px;
    }

    .rules-card h5 {
        font-size: 20px;
    }

    .navbar-nav {
        font-size: 16px;
    }

    .page-banner {
        height: 145px;
    }

    .footer-logo {
        margin-bottom: 10px;
    }

    .footer-info {
        font-size: 14px;
        line-height: 1.5;
    }

    .footer-item {
        margin-bottom: 8px;
    }

    .footer-business-time {
        display: block;
        margin-left: 0;
    }

    .footer-notice {
        margin-top: 10px;
    }

    .footer-copyright {
        margin-top: 10px;
    }
}

/*// Medium devices (tablets, less than 992px)*/
@media (min-width:768px) and (max-width: 991.98px) {
}

/*// Large devices (desktops, less than 1200px)*/
@media (min-width:992px) and (max-width: 1199.98px) {
}

/*// X-Large devices (large desktops, less than 1400px)*/
@media (min-width:1200px) and (max-width: 1399.98px) {
}

/*// XX-Large*/
@media (min-width:1399.98px) {
}
