@charset "UTF-8";
/* ============================================================
   Signup pages layout / RWD fixes
   Scoped to .signup-rwd so it only affects the signup views
   (Index / Members / MemberEdit) and never leaks to other
   front-end pages or the backend.
   ============================================================ */

/* 1. Nested .container must never exceed the viewport width
      (a Bootstrap .container inside the layout container is the
      classic cause of horizontal scrolling on phones). */
.signup-rwd .container {
    width: 100%;
    max-width: 100%;
}

/* 2. When columns stack on small screens, give them spacing
      so fields don't cram against each other. */
.signup-rwd .form-group > [class*="col-"] {
    margin-bottom: 14px;
}

/* 3. Field labels sit on their own line, full width
      (overrides .word1 { max-width: 90px } which truncated labels). */
.signup-rwd .form-group label,
.signup-rwd .signup-content label.word1,
.signup-rwd .signup-content label.need {
    display: block;
    max-width: none;
    margin-bottom: 4px;
}

/* 4. Inputs and the custom .select1 dropdowns fill their column
      and align to the same height as Bootstrap inputs. */
/* 輸入框與下拉統一成同一種乾淨樣式（白底、細框、圓角、等高） */
.signup-rwd .form-control,
.signup-rwd .select1 select {
    width: 100%;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
    color: #333;
}

.signup-rwd .form-control {
    padding: 6px 10px;
}

.signup-rwd .select1 {
    display: block;
    width: 100%;
    margin-bottom: 4px;
}

.signup-rwd .select1 select {
    line-height: 1.4;
    padding: 6px 28px 6px 10px;
    text-align: left;
}

.signup-rwd .select1 .arrow {
    height: 36px;
    line-height: 36px;
}

/* 5. Birthday row keeps its 年 / 月 / 日 selects inline and lets
      them wrap gracefully instead of being forced full width. */
.signup-rwd .birth .select1 {
    display: inline-block;
    width: auto;
    min-width: 84px;
    vertical-align: middle;
    margin: 0 4px 8px;
}

.signup-rwd .birth > label {
    display: inline-block;
    margin-bottom: 8px;
}

/* 6. The members table scrolls horizontally on small screens
      rather than overflowing the page. */
.signup-rwd .table {
    width: 100%;
}

/* 7. Drop the md-only offset indentation on tablet / phone. */
@media (max-width: 991px) {
    .signup-rwd .col-md-offset-2 {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .signup-rwd table.table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Action buttons get vertical spacing when they wrap. */
    .signup-rwd .btn {
        margin-bottom: 8px;
    }
}

/* 8. 歌詞上傳：自訂檔案選擇按鈕 + 顯示檔名（隱藏預設醜醜的 file input） */
.signup-rwd .lyric-upload {
    margin-top: 6px;
}

/* 下載 + 選擇歌詞檔 同一排 */
.signup-rwd .lyric-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.signup-rwd .lyric-actions .btn {
    margin: 0;
}

.signup-rwd .file-hidden {
    position: absolute;
    width: .1px;
    height: .1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.signup-rwd .file-pick {
    cursor: pointer;
    margin-right: 8px;
    margin-bottom: 4px;
}

.signup-rwd .file-name {
    display: inline-block;
    margin-top: 4px;
    color: #999;
    font-size: 13px;
    vertical-align: middle;
    word-break: break-all;
}

.signup-rwd .file-name.has-file {
    color: #2e7d32;
    font-weight: 600;
}

.signup-rwd .file-name.has-file:before {
    content: "\2714  ";
}

/* 9. 多步驟進度列 */
.signup-rwd .signup-steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 6px 0 22px;
}

.signup-rwd .signup-steps > li {
    flex: 1;
    position: relative;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #c2c7d4; /* 深底可讀的淺灰 */
}

.signup-rwd .signup-steps > li:before { /* 連接線 */
    content: "";
    position: absolute;
    top: 16px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: #d8dbe6;
    z-index: 0;
}

.signup-rwd .signup-steps > li:first-child:before {
    display: none;
}

.signup-rwd .signup-steps > li > span {
    position: relative;
    z-index: 1;
    display: block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #d8dbe6;
    color: #fff;
}

.signup-rwd .signup-steps > li.active {
    color: #ffffff; /* 目前步驟：白字，深底最清楚 */
}

.signup-rwd .signup-steps > li.active > span {
    background: #7c5cdb;
    box-shadow: 0 0 0 4px rgba(124, 92, 219, .35);
}

.signup-rwd .signup-steps > li.done {
    color: #7bd88f; /* 已完成：亮綠 */
}

.signup-rwd .signup-steps > li.done > span {
    background: #2e9e4f;
}

.signup-rwd .signup-steps > li.done:before,
.signup-rwd .signup-steps > li.active:before {
    background: #7c5cdb;
}

/* 10. 團員完成度提示 */
.signup-rwd .member-status {
    margin: 8px 0 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.signup-rwd .member-status.warn {
    background: #fff3cd;
    color: #8a6d3b;
    border: 1px solid #ffe39a;
}

.signup-rwd .member-status.ok {
    background: #e6f4ea;
    color: #2e7d32;
    border: 1px solid #b7e0c0;
}

.signup-rwd .badge-incomplete {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    background: #d9534f;
    color: #fff;
}

.signup-rwd .badge-complete {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    background: #2e7d32;
    color: #fff;
}

/* 11. 送出/上傳中遮罩（避免重複送出） */
.hm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-overlay .hm-box {
    background: #fff;
    padding: 20px 28px;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hm-overlay .hm-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #d8dbe6;
    border-top-color: #5b3cc4;
    border-radius: 50%;
    animation: hmspin .8s linear infinite;
}

@keyframes hmspin {
    to { transform: rotate(360deg); }
}
