/* Base popup reset with important defaults */
.ysleadgen-popup {
    position: fixed !important;
    z-index: 999999 !important;
    display: none;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Center-positioned popups (explicit) */
.ysleadgen-popup[data-position="center"] {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: none;
    overflow: visible;
    transform-origin: center center;
}

html.ysleadgen-popup-active,
body.ysleadgen-popup-active {
    overflow: hidden !important;
    height: 100% !important;
}

/* Floating bar top position */
.ysleadgen-popup[data-position="top"] {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none;
}

/* Floating bar bottom position */
.ysleadgen-popup[data-position="bottom"] {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none;
}

/* Overlay styles */
.ysleadgen-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 999998 !important;
    display: none;
}

/* Close button base styles */
.ysleadgen-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 30px !important;
    height: 30px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 24px !important;
    line-height: 30px !important;
    z-index: 1 !important;
    color: #333 !important;
    text-align: center !important;
    padding: 0 !important;
}

/* Form visibility states */