/**
 * VesselNexus — Broker Certification Application (/apply-broker/)
 * 资质选择卡 + 双文件上传 + 审核进度条。
 * 复用: .vnx-field / .vnx-image-upload / .vnx-alert（vnx-registration.css）、
 *       .vnx-btn / .vnx-badge（design tokens）、.vnx-levels-*（vnx-levels.css）。
 * 依赖: vnx-design-tokens.css (全局 enqueue, deps 已声明)
 */

/* ═══════════════════════════════════════════
   资质类型选择卡（4 选 1）
   ═══════════════════════════════════════════ */
.vnx-cred-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--vnx-space-4);
    margin-bottom: var(--vnx-space-6);
}

.vnx-cred-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--vnx-space-2);
    background: var(--vnx-white);
    border: 1px solid var(--vnx-border-light);
    border-radius: var(--vnx-radius-lg);
    padding: var(--vnx-space-4);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.vnx-cred-type-card:hover {
    border-color: var(--vnx-ocean-300);
}

.vnx-cred-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vnx-cred-type-card strong {
    font-size: var(--vnx-text-sm);
    color: var(--vnx-text-primary);
    line-height: var(--vnx-leading-snug);
}

.vnx-cred-type-card span {
    font-size: var(--vnx-text-xs);
    color: var(--vnx-text-tertiary);
}

.vnx-cred-type-card.is-selected {
    border-color: var(--vnx-ocean-500);
    background: var(--vnx-ocean-50);
    box-shadow: var(--vnx-shadow-glow-ocean);
}

/* ═══════════════════════════════════════════
   表单间距与状态提示
   ═══════════════════════════════════════════ */
.vnx-apply-broker-form .vnx-field {
    margin-bottom: var(--vnx-space-5);
}

.vnx-apply-broker-form .vnx-field-label {
    display: flex;
    flex-direction: column;
    gap: var(--vnx-space-1);
}

.vnx-apply-status {
    margin-bottom: var(--vnx-space-5);
}

/* ═══════════════════════════════════════════
   审核进度条（initBrokerProgress 填充）
   ═══════════════════════════════════════════ */
.vnx-broker-progress {
    max-width: 36rem;
    margin-top: var(--vnx-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--vnx-space-2);
}

.vnx-progress-track {
    height: 12px;
    background: var(--vnx-gray-50);
    border: 1px solid var(--vnx-border-light);
    border-radius: 999px;
    overflow: hidden;
}

.vnx-progress-fill {
    height: 100%;
    width: 0;
    background: var(--vnx-ocean-500);
    border-radius: 999px;
    transition: width .4s ease;
}

.vnx-progress-text {
    font-size: var(--vnx-text-sm);
    font-weight: 700;
    color: var(--vnx-ocean-600);
    margin: 0;
}

.vnx-progress-step,
.vnx-progress-days {
    font-size: var(--vnx-text-sm);
    color: var(--vnx-text-secondary);
    margin: 0;
}

.vnx-progress-escalated {
    font-size: var(--vnx-text-sm);
    color: var(--vnx-color-warning);
    margin: 0;
}

/* ═══════════════════════════════════════════
   窄屏：4 卡折 2 列
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .vnx-cred-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
