/* ============================================================
   Verificamex — Modal de calificación de leads (filtro)
   Estilos autónomos (no depende del JS de modales de Bootstrap)
   ============================================================ */

:root {
    --vmx-primary: #5b21e6;
    --vmx-primary-dark: #4711c2;
    --vmx-accent: #1f6feb;
    --vmx-text: #1f2330;
    --vmx-muted: #6b7280;
    --vmx-border: #e5e7eb;
    --vmx-danger: #e11d48;
}

/* ---------- Overlay ---------- */
.vmx-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(2px);
}
.vmx-modal-overlay.is-open {
    display: flex;
}
body.vmx-modal-open {
    overflow: hidden;
}

/* ---------- Card ---------- */
.vmx-modal {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: vmx-pop 0.18s ease-out;
}
@keyframes vmx-pop {
    from { transform: translateY(12px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ---------- Progress bar ---------- */
.vmx-progress {
    height: 5px;
    width: 100%;
    background: #eceff3;
}
.vmx-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--vmx-accent), var(--vmx-primary));
    transition: width 0.25s ease;
}

/* ---------- Header ---------- */
.vmx-modal__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--vmx-border);
}
.vmx-modal__header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vmx-text);
}
.vmx-modal__logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    background: var(--vmx-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.vmx-modal__close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--vmx-muted);
    cursor: pointer;
    padding: 0 4px;
}
.vmx-modal__close:hover { color: var(--vmx-text); }

/* ---------- Body ---------- */
.vmx-modal__body {
    padding: 26px 28px 28px;
}
.vmx-step-title {
    text-align: center;
    color: var(--vmx-accent);
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0 0 22px;
}

/* ---------- Fields ---------- */
.vmx-field { margin-bottom: 20px; }
.vmx-field:last-child { margin-bottom: 0; }
.vmx-field__label {
    display: block;
    font-weight: 600;
    color: #3b4252;
    margin-bottom: 8px;
}
.vmx-field__label .req { color: var(--vmx-danger); margin-left: 2px; }

.vmx-select,
.vmx-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 1rem;
    color: var(--vmx-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.vmx-select:focus,
.vmx-textarea:focus {
    outline: none;
    border-color: var(--vmx-primary);
    box-shadow: 0 0 0 3px rgba(91, 33, 230, 0.15);
}
.vmx-textarea { resize: vertical; min-height: 110px; }

.vmx-field.has-error .vmx-select,
.vmx-field.has-error .vmx-textarea,
.vmx-field.has-error .vmx-chips {
    border-color: var(--vmx-danger);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}
.vmx-field__error {
    display: none;
    color: var(--vmx-danger);
    font-size: 0.85rem;
    margin-top: 6px;
}
.vmx-field.has-error .vmx-field__error { display: block; }

/* ---------- Chips (multiselect) ---------- */
.vmx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 2px;
}
.vmx-chip {
    border: 1px solid #d1d5db;
    background: #f7f8fa;
    color: #3b4252;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.12s;
    user-select: none;
}
.vmx-chip:hover { border-color: var(--vmx-primary); }
.vmx-chip.is-selected {
    background: var(--vmx-primary);
    border-color: var(--vmx-primary);
    color: #fff;
}

/* ---------- Footer / nav ---------- */
.vmx-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}
.vmx-btn {
    border: none;
    border-radius: 10px;
    padding: 12px 26px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.vmx-btn--primary { background: var(--vmx-primary); color: #fff; }
.vmx-btn--primary:hover { background: var(--vmx-primary-dark); }
.vmx-btn--ghost {
    background: #fff;
    color: #3b4252;
    border: 1px solid #d1d5db;
}
.vmx-btn--ghost:hover { background: #f3f4f6; }
.vmx-btn[hidden] { display: none; }

/* ---------- Rejection (KO) message ---------- */
.vmx-reject {
    text-align: center;
    padding: 8px 6px 4px;
}
.vmx-reject__icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fef3c7;
    color: #b45309;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}
.vmx-reject h4 { font-weight: 700; color: var(--vmx-text); margin-bottom: 12px; }
.vmx-reject p { color: var(--vmx-muted); line-height: 1.55; margin-bottom: 18px; }
.vmx-reject a { color: var(--vmx-primary); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 575px) {
    .vmx-modal__body { padding: 22px 18px 24px; }
    .vmx-step-title { font-size: 1.15rem; }
    .vmx-btn { padding: 12px 18px; }
}
