/* HighLevel Popup Form Styles */

/* Trigger Button */
.hlpf-trigger-button {
    position: fixed;
    z-index: 9998;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hlpf-trigger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Button Positions */
.hlpf-position-bottom-right {
    bottom: 30px;
    right: 30px;
}

.hlpf-position-bottom-left {
    bottom: 30px;
    left: 30px;
}

.hlpf-position-top-right {
    top: 30px;
    right: 30px;
}

.hlpf-position-top-left {
    top: 30px;
    left: 30px;
}

/* Shortcode Button */
.hlpf-shortcode-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.hlpf-shortcode-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Popup Overlay */
.hlpf-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.hlpf-popup-overlay.hlpf-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup Modal */
.hlpf-popup-modal {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 30px;
    box-sizing: border-box;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.hlpf-popup-overlay.hlpf-active .hlpf-popup-modal {
    opacity: 1;
    transform: scale(1);
}

/* Animation: Fade */
.hlpf-popup-overlay.hlpf-animation-fade {
    animation: hlpfFadeIn 0.3s ease;
}

@keyframes hlpfFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation: Slide */
.hlpf-popup-overlay.hlpf-animation-slide .hlpf-popup-modal {
    transform: translateY(50px);
}

.hlpf-popup-overlay.hlpf-animation-slide.hlpf-active .hlpf-popup-modal {
    transform: translateY(0);
}

/* Animation: Zoom */
.hlpf-popup-overlay.hlpf-animation-zoom .hlpf-popup-modal {
    transform: scale(0.5);
}

.hlpf-popup-overlay.hlpf-animation-zoom.hlpf-active .hlpf-popup-modal {
    transform: scale(1);
}

/* Close Button */
.hlpf-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hlpf-close-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

/* Popup Content */
.hlpf-popup-content {
    width: 100%;
    min-height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .hlpf-popup-modal {
        padding: 20px;
        max-width: 100% !important;
    }
    
    .hlpf-trigger-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .hlpf-position-bottom-right,
    .hlpf-position-bottom-left,
    .hlpf-position-top-right,
    .hlpf-position-top-left {
        bottom: 20px;
        right: 20px;
        left: auto;
        top: auto;
    }
}

/* Ensure HighLevel form iframe is responsive */
.hlpf-popup-content iframe {
    max-width: 100%;
    width: 100%;
}

