/*
 * Investor Report modal (sp/modal.php).
 * Every rule is scoped to #spReportModal so the host page CSS
 * (e.g. `* { color:#fff }`, `li { margin-top }`, `p { font-size }`) can't leak in,
 * and nothing here leaks out.
 */

#spReportModal {
    --sp-navy: #08142b;
    --sp-lime: #b4f22c;
    --sp-lime-2: #9ee01b;
    --sp-lime-soft: #e4ffab;
    --sp-ink: #0b1630;
    --sp-ink-muted: #3c4660;
    --sp-light: #eef3f9;
    --sp-input-border: #c9d1dd;
    --sp-font: "Montserrat", Arial, sans-serif;
    --sp-radius: 28px;
}

/* ---------- reset against host page styles ---------- */

#spReportModal * {
    box-sizing: border-box;
    color: inherit;
    font-family: var(--sp-font);
}

#spReportModal p,
#spReportModal h2,
#spReportModal h3,
#spReportModal ul,
#spReportModal li {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: normal;
    text-transform: none;
}

/* some host pages force `p { margin-bottom: ... !important }` */
#spReportModal p {
    margin-bottom: 0 !important;
}

#spReportModal li {
    list-style: none;
}

#spReportModal li::before {
    content: none;
}

#spReportModal a {
    text-decoration: none;
}

/* ---------- Bootstrap modal shell ---------- */

#spReportModal .modal-dialog {
    width: auto;
    max-width: 1160px;
    margin: 1.5rem auto;
    padding: 0 16px;
}

#spReportModal .modal-dialog.modal-dialog-centered {
    min-height: calc(100% - 3rem);
}

/* ---------- Card ---------- */

#spReportModal .sp-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--sp-radius);
    background: var(--sp-navy);
    color: var(--sp-ink);
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.04);
}

#spReportModal .sp-close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#spReportModal .sp-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

/* ---------- Hero ---------- */

#spReportModal .sp-hero {
    position: relative;
    padding: 22px clamp(20px, 5vw, 70px) 150px;
    background: var(--sp-navy);
    color: #fff;
    isolation: isolate;
}

#spReportModal .sp-hero-bg {
    position: absolute;
    inset: 0 0 0 30%;
    z-index: -2;
    background-size: cover;
    background-position: center;
}

/* fades the photo into navy on the left and toward the light body below */
#spReportModal .sp-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, var(--sp-navy) 30%, rgba(8, 20, 43, 0.82) 48%, rgba(8, 20, 43, 0.25) 75%, rgba(8, 20, 43, 0.1) 100%),
        linear-gradient(180deg, rgba(8, 20, 43, 0.35) 0%, transparent 25%, transparent 55%, var(--sp-navy) 100%);
}

#spReportModal .sp-top {
    text-align: center;
}

#spReportModal .sp-hero-inner {
    max-width: 760px;
    text-align: center;
}

#spReportModal .sp-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 12px;
}

#spReportModal .sp-brand-line {
    width: 90px;
    height: 2px;
    background: rgba(255, 255, 255, 0.45);
}

#spReportModal .sp-wordmark {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}

#spReportModal .sp-wordmark b {
    font-weight: 800;
}

#spReportModal .sp-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 26px;
    border: 3px solid var(--sp-lime);
    border-radius: 10px;
    background: #050c1b;
    box-shadow: 0 0 18px rgba(180, 242, 44, 0.35);
    transform: skewX(-12deg);
}

#spReportModal .sp-badge span {
    display: inline-block;
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.45rem);
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.01em;
    transform: skewX(12deg);
}

#spReportModal .sp-headline {
    color: #fff;
    font-size: clamp(1.9rem, 4.6vw, 2.4rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.015em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

#spReportModal .sp-headline .sp-accent {
    color: var(--sp-lime);
}

#spReportModal .sp-subhead {
    max-width: 620px;
    margin: 16px auto 0;
    color: #e8edf6;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 500;
    line-height: 1.4;
}

/* ---------- Body ---------- */

#spReportModal .sp-body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
    margin-top: -120px;
    padding: 0 clamp(18px, 2.4vw, 28px) 0 clamp(18px, 2vw, 22px);
}

/* the body owns the light background so the navy hero can fade into it */
#spReportModal .sp-body::before {
    content: "";
    position: absolute;
    inset: 0 -40px 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(238, 243, 249, 0) 0%, rgba(238, 243, 249, 0.85) 90px, var(--sp-light) 130px);
}

#spReportModal .sp-offer {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(14px, 2vw, 26px);
    align-items: center;
    padding-top: 6px;
}

/* ---------- Book ---------- */

#spReportModal .sp-book {
    padding: 0 18px 18px 4px;
    perspective: 1200px;
}

#spReportModal .sp-book-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px 10px 10px 4px;
    background: linear-gradient(170deg, #0d1f44 0%, #06102a 60%);
    transform: rotateY(-14deg) rotateZ(1deg);
    transform-origin: left center;
    box-shadow:
        5px 5px 0 #f4f6fa,
        6px 6px 0 #c5ccd8,
        10px 10px 0 #f4f6fa,
        11px 11px 0 #c5ccd8,
        15px 15px 0 #eef1f6,
        24px 30px 40px rgba(6, 16, 40, 0.45);
}

#spReportModal .sp-book-cover::after {
    /* spine highlight */
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 3;
    width: 14px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.25) 60%, transparent);
}

#spReportModal .sp-book-art {
    position: absolute;
    inset: 46% 0 0 0;
    background-size: cover;
    background-position: center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}

#spReportModal .sp-book-slash {
    position: absolute;
    top: -12%;
    right: 12%;
    z-index: 2;
    width: 13%;
    height: 38%;
    background: var(--sp-lime);
    transform: skewX(-32deg);
}

#spReportModal .sp-book-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 12% 10% 0 12%;
}

#spReportModal .sp-wordmark--sm {
    font-size: clamp(0.85rem, 1.5vw, 1.15rem);
}

#spReportModal .sp-book-kicker {
    margin-top: 6px;
    color: #d9e1ee;
    font-size: clamp(0.5rem, 0.9vw, 0.68rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#spReportModal .sp-book-ticker {
    margin-top: 10%;
    color: #fff;
    font-size: clamp(2.2rem, 5.4vw, 4.2rem);
    font-style: italic;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

#spReportModal .sp-book-company {
    margin-top: 6px;
    color: var(--sp-lime);
    font-size: clamp(0.62rem, 1.15vw, 0.95rem);
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.25;
    text-transform: uppercase;
}

/* ---------- Features ---------- */

#spReportModal .sp-features {
    align-self: end;
    margin: 0 0 18px;
}

#spReportModal .sp-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #d6dce6;
}

#spReportModal .sp-features li:last-child {
    border-bottom: 0;
}

#spReportModal .sp-feature-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: var(--sp-lime-soft);
    color: var(--sp-ink);
}

#spReportModal .sp-feature-title {
    max-width: 8em;
    color: var(--sp-ink);
    font-size: clamp(0.9rem, 1.3vw, 1.08rem);
    font-weight: 700;
    line-height: 1.15;
}

/* ---------- Form card ---------- */

#spReportModal .sp-form-card {
    padding: clamp(16px, 2vw, 24px) clamp(16px, 2.2vw, 26px);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(8, 20, 43, 0.22);
}

#spReportModal .sp-form {
    display: grid;
    gap: 12px;
}

#spReportModal .sp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#spReportModal .sp-input {
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 16px;
    border: 1.5px solid var(--sp-input-border);
    border-radius: 8px;
    background: #fff;
    color: var(--sp-ink);
    font-size: 0.98rem;
    font-weight: 500;
    outline: none;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#spReportModal .sp-input::placeholder {
    color: #4a556d;
    opacity: 1;
}

#spReportModal .sp-input:focus {
    border-color: var(--sp-lime-2);
    box-shadow: 0 0 0 3px rgba(180, 242, 44, 0.35);
}

#spReportModal .sp-phone {
    display: flex;
    border: 1.5px solid var(--sp-input-border);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#spReportModal .sp-phone:focus-within {
    border-color: var(--sp-lime-2);
    box-shadow: 0 0 0 3px rgba(180, 242, 44, 0.35);
}

#spReportModal .sp-phone .sp-input {
    border: 0;
    box-shadow: none;
}

#spReportModal .sp-phone-flag {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-right: 1.5px solid var(--sp-input-border);
    color: var(--sp-ink-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

#spReportModal .sp-phone-flag svg {
    border-radius: 2px;
}

#spReportModal .sp-receive {
    margin-top: 4px;
}

#spReportModal .sp-receive-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: var(--sp-ink);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

#spReportModal .sp-receive-title::before {
    content: "";
    width: 6px;
    height: 24px;
    border-radius: 3px;
    background: var(--sp-lime);
}

#spReportModal .sp-receive-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 6px 0 6px 12px;
    color: var(--sp-ink);
}

#spReportModal .sp-receive-item svg {
    flex: 0 0 auto;
    margin-top: 2px;
}

#spReportModal .sp-receive-item p {
    color: var(--sp-ink-muted);
    font-weight: 400;
    font-size: 0.86rem;
    line-height: 1.3;
}

#spReportModal .sp-receive-item strong {
    color: var(--sp-ink);
    font-weight: 700;
}

#spReportModal .sp-consent {
    color: #5b6478;
    font-weight: 400;
    font-size: 0.58rem;
    text-align: center;
}

#spReportModal .sp-legal {
    color: #5b6478;
    font-weight: 400;
    font-size: 0.56rem;
    line-height: 1.35;
    text-align: center;
    margin-top: 10px;
}

#spReportModal .sp-legal a {
    color: #1a2440;
    text-decoration: underline;
}

#spReportModal .sp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-height: 55px;
    margin: 0;
    padding: 0 15px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #c6fb4a 0%, var(--sp-lime-2) 100%);
    box-shadow: 0 8px 22px rgba(158, 224, 27, 0.45), inset 0 -3px 0 rgba(0, 0, 0, 0.08);
    color: var(--sp-ink);
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    font-weight: 900;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#spReportModal .sp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(158, 224, 27, 0.55), inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}

#spReportModal .sp-button:active {
    transform: translateY(0);
}

#spReportModal .sp-button svg {
    transition: transform 0.2s ease;
}

#spReportModal .sp-button:hover svg {
    transform: translateX(4px);
}

/* ---------- Decline ---------- */

#spReportModal .sp-decline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 28px 20px 30px;
    background: var(--sp-light);
}

#spReportModal .sp-decline a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sp-ink);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

#spReportModal .sp-decline a:hover {
    color: #000;
}

#spReportModal .sp-decline-line {
    width: 160px;
    height: 2px;
    background: #2a3550;
    opacity: 0.85;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    #spReportModal .sp-hero {
        padding-bottom: 120px;
    }

    #spReportModal .sp-hero-bg {
        inset: 0;
    }

    #spReportModal .sp-hero-shade {
        background: linear-gradient(180deg, rgba(8, 20, 43, 0.75) 0%, rgba(8, 20, 43, 0.82) 60%, var(--sp-navy) 100%);
    }

    #spReportModal .sp-hero-inner {
        max-width: none;
    }

    #spReportModal .sp-body {
        grid-template-columns: 1fr;
        margin-top: -90px;
    }

    #spReportModal .sp-offer,
    #spReportModal .sp-form-card {
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
    }

    #spReportModal .sp-book {
        max-width: 320px;
    }

    #spReportModal .sp-decline-line {
        width: 60px;
    }
}

@media (max-width: 575.98px) {
    #spReportModal {
        --sp-radius: 20px;
    }

    #spReportModal .modal-dialog {
        margin: 10px auto;
        padding: 0 10px;
    }

    #spReportModal .sp-close {
        top: 6px;
        right: 6px;
    }

    #spReportModal .sp-brand {
        gap: 12px;
        padding: 0 36px;
    }

    #spReportModal .sp-brand-line {
        width: 32px;
    }

    #spReportModal .sp-hero {
        padding: 16px 16px 70px;
    }

    #spReportModal .sp-headline br {
        display: none;
    }

    #spReportModal .sp-body {
        margin-top: -50px;
        padding: 0 12px;
    }

    #spReportModal .sp-offer {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
        gap: 10px;
    }

    #spReportModal .sp-book {
        padding: 0 14px 14px 0;
    }

    #spReportModal .sp-features {
        margin-bottom: 10px;
    }

    #spReportModal .sp-features li {
        gap: 8px;
        padding: 8px 0;
    }

    #spReportModal .sp-feature-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    #spReportModal .sp-feature-icon svg {
        width: 20px;
        height: 20px;
    }

    #spReportModal .sp-feature-title {
        font-size: 0.82rem;
    }

    #spReportModal .sp-row {
        grid-template-columns: 1fr;
    }

    #spReportModal .sp-input {
        padding: 0 12px;
    }

    #spReportModal .sp-phone-flag {
        padding: 0 10px;
    }

    #spReportModal .sp-button {
        min-height: 56px;
        gap: 8px;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    #spReportModal .sp-decline {
        gap: 12px;
        padding: 22px 12px 24px;
    }

    #spReportModal .sp-decline a {
        font-size: 0.9rem;
    }

    #spReportModal .sp-decline-line {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #spReportModal .sp-close,
    #spReportModal .sp-button,
    #spReportModal .sp-button svg {
        transition: none;
    }
}
