/* ── Secure PDF Viewer — Frontend ── */

.spv-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 100%;
    width:100%;
    margin: 0 auto;
    color: #1a1a1a;
}

/* ── Shared step styles ── */
.spv-step { transition: all .3s ease; }

/* ── Step 1: Email Gate ── */
.spv-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    background: #000000;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

.spv-gate-box {
    text-align: center;
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
}

.spv-lock-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
}

.spv-gate-box h3 {
    font-size: 3.45rem !important;
    font-weight: 700;
    margin: 0 0 8px;
    color: #f7f7f7;
}

.spv-gate-box > p {
    color: #f7f7f7;
    margin: 0 0 22px;
    font-size: .95rem;
}

.spv-email-input {
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem;
    border: 1.5px solid #d0d0d0;
    border-radius: 7px;
    box-sizing: border-box;
    margin-bottom: 12px;
    outline: none;
    transition: border-color .2s;
    background: #fff;
}

.spv-email-input:focus { border-color: #0073aa; box-shadow: 0 0 0 3px rgba(0,115,170,.1); }

.spv-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: .01em;
}

.spv-submit-btn:hover    { background: #005a87; }
.spv-submit-btn:active   { transform: scale(.99); }
.spv-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

.spv-gate-msg {
    margin-top: 14px;
    font-size: .9rem;
    min-height: 20px;
}

.spv-error   { color: #c0392b !important; }
.spv-success { color: #27ae60 !important; }

/* ── Step 2: NDA ── */
.spv-nda-wrap {
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.spv-nda-header {
    background: #1a1a2e;
    color: #fff;
    padding: 22px 28px 18px;
}

.spv-nda-header h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.spv-nda-subtitle {
    margin: 0;
    font-size: .85rem;
    color: #bbb;
}

.spv-nda-scroll {
    height: 320px;
    overflow-y: auto;
    padding: 24px 28px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    scroll-behavior: smooth;
}

.spv-nda-body {
    font-size: .88rem;
    line-height: 1.75;
    color: #333;
    white-space: pre-wrap;
}

.spv-nda-scroll-notice {
    text-align: center;
    padding: 8px;
    background: #fff8e1;
    color: #856404;
    font-size: .82rem;
    font-weight: 600;
    border-bottom: 1px solid #ffeaa7;
}

.spv-nda-sign {
    padding: 22px 28px 24px;
    background: #fff;
}

.spv-sign-label {
    font-size: .9rem;
    color: #333;
    margin: 0 0 12px;
    font-weight: 500;
}

.spv-sign-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.spv-sig-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1.5px solid #d0d0d0;
    border-radius: 7px;
    outline: none;
    font-style: italic;
    transition: border-color .2s;
}

.spv-sig-input:focus { border-color: #0073aa; box-shadow: 0 0 0 3px rgba(0,115,170,.1); }

.spv-sign-btn {
    padding: 12px 22px;
    font-size: .95rem;
    font-weight: 600;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    white-space: nowrap;
}

.spv-btn-disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}

.spv-btn-ready,
.spv-sign-btn:not(.spv-btn-disabled):not(:disabled) {
    background: #1a7f37;
    color: #fff;
}

.spv-sign-btn:not(.spv-btn-disabled):not(:disabled):hover { background: #155d27; }

.spv-nda-msg {
    margin: 12px 0 0;
    font-size: .88rem;
    min-height: 18px;
}

.spv-nda-legal-note {
    margin: 14px 0 0;
    font-size: .78rem;
    color: #888;
    line-height: 1.5;
}

/* ── Step 3: PDF Viewer ── */
.spv-viewer-wrap {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
}

.spv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    padding: 11px 18px;
    color: #eee;
    font-size: .88rem;
    flex-wrap: wrap;
    gap: 8px;
}

.spv-doc-title { font-weight: 700; color: #fff; }

.spv-access-info { color: #8bc34a; font-size: .8rem; }

.spv-nav { display: flex; align-items: center; gap: 10px; }

.spv-nav button {
    background: #333;
    color: #eee;
    border: 1px solid #555;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: .85rem;
    transition: background .15s;
}

.spv-nav button:hover { background: #444; }

#spv-page-info { color: #bbb; font-size: .85rem; }

[id^="spv-canvas-"] {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Scrollbar styling for NDA */
.spv-nda-scroll::-webkit-scrollbar { width: 6px; }
.spv-nda-scroll::-webkit-scrollbar-track { background: #f0f0f0; }
.spv-nda-scroll::-webkit-scrollbar-thumb { background: #bbb; border-radius: 3px; }

canvas#spv-canvas-3 {
    width: 100%;
}