html {
    height: 100%;
}

body {
    min-height: 100%;

    margin: 0;
    padding: 0;
    font-family: 'Microsoft JhengHei', sans-serif;
    background-color: rgb(250 217 216 / 29%);
    background-image: radial-gradient(circle at 20% 50%, rgb(253 207 207 / 43%) 180px,
            transparent 81px), radial-gradient(circle at 101% 20%, rgb(253 207 207 / 37%) 120px,
            transparent 121px), radial-gradient(circle at 68% 90%, rgb(253 207 207 / 50%) 60px,
            transparent 61px);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.sign-in-page {
    background: #630637 !important;
    max-height: 73px !important;
}

/* 第一行：中文標題 */
.sign-in-page::before {
    content: "安慎健檢管理中心";
    position: absolute;
    top: 5px;
    left: 100px;
    color: white;
    font-size: 20pt;
    font-weight: bold;
    z-index: 2;
}

/* 第二行：英文標題 */
.sign-in-page::after {
    content: "Ansn Healthcare Management Center";
    position: absolute;
    top: 42px;
    color: white;
    font-size: 8pt;
    z-index: 2;
    padding-left: 142px;
}

/* 背景與 icon */
.sign-in-page::before,
.sign-in-page::after {
    background: none;
}

.sign-in-page::before {
    background-image: url('../images/ansnlogo.png');
    background-repeat: no-repeat;
    background-size: 32px 32px;
    background-position: left center;
    padding-left: 40px;
}

.web-form-box {
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* =====  風格互斥按鈕 CSS ===== */

.dual-button-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}


.dual-btn {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #fff;
    /*border: 2px solid #f58c90;*/
    color: #630637;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.sign-in-from {
    padding: 0;
    width: 100%;
}

/* hover 效果 */
.dual-btn:hover {
    background-color: #fde8e8;
    color: #630637;
    text-decoration: none;
}

/* 當前頁面 (active) 樣式 */
.dual-btn.active {
    background-color: #f58c90;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    cursor: default;
    pointer-events: none;
    /* 禁止點擊自己 */
}

@media (max-width: 576px) {
    .sign-in-page::before {
        left: 10px;
        font-size: 16pt;
        background-size: 32px 32px;
    }

    .sign-in-page::after {
        padding-left: 52px;
        top: 38px;
    }
}

.iq-top-navbar {
    background: #630637;
}

.iq-sidebar-logo a span {
    color: #ffffff;
}

.wrapper-menu .line-menu {
    background-color: #ffffff;
}

.navbar-list {
    background: #630637;
}

.navbar-list li a.bg-primary {
    background: unset !important;
}

.iq-sidebar .iq-sidebar-logo {
    background: #630637;
}

.iq-sidebar-logo {
    padding-bottom: 15px;
}

.iq-sidebar #sidebar-scrollbar {
    margin-top: unset !important;
}

.iq-card {
    background: unset !important;
    border-radius: unset !important;
    -webkit-border-radius: unset !important;
    -moz-border-radius: unset !important;
    box-shadow: unset !important;
}

.iqcardv2 {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}

.iqcardv3 {
    background: #fff;
    padding: 15px;

}

.form-control {
    border-radius: 15px;
}

input.form-control:focus {
    border: #630637 1px solid;
    background: #ffffff;
}

.tablestyle_ thead {
    background: #8F73B0;
    color: #fff;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-text {
    font-weight: bold;
    color: #630637 !important;
}

.toggle-btn {
    text-decoration: none;
    font-size: 16px;
    color: #666;
    /* 可加入 padding/margin 作微調 */
}

/***多選***/

.iq-header-title {
    color: #630637 !important;
    font-weight: bold;
}

.iq-header-title .text-danger {
    color: #630637 !important;
    font-weight: 500;
}

.iq-card-body {
    padding: 0 !important;
}

.iq-card-body table {
    border-collapse: collapse;
}

.iq-card-body table thead {
    background: #8F73B0;
    color: #fff;
}

.iq-card-body table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
    /* 淺灰 */
}

.iq-card-body table tbody tr:nth-child(even) {
    background-color: #ffffff;
    /* 白色 */
}

.iq-card-body table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
    /* 淺灰 */
}

.iq-card-body table tbody tr:nth-child(even) {
    background-color: #ffffff;
    /* 白色 */
}

.iq-card-body .list-group-item {
    padding: unset;
    background-color: unset;
    border: unset;
}

.nav-tabs {
    border-bottom: 2px solid #630637;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    border-bottom: 2px solid #630637 !important;
}

.nav-tabs .nav-link.active {
    color: #ffffff !important;
    background-color: #630637;
}

.wizard ul li {
    float: unset !important;
}

.wizard.wizard-wired {
    background: #ffffff3d !important;
    border-bottom: unset !important;
}

.wizard.wizard-wired ul li.active {
    background: unset !important;
}

.wizard.wizard-wired ul li {
    background: unset !important;
}

.wizard ul li .step {
    border: 2px solid #9a9898;
    color: #9a9898;
}

.wizard.wizard-wired ul li.active>span {
    color: #630637 !important;
}

.wizard.wizard-wired ul li span {
    color: #000;
}

.wizard ul li.active:before {
    background-color: #630637 !important;
}

.wizard ul li.active .step {
    border-color: #630637 !important;
}

.card-title {
    color: #630637 !important;
    font-weight: bold;
}

.iq-card .iq-card-header {
    padding-left: 0 !important;
    border-bottom: 1px solid #630637 !important;
}

.questionList>li {
    background-color: #ffffff !important;
    border: 1px solid #630637 !important;
    margin-bottom: 10px !important;
    padding: 10px !important;
    border-radius: 15px !important;
}

.ABVSFORM .form-control {
    border-radius: unset !important;
    background-color: #ffffff !important;
}

.ABVSFORM .input-group {
    margin-bottom: 10px !important;
}

.iq-sidebar {
    width: 360px;
}

body.sidebar-main .iq-sidebar:hover,
body.sidebar-main .iq-sidebar:hover .iq-sidebar-logo {
    width: 360px;
}

.content-page {
    margin-left: 360px;
}

.support-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.support-link a {
    color: #630637;
    text-decoration: underline;
    cursor: pointer;
}

/* Popup 背景 */
.custom-popup {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Popup 內容區 */
.popup-content {
    background-color: #f6fdf9;
    margin: 15% auto;
    padding: 20px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    color: #333;
}

.popup-content-text {
    margin-bottom: 20px;
}

/* 標題 */
.popup-content h3 {
    margin-top: 0;
    color: #630637;
    font-size: 18pt;
    font-weight: 900;
    text-align: left;
    border-bottom: 1px solid;
    margin-bottom: 20px;
}

/* 關閉 X */
.close-popup {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

/* 按鈕 */
.popup-content a {
    margin-top: 20px;
    padding: 10px 24px;
    background-color: #630637;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary,
.badge-primary {
    border-color: #f58c90 !important;
    background: #f58c90 !important;
    background-color: #f58c90;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.bg-color1 {
    background: #e9edf4;
    border: 1px dashed;
    border-color: #630637 !important;
}

@media (max-width: 1299px) {

    .content-page,
    body.sidebar-main .content-page {
        margin-left: 0;
        padding: 100px 0 0;
    }

    .iq-sidebar {
        left: -360px;
    }

    body.sidebar-main .iq-sidebar {
        width: 360px;
        left: 0;
    }
}

@media (max-width: 767px) {
    .bg-color1 {
        margin-bottom: 20px;
    }
}

@media (max-width: 479px) {
    .iq-sidebar-logo a span {
        display: block;
        font-size: 16pt;
    }
}

@media (max-width: 380px) {
    .iq-sidebar-logo a span {
        display: none;
    }

    .iq-sidebar-logo {
        width: unset !important;
    }
}

/* 左側整體容器樣式 */
.welcome-box {
    padding: 40px;
    text-align: left;
    margin: 200px auto 0;
    color: #630637;
}

.welcome-title {
    font-size: 28pt;
    margin-bottom: 10px;
    font-weight: 600;
}

.welcome-brand {
    font-size: 60pt;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* RWD 手機版文字置中顯示 */
@media (max-width: 767.98px) {
    .welcome-box {
        text-align: center;
        padding: 0;
        margin-bottom: -82px;
        margin-top: 90px;
    }

    .welcome-brand {
        font-size: 24px;
    }

    .welcome-title {
        font-size: 16px;
    }

    .welcome-sub {
        font-size: 14px;
    }
}

.package-option {
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.package-option:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.onborder-primary {
    border: 2px dashed #630637 !important;
}

/*.check-plan-scroll-box {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}*/

/* 主標題：膠囊 */
.plan-title {
    display: inline-block;
    background-color: #9b6dc2;
    color: white;
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 16px;
}

/* 詳細說明 */
.plan-detail {
    display: block;
    color: #6a549d;
    margin-top: 15px;
    text-decoration: underline;
    font-size: 14px;
}

/* 價格區塊 */
.plan-price {
    margin-top: 12px;
    font-size: 16px;
    color: #333;
}

.plan-price span {
    font-weight: bold;
}

/* 選擇按鈕 */
.select-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background-color: #f88384;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.select-btn:hover {
    background-color: #e06263;
}

.questionList-title {
    font-weight: bold;
    color: #630637 !important;
    margin-bottom: 15px;
}

.questionList>li {
    background-color: #ffffff !important;
    border: 1px solid #630637 !important;
    margin-bottom: 10px !important;
    padding: 10px !important;
    border-radius: 15px !important;
}

/* 固定高度只限於桌面版 */
@media (min-width: 992px) {
    .check-plan-scroll-box {
        max-height: 100%;
        overflow-y: auto;
    }
}

/*@media (max-width: 992px) {
    .profileform {
        display: none;
    }
}*/

/* 卡片整體 */
.health-check-card {
    background-color: #fdf7fb;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.plan-detail {
    font-size: 12px;
    margin-bottom: 8px;
    color: #6a549d;
}

.plan-price {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.select-btn {
    align-self: flex-end;
}

#planContainer .s-title {
    background: #630637;
    padding: 5px;
    color: #fff;
}


.ansn-logo .logo-text-zh {
    font-size: 14pt;
    line-height: 0.8;
    font-size: 20pt;
    font-weight: bold;
}

.ansn-logo .logo-text-en {
    font-size: 8pt;
    line-height: 1;
    margin-left: 0px;
    font-weight: unset;
}

.iq-sidebar-logo {
    padding-top: 16px;
}

.iq-sidebar-logo img {
    height: 30px;
}

body.sidebar-main .iq-sidebar-logo {
    height: 75px;
}


.pd10 {
    padding: 10px;
}

.highlight-effect {
    background-color: #992061 !important;
    /* 淡黃色背景 */
    border: 2px solid #630637 !important;
    /* 黃色邊框 */
    transition: all 0.3s ease;
    color: white !important;
}

@media (max-width: 480px) {

    .ansn-logo .logo-text-zh,
    .ansn-logo .logo-text-en {
        display: none;
    }

    .iq-sidebar-logo img {
        height: 45px;
    }

    body.sidebar-main .iq-sidebar-logo {
        height: unset;
    }

}