/* StudioVeena register prompt modal (code replacement for the Elementor popup).
   Light refresh of the original: same copy, cleaner styling. */

.sv-rp-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 12, 20, 0.72);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sv-rp-overlay[hidden] {
    display: none;
}

.sv-rp-overlay.is-visible {
    opacity: 1;
}

.sv-rp-card {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(18, 12, 20, 0.45);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

.sv-rp-overlay.is-visible .sv-rp-card {
    transform: translateY(0) scale(1);
}

.sv-rp__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.28);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sv-rp__close:hover {
    background: rgba(0, 0, 0, 0.5);
}

.sv-rp__media {
    flex: 0 0 44%;
    background: #f3e6ef;
}

.sv-rp__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sv-rp__body {
    flex: 1 1 auto;
    padding: 32px 30px;
    overflow-y: auto;
}

.sv-rp__title {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.15;
    color: var(--bb-headings-color, #1e2432);
}

.sv-rp__text {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--bb-body-text-color, #4a5057);
}

.sv-rp__btn {
    display: block;
    width: 100%;
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sv-rp__btn--primary {
    color: #ffffff;
    background: var(--bb-primary-color, #ec2f8b);
}

.sv-rp__btn--primary:hover {
    color: #ffffff;
    filter: brightness(1.06);
}

.sv-rp__aside {
    margin: 22px 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bb-headings-color, #1e2432);
}

.sv-rp__btn--secondary {
    color: var(--bb-primary-color, #ec2f8b);
    background: transparent;
    border: 2px solid var(--bb-primary-color, #ec2f8b);
}

.sv-rp__btn--secondary:hover {
    color: #ffffff;
    background: var(--bb-primary-color, #ec2f8b);
}

/* Mobile: stack, image becomes a shorter banner. */
@media (max-width: 640px) {
    .sv-rp-card {
        flex-direction: column;
        max-width: 420px;
    }

    .sv-rp__media {
        flex: 0 0 auto;
        max-height: 190px;
    }

    .sv-rp__img {
        max-height: 190px;
    }

    .sv-rp__body {
        padding: 24px 22px 26px;
    }

    .sv-rp__title {
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sv-rp-overlay,
    .sv-rp-card {
        transition: opacity 0.2s ease;
    }
    .sv-rp-card {
        transform: none;
    }
}
