/* ═══════════════════════════════════════════════════════════════════════════
   Vantage Protection — Consultation Modal
   Prefix: vpmod-
   Apple glassmorphism — red/white/blue — no gold/orange
   Mobile-first responsive
   Phase: Vantage Consultation (2026-05-22)
════════════════════════════════════════════════════════════════════════════ */

/* ── Overlay ── */
#vpmod-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(11, 36, 71, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overscroll-behavior: contain;
}
#vpmod-overlay.vpmod-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* ── Dialog ── */
#vpmod-dialog {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(11, 36, 71, 0.32), 0 0 0 1px rgba(255,255,255,0.6);
    padding: 40px 36px 32px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* ── Close button ── */
#vpmod-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(11, 36, 71, 0.08);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    color: #0B2447;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}
#vpmod-close:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #DC2626;
}
#vpmod-close:focus-visible {
    outline: 2px solid #0B2447;
    outline-offset: 2px;
}

/* ── Header ── */
.vpmod-eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #DC2626;
    display: block;
    margin: 0 0 8px;
}
.vpmod-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0B2447;
    margin: 0 0 4px;
    line-height: 1.2;
}
.vpmod-sub {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ── Form fields ── */
.vpmod-field {
    margin-bottom: 16px;
}
.vpmod-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 5px;
}
.vpmod-label .vpmod-req {
    color: #DC2626;
    margin-left: 2px;
}
.vpmod-input,
.vpmod-select,
.vpmod-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.vpmod-input:focus,
.vpmod-select:focus,
.vpmod-textarea:focus {
    outline: none;
    border-color: #0B2447;
    box-shadow: 0 0 0 3px rgba(11, 36, 71, 0.1);
    background: #fff;
}
.vpmod-input.vpmod-error,
.vpmod-select.vpmod-error,
.vpmod-textarea.vpmod-error {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.vpmod-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230B2447' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.vpmod-textarea {
    resize: vertical;
    min-height: 88px;
}

/* ── TCPA block (reuses Phase 1F styling from concierge-tcpa.css) ── */
.vpmod-tcpa-wrap {
    margin: 16px 0 20px;
    padding: 12px 14px;
    background: #f8f9fa;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
}
.vpmod-tcpa-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #2c3e50;
}
.vpmod-tcpa-checkbox {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin: 2px 0 0 0;
    cursor: pointer;
    accent-color: #0B2447;
}
.vpmod-tcpa-text {
    flex: 1;
}
.vpmod-tcpa-secondary {
    margin: 6px 0 0 32px;
    font-size: 0.75rem;
    color: #5a6a7e;
}
.vpmod-tcpa-secondary a {
    color: #0B2447;
    text-decoration: underline;
}

/* ── Submit button ── */
.vpmod-submit {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #f87171 0%, #DC2626 40%, #b91c1c 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 0 #7f1d1d, 0 10px 24px rgba(220, 38, 38, 0.35);
    transition: transform 0.1s, box-shadow 0.1s;
}
.vpmod-submit:hover:not(:disabled) {
    background: linear-gradient(180deg, #fca5a5 0%, #ef4444 40%, #DC2626 100%);
    box-shadow: 0 8px 0 #7f1d1d, 0 14px 32px rgba(220, 38, 38, 0.42);
    transform: translateY(-2px);
}
.vpmod-submit:active:not(:disabled) {
    transform: translateY(1px);
}
.vpmod-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Status messages ── */
.vpmod-error-msg {
    background: rgba(220, 38, 38, 0.07);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #991b1b;
    margin-bottom: 14px;
    display: none;
}
.vpmod-error-msg.vpmod-visible { display: block; }

/* ── Success state ── */
.vpmod-success {
    display: none;
    text-align: center;
    padding: 20px 0 8px;
}
.vpmod-success.vpmod-visible { display: block; }
.vpmod-success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}
.vpmod-success-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0B2447;
    margin: 0 0 8px;
}
.vpmod-success-body {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ── Loading spinner ── */
.vpmod-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vpmod-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes vpmod-spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    #vpmod-dialog {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }
    .vpmod-title {
        font-size: 1.15rem;
    }
    .vpmod-tcpa-label {
        font-size: 0.79rem;
    }
    .vpmod-tcpa-secondary {
        margin-left: 32px;
    }
}
