:root.sjp-oep-lock {
    overflow: hidden;
}

.sjp-oep-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 16, 32, 0.72);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
    box-sizing: border-box;
}

.sjp-oep-overlay * {
    box-sizing: border-box;
}

.sjp-oep-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.sjp-oep-modal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1fr);
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    transform: translateY(16px) scale(0.98);
    transition: transform 260ms ease;
}

.sjp-oep-overlay.is-visible .sjp-oep-modal {
    transform: translateY(0) scale(1);
}

.sjp-oep-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #142033;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.sjp-oep-image-wrap {
    position: relative;
    min-height: 560px;
    background: var(--sjp-oep-brand, #0B2D5C);
    overflow: hidden;
}

.sjp-oep-image-wrap:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 45, 92, 0.12), rgba(11, 45, 92, 0.58));
}

.sjp-oep-image {
    width: 100%;
    height: 100%;
    min-height: 560px;
    display: block;
    object-fit: cover;
}

.sjp-oep-placeholder {
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    padding: 38px;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, var(--sjp-oep-brand, #0B2D5C), #071B38 68%);
}

.sjp-oep-placeholder span {
    position: relative;
    z-index: 2;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.sjp-oep-content {
    position: relative;
    padding: clamp(28px, 4vw, 54px);
    overflow-y: auto;
}

.sjp-oep-content:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 9px;
    height: 100%;
    background: var(--sjp-oep-accent, #F5C542);
}

.sjp-oep-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--sjp-oep-brand, #0B2D5C);
    background: rgba(245, 197, 66, 0.18);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sjp-oep-content h2 {
    margin: 0 0 14px;
    color: var(--sjp-oep-brand, #0B2D5C);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 0.98;
    font-weight: 850;
    letter-spacing: -0.045em;
}

.sjp-oep-intro {
    margin: 0 0 26px;
    color: #445064;
    font-size: 17px;
    line-height: 1.55;
}

.sjp-oep-form label {
    display: block;
    margin: 16px 0 7px;
    color: #1d2b3f;
    font-size: 14px;
    font-weight: 800;
}

.sjp-oep-form input[type="text"],
.sjp-oep-form input[type="email"] {
    width: 100%;
    min-height: 52px;
    padding: 14px 15px;
    border: 1px solid #d6dce6;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.sjp-oep-form input:focus {
    border-color: var(--sjp-oep-brand, #0B2D5C);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(11, 45, 92, 0.10);
}

.sjp-oep-privacy {
    margin: 14px 0 18px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.sjp-oep-submit {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: var(--sjp-oep-brand, #0B2D5C);
    color: #ffffff;
    font-size: 16px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(11, 45, 92, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.sjp-oep-submit:hover,
.sjp-oep-submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(11, 45, 92, 0.28);
}

.sjp-oep-submit:disabled {
    opacity: 0.68;
    cursor: wait;
}

.sjp-oep-message {
    margin-top: 14px;
    min-height: 22px;
    font-size: 14px;
    font-weight: 700;
}

.sjp-oep-message.is-success {
    color: #167243;
}

.sjp-oep-message.is-error {
    color: #b42318;
}

@media (max-width: 780px) {
    .sjp-oep-overlay {
        align-items: flex-end;
        padding: 14px;
    }

    .sjp-oep-modal {
        grid-template-columns: 1fr;
        width: 100%;
        max-height: calc(100vh - 28px);
        border-radius: 24px;
    }

    .sjp-oep-image-wrap,
    .sjp-oep-image,
    .sjp-oep-placeholder {
        min-height: 178px;
        max-height: 220px;
    }

    .sjp-oep-content {
        padding: 26px 22px 24px;
    }

    .sjp-oep-content:before {
        width: 100%;
        height: 7px;
    }

    .sjp-oep-content h2 {
        font-size: 32px;
    }

    .sjp-oep-intro {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .sjp-oep-form input[type="text"],
    .sjp-oep-form input[type="email"],
    .sjp-oep-submit {
        min-height: 50px;
    }
}
