/* 報名步驟進度條樣式，轉譯自 progress/_progress.scss（本站無 Sass 建置流程，手動展開巢狀選擇器） */

/* ===== 進度條容器 ===== */
.progress-container {
    width: 100%;
    max-width: 900px;
    margin: 1em auto;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.progress-container * {
    box-sizing: border-box;
}

/* 背景進度線 */
.progress-line {
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    z-index: 0;
}

/* 已完成進度線 */
.progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--brand-accent, #2563eb);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* 步驟列表 */
.steps-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* 單個步驟 */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex: 1;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-3px);
}

/* 步驟圓圈 */
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: #e0e0e0;
    border: 3px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: none;
}

/* 步驟標籤 */
.step-label {
    margin-top: 14px;
    font-size: 14px;
    color: #9e9e9e;
    font-weight: 500;
    text-align: center;
    transition: all 0.4s ease;
    white-space: nowrap;
}

/* ===== 已完成步驟 (completed) ===== */
.step.completed .step-circle {
    background: var(--brand-accent, #2563eb);
    border-color: var(--brand-accent, #2563eb);
    box-shadow: none;
}

.step.completed .step-label {
    color: var(--brand-accent, #2563eb);
    font-weight: 600;
}

.step.completed .step-circle::after {
    content: '\2713';
    font-size: 20px;
}

.step.completed .step-circle span {
    display: none;
}

/* ===== 當前步驟 (active) - 突出顯示 ===== */
.step.active .step-circle {
    background: var(--brand-surface, #fff);
    color: var(--brand-accent, #2563eb);
    border-color: var(--brand-accent, #2563eb);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.step.active .step-label {
    color: var(--brand-accent, #2563eb);
    font-weight: 700;
    font-size: 15px;
}

.step.pending .step-circle {
    background: #fff;
    color: #bdbdbd;
    border-color: #e0e0e0;
}

.step.pending .step-label {
    color: #bdbdbd;
}

/* 按鈕區（若後續步驟頁需要上一步／下一步按鈕可沿用） */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-prev {
    background: #fff;
    color: var(--brand-accent, #2563eb);
    border: 2px solid var(--brand-accent, #2563eb);
    padding: 12px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.btn-prev:hover {
    background: var(--brand-accent, #2563eb);
    color: #fff;
}

.btn-next {
    background: var(--brand-accent, #2563eb);
    color: #fff;
    padding: 12px 36px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.btn-next:hover {
    background: var(--brand-accent-hover, #1d4ed8);
}

.btn-group .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .step-circle {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
        margin-top: 10px;
        white-space: normal;
        max-width: 60px;
        line-height: 1.3;
    }

    .progress-line {
        top: 20px;
        left: 40px;
        right: 40px;
    }

    .progress-container {
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .btn-group {
        gap: 12px;
    }

    .btn-prev,
    .btn-next {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .step-label {
        font-size: 10px;
        max-width: 50px;
    }

    .progress-line {
        top: 17px;
        left: 30px;
        right: 30px;
    }
}
