/* ============================================================================
   ★五通官网 · 意见反馈表单样式（会员中心 / 后续官网匿名页复用）
   --------------------------------------------------------------------------
   ★约定：
     1. 全部使用设计令牌 var(--w-*)，禁止写死色值，保证与全站换肤一致；
     2. 类名前缀 .wtorg-fbw- 独立命名空间，避免与会员中心其它区块互相污染；
     3. 触控热区 ≥44px（与 H5 端验收口径一致）；
     4. 下拉框本身由全站 Wtorg_select.css 负责浮层样式，本文件只处理字段外框。
   ============================================================================ */

.wtorg-fbw-lead {
    font-size: 13px;
    color: var(--w-ink-3);
    line-height: 1.75;
    margin: 0 0 16px;
}

.wtorg-fbw-form {
    background: var(--w-surface);
    border: 1px solid var(--w-line);
    border-radius: 14px;
    padding: 18px 18px 20px;
    box-shadow: 0 2px 10px rgba(11, 18, 32, .04);
}

.wtorg-fbw-field { margin-bottom: 16px; }

.wtorg-fbw-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--w-ink-2);
    margin-bottom: 6px;
}

.wtorg-fbw-labelrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wtorg-fbw-labelrow label { margin-bottom: 6px; }

.wtorg-fbw-req { color: var(--w-danger); margin-left: 3px; }

.wtorg-fbw-count {
    font-size: 12px;
    color: var(--w-ink-4);
    font-variant-numeric: tabular-nums;
}
.wtorg-fbw-count.full { color: var(--w-danger); }

/* ★输入框：与 Bootstrap 表单共存，只补高度与聚焦圈 */
.wtorg-fbw-form .form-control {
    min-height: 46px;
    font-size: 14px;
    color: var(--w-ink-1);
    border: 1px solid var(--w-line-strong);
    border-radius: 10px;
    padding: 11px 13px;
}
.wtorg-fbw-form .form-control:focus {
    border-color: var(--w-primary);
    box-shadow: 0 0 0 3px var(--w-primary-glow);
}
.wtorg-fbw-form textarea.form-control {
    min-height: 140px;
    line-height: 1.7;
    resize: vertical;
}

.wtorg-fbw-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--w-ink-4);
    line-height: 1.6;
}

/* ★错误提示条：中文原因，不暴露技术细节 */
.wtorg-fbw-alert {
    display: none;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 16px;
    padding: 11px 13px;
    background: var(--w-danger-soft);
    border: 1px solid var(--w-danger-line);
    border-radius: 10px;
    font-size: 13px;
    color: var(--w-danger-ink);
    line-height: 1.65;
}
.wtorg-fbw-alert i { margin-top: 2px; }

/* ★模拟模式提示：接口接通后由脚本自动隐藏 */
.wtorg-fbw-note {
    display: none;
    margin-bottom: 14px;
    padding: 9px 12px;
    background: var(--w-info-soft);
    border: 1px solid var(--w-primary-line);
    border-radius: 10px;
    font-size: 12px;
    color: var(--w-info);
    line-height: 1.6;
}

/* ★提交按钮：提交中禁用，避免重复提交 */
.wtorg-fbw-submit {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 11px;
    background: var(--w-primary);
    color: var(--w-primary-ink);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease;
}
.wtorg-fbw-submit:hover:not(:disabled) { background: var(--w-primary-hover); }
.wtorg-fbw-submit:active:not(:disabled) { background: var(--w-primary-active); }
.wtorg-fbw-submit:disabled { opacity: .72; cursor: default; }

.wtorg-fbw-progress {
    display: none;
    height: 5px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--w-primary-soft);
    overflow: hidden;
}
.wtorg-fbw-progress i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--w-primary);
    transition: width .18s ease;
}

/* ★成功态 */
.wtorg-fbw-done {
    display: none;
    background: var(--w-surface);
    border: 1px solid var(--w-line);
    border-radius: 14px;
    padding: 26px 18px 20px;
    box-shadow: 0 2px 10px rgba(11, 18, 32, .04);
    text-align: center;
}
.wtorg-fbw-done-icon {
    width: 54px; height: 54px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: grid; place-items: center;
    background: var(--w-success-soft);
    color: var(--w-success);
    font-size: 24px;
}
.wtorg-fbw-done-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--w-ink-1);
    margin-bottom: 6px;
}
.wtorg-fbw-done-desc {
    font-size: 13px;
    color: var(--w-ink-3);
    line-height: 1.7;
    margin-bottom: 16px;
}

.wtorg-fbw-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: var(--w-primary-soft);
    border: 1px dashed var(--w-primary-line);
    border-radius: 12px;
    text-align: left;
}
.wtorg-fbw-ticket-k { font-size: 12px; color: var(--w-ink-3); }
.wtorg-fbw-ticket-v {
    font-size: 15px;
    font-weight: 700;
    color: var(--w-ink-1);
    letter-spacing: .5px;
    word-break: break-all;
}
.wtorg-fbw-copy {
    min-height: 44px;
    padding: 0 18px;
    flex: 0 0 auto;
    border: 1px solid var(--w-primary);
    border-radius: 10px;
    background: var(--w-surface);
    color: var(--w-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.wtorg-fbw-copy:hover { background: var(--w-primary-soft); }

.wtorg-fbw-copyhint {
    display: none;
    margin: -4px 0 14px;
    font-size: 12px;
    color: var(--w-success);
    text-align: left;
}

.wtorg-fbw-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wtorg-fbw-actions .btn {
    min-height: 46px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ★小屏：字段上下排列，触控更好点 */
@media (max-width: 767.98px) {
    .wtorg-fbw-form { padding: 15px 14px 17px; }
}
