/* ══════════════════════════════════════════════════════════════════
   questionnaire.css — twvip「會員操作習慣與風控適合度問卷」獨立樣式
   2026-10-12 Wen 定案：黑金極簡表格化，零內聯污染
   ══════════════════════════════════════════════════════════════════ */

.q-entry-card {
    margin: 0 12px 14px;
    padding: 12px 14px;
    border: 1px solid rgba(241, 224, 90, 0.35);
    border-radius: 10px;
    background: rgba(241, 224, 90, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.q-entry-text {
    font-size: 0.82rem;
    color: #f0f6fc;
    line-height: 1.5;
}
.q-entry-badge {
    font-size: 0.68rem;
    color: #3fb950;
    display: block;
    margin-top: 2px;
}
.q-entry-btn {
    flex-shrink: 0;
    background: rgba(241, 224, 90, 0.15);
    border: 1px solid #f1e05a;
    color: #f1e05a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.q-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(1, 4, 9, 0.85);
    z-index: 20000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 12px;
    overflow-y: auto;
}
.q-modal-box {
    width: 100%;
    max-width: 460px;
    background: #161b22;
    border: 1px solid rgba(241, 224, 90, 0.35);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 40px;
}
.q-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #30363d;
}
.q-modal-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f1e05a;
}
.q-modal-close {
    cursor: pointer;
    font-size: 1.1rem;
    color: #8b949e;
}
.q-modal-desc {
    font-size: 0.76rem;
    color: #8b949e;
    line-height: 1.5;
    margin-bottom: 12px;
}

.q-question-block {
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(13, 17, 23, 0.5);
}
.q-question-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #f0f6fc;
    line-height: 1.55;
    margin-bottom: 8px;
}
.q-question-num {
    color: #f1e05a;
    margin-right: 5px;
}
.q-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #c9d1d9;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 2px;
}
.q-option:hover { background: rgba(88, 166, 255, 0.08); }
.q-option input { accent-color: #f1e05a; cursor: pointer; }

.q-scale-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 6px 0;
}
.q-scale-btn {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #30363d;
    border-radius: 6px;
    background: transparent;
    color: #8b949e;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}
.q-scale-btn.active {
    border-color: #f1e05a;
    color: #f1e05a;
    background: rgba(241, 224, 90, 0.12);
}
.q-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.66rem;
    color: #8b949e;
    line-height: 1.4;
    gap: 10px;
}

.q-submit-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f1e05a, #d29922);
    border: none;
    border-radius: 8px;
    color: #0d1117;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}
.q-submit-btn:disabled { opacity: 0.5; cursor: default; }
.q-error-msg {
    color: #f85149;
    font-size: 0.78rem;
    margin-top: 8px;
    text-align: center;
    line-height: 1.5;
}
.q-success-msg {
    color: #3fb950;
    font-size: 0.82rem;
    margin-top: 8px;
    text-align: center;
    font-weight: 700;
}
