@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap");

:root {
    --bs-font-sans-serif: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-body-font-family: var(--bs-font-sans-serif);
    font-family: var(--bs-font-sans-serif);
}

.background-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    text-align: center;
    color: #fff;
    font-size: 24px;
    line-height: 100vh;
}

/* 預約投保頁面樣式 */

/* 流程步驟線圖 */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

    .progress-steps::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 10%;
        right: 10%;
        height: 2px;
        background-color: #dee2e6;
        z-index: 0;
    }

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #6c757d;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.step.active .step-number {
    background-color: #0d6efd;
    color: white;
}

.step.completed .step-number {
    background-color: #198754;
    color: white;
}

.step-name {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
}

.step.active .step-name {
    color: #0d6efd;
    font-weight: 600;
}

/* 表單區塊 */
.form-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

/* 預覽頁面樣式 */
.preview-section {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

    .preview-section h4 {
        font-size: 1.125rem;
        font-weight: 600;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #0d6efd;
    }

.preview-item {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

    .preview-item:last-child {
        border-bottom: none;
    }

.preview-label {
    flex: 0 0 150px;
    font-weight: 500;
    color: #6c757d;
}

.preview-value {
    flex: 1;
    color: #212529;
}

/* 完成頁面樣式 */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d1e7dd;
    border-radius: 50%;
    font-size: 3rem;
    color: #198754;
}

.booking-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

/* 按鈕樣式 */
.btn-group-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* 警示訊息 */
.alert-custom {
    border-left: 4px solid #0d6efd;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .progress-steps {
        font-size: 0.875rem;
    }

    .step-number {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 0.875rem;
    }

    .preview-item {
        flex-direction: column;
    }

    .preview-label {
        flex: none;
        margin-bottom: 0.25rem;
    }

    .booking-number {
        font-size: 1.5rem;
    }
}


/*
    CSS Start ------------------------------
*/
.page-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    background: linear-gradient( 0.03deg, #D0D0D8 0.02%, #FEFBFB 99.98% );
}

.other-page {
    background: #F0F0F0;
}


/* === === === ===
    Content area - for Shared
    === === === ===  */
.bg-section {
    width: 100%;
    height: auto;
    justify-content: center;

    min-width:390px;
}

.start-logo {
    height: 50px;
    display: block;
    margin: 28px auto 0;
}

.start-intro {
    width: 253px;
    height: 26px;
    margin: 23px auto 0;
    white-space: nowrap;
    font-weight: 700;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #000000;
}

.start-content {
    max-width: 280px;
    height: 232px;
    margin: 44px auto 0;
    display: block;
    box-shadow: 0px 5px 10px rgba(0,0,0,0,0.25);
}

.start-btn {
    width: 220px;
    height: 50px;
    margin: 43px auto 0;
    display: block;
    background-color: #E50012;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    max-width: 80%;
    animation-duration: 0ms;
    padding: 0.75rem;
}

    .start-btn:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #e71a04;
    }

.start-note {
    width: 362px;
    min-height: 80px;
    margin: 82px auto 0;
    padding-bottom: 1.5rem;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.05em;
    color: #000000;
    text-align: left;
}

.start-note-title {
    font-weight: 500;
}

.start-note-text {
    font-weight: 400;
}

/* === === === ===
    Footer area
    === === === ===  */
/* footer 背景 */
.ft-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #5f5f5f;
    color: #ffffff;
    font-size: 12px;    
}

.ft-inner {
    width: min(390px,100%);
    margin: 0 auto;
    padding: 12px 14px 0 14px;
    box-sizing: border-box;
}

/* footer 標題 */
.ft-title {
    display: flex;
    align-items: center;
    justify-items: center;
    margin: 0 auto 6px;
    width: 75%;
}

    .ft-title .line {
        flex: 1;
        height: 2px;
        background-color: #dcdcdc;
        position: relative;
    }

        /* footer title 白色圓點 */
        .ft-title .line:first-child::before,
        .ft-title .line:last-child::after {
            content: "";
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 6px;
            height: 6px;
            background-color: #ffffff;
            border-radius: 50%;
        }

        .ft-title .line:first-child::before {
            left: 0;
        }

        .ft-title .line:last-child::after {
            right: 0;
        }

    .ft-title .title-text {
        margin: 0 6px;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }

/* footer 內容 List Item */
.ft-list {
    width: 100%;
}

.ft-item {
    display: flex;
    align-items: center;
    margin: 6px 0;
    font-size: 12px;
    white-space: nowrap;
    padding: 1px 0;
}

    .ft-item .name {
        width: 32%;
    }

    .ft-item .time {
        width: 38%;
    }

    .ft-item .phone {
        width: 30%;
    }


.ft-copyright-wrapper {
    width: 100%;
    background-color: #4a4a4a;
    margin-top: auto;
}

/* footer copyright inner */
.ft-copyright-inner {
    width: min(390px,100%);
    margin: 0 auto;
    padding: 6px 16px;
    box-sizing: border-box;
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}


/* === === === ===
    Header area
    === === === ===  */

.header-bg {
    width: 100%;
    background-color: #E71A04;
    box-shadow: 0 4px 4px rgba(0,0,0,25);    
}

/* 負責任何寬度 致中*/
.header-inner {
    height: 60px;
}

.header-content {
    width: 100%;
    max-width: 390px;
    height: 60px;
    padding-left: 5px;
    padding-right: 0;
    justify-content: flex-start;
}

.header-logo img {
    height: 37px;
    object-fit: contain;
    margin-right: 10px;
    flex-shrink: 0;
}

.header-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #fff;
    white-space: nowrap;
    /**/
    width: 147px;
    height: 22px;
    display: flex;
    align-items: center;
}

.header-title-link, .header-title-link:hover {
    text-decoration: none;
    color: inherit;
    color: #fff;
}
    /* === === === ===
    Content area - for Agreement
    === === === ===  */
    /*主體Set*/
    .agreement-form {
        min-width: 390px;
    }

.agreement-title {
    width: 90px;
    min-height: 32px;
    margin: 16px auto 0px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.75;
    letter-spacing: 0;
    color: #020000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agreement-box {
    width: 92%;
    max-height: 410px;
    margin: 7px auto 0px;
    padding: 10px;
    line-height: 16px;
    font-weight: 400;
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0;
    vertical-align: middle;
    border-radius: 12px;
    background-color: white;
    overflow-y: scroll;
    box-shadow: inset 0 0 0 1px #e0e0e0;
}

    .agreement-box h4,
    .agreement-box h5,
    .agreement-box p,
    .agreement-box li {
        font-size: inherit;
    }

/*Agreement button*/
.action-area {
    margin: 21px auto 5.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agree-btn {
    width: 358px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #9C9C9C;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px; /*checkbox 靠左距離*/
    padding-right: 15px; /*arrow 靠右距離*/
    background: #FFFFFF;
    color: #C4C4C4;
    cursor: not-allowed;
    box-shadow: inset 0 0 0 1px #E0E0E0;
    transition: all .25s ease;
    position: relative;
}

.agree-check-wrapper {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
}

    .agree-check-wrapper .agree-check {
        width: 100%;
        height: 100%;
        border-radius: 4px;
        appearance: none;
        -webkit-appearance: none;
        border: 2px solid #9C9C9C;
        background: #9C9C9C;
        cursor: not-allowed;
        position: relative;
    }

        .agree-check-wrapper .agree-check:checked {
            background: #FFFFFF;
        }

            /*勾選製作*/
            .agree-check-wrapper .agree-check:checked::before {
                content: "";
                position: absolute;
                left: 4px;
                top: 1px;
                width: 8px;
                height: 12px;
                border-right: 2px solid #E60000;
                border-bottom: 2px solid #E60000;
                transform: rotate(45deg);
            }

/* btn Enabled 狀態 ; PS:同時有 .agree-btn 和 .enabled 類別, 另外覆蓋 前面 .agree-btn 屬性 */
.agree-btn.enabled {
    background: linear-gradient( 90deg, /*由左至右的漸層*/
    #E60000 0%, /*深紅*/
    #FF3D00 55%, /*亮橘紅*/
    #FF6A00 100%); /*橘色*/
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: none;
}

    /* btn Enabled 狀態/check 改變背景色*/
    .agree-btn.enabled .agree-check {
        background: #F6F4F2;
        border-color: #F6F4F2;
        cursor: pointer;
    }

/* but 文字 */
.agree-btn .agree-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

/* Arrow(靠右) */
.agree-btn .arrow {
    margin-left: auto;
}

.agree-btn .bi-arrow-right-short {
    font-size: 32px;
    line-height: 1;
    display: block;
    /* color:#FFFFFF;*/
    color: #AFAFAF;
    transform: scaleX(1.1) scaleY(1.0);
}

.agree-btn.enabled .bi-arrow-right-short {
    color: #FFFFFF;
}

/* === === === ===
    Content area - for form
    === === === ===  */

.form-layout-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 390px;

    margin-top:-1px;
}

.form-stepper-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 390px;
    position:relative;
}

    .form-stepper-wrapper::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg,#E71A04 0%,#FF7700 100%);
        z-index: 10;
    }

.stepper-container {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    height: 90px;
    background-color: #FFFFFF;
    position: relative;
    overflow: hidden;
    /*border-bottom: 1px solid #E71A04;*/
    flex-shrink: 0;
}

.stepper-line {
    width: 256px;
    height: 1px;
    background-color: #E71A04;
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.stepper-inner {
    width: 350px;
    height: 53px;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .step-item:nth-child(1) {
        width: 72px;
    }

    .step-item:nth-child(2) {
        width: 90px;
    }

    .step-item:nth-child(3) {
        width: 90px;
    }

.step-circle {
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    background-color: #E71A04;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: none;
    line-height: 1;
}

    .step-circle span {
        transform: translateY(-0.5px);
    }

.step-text {
    color: #000;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

/*內容*/
.content-container {
    width: 100%;
    max-width: 390px;
    padding: 0 16px 24px;
    box-sizing: border-box;
}

.section-title-row {
    height: 52px;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100%+32px);
    padding-left: 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

    .section-title-row::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg,#E71A04 0%,#FF7700 100%);
    }

    .section-title-row .title-text {
        font-weight: 600;
        font-size: 18px;
        line-height: 20px;
        background: linear-gradient(90deg,#E71A04 0%,#FF7700 100%);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.75;
    color: rgba(2,0,0,0.6);
    margin-bottom: 4px;
}

.toggle-wrapper {
    width: 100%;
    height: 48px;
}

.toggle-wrapper-dark {
    width: 100%;
    height: 100%;
    min-height: 32px;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    gap: 8px;
    box-sizing: border-box;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border-radius: 6px;
    border: 1px solid rgb(200, 200, 200);
    font-weight: 700;
    font-size: 16px;
    color: rgb(2,0,0,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toggle-btn.readonly-bg {
        pointer-events: none;
        cursor: not-allowed;
        color: #C4C4C4;
    }

    .toggle-btn.active {
        border: none;
        background-color: #F48930;
        color: #FFFFFF;
    }

        .toggle-btn.active.readonly-bg {
            pointer-events: none;
            background-color: #F0F0F0;
            color: #1a1919;
            cursor: not-allowed;
        }

    .toggle-btn:disabled {
        pointer-events: none;
        color: #A1A1A1;
        cursor: not-allowed;
    }

    .toggle-btn.active:disabled {
        pointer-events: none;
        background-color: #F0F0F0;
        color: #A1A1A1;
        cursor: not-allowed;
    }

.tab-content-area {
    margin-top: 0;
}

.insurance-card, .insurance-data-card {
    width: 100%;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px 16px 18px;
    margin-top: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.insurance-data-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.insurance-data-card-small {
    width: 100%;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 8px 16px;
    box-sizing: border-box;
    margin-bottom: 24px;
}

/*日期時間*/
.datetime-picker-group {
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.picker-row {
    display: flex;
    background-color: #fff;
}

    .picker-row:first-child {
        border-bottom: 1px solid #D0D0D0;
    }

.picker-col {
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.date-col {
    flex: 0 0 162.5px;
    border-right: 1px solid #D0D0D0;
}

.time-col {
    flex: 1;
    justify-content: center;
    min-width: 0;
}


.time-select-container {
    position: relative;
    width: 100%;
}

.custom-time-select {
    /*移除瀏覽器預設下拉箭頭*/
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /*移除Bootstrap form-select 預設背景(V箭頭)*/
    background-image: none !important;
    /*右邊留白, 避免蓋住icon*/
    padding-right: 2.5rem;
    cursor: pointer;
    border: none;
    background-color: transparent;

    /*文字垂直置中*/
    height:100%;
    line-height:1.5;
    padding-top:0;
    padding-bottom:0;
    display:flex;
    align-items:center;
}

    .custom-time-select:focus {
        box-shadow: none;
        outline: none;
    }
    .custom-time-select.readonly-bg {
        pointer-events: none;
        background-color: #F0F0F0;
        color: #1a1919;
        cursor: not-allowed;
    }

.time-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none; /* 重要: 讓滑鼠點擊穿透 Icon, 觸發Select*/
    color: #6c757d;
    font-size: 1.2rem;
    z-index: 5;
}

/*--Disabled Status*/
.time-select-container.disabled {
    cursor: not-allowed !important;
}

    .time-select-container.disabled .custom-time-select {
        background-color: #F0F0F0 !important;
        color: #A1A1A1 !important;
        pointer-events: none;
    }

    .time-select-container.disabled .time-icon {
        display:none;
    }

    .custom-date-input {
        width: 100%;
        border: none;
        background: transparent;
        font-size: 16px;
        font-weight: 500;
        color: #020000;
        outline: none;
        padding: 0;
        line-height: 1.75;
    }
    .custom-date-input.error {
        color: red !important;
    }

.color-a1 {
    color: #A1A1A1 !important;
}

.time-picker-container {
    position: relative;
    width: 100%;
}

.time-input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.time-display-text {
    padding: 8px 12px;
    cursor: default;
    flex-grow: 1;
    font-size: 16px;
    font-weight: 500;
    color: #020000;
    outline: none;
    line-height: 1.75;
}

.time-trigger-btn {
    background: transparent;
    border: none;
    width: 17.5px;
    height: 17.5px;
    margin: 8px 12px;
    cursor: pointer;
    color: #000000;
    display: flex;
    align-items: center;
}

    .time-trigger-btn i {
        pointer-events: none;
    }

/*disable*/
.time-picker-container.disabled {
    background-color: #F0F0F0;
    cursor: default;
    pointer-events: none;
}

    .time-picker-container.disabled .time-display-text {
        color: #A1A1A1 !important;
    }

    .time-picker-container.disabled .time-trigger-btn {
        display: none !important;
    }


/*備註*/
.note-section {
    margin-bottom: 24px;
}

    .note-section p, .note-section-small p {
        margin: 0;
        font-weight: 700;
        font-size: 12px;
        line-height: 1.75;
        color: rgba(2,0,0,0.6);
    }

.note-section-small p {
    margin-top: 4px;
    line-height: 1.5;
}

.product-name-block {
    width: 100%;
    padding: 6px 0 6px 10px;
    border-left: 5px solid #346EA2;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.75;
    color: #000000;
}

.coverage-details-group {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-item-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.item-label-blue {
    font-weight: 700;
    font-size: 14px;
    color: #346EA2;
    line-height: 1.75;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

    .select-wrapper .toggle-arrow {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        font-size: 16px;
        color: #000;
        background-color: transparent;
    }

.custom-select {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    line-height: 1.75;
    background-color: #fff;
    border: 1px solid #C8C8C8;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    /*隱藏原本箭頭*/
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

    .custom-select:disabled {
        pointer-events:none;
        background-color: #F0F0F0;
        color: #A1A1A1;
        cursor: not-allowed;
    }

    .custom-select.readonly-bg {
        pointer-events: none;
        background-color: #F0F0F0;
        color: #1a1919;
        cursor: not-allowed;
    }

.section-content {
    justify-content: space-between;
    display: flex;
    padding: 0px 0px 10px 0px;
    border-bottom: 1px solid #E71A04;
}

.section-title {
    line-height: 30px;
    font-weight: 700;
    font-size: 16px;
    color: #E71A04;
    margin-bottom: 8px;
    margin-left: 4px;
}

.section-separator-line {
    width: 100%;
    max-width: 390px;
    height: 1px;
    background-color: #E71A04;
    margin-top: 32px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.adjust-height-a10 {
    margin-top: 10px;
}

.custom-input {
    max-width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1px solid #C8C8C8;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    box-sizing: border-box;
    outline: none;
    background-color: white; /* 手機排版 */
}

    .custom-input:read-only {
        pointer-events: none;
        background-color: #F0F0F0;
        color: #1a1919;
        cursor: not-allowed;
    }

    .custom-input:disabled {
        pointer-events: none;
        background-color: #F0F0F0;
        color: #A1A1A1;
        cursor: not-allowed;
        opacity: 1 !important; /* 手機排版 */
        -webkit-text-fill-color: #A1A1A1; /* 手機排版 */
    }
    .custom-input::placeholder {
        color: #C8C8C8;
    }

.span-icon {
    position: absolute;
    right: 10px;
    top: 67%;
    transform: translateY(-50%);
    cursor: pointer;
}
.space-between {
    justify-content: space-between;
}

.custom-btn {
    width: fit-content;
    padding: 0px 12px;
    height: 30px;
    border-radius: 20px;
    border: 1px solid #E71A04;
    background-color: #FFFFFF;
    color: #E71A04;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
}
    .custom-btn.readonly-bg {
        box-shadow: none;
        border: 1px solid #C4C4C4;
        pointer-events: none;
        color: #C4C4C4;
        cursor: default;
    }
.bg-gray {
    background-color: #F0F0F0;
    color: #A1A1A1;
}

.action-btn-group {
    display: flex;
    gap: 16px;
    align-items: center;
    width: fit-content;
}

    .action-btn-group .btn-modify-outline {
        width: 170px;
        height: 50px;
        background-color: #FFFFFF;
        border: 1px solid #346EA2;
        border-radius: 8px;
        font-weight: 500;
        font-size: 16px;
        line-height: 20px;
        letter-spacing: 0;
        color: #346EA2;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

.btn-submit-gradient {
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg,#E71A04 0%,#FF7700 100%);
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(231,26,4,0.2);
    transition: all 0.2s ease;
}

    .btn-submit-gradient.small {
        width: 170px;
    }

    /*  .btn-submit-gradient:hover {
        opacity: 0.95;
        box-shadow: 0 6px 16px rgba(231,26,4,0.4);
        transform: translateY(-1px);
    }*/
    .btn-submit-gradient .btn-text {
        font-weight: 500;
        font-size: 16px;
        line-height: 20px;
        color: #FFFFFF;
        letter-spacing: 0.5px;
    }

    .btn-submit-gradient .btn-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
    }

        .btn-submit-gradient .btn-arrow i {
            color: #FFFFFF;
            font-size: 30px;
            transform: scale(1.1);
        }



.premclac-container {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    height: 122px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

    .premclac-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg,#E71A04 0%,#FF7700 100%);
        z-index: 1;
    }

.premclac-card {
    width: 358px;
    height: 70px;
    background: #FFFFFF;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
    border-top: 1px solid #FF7700;
    border-right: 1px solid #FF7700;
    border-bottom: 1px solid #FF7700;
    border-left: 5px solid #F71A04;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-placeholder {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-left-group .label-text {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0;
    color: #000000;
}

.card-right-group {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

    .card-right-group .amount-text {
        font-weight: 700;
        font-size: 40px;
        line-height: 1.75;
        letter-spacing: 0;
    }


    .card-right-group .unit-text {
        font-weight: 700;
        font-size: 16px;
        line-height: 1.75;
    }

.anim {
    background: linear-gradient(90deg,#E71A04 0%,#FF7700 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}


/*disabled*/

fieldset[disabled] {
    cursor: not-allowed;
    pointer-events: none;
}

    fieldset[disabled] .toggle-btn.active {
        background: #D0D0D0;
        color: #020000;
    }

    fieldset[disabled] .picker-row,
    fieldset[disabled] .custom-date-input,
    fieldset[disabled] .time-display-text,
    fieldset[disabled] .custom-input:not(.bg-gray),
    fieldset[disabled] {
        background: #F0F0F0 !important;
        color: #000000 !important;
    }


    fieldset[disabled] .time-trigger-btn {
        display: none !important;
    }


    fieldset[disabled] .custom-btn {
        visibility: hidden !important;
    }


/*預約完成 --- --- --- --- --- --- */
.booked-title {
    width: 100%;
    height: 32px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.75;
    color: #020000;
    text-align: center;
    /*
    display:flex;
    justify-content:center;
    align-items:center;
*/
}

.booked-card {
    width: 326px;
    height: 376px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    background: #FFFFFF;
    position: relative;
    box-sizing: border-box;
    /*   邊框樣式*/
    border: 1px solid transparent;
    border-left-width: 5px;
    background-image: linear-gradient(#fff,#fff), linear-gradient(90deg,#E71A04 0%,#FF7700 100%);
    background-clip: padding-box,border-box;
    background-origin: padding-box,border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.icon-container {
    width: 80px;
    height: 80px;
}

.check-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.inner-content {
    width: 294px;
}

.info-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-label {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.75;
    color: #000000;
    margin-bottom: 2px;
}

.info-vlaue {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.75;
    color: #000000;
    padding-left: 12px;
}

.highlight-text {
    font-weight: 600;
}

.highlight-red {
    color: #FF0000;
    font-weight: 700;
}

.text-pre-line {
    white-space: pre-line;
}

.premium-box {
    text-align: right;
}

.premium-text {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0;
    color: #FF7700;
}

/*響應式修正 : 螢幕大於391px時切換50vw*/
@media(min-width:391px) {
    .agreement-box {
        width: 50vw;
        min-width: 359px;
    }

    .form-layout-wrapper {
        width: 50vw;
        min-width: 390px;
        max-width: 800px;
        /*margin: 0 auto;*/
        margin: -1px auto 0 auto;
    }

    .form-stepper-wrapper {
        width: 100%;
        background-color: #FFFFFF;
        display: flex;
        justify-content: center;
        margin: 0;        
    }

    .stepper-container {
        width:50vw;
        min-width:390px;
        max-width:800px;
        margin:0;
        background-color:transparent;
        position:relative;
    }


    .stepper-inner {
        width: 90%;
        /*max-width: 460px;*/
        justify-content: space-between;
    }

    .stepper-line {
        width: calc(90% - 80px);
        /*max-width: 380px;*/
    }

    .step-item {
        flex: 0 0 90px;
        width: 90px;
    }

    .content-container,    
    .premclac-container,
    .insurance-card,
    insurance-data-card,
    insurance-data-card-small {
        width: 100% !important;
        max-width: 100% !important;
    }

    .premclac-card {
        width: 92%;
    }

    .action-btn-group {
        width: 100%;
    }

        .action-btn-group .btn-modify-outline,
        .action-btn-group .btn-submit-gradient.small {
            width: auto !important;
            flex: 1;
        }

    .picker-row .date-col {
        flex: 1 !important;
        width: 50% !important;
        max-width: none !important;
    }

        .picker-row .date-col.readonly-bg {
            pointer-events: none;
            background-color: #F0F0F0;
            color: #1a1919;
            cursor: not-allowed;
        }

    .picker-row .time-col,
    .picker-row .time-select-container {
        flex: 1 !important;
        width: 50% !important;
        max-width: none !important;
    }

    .inner-content {
        width: 100% !important;
        padding: 0 16px;
        box-sizing: border-box;
    }
}
