/* Swell Exit Modal — modal.css */
#sem-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#sem-overlay.sem-visible {
    display: flex;
}
#sem-overlay.sem-fade-in {
    opacity: 1;
}

#sem-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(16px);
    transition: transform 0.35s ease;
}
#sem-overlay.sem-fade-in #sem-modal {
    transform: translateY(0);
}

#sem-modal-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

#sem-modal-overlay-layer {
    position: absolute;
    inset: 0;
}

#sem-modal-content {
    position: relative;
    z-index: 2;
    padding: 44px 40px 40px;
    color: #fff;
    text-align: center;
}

#sem-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#sem-close:hover { background: rgba(255,255,255,0.3); }

#sem-headline {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

#sem-subtext {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 0 28px;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

#sem-cta {
    display: inline-block;
    padding: 15px 32px;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    transition: filter 0.2s, transform 0.15s;
    white-space: nowrap;
    margin-bottom: 4px;
}
#sem-cta:hover  { filter: brightness(1.1); transform: translateY(-2px); color: #fff; }
#sem-cta:active { transform: translateY(0); }


/* Mobile */
@media (max-width: 480px) {
    #sem-modal-content { padding: 36px 24px 32px; }
    #sem-headline       { font-size: 1.2rem; }
    #sem-form           { flex-direction: column; }
    #sem-submit         { width: 100%; }
}
