html,
body.public-page {
    min-height: 100%;
}

body.public-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    background: #fff url("../images/accident_web_top_bgd.jpg") top repeat-x;
    color: #212529;
    font-family: "Microsoft JhengHei", Verdana, Arial, sans-serif;
}

.public-page .web_box {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: none;
}

.public-page .web_index {
    max-width: 1280px;
    flex: 1 0 auto;
}

.public-page .web_footer {
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: 0;
}

.public-page .index_head {
    position: relative;
    height: 170px;
    background: url("../images/accident_web_top.svg") top right no-repeat;
    background-size: auto 160px;
}

.public-page .web_title {
    display: flex;
    align-items: center;
    min-height: 150px;
}

.public-page .web_logo img {
    width: 280px;
}

.public-page .web_title h1 {
    color: #4d2207;
    font-size: 2.75rem;
    font-style: italic;
    font-weight: 900;
    line-height: 1.15;
}

.public-page .top_menu {
    z-index: 2;
    padding: .3em;
    border-radius: 0 0 6px 6px;
    background: #bc441a;
}

.public-page .top_menu li + li {
    border-left: 1px solid rgba(255, 255, 255, .55);
}

.public-page .main_menu {
    display: inline-block;
    margin: 0;
    padding: 0 1em;
    border-radius: 0 0 .5em .5em;
    background: #008296;
}

.public-page .main_menu a {
    display: inline-block;
    margin: 0 2px;
    padding: .5em 1em;
    color: #fff;
    text-decoration: none;
}

.public-page .main_menu a.active {
    font-weight: 700;
    background: #003a55;
    border-radius: .5em .5em 0 0;
}

/* 主選單 hover/focus 反饋(切版未提供,依後台/檢舉互動慣例補;active 為深色,hover 用中間色) */
.public-page .main_menu a:hover,
.public-page .main_menu a:focus-visible {
    background: #00657a;
    text-decoration: underline;
}

.public-page .index_con {
    padding: 1em;
}

.public-page .accesskey {
    font-size: .875rem;
}

.index_menu a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 30%;
    min-height: 0;
    aspect-ratio: 5 / 6;
    padding: 2rem 1rem;
    gap: 1rem;
    border-radius: 1.3em;
    font-size: 2.4rem;
    text-decoration: none;
    vertical-align: top;
    white-space: nowrap;
}

.index_menu a img {
    display: block;
    width: 74%;
    height: auto;
    margin: 0;
    flex: 0 0 auto;
}

/* 首頁大圖入口互動效果(切版未提供;hover/focus 底線+輕微放大聚焦) */
.index_menu a {
    transition: transform .15s ease, box-shadow .15s ease;
}

.index_menu a:hover,
.index_menu a:focus-visible {
    text-decoration: underline;
    transform: scale(1.03);
    box-shadow: 4px 4px 12px #444;
}

@media (prefers-reduced-motion: reduce) {
    .index_menu a {
        transition: none;
    }

    .index_menu a:hover,
    .index_menu a:focus-visible {
        transform: none;
    }
}

.index_menu .verb_btn {
    background: #e4574a;
}

.index_menu .search_btn {
    background: #4a8ac4;
}

.index-menu-note {
    max-width: 960px;
    margin: 1em auto 0;
}

.public-page .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.public-page .btn-primary:hover,
.public-page .btn-primary:focus {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

.public-page .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.public-page .btn-secondary:hover,
.public-page .btn-secondary:focus {
    background-color: #5c636a;
    border-color: #5c636a;
}

.page-panel {
    margin: .75em 0 1em;
}

.page-panel h1,
.public-card .card-header h1,
.public-card .card-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.public-card {
    border-color: #008296;
    border-radius: .25rem;
    overflow: hidden;
}

.public-card .card-header {
    padding: .55rem .75rem;
    background: #008296;
    color: #fff;
}

.public-card .card-body {
    padding: .85rem;
}

.public-card .card-footer {
    background: #f8f9fa;
}

.com_box {
    border: 1px solid #e1e5e8;
}

.notice-list .com_title {
    color: #008296;
}

.public-steps {
    padding-left: 0;
    margin-bottom: 1rem;
}

.public-steps li.done .step_list_c,
.public-steps li.done .step_list_w {
    background: #009900;
}

.public-steps .step_list_w i {
    margin-left: .35em;
}

.identity-table th {
    width: 20%;
}

.identity-input-group {
    display: grid;
    gap: .6rem;
}

.identity-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
}

.identity-radio-group .form-check-inline {
    margin-right: 0;
}

.identity-document-radio-group {
    display: inline-flex;
    width: fit-content;
    flex-wrap: nowrap;
    gap: 0;
    overflow: hidden;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    background: #fff;
}

.identity-document-radio-group .form-check-inline {
    min-height: 38px;
    padding: .45rem .75rem .45rem 2rem;
    border-right: 1px solid #ced4da;
    background: #fff;
}

.identity-document-radio-group .form-check-inline:last-child {
    border-right: 0;
}

.identity-document-radio-group .form-check-inline:hover,
.identity-document-radio-group .form-check-inline:focus-within {
    background: #f8f9fa;
}

@media (max-width: 575.98px) {
    .identity-document-radio-group {
        display: flex;
        width: 100%;
    }

    .identity-document-radio-group .form-check-inline {
        flex: 1 1 auto;
    }
}

.form-table {
    margin-bottom: 1rem;
}

.form-table th {
    width: 17%;
    min-width: 130px;
    background: #f3f7fa;
    color: #333;
    white-space: nowrap;
    vertical-align: middle;
}

.form-table td {
    background: #fff;
    vertical-align: middle;
}

.form-table .form-label {
    margin-bottom: 0;
    font-weight: 700;
    white-space: nowrap;
}

.public-page .case-search-form .form-label,
.public-page .watermark-upload > span {
    white-space: nowrap;
}

.public-page .form-label > .text-danger,
.public-page .watermark-upload > span > .text-danger {
    display: inline-block;
    white-space: nowrap;
    vertical-align: baseline;
}

.form-table .form-control,
.form-table .form-select,
.query-panel .form-control {
    min-height: 34px;
    padding: .25rem .5rem;
    font-size: .95rem;
    border-radius: .2rem;
}

.form-table .text-danger,
.validation-message {
    display: block;
    margin-top: .25rem;
    font-size: .875rem;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .35rem;
}

.check-grid .form-check {
    min-height: 36px;
    margin: 0;
    padding: .4rem .6rem .4rem 2rem;
    border: 1px solid #aaa;
    border-radius: .3rem;
    background: #fff;
}

.watermark-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .75rem;
}

.watermark-upload {
    display: block;
    padding: .65rem;
    border: 1px solid #c9d3dc;
    border-radius: .35rem;
    background: #fff;
}

.attachment-groups {
    display: grid;
    gap: .85rem;
}

.attachment-group {
    padding: .75rem;
    border: 1px solid #c9d3dc;
    background: #f8fafc;
}

.attachment-group h2 {
    margin: 0 0 .5rem;
    color: #005f8b;
    font-size: 1rem;
    font-weight: 800;
}

.dropzone-upload {
    cursor: pointer;
    border: 2px dashed #8aa9bf;
    background: #fff;
    transition: border-color .15s ease, background-color .15s ease;
}

.dropzone-upload.is-dragover {
    border-color: #0075ac;
    background: #effbfd;
}

.dropzone-upload input[type="file"] {
    margin-bottom: .45rem;
}

.dropzone-upload strong {
    display: block;
    color: #005f8b;
    font-size: .92rem;
}

.dropzone-upload small {
    display: block;
    color: #6c757d;
}

.watermark-upload > span {
    display: block;
    margin-bottom: .35rem;
    font-weight: 700;
}

.watermark-preview {
    display: grid;
    place-items: center;
    min-height: 145px;
    margin-top: .45rem;
    border: 1px dashed #9eb0bf;
    background: #f8fafc;
    color: #6c757d;
    text-align: center;
}

.watermark-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.watermark-image-wrap img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.watermark-file-tile {
    display: grid;
    gap: .25rem;
    place-items: center;
    min-height: 150px;
    padding: .75rem;
    color: #495057;
}

.watermark-file-tile i {
    color: #b02a37;
    font-size: 2rem;
}

.upload-watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 135%;
    transform: translate(-50%, -50%) rotate(-18deg);
    padding: .35rem;
    background: rgba(255, 255, 255, .45);
    color: rgba(190, 0, 0, .72);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
    border-top: 2px solid rgba(190, 0, 0, .5);
    border-bottom: 2px solid rgba(190, 0, 0, .5);
}

.notice-example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
}

.notice-example-grid figure {
    margin: 0;
    padding: .75rem;
    border: 1px solid #d0d7de;
    background: #f8fafc;
    text-align: center;
}

.notice-example-grid img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.notice-example-grid figcaption {
    margin-top: .45rem;
    color: #495057;
    font-weight: 700;
}

.notice-declaration {
    margin-bottom: .9rem;
    padding: .85rem;
    border: 1px solid #b8c1ca;
    background: #fff;
}

.notice-declaration h2 {
    margin: 0 0 .5rem;
    color: #005f8b;
    font-size: 1.05rem;
    font-weight: 800;
}

.notice-declaration ol {
    margin: 0;
    padding-left: 1.4rem;
    line-height: 1.75;
}

.query-panel {
    padding: .75rem;
    border: 1px solid #d0d7de;
    border-radius: .35rem;
    background: #f5f5f5;
}

.query-panel .input-group-text {
    min-width: 9.5rem;
    justify-content: flex-end;
    font-weight: 700;
}

.case-search-form .case-search-field {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-search-form .form-label {
    display: flex;
    align-items: flex-end;
    min-height: 3rem;
    margin-bottom: .35rem;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 767.98px) {
    .case-search-form .form-label {
        min-height: auto;
    }
}

.list_table {
    border-color: #b8c1ca;
}

.list_table thead th {
    background: #6c757d;
    color: #fff;
    text-align: center;
}

.list_table tbody th {
    width: 22%;
    background: #f3f7fa;
}

.list_table tbody th,
.list_table tbody td {
    padding: .45rem .55rem;
}

.result-accordion .accordion-item {
    margin-bottom: .5rem;
    border: 1px solid #b8c1ca;
    border-radius: .25rem;
    overflow: hidden;
}

.result-accordion .accordion-button {
    padding: .55rem .75rem;
    background: #f5f5f5;
    color: #333;
    font-weight: 700;
}

.result-accordion .accordion-button:not(.collapsed) {
    background: #dffbf5;
    color: #005f8b;
}

.result-accordion .accordion-body {
    padding: .75rem;
}

.status-badge,
.status-pill {
    display: inline-block;
    min-width: 5.5em;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: #ebf3ff;
    color: #075985;
    font-weight: 700;
    text-align: center;
}

.status-pill::before {
    content: "";
    display: inline-block;
    width: .55rem;
    height: .55rem;
    margin-right: .35rem;
    border-radius: 50%;
    background: #67a7de;
}

.status-ready::before {
    background: #198754;
}

.status-waiting::before {
    background: #f0ad4e;
}

.status-blocked::before {
    background: #dc3545;
}

.status-muted::before {
    background: #6c757d;
}

.tag-pill {
    display: inline-block;
    margin: .12rem .2rem .12rem 0;
    padding: .18rem .5rem;
    border-radius: 999px;
    background: #e7f3ff;
    color: #075985;
    font-weight: 700;
}

.search-result-sections section,
.confirm-sections section {
    margin-bottom: .85rem;
}

.search-result-sections h2,
.confirm-sections h2 {
    margin: 0 0 .35rem;
    padding-left: .45rem;
    border-left: 4px solid #0dcaf0;
    color: #005f8b;
    font-size: 1.05rem;
    font-weight: 800;
}

.confirm-table {
    table-layout: fixed;
}

.confirm-table tbody th {
    width: 15%;
    white-space: nowrap;
    vertical-align: middle;
}

.confirm-table tbody td {
    width: 35%;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0;
    border-top: 1px solid #b8c1ca;
    border-left: 1px solid #b8c1ca;
}

.summary-grid div {
    display: grid;
    grid-template-columns: 9rem 1fr;
    min-height: 42px;
    border-right: 1px solid #b8c1ca;
    border-bottom: 1px solid #b8c1ca;
    background: #fff;
}

.summary-grid span {
    padding: .45rem .55rem;
    background: #f3f7fa;
    font-weight: 700;
}

.summary-grid strong {
    padding: .45rem .55rem;
    font-weight: 500;
}

.success-panel {
    text-align: center;
}

.success-panel > i {
    margin: .3rem 0 .8rem;
    color: #009900;
    font-size: 3.6rem;
}

.public-page .validation-summary-valid {
    display: none;
}

.public-page .validation-summary-errors {
    margin-bottom: 1rem;
}

.web_footer .footer-logo {
    /* 對齊檢舉系統 footer(logo 用 w-75 欄寬 75%);切版原 110px 偏小 */
    width: 75%;
    max-width: 100%;
}

.web_footer .footer-note {
    color: #4d2207;
}

.public-page .web_footer {
    padding: 1em;
    background: #f4d6a7;
    color: #231f1d;
}

.public-page .web_footer p {
    margin: 0;
    padding: .2em .4em;
}

.public-page .web_footer p a {
    margin: 0;
    padding: .2em .5em;
    border-radius: .2em;
    background: #d43f10;
    color: #fff;
    text-decoration: none;
}

.public-page .web_footer p a:hover {
    background: #b9360d;
    color: #fff;
}

@media screen and (max-width: 768px) {
    /* 手機版把橫幅從 body 移到頁首:body 的橫幅圖固定 170px 高,頁首縮成約 80px 後會露在主選單下方,首頁按鈕看起來像壓在橫幅上。
       index_style.css 的 body { background-image: none } 優先權低於 body.public-page,對本站無效,故在此另寫;
       頁首改用橫幅圖同款配色(淺米色底 + 磚紅底線),頁首多高就畫多高 */
    body.public-page {
        background-image: none;
    }

    .public-page .index_head {
        height: auto;
        background: #fff3dd;
        border-bottom: solid 3px #bc441a;
    }

    /* 標題比照檢舉系統 Default.aspx 手機版:取消與 logo 並排,排到 logo 下方,才不會被右上角絕對定位的「首頁」蓋住 */
    .public-page .web_title {
        display: block;
        min-height: 0;
    }

    .public-page .web_logo img {
        width: 82px;
    }

    .public-page .web_title h1 {
        font-size: 1.35rem;
    }

    .public-page .main_menu {
        width: 100%;
        padding: .35rem;
        border-radius: 0;
    }

    .public-page .main_menu a {
        padding: .45em .65em;
    }

    .index_menu a {
        width: 80%;
        min-height: 0;
        margin: 0 auto 1em;
        padding: 1rem;
        gap: .75rem;
        font-size: 1.75rem;
    }

    .index_menu a img {
        width: 52%;
    }

    .form-table,
    .form-table tbody,
    .form-table tr,
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
    }

    .form-table th {
        border-bottom: 0;
    }

    .confirm-table,
    .confirm-table tbody,
    .confirm-table tr,
    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
    }

    .confirm-table tbody th {
        border-bottom: 0;
        white-space: normal;
    }

    .confirm-table tbody td {
        border-top: 0;
    }

    .summary-grid {
        display: block;
        border: 0;
    }

    .summary-grid div {
        display: block;
        margin-bottom: .35rem;
        border: 1px solid #b8c1ca;
    }
}

.pickup-location-notice {
    margin: 0 0 1rem;
    padding: .7rem 1rem;
    color: #245b78;
    font-weight: 600;
    letter-spacing: .03em;
    background: #e8f4fa;
    border-left: 4px solid #5ba6cd;
    border-radius: .25rem;
}




