/**
 * Profile Completion Popup - ReadyLaunch Compatibility
 * Fixes display issues for the profile completion popup when ReadyLaunch is enabled
 *
 * Snippet ID: 114
 * Elementor Template ID: 173743
 */

/* ====================================================================
   POPUP CONTAINER STYLES
   ==================================================================== */

/* Base popup overlay - ensure it appears above ReadyLaunch elements */
#popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    z-index: 999999 !important;
}

/* Base popup container */
#profile-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1000000 !important;
    background-color: white !important;
    padding: 20px !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
    border-radius: 10px !important;
    width: 426px !important;
    max-width: 92% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

/* Popup content wrapper */
#profile-popup .popup-content {
    position: relative;
}

/* Popup heading */
#profile-popup .popup-content h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Popup description text */
#profile-popup .popup-content > p {
    margin: 0 0 15px 0;
    color: #666;
}

/* Dynamic content container */
#profile-popup .popup-dynamic-content {
    min-height: 50px;
}

/* ====================================================================
   PROFILE COMPLETION WIDGET STYLES (inside popup)
   ==================================================================== */

/* Hide linear progress bar - only show semicircle/arc */
#profile-popup .progress_bit_linear {
    display: none !important;
}

/* Ensure profile completion widget displays correctly in popup */
#profile-popup .profile_bit_wrapper {
    margin: 0;
    width: 100% !important;
}

#profile-popup .profile_bit {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Fix semicircle/arc progress graph */
#profile-popup .pc_progress_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

#profile-popup .pc_progress_graph {
    width: 146px;
    height: 73px;
}

/* Progress percentage text */
#profile-popup .progress_bit__data-num {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    text-align: center;
    display: block;
}

#profile-popup .progress_bit__data-num span {
    font-size: 18px;
}

/* "Complete" text */
#profile-popup .progress_bit__data-remark {
    font-size: 14px;
    color: #666;
    text-align: center;
    display: block;
    margin-top: 5px;
}

/* Profile completion button */
#profile-popup .profile_bit_action__link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4946FE;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 15px auto 0;
    display: block;
    width: fit-content;
    transition: background-color 0.3s;
}

#profile-popup .profile_bit_action__link:hover {
    background-color: #3835CC;
}

#profile-popup .profile_bit_action__link i {
    margin-left: 5px;
}

/* Profile completion list items */
#profile-popup .profile_bit__details {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

#profile-popup .profile_bit__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#profile-popup .profile_bit__list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#profile-popup .profile_bit__list li:last-child {
    border-bottom: none;
}

#profile-popup .profile_bit__list .section_name a {
    color: #4946FE;
    text-decoration: none;
    font-size: 14px;
}

#profile-popup .profile_bit__list .section_name a:hover {
    text-decoration: underline;
}

#profile-popup .profile_bit__list .completed_staus {
    font-size: 12px;
    color: #666;
    padding: 2px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

#profile-popup .profile_bit__list li.completed .completed_staus {
    color: #1CD991;
    border-color: #1CD991;
}

#profile-popup .profile_bit__list li.incomplete .completed_staus {
    color: #EF3E46;
    border-color: #EF3E46;
}

/* Completion icon */
#profile-popup .section_number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    position: relative;
}

#profile-popup .section_number:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #DEDFE2;
}

#profile-popup .profile_bit__list li.completed .section_number:before {
    background-color: #1CD991;
    border-color: #1CD991;
}

/* ====================================================================
   READYLAUNCH-SPECIFIC FIXES
   ==================================================================== */

/* Ensure bb-icon classes work in popup */
.bb-readylaunch-template #profile-popup .bb-icon-l:before,
.bb-readylaunch-template #profile-popup .bb-icon-angle-right:before {
    font-family: 'bb-icons-rl', sans-serif !important;
}

/* Fix any potential layout issues with ReadyLaunch's CSS resets */
.bb-readylaunch-template #profile-popup * {
    box-sizing: border-box;
}

.bb-readylaunch-template #profile-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* Ensure progress graph SVG renders correctly */
.bb-readylaunch-template #profile-popup .pc_progress_graph path {
    stroke-linecap: round;
}

/* Fix button alignment in ReadyLaunch */
.bb-readylaunch-template #profile-popup .profile_bit_action {
    text-align: center;
}

/* Ensure widget wrapper doesn't get hidden by ReadyLaunch styles */
.bb-readylaunch-template #profile-popup .profile_bit_wrapper,
.bb-readylaunch-template #profile-popup .profile_bit_figure,
.bb-readylaunch-template #profile-popup .profile_bit {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix progress container in ReadyLaunch */
.bb-readylaunch-template #profile-popup .progress_container {
    display: block !important;
}

/* Fix progress data display */
.bb-readylaunch-template #profile-popup .progress_bit__data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 15px 0;
}

/* Fix progress heading for semicircle skin */
.bb-readylaunch-template #profile-popup .progress_bit__heading {
    margin-bottom: 15px;
}

.bb-readylaunch-template #profile-popup .progress_bit__heading h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* ====================================================================
   RESPONSIVE STYLES
   ==================================================================== */

@media (max-width: 768px) {
    #profile-popup {
        width: 95% !important;
        padding: 15px !important;
        max-height: 80vh !important;
    }

    #profile-popup .popup-content h2 {
        font-size: 18px;
    }

    #profile-popup .progress_bit__data-num {
        font-size: 28px;
    }

    #profile-popup .pc_progress_graph {
        width: 120px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    #profile-popup {
        padding: 12px !important;
    }

    #profile-popup .popup-content h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    #profile-popup .profile_bit__list .section_name a {
        font-size: 13px;
    }
}
