body,
html {
    height: 100%;
    overflow: hidden;
    margin: 0;
    /* 移除 body 的背景圖設定，改用偽元素 */
    /* background-image: url("assets/images/BG06.jpg"); */
    /* background-attachment: fixed; */
    /* background-size: cover; */
    /* background-position: center; */
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: none !important; /* 取消原本的 background 設定 */
}

/* 使用偽元素設定背景圖，確保在最底層 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../assets/BG01.jpg"); /* 請確認圖片路徑正確 */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    z-index: -2; /* 在最底層 */
    pointer-events: none; /* 確保不影響點擊 */
}

.form-container {
    position: relative;
    z-index: 1;
    padding-top: 2rem; /* 增加一些頂部空間 */
    padding-bottom: 2rem; /* 增加一些底部空間 */
}

.glass {
    backdrop-filter: blur(10px);
    padding: 50px 30px 50px 30px;
    border-radius: 20px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    animation: fadeInUp 0.8s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    text-align: right;
    margin-bottom: 5px;
    font-size: 3rem;
    color: #b7d6c6;
    font-weight: bold;
}

.form-title02 {
    text-align: right;
    margin-bottom: 30px;
    font-size: 1rem;
    color: #999;
    padding: 0 0 0 20px;
}

.form-title03 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #b7d6c6;
}

.custom-select,
.form-control {
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.48);
}

.form-control:focus,
.custom-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* 預覽圖片共用樣式 */
.preview-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 100px; /* 確保拖曳區有基本高度 */
    align-items: center; /* 垂直居中圖片 */
}

.preview-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd; /* 給圖片加個邊框 */
}

.dropzone {
    border: 2px dashed #007bff;
    border-radius: 10px; /* 圓角 */
    cursor: pointer;
    transition:
        border-color 0.3s,
        background-color 0.3s; /* 添加背景色過渡 */
    display: flex; /* 使用 flex 讓文字居中 */
    justify-content: center;
    align-items: center;
    min-height: 100px; /* 同預覽區高度 */
    color: #007bff; /* 文字顏色 */
    background-color: rgba(0, 123, 255, 0.05); /* 淡淡的背景色 */
}
.dropzone:hover {
    border-color: #0056b3; /* Hover 時加深 */
    background-color: rgba(0, 123, 255, 0.1); /* Hover 時加深背景 */
}

/* 移除舊的 .dropzone.border-primary */

.btn {
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* 按鈕也加圓角 */
    padding: 20px 20px; /* 調整按鈕大小 */
    font-size: 1.1rem; /* 調整字體大小 */
    background-color: #479d84;
    color: #fff;
}

/* 移除 ripple 動畫，如果不需要可以刪除 */
/* .btn::after { ... } */
/* @keyframes ripple { ... } */

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    /* 也包含 select */
    border-color: #1cbecc; /* 統一樣式 */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    transition: all 0.3s ease;
}

/* 背景圓圈效果 (如果不需要可以移除) */
.circle {
    position: absolute;
    z-index: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0); /* 半透明藍色 */
    overflow: hidden;
}

.form-check-input {
    width: 1.3em;
    height: 1.3em;
    margin-top: 0.3em;
    margin-right: 0.5em;
    cursor: pointer;
    border: 2px solid #007bff;
    transition: all 0.2s ease;
    border-radius: 0.25em;
    vertical-align: middle; /* 垂直對齊 */
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #0056b3;
}
.form-check-input:checked::before {
    /* 增加打勾效果 */
    content: ""; /* ✓ 符號 */ /* content: "\2713"; */
    display: block;
    color: white;
    text-align: center;
    line-height: 1.1em; /* 調整對齊 */
}

.form-check-label {
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-bottom: 0; /* 移除 label 的下間距 */
    vertical-align: middle; /* 垂直對齊 */
}

.form-check-inline {
    margin-right: 1.5rem; /* 增加選項間距 */
}

.form-check-input:hover,
.form-check-label:hover {
    color: #0056b3;
}

/* 優化Modal背景的z-index */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
    /* position: fixed !important; */ /* 通常不需要強制 */
}

.modal-content {
    border-radius: 15px; /* Modal 也加圓角 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* 加強陰影 */
}
.modal-header {
    background-color: #f8f9fa; /* 淺灰背景 */
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    color: #29969c;
}
.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* 確保 modal 中的圖片預覽樣式 */
#modalImagePreview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}
#modalImagePreview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.full-screen-img {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url("a01.jpg"); /* 更換為你的圖片路徑 */
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background-color: rgba(32, 109, 216, 0.29);
}

.text-overlay {
    position: absolute;
    bottom: 80px; /* 調整文字距離紅色區塊的間距 */
    left: 0;
    transform: translateX(0%);
    font-size: 6vw; /* 使用 vw 使文字大小根據視窗寬度調整 */
    color: white;
}

.subtext-overlay {
    position: absolute;
    bottom: 45px; /* 調整文字距離「報修」文字的間距 */
    left: 5px;
    transform: translateX(0%);
    font-size: 2.5vw; /* 調整字體大小 */
    color: black;
}

.bg01 {
    background-color: #b7d6c6;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    animation: fadeInUp 0.8s ease-in-out;
}

.container {
    width: 1500px !important;
    max-width: 100% !important;
    padding: 100px 0 !important;
}

.imgframe {
    padding: 100px 30px 0 0;
}

.imgradius {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

/*手機直式*/
@media only screen and (max-width: 576px) {
    .text-overlay {
        position: absolute;
        bottom: 60px; /* 調整文字距離紅色區塊的間距 */
        margin: 0 auto;
        font-size: 12vw; /* 使用 vw 使文字大小根據視窗寬度調整 */
        color: white;
    }

    .subtext-overlay {
        position: absolute;
        bottom: 40px; /* 調整文字距離「報修」文字的間距 */
        left: 5px;
        transform: translateX(0%);
        font-size: 5vw; /* 調整字體大小 */
        color: black;
    }
    .form-title {
        text-align: center;
        margin-bottom: 5px;
        font-size: 3rem;
        color: #b7d6c6;
    }
    .form-title02 {
        text-align: left;
        margin-bottom: 30px;
        font-size: 1rem;
        color: #999;
        padding: 0 20px;
    }

    .imgframe {
        padding: 0 0 0 0;
    }

    .imgradius {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .bg01 {
        background-color: #b7d6c6;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        animation: fadeInUp 0.8s ease-in-out;
    }
}

/*平板直式*/
@media (orientation: portrait) and (min-width: 576px) and (max-width: 1366px) {
    .container {
        width: 1500px !important;
        max-width: 100% !important;
        padding: 100px 50px !important;
    }
    .form-title {
        text-align: center;
        margin-bottom: 5px;
        font-size: 3rem;
        color: #b7d6c6;
    }
    .form-title02 {
        text-align: center;
        margin-bottom: 30px;
        font-size: 1rem;
        color: #999;
    }
    
    .imgframe {
        padding: 0 0 0 0;
    }
    .imgradius {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    .bg01 {
        background-color: #b7d6c6;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        animation: fadeInUp 0.8s ease-in-out;
    }
}

/*---------- 裝置響應式語法樣板 ----------*/

/*平板橫式*/
@media (orientation: landscape) and (min-width: 576px) and (max-width: 1366px) {
}

/*平板直式*/
@media (orientation: portrait) and (min-width: 576px) and (max-width: 1366px) {
}

/*手機直式*/
@media only screen and (max-width: 576px) {
}
