
/* 使用 Noto Sans TC 作為主要字體 */
body {
    font-family: 'Noto Sans TC', 'Inter', sans-serif;
    background-color: #f8f9fa; /* 使用稍淺的灰色背景 */
}
/* 按鈕點擊時的輕微縮放效果 */
.btn-press {
    transition: transform 0.1s ease;
}
.btn-press:active {
    transform: scale(0.98);
}
/* 讓主內容區塊有淡入效果 */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    font-family: 'Noto Sans TC', sans-serif;
}
.form-checkbox:checked, .form-radio:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}
.payment-card {
    transition: all 0.2s ease-in-out;
}
.payment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.payment-card-selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px #3b82f6;
}
.custom-file-input::file-selector-button {
    background-color: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.custom-file-input::file-selector-button:hover {
    background-color: #e0e7ff;
}
.custom-file-input {
        font-size: 0.875rem;
        color: #4b5563;
}
.section-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}
/* Progress Bar Styles */
.progress-segment {
    transition: background-color 0.4s ease-in-out;
}
.step-label {
    transition: color 0.4s ease-in-out;
}
.step-label-active {
    color: #3b82f6; /* blue-600 */
    font-weight: 600;
}
.step-label-inactive {
    color: #9ca3af; /* gray-400 */
}
.step-label-completed {
    color: #16a34a; /* green-600 */
}
/* Modal Styles */
.modal-overlay {
    transition: opacity 0.3s ease;
}
.modal-content {
    transition: all 0.3s ease;
}
/* Sub-options animation */
.sub-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out;
}
.sub-options-visible {
    max-height: 500px; /* Adjust as needed */
    margin-top: 1rem;
}
.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}
.preview-wrapper {
    position: relative;
}
.delete-btn {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: #ef4444;
    color: white;
    border-radius: 9999px;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
}
.info-toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0;
}
/* Custom Select with Search */
.custom-select-container {
    position: relative;
}
.custom-select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #d1d5db;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    z-index: 20;
}
.custom-select-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
}
.custom-select-option:hover {
    background-color: #f3f4f6;
}
.payment-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}
.pwa_hint_area{
    border: 2px solid #96be0a;
    background: #fff3e2 !important;
}
.customer_icon{
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    font-size: 1.4rem;
    text-align: center;
    color:#FFF;
}

#business-profiles-list>a:nth-child(3n + 1) .customer_icon{
    background: #a88bfa ;
}

#business-profiles-list>a:nth-child(3n + 2) .customer_icon{
    background: #fbbf24 ;
}

#business-profiles-list>a:nth-child(3n + 3) .customer_icon{
    background: #ec4899 ;
}


.profile-card.selected {
    border-color: #16a34a; /* Green */
    background-color: #f0fdf4;
}
.profile-card.rejected .profile-info {
    opacity: 0.5;
    /* text-decoration: line-through; */
}
.profile-card.rejected .stores-info {
    /*background-color: #e6fffa;
    border-radius: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #34d399;*/
}
.require::before{
    content: "*";
    color: #F00;
    margin-left: 6px;
}
.required-label::after {
    content: ' *';
    color: #ef4444;
}

.date-select-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.date-select-group select {
    flex: 1;
    padding: 5px 5px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    appearance: none; /* 移除預設的下拉箭頭 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0rem center;
    background-size: 1.5em 1.5em;
    cursor: pointer;
}
.step-dot{
    z-index: 2;
}
.round-area{
    background-color: #fff;
}

.group-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}
.group-description {
    font-size: 0.875rem;
    color: #ca8a04;
    font-weight: 500;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #fef9c3;
    border-left: 4px solid #facc15;
    border-radius: 0.25rem;
}
.payment-card-disabled {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    cursor: default;
}
.special-note {
    font-weight: 600;
    color: #4f46e5;
}
#modal-body a {
    color: #3b82f6;
    text-decoration: underline;
}
#modal-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}
#modal-body .highlight-box {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #eff6ff;
    border-left: 4px solid #60a5fa;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}
.modal-body {
    max-height: 80vh;
    overflow-y: auto;
}
/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #338498;
}
input:checked + .slider:before {
    transform: translateX(16px);
}
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
}
.btn-primary {
    background-color: #338498;
    color: white;
    --bs-btn-color: #fff;
    --bs-btn-bg: #338498;
    --bs-btn-border-color: #338498;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #338498;
    --bs-btn-hover-border-color: #338498;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #338498;
    --bs-btn-active-border-color: #338498;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    /* --bs-btn-disabled-bg: #0d6efd; */
    --bs-btn-disabled-border-color: #338498;
}
.btn-primary:hover:not(:disabled) {
    background-color: #2b7185;
}
.btn-primary:disabled {
    background-color: #7fbdcf;
    cursor: not-allowed;
}
.btn-secondary {
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}
.btn-secondary:hover {
    background-color: #f9fafb;
}
.btn-danger {
    background-color: #dc2626;
    color: white;
}
.btn-danger:hover {
    background-color: #b91c1c;
}
