/* ===== 註冊頁面樣式表 ===== */

:root {
    --primary-color: #1450A3;
    --primary-dark: #0d47a1;
    --primary-light: #e3f2fd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-text: #212529;
    --muted-text: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===== 基礎樣式 ===== */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* ===== 成功頁面樣式 ===== */
.success-section {
    max-width: 500px;
    width: 100%;
}

.success-icon i {
    font-size: 4rem;
    color: var(--success-color);
}

.success-section .card {
    border-radius: 20px;
    border: none;
}

/* ===== 類別選擇器樣式 ===== */
.category-selector-wrapper {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-selector-btn {
    width: 200px;
    min-height: 45px;
    text-align: center;
    border: 2px dashed var(--border-color);
    background: var(--light-bg);
    color: var(--muted-text);
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.category-selector-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.category-selector-btn.selected {
    display: none;
}

.selected-category-display {
    margin-top: 0.5rem;
    display: none;
}

.selected-category-display.show {
    display: block;
}

.selected-category-card {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem;
    position: relative;
    width: 200px;
    min-height: 60px;
}

.selected-category-code {
    font-size: 0.85em;
    color: var(--primary-color);
    font-weight: 600;
}

.selected-category-name {
    font-size: 0.9em;
    color: var(--dark-text);
    margin: 0.25rem 0;
}

.selected-category-main {
    font-size: 0.75em;
    color: var(--muted-text);
    font-style: italic;
}

.selected-category-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.selected-category-remove:hover {
    transform: scale(1.1);
}

/* ===== 類別模態視窗樣式 ===== */
.category-grid {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.category-group {
    margin-bottom: 2rem;
}

.category-group-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1rem;
}

.category-group-items {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 0.5rem;
}

.category-item {
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: 200px;
    vertical-align: top;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
    box-sizing: border-box;
    font-size: 0.9rem;
    position: relative;
}

.category-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.category-item.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.category-item-code {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.category-item.selected .category-item-code {
    color: var(--white);
}

.category-item-name {
    font-size: 0.9em;
    color: var(--dark-text);
    line-height: 1.3;
}

.category-item.selected .category-item-name {
    color: var(--white);
}

/* 搜尋樣式 */
#category-search {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#category-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(20, 80, 163, 0.25);
}

/* ===== 政府機關選擇器樣式 ===== */
.agency-selector-wrapper {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agency-selector-btn {
    width: 200px;
    min-height: 45px;
    text-align: center;
    border: 2px dashed var(--border-color);
    background: var(--light-bg);
    color: var(--muted-text);
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.agency-selector-btn:hover {
    border-color: var(--info-color);
    background: #e7f3ff;
    color: var(--info-color);
}

.agency-selector-btn.selected {
    display: none;
}

.selected-agency-display {
    margin-top: 0.5rem;
    display: none;
}

.selected-agency-display.show {
    display: block;
}

.selected-agency-card {
    background: var(--white);
    border: 2px solid var(--info-color);
    border-radius: 8px;
    padding: 0.75rem;
    position: relative;
    width: 200px;
    min-height: 60px;
}

.selected-agency-code {
    font-size: 0.85em;
    color: var(--info-color);
    font-weight: 600;
}

.selected-agency-name {
    font-size: 0.9em;
    color: var(--dark-text);
    margin: 0.25rem 0;
}

.selected-agency-category {
    font-size: 0.75em;
    color: var(--muted-text);
    font-style: italic;
}

.selected-agency-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.selected-agency-remove:hover {
    transform: scale(1.1);
}

/* ===== 政府機關模態視窗樣式 ===== */
.agency-results {
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
}

.agency-browse {
    max-height: 500px;
    overflow-y: auto;
}

.agency-categories {
    padding: 0.5rem;
}

.agency-main-category {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.agency-category-header {
    background: linear-gradient(135deg, var(--info-color) 0%, #0aa1c7 100%);
    color: var(--white);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.agency-category-header:hover {
    background: linear-gradient(135deg, #0aa1c7 0%, var(--info-color) 100%);
}

.agency-category-header i.bi-building {
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.agency-category-header i.bi-mortarboard {
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.agency-category-header i.bi-geo-alt {
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.agency-category-toggle {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.agency-category-header.expanded .agency-category-toggle {
    transform: rotate(180deg);
}

.agency-category-content {
    display: none;
    padding: 1rem;
    background: #f8fbff;
}

.agency-category-content.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

.agency-sub-categories {
    margin-bottom: 1rem;
}

.agency-sub-category {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.agency-sub-category-header {
    background: #f0f7ff;
    color: var(--dark-text);
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    transition: all 0.2s ease;
}

.agency-sub-category-header:hover {
    background: #e3f2fd;
}

.agency-sub-category-agencies {
    display: none;
    padding: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    background: var(--white);
}

.agency-sub-category-agencies.show {
    display: block;
}

.agency-item {
    padding: 0.5rem 0.75rem;
    margin: 0.25rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: top;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
    box-sizing: border-box;
    font-size: 0.9rem;
    position: relative;
    min-width: 180px;
    max-width: 250px;
}

.agency-item:hover {
    border-color: var(--info-color);
    background: #e7f3ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.agency-item.selected {
    background: var(--info-color);
    color: var(--white);
    border-color: var(--info-color);
}

.agency-item-code {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--info-color);
    margin-bottom: 0.25rem;
    display: block;
}

.agency-item.selected .agency-item-code {
    color: var(--white);
}

.agency-item-name {
    font-size: 0.9em;
    color: var(--dark-text);
    line-height: 1.3;
}

.agency-item.selected .agency-item-name {
    color: var(--white);
}

.agency-item-parent {
    font-size: 0.75em;
    color: var(--muted-text);
    font-style: italic;
    margin-top: 0.25rem;
}

.agency-item.selected .agency-item-parent {
    color: rgba(255,255,255,0.8);
}

/* 搜尋樣式 */
#agency-search {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#agency-search:focus {
    border-color: var(--info-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 202, 240, 0.25);
}

#agency-category-filter {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#agency-category-filter:focus {
    border-color: var(--info-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 202, 240, 0.25);
}

/* 搜尋結果樣式 */
#search-results-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.search-result-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 280px;
    flex: 0 1 auto;
}

.search-result-item:hover {
    border-color: var(--info-color);
    background: #e7f3ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-result-code {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--info-color);
    margin-bottom: 0.25rem;
}

.search-result-name {
    font-size: 0.9em;
    color: var(--dark-text);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75em;
    color: var(--muted-text);
}

.search-result-category {
    background: #e3f2fd;
    color: var(--info-color);
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

/* 階層導覽樣式 */
#agency-breadcrumb .breadcrumb {
    background: #f8fbff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0;
}

#agency-breadcrumb .breadcrumb-item a {
    color: var(--info-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

#agency-breadcrumb .breadcrumb-item a:hover {
    color: #0aa1c7;
}

/* ===== 智能搜尋區域樣式 ===== */
.agency-search-container {
    background: #f8fbff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e3f2fd;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 0.75rem;
}

.agency-search-input {
    border: 2px solid var(--info-color);
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(13, 202, 240, 0.1);
}

.agency-search-input:focus {
    border-color: #0aa1c7;
    box-shadow: 0 0 0 0.2rem rgba(13, 202, 240, 0.25);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--info-color);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

/* 當輸入框有內容時，隱藏搜尋圖示 */
.agency-search-input:not(:placeholder-shown) + .search-icon {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-tips {
    text-align: center;
}

/* ===== 快速分類篩選 ===== */
.quick-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-filter-btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--info-color);
    color: var(--info-color);
}

.category-filter-btn:hover {
    background: var(--info-color);
    color: white;
    transform: translateY(-1px);
}

.category-filter-btn.active {
    background: var(--info-color);
    color: white;
    border-color: var(--info-color);
}

/* ===== 搜尋結果區域 ===== */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.agency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

/* ===== 熱門推薦區域 ===== */
.agency-recommendations {
    background: linear-gradient(135deg, #fff5f5 0%, #fff8f0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #ffe0b3;
}

.recommendations-header h6 {
    color: #d65a31;
    margin-bottom: 0.25rem;
}

.popular-agencies {
    margin-bottom: 1.5rem;
}

.popular-agency-item {
    background: white;
    border: 1px solid #ffe0b3;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.popular-agency-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.popular-agency-item:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.popular-agency-name {
    font-weight: 600;
    color: #d65a31;
    margin-bottom: 0.25rem;
}

.popular-agency-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: #666;
}

.popular-agency-category {
    background: #ffe0b3;
    color: #d65a31;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.tender-count {
    color: #ff6b35;
    font-weight: 600;
    background: #fff5f2;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    display: inline-block;
}

.popular-agency-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

#recommendation-source.text-success {
    color: #198754 !important;
    font-weight: 500;
}

#recommendation-source.text-warning {
    color: #ffc107 !important;
    font-weight: 500;
}

/* ===== 分類建議標籤 ===== */
.category-suggestions h6 {
    color: #666;
    margin-bottom: 0.75rem;
}

/* 建議分類容器 */
.suggestion-category {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.suggestion-subtitle {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.suggestion-subtitle i {
    margin-right: 0.5rem;
    color: #6c757d;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-tag {
    border-radius: 15px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    background: white;
    position: relative;
}

/* 中央政府部會樣式 */
.suggestion-tag.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.suggestion-tag.btn-outline-primary:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

/* 地方政府樣式 */
.suggestion-tag.btn-outline-success {
    border-color: #198754;
    color: #198754;
}

.suggestion-tag.btn-outline-success:hover {
    background: #198754;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.3);
}

/* 功能領域樣式 */
.suggestion-tag.btn-outline-warning {
    border-color: #ffc107;
    color: #664d03;
}

.suggestion-tag.btn-outline-warning:hover {
    background: #ffc107;
    color: #664d03;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.suggestion-tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(0.95);
}

.suggestion-tag i {
    margin-right: 0.25rem;
}

/* 直轄市特別標示 */
.suggestion-tag[data-keyword*="市政府"] i.bi-geo-alt-fill {
    color: #dc3545;
}

/* ===== 改進的機關項目樣式 ===== */
.agency-item, .search-result-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agency-item:hover, .search-result-item:hover {
    border-color: var(--info-color);
    background: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.15);
}

.agency-item-code, .search-result-code {
    font-size: 0.75em;
    font-weight: 600;
    color: var(--info-color);
    background: #e7f3ff;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.agency-item-name, .search-result-name {
    font-size: 0.9em;
    color: var(--dark-text);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75em;
    color: var(--muted-text);
}

.search-result-category {
    background: #e3f2fd;
    color: var(--info-color);
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-weight: 500;
}

/* ===== 響應式設計改進 ===== */
@media (max-width: 768px) {
    .agency-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-category-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .category-filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .suggestion-tags {
        justify-content: center;
    }
}

/* ===== 註冊嚮導容器 ===== */
#register-wizard {
    max-width: 800px;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 0;
    overflow: hidden;
}

/* ===== 進度指示器 ===== */
.progress-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.progress-header h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
    position: relative;
}

.step.active {
    opacity: 1;
    transform: scale(1.1);
}

.step.completed {
    opacity: 0.8;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
}

.step-title {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* 步驟之間的連接線 */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 100%;
    width: 1rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step.completed:not(:last-child)::after {
    background: var(--success-color);
}

/* ===== 步驟內容 ===== */
.step-content {
    display: none;
    padding: 2rem;
}

.step-content.active {
    display: block;
    animation: fadeInSlide 0.5s ease-in-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-card {
    background: var(--white);
}

.step-header {
    margin-bottom: 2rem;
    text-align: center;
}

.step-header h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-header h4 i {
    margin-right: 0.5rem;
}

/* ===== 表單樣式 ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(20, 80, 163, 0.25);
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
    border: 2px solid var(--border-color);
    border-left: none;
}

/* ===== 興趣選項卡片 ===== */
.option-selector {
    margin-bottom: 2rem;
}

.option-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    background: var(--white);
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(20, 80, 163, 0.25);
}

.option-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.option-card h5 {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.option-card p {
    color: var(--muted-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.option-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== 輸入區域 ===== */
.input-section {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--light-bg);
    margin-top: 1rem;
}

.input-section h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.input-section h6 i {
    margin-right: 0.5rem;
}

/* ===== 自動完成建議 ===== */
.suggestion-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: var(--primary-light);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* ===== 分析結果 ===== */
.analysis-result {
    border-radius: 8px;
    padding: 1rem;
}

.analysis-loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted-text);
}

.analysis-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== 建議卡片 ===== */
.suggestion-category {
    margin-bottom: 1.5rem;
}

.suggestion-category h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-tag {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.suggestion-tag:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.suggestion-tag.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.suggestion-tag .count {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.1rem 0.4rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.suggestion-tag.selected .count {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== 預覽區域 ===== */
.preview-summary {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* ===== 導航按鈕 ===== */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.navigation-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navigation-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .register-container {
        padding: 1rem;
    }
    
    #register-wizard {
        border-radius: 12px;
    }
    
    .progress-section {
        padding: 1.5rem 1rem;
    }
    
    .progress-indicator {
        gap: 0.5rem;
    }
    
    .step-title {
        font-size: 0.8rem;
    }
    
    .step-content {
        padding: 1.5rem 1rem;
    }
    
    .navigation-buttons {
        padding: 1rem;
        flex-direction: column-reverse;
        gap: 1rem;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
    
    .option-card {
        margin-bottom: 1rem;
    }
    
    .preview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .step:not(:last-child)::after {
        display: none;
    }
    
    .progress-indicator {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .preview-stats {
        grid-template-columns: 1fr;
    }
}

/* ===== 動畫效果 ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in-up {
    animation: slideInUp 0.5s ease-in-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 載入動畫 ===== */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid var(--white);
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

/* ===== 錯誤狀態 ===== */
.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== 成功狀態 ===== */
.form-control.is-valid {
    border-color: var(--success-color);
}

.valid-feedback {
    display: block;
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}