.vazhik-psychology-banner,
.vazhik-psychology-banner * {
    box-sizing: border-box;
}

/* Normal in-page layout: the banner stays where the shortcode is placed. */
.vazhik-psychology-banner--half {
    position: relative;
    display: block;
    width: min(var(--vazhik-psychology-width, 100%), var(--vazhik-psychology-max-width, 100%));
    max-width: 100%;
    margin-inline-start: 0;
    margin-inline-end: auto;
    padding: 0;
    line-height: 0;
    isolation: isolate;
    direction: rtl;
    background: transparent;
}

/* Optional alignment inside the shortcode's parent container. */
.vazhik-psychology-banner--half.vazhik-psychology-banner--align-left {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

.vazhik-psychology-banner--half.vazhik-psychology-banner--align-center {
    margin-inline: auto;
}

.vazhik-psychology-banner--half .vazhik-psychology-banner__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
}

/* Transparent hit area is aligned with the CTA artwork in the image. */
.vazhik-psychology-banner--half .vazhik-psychology-banner__cta {
    position: absolute;
    z-index: 3;
    left: 17.3%;
    top: 65.7%;
    width: 30.2%;
    height: 10.4%;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.vazhik-psychology-banner--half .vazhik-psychology-banner__cta:hover,
.vazhik-psychology-banner--half .vazhik-psychology-banner__cta:focus,
.vazhik-psychology-banner--half .vazhik-psychology-banner__cta:active {
    background: transparent;
    box-shadow: none;
}

.vazhik-psychology-banner--half .vazhik-psychology-banner__cta:focus-visible {
    outline: 3px solid #d82e78;
    outline-offset: 4px;
}

.vazhik-psychology-banner__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Only the popup covers the viewport; the banner itself is never fixed or floating. */
.vazhik-psychology-banner__modal[hidden] {
    display: none !important;
}

.vazhik-psychology-banner__modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.5;
    direction: rtl;
    font-family: inherit;
}

.vazhik-psychology-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(19, 31, 57, .62);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.vazhik-psychology-banner__modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 34px 25px 25px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 29px;
    background:
        radial-gradient(circle at 50% 0%, #ffe2ef 0%, transparent 65%),
        linear-gradient(145deg, #fff 0%, #fff8fb 100%);
    box-shadow: 0 25px 80px rgba(18, 31, 61, .28), inset 0 3px 7px #fff;
    text-align: center;
    animation: vazhik-psychology-popup-in .28s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes vazhik-psychology-popup-in {
    from { opacity: 0; transform: translateY(18px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.vazhik-psychology-banner__close {
    position: absolute;
    top: 12px;
    left: 13px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff0f6;
    color: #8e3159;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.vazhik-psychology-banner__modal-art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 15px;
    border-radius: 25px;
    background: linear-gradient(145deg, #ffe8f2, #ffc9df);
    box-shadow: 0 9px 20px rgba(216, 65, 127, .17), inset 0 3px 5px #fff;
    font-size: 38px;
}

.vazhik-psychology-banner__modal-eyebrow {
    display: inline-block;
    color: #d6387c;
    font-size: 12px;
    font-weight: 800;
}

.vazhik-psychology-banner__modal-card h3 {
    margin: 8px 0 10px;
    color: #173d72;
    font-family: inherit;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.6;
}

.vazhik-psychology-banner__modal-card p {
    margin: 0;
    color: #5d6e83;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 2.1;
}

.vazhik-psychology-banner__modal-action {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 19px;
    padding: 10px 16px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #e94e91, #c92c70);
    box-shadow: 0 8px 18px rgba(206, 47, 112, .22), inset 0 2px 3px rgba(255,255,255,.25);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.vazhik-psychology-banner__modal-action:hover {
    filter: brightness(1.04);
}

@media (max-width: 767px) {
    .vazhik-psychology-banner--half {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
    }

    .vazhik-psychology-banner--half .vazhik-psychology-banner__cta {
        left: 17.3%;
        top: 65.7%;
        width: 30.2%;
        height: 10.4%;
    }

    .vazhik-psychology-banner__modal-card {
        padding: 32px 20px 21px;
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vazhik-psychology-banner__modal-card {
        animation: none;
    }
}
