﻿:root {
    --bg: #f5f6f8;
    --card: #ffffff;
    --border: #e3e7ed;
    --text: #1c1c1c;
    --muted: #6a6f78;
    --primary: #111111;
    --accent: #f59e0b;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', system-ui, -apple-system, sans-serif;
}

main.booking-layout {
    max-width: 1320px;
    margin: 7rem auto 72px;
    padding: 0 16px;
}

.booking-header {
    text-align: center;
    margin-bottom: 12px;
}

    .booking-header .logo {
        width: 13rem;
        margin: 0 auto 6px;
    }

.title-block h1 {
    font-size: 30px;
    margin: 2px 0 6px;
}

.subtitle {
    letter-spacing: 1px;
    color: #000;
    font-weight: 700;
    font-family: 'Pano Bold';
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

.step-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    display: none;
    flex-direction: column;
    gap: 16px;
}

    .panel.is-active {
        display: flex;
    }

/* 規格卡片專用樣式 */
.spec-style {
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

/* 標題左側黑線 */
.spec-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    position: relative;
}

    .spec-title::before {
        content: "";
        width: 4px;
        height: 18px;
        background: #000;
        display: inline-block;
        margin-right: 8px;
        vertical-align: middle;
    }

.spec-label {
    font-weight: 700;
    color: #000;
}

.spec-subtitle {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 6px;
    font-weight: 700;
}

.spec-desc {
    margin: 0 0 12px;
    line-height: 1.65;
    color: #333;
}

/* 讓整個區塊更像規格表 */
.vehicle-card.spec-style {
    display: block !important;
}

/* 卡片基本容器 */
.spec-collapsible {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden; /* 確保圓角不被切掉 */
    background: #fff;
    transition: all 0.3s ease;
}

/* 點擊頭部樣式 */
.spec-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent; /* 預留線條空間 */
    transition: background-color 0.2s;
}

    .spec-header:hover {
        background-color: #e9ecef;
    }

    .spec-header .header-title {
        font-weight: bold;
        font-size: 1.1rem;
        color: #333;
    }

        .spec-header .header-title small {
            font-weight: normal;
            font-size: 0.85rem;
            color: #666;
            margin-left: 8px;
        }

/* 箭頭圖示動畫 */
.toggle-icon {
    transition: transform 0.3s ease;
}

/* 內容區域：預設收合 */
.spec-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out; /* 滑動動畫 */
    opacity: 0; /* 讓內容淡入淡出 */
}

.vehicle-info {
    padding: 20px; /* Padding 放在裡面，避免影響高度計算 */
}

/* --- 展開狀態 (透過 JS 加入這個 class) --- */
.spec-collapsible.is-active .spec-header {
    border-bottom: 1px solid #ddd; /* 展開時顯示分隔線 */
    background-color: #fff;
}

.spec-collapsible.is-active .toggle-icon {
    transform: rotate(180deg); /* 箭頭轉向 */
}

.spec-collapsible.is-active .spec-body {
    max-height: 1000px; /* 設定一個足夠大的高度，讓它能滑動展開 */
    opacity: 1;
}

.text-orange {
    color: #ff7a00;
}


.servicecharge-card,
.plan-card,
.date-card,
.location-card,
.addon-card,
.discount-card {
    padding: 20px 22px;
}

.card-head {
    font-weight: 800;
    margin-bottom: 12px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
    gap: 10px;
}

.plan-tile {
    display: flex;
    grid-template-columns: auto 1fr auto;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-direction: column;
}

    .plan-tile input {
        width: 16px;
        height: 16px;
        margin: auto;
    }

.plan-name {
    font-weight: 800;
}

.plan-meta {
    color: var(--muted);
    font-size: 13px;
}

.plan-price {
    font-weight: 800;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.mini-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fafbfc;
}

.mini-head {
    font-weight: 700;
    margin-bottom: 6px;
}

    .mini-head p {
        color: rgb(253 138 42) !important;
    }

.mini-body input,
.mini-body select {
    width: 100%;
}

.servicecharge-grid,
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 12px;
}

.servicecharge-field {
    font-size: 14px;
}

.addon-card .price-table {
    margin-top: 6px;
}

.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}

.addon-tile {
    /*display: grid;*/
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    /*border: 1px solid var(--border);*/
    border-radius: 12px;
    background: #fff;
}

.addon-check input {
    width: 16px;
    height: 16px;
    margin-top: 6px;
}

.addon-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.addon-desc {
    color: var(--muted);
    font-size: 13px;
}

.addon-price {
    font-weight: 800;
    text-align: right;
}

.mileage-options {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-direction: row;
}

.mileage-select {
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid #d6d6d6;
}

.mileage-breakdown {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px;
}

    .mileage-breakdown li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 700;
    }

        .mileage-breakdown li.em {
            /*            background: #0f172a;
            color: #fff;
            border-color: #0f172a;*/
        }

.mileage-note {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.water-options {
    margin-top: 12px;
    padding: 16px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #f9fafb;
}

.water-note {
    margin: 8px 0 0;
}

.price-table.compact th,
.price-table.compact td {
    padding: 8px 10px;
}

.table-block {
    margin-bottom: 16px;
}

.table-head {
    font-weight: 800;
    margin-bottom: 8px;
    color: #000;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .price-table th,
    .price-table td {
        border: 1px solid #d7dce3;
        padding: 10px 12px;
    }

    .price-table th {
        background: #f5f6f8;
        text-align: left;
        font-weight: 700;
    }

.tag {
    background: #fef4de;
    color: #c37900;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    margin-left: 6px;
}

.note {
    background: #fef9ee;
    color: #c37900;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
}

.form-card .form-grid,
.form-wide .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.reminder-card {
    padding: 20px 22px;
}

.reminder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 12px;
}

.reminder-note {
    margin-top: 8px;
}


.field {
    display: flex;
    flex-direction: row;
    gap: 6px;
    font-size: 14px;
    align-items: center;
    width: 50%;
}

    .field input,
    .field select,
    .bank-box textarea {
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: #f9fafb;
        font-size: 14px;
    }

.plan-select,
.addon-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.plan {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .plan input {
        width: 16px;
        height: 16px;
    }

.plan-title {
    font-weight: 700;
}

.plan-desc {
    color: var(--muted);
    font-size: 13px;
}

.addon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    gap: 10px;
}

    .addon input {
        width: 16px;
        height: 16px;
    }

.addon-title {
    font-weight: 700;
}

.addon-desc {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.addon-price {
    font-weight: 700;
}

.summary-card {
    margin-top: 12px;
    border: 1px solid var(--border);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.highlight {
    color: var(--accent);
    font-weight: 800;
}

.summary-card dl {
    margin: 12px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    /*padding: 6px 0;*/
}

    .summary-row.total {
        border-top: 1px solid var(--border);
        font-weight: 800;
    }

.dt-1 {
    color: #000 !important;
}

.dt-2 {
    color: #6c737b !important;
    font-style: italic;
}

.summary-row dt {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 700;
}

    .btn.primary {
        background: var(--primary);
        color: #fff;
    }

    .btn.ghost {
        background: #e5e7eb;
        color: var(--primary);
    }

.form-wide .checkbox-inline,
.notice-card .checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.order-card .order-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.summary-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
}

.summary-box {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
}


.breakdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.breakdown-toggle {
    border: none;
    background: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
}

    .breakdown-toggle:hover {
        text-decoration: underline;
    }

.breakdown-collapse.is-collapsed {
    display: none;
}


.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .breakdown-table td {
        border: 1px solid var(--border);
        padding: 8px 10px;
        border-right: 1px solid transparent;
        border-left: 1px solid transparent;
    }

        .breakdown-table td:nth-child(3) {
            text-align: right;
        }

    .breakdown-table th {
        border: 1px solid var(--border);
        padding: 8px 10px;
        background-color: #f9fafc;
        border-right: 1px solid transparent;
        border-left: 1px solid transparent;
    }

        .breakdown-table th:nth-child(3) {
            text-align: right;
        }


.summary-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .summary-list .summary-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: flex-start;
        padding-bottom: 6px;
    }

.summary-row dt {
    font-weight: 700;
}

.summary-row dd {
    margin: 0;
    text-align: right;
}

.summary-row dt .muted {
    display: block;
    font-weight: 400;
}

.summary-row.has-list {
    gap: 16px;
}

    .summary-row.has-list dd {
        width: 100%;
        text-align: left;
    }

.summary-list .summary-row.total {
    border-bottom: none;
    color: var(--accent);
    font-weight: 800;
    display: flex;
    justify-content: flex-end;
}

.addon-list {
    list-style: none;
    padding: 0;
    margin: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .addon-list li {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

.summary-total {
    font-weight: 800;
    color: var(--accent);
    margin-top: 10px;
    text-align: right;
}



.order-card ul {
    list-style: disc;
    padding-left: 18px;
    color: var(--text);
    line-height: 1.6;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .fee-table th,
    .fee-table td {
        border: 1px solid var(--border);
        padding: 8px 10px;
    }

    .fee-table th {
        background: #f9fafb;
        text-align: left;
    }

    .fee-table .total th,
    .fee-table .total td {
        background: #fff7ed;
        font-weight: 800;
        color: var(--accent);
    }

.notice-card .notice-list {
    list-style: disc;
    padding-left: 18px;
    line-height: 1.8;
    color: var(--text);
}

.payment-card .bank-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    margin-top: 12px;
}

.payment-card .w-50 {
    width: 50%;
}

.payment-card .w-100 {
    width: 100%;
}

.success-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

    .success-card .success-actions {
        display: flex;
        gap: 10px;
        margin-top: 6px;
    }

.summary-title {
    font-size: 12pt;
    font-weight: 600;
}

@media (max-width: 960px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .order-card .order-columns {
        grid-template-columns: 1fr;
    }

    .payment-card .w-50 {
        width: 100%;
    }

    .summary-sections {
        grid-template-columns: 1fr;
    }


    .step-indicator {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

.plan-text {
    height: 100%;
}


/* --- 加購區塊改版樣式 (Card Style) --- */

/* 1. 設定格狀排版 (手機雙欄，電腦四欄) */
.addon-grid-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

@media (min-width: 992px) {
    .addon-grid-display {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 2. 隱藏原本的 checkbox，但保留功能 */
.addon-hidden-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* 3. 卡片外觀設定 */
.addon-card-visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px; /* 固定高度讓它像正方形 */
    border: 1px solid #e3e7ed; /* 預設邊框色 */
    border-radius: 12px;
    padding: 16px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    height: 100%;
}

    /* 滑鼠移過去的效果 */
    .addon-card-visual:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transform: translateY(-2px);
    }

/* ★ 4. 當 Checkbox 被選取時的樣式 (變成紫色) ★ */
.addon-hidden-input:checked + .addon-card-visual {
    border-color: #fd7e14; /* 邊框變紫 */
    background-color: #f8e7d8; /* 背景變淡紫 */
    box-shadow: 0 0 0 1px #fd7e14; /* 加粗邊框感 */
}

/* 內容排版 */
.ac-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* 保留 addon-title 這個 class 讓 JS 抓取名稱 */
.ac-title.addon-title {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    line-height: 1.3;
    margin: 0;
}

/* 選中時文字變深紫 */
.addon-hidden-input:checked + .addon-card-visual .ac-title {
    color: #000;
}

/* icon 區域 */
.ac-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem; /* 圖示大小 */
    color: #b2bec3; /* 預設灰色 */
    margin: 15px 0;
}

.addon-hidden-input:checked + .addon-card-visual .ac-body {
    color: #8c7ae6; /* 選中變紫 */
}

/* 價格區域 */
.ac-footer {
    text-align: right;
}

.ac-price {
    font-weight: 800;
    font-size: 15px;
    color: #111;
}

/* 必選標籤樣式 */
.tag-required {
    font-size: 12px;
    background: #ff7675;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    white-space: nowrap;
    vertical-align: middle;
}

/* 資訊小圖示 */
.ac-info-icon {
    color: #ccc;
    font-size: 14px;
    margin-left: 5px;
}

/* --- Step 2 專用樣式 --- */

/* 讓輸入框稍微高一點，與圖二更像 */
.form-control-lg {
    font-size: 15px; /* 字體不用太大，但框要高 */
    padding: 12px 15px;
    border-radius: 8px; /* 圓角明顯一點 */
    background-color: #f9f9f9; /* 加上一點點極淡的灰色背景，讓它從白底卡片浮出來 */
    border: 1px solid #eee;
}

    .form-control-lg:focus {
        background-color: #fff;
        border-color: #333; /* 聚焦時邊框變黑 */
        box-shadow: none; /* 去掉 Bootstrap 預設的藍色光暈，改用簡潔風格 */
    }

/* 針對按鈕的微調 */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.step2-card {
    background-color: #f5f6f8;
}

/* =========================================
   Step 3: 訂單確認內容 (專屬樣式)
   ========================================= */

/* 外層容器：給予一點內距讓視覺不擁擠 */
.step3-container {
    background-color: #fff;
    border-radius: 8px;
    /* 如果想要像圖片一樣完全乾淨，可以不要 shadow，或加一點點 */
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.05); */
}

/* --- 1. 頂部灰色摘要區 --- */
.step3-top-summary {
    background-color: #fff;
    font-size: 0.95rem;
    border-bottom: 1px solid #e1e8f0;
}

.step3-summary-row {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.step3-summary-label {
    font-weight: 700; /* 粗體標籤 */
    color: #333;
    min-width: 90px; /* 固定寬度對齊 */
    font-size: 12pt;
}

.step3-summary-value {
    color: #000;
    flex: 1;
    font-size: 12pt;
}

/* --- 2. 區塊標題與通用樣式 --- */
.step3-section {
    margin-bottom: 30px;
}

.step3-section-vehicle {
    border-bottom: 1px solid #e2e9f1;
}

.step3-section:nth-child(2) {
    border-bottom: 1px solid #e1e8f0;
}
/* 大標題：聯絡資訊、車款資訊 */
.step3-section-title {
    font-size: 15pt;
    font-weight: 700;
    color: #222;
}

/* 小標題：訂購人資料 */
.step3-sub-title {
    font-size: 13pt;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.step3-section-div {
    line-height: 10pt;
}
/* 資料列表 ul */
.step3-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step3-container-card {
    max-width: 800px;
    background-color: #fff;
    border-radius: 1rem;
    border: 2px solid #eeeef0;
    padding: 2rem;
}

.step3-info-list li {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap; /* 手機版內容過長時可換行 */
}

.step3-label {
    color: #000;
    font-weight: 500;
    min-width: 80px;
    font-size: 12pt;
}

.step3-value {
    color: #333;
    flex: 1; /* 佔滿剩餘空間 */
}

/* --- 3. 價格明細區 --- */
.step3-price-container {
    padding-top: 10px;
}

.step3-price-table td {
    padding: 8px 4px;
    font-size: 0.95rem;
    color: #555;
}

/* 讓表格最後一欄的數字靠右 */
.step3-price-table .text-end {
    color: #333;
    font-weight: 500;
}

.step3-section .summary-mileage {
    display: flex !important;
    flex-direction: column;
    border: 1px solid #e5e7ec;
    padding: 1rem 1rem;
    border-radius: 0.5rem;
    background-color: #f9fafc;
}

    .step3-section .summary-mileage .mileage-breakdown {
        display: flex;
        flex-direction: column;
    }
/* 總計區塊 */
.step3-total-wrapper {
    display: flex;
    justify-content: flex-end; /* 靠右對齊 */
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
}

.step3-total-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f37021; /* 橘色文字 */
    margin-right: 10px;
}

.step3-total-amount {
    font-size: 1.5rem; /* 大字體 */
    font-weight: 800;
    color: #f37021; /* 橘色金額 */
}

/* =========================================
   Step 4: 注意事項 (專屬樣式)
   ========================================= */

/* 每個小區塊的間距 */
.step4-block {
    margin-bottom: 24px;
}

/* 小標題樣式 (如：租賃須知) */
.step4-sub-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

/* 列表樣式 */
.step4-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

    .step4-list li {
        font-size: 0.95rem;
        color: #555;
        margin-bottom: 6px; /* 列表項目之間的距離 */
        line-height: 1.6;
    }

/* 底部 Checkbox 文字樣式 */
.step4-agree-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f37021; /* 橘色 */
    cursor: pointer;
    margin-left: 8px;
}

/* Checkbox 放大一點 */
.step4-checkbox-wrapper .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.2em;
    border-color: #f37021;
}

    /* 勾選後的背景色 */
    .step4-checkbox-wrapper .form-check-input:checked {
        background-color: #f37021;
        border-color: #f37021;
    }

/* =========================================
   Step 5: 付款方式 (專屬樣式)
   ========================================= */
.step5-title {
    text-align: center;
}

.bank-box {
    border-top: 1px solid rgb(230 233 242);
}

    .bank-box textarea {
        height: 3rem;
        background-color: #f9fafc;
    }

.mileage-select-label {
    .
}

    .mileage-select-label span {
        width: 10%;
    }

    .mileage-select-label select {
        width: 75%;
    }

.water-select-label {
}

    .water-select-label span {
        width: 20%;
    }

    .water-select-label select {
        width: 75%;
    }

.hiddenlabel {
    display: none;
}
