<style>
/* Popup Modal Styles */
.lfl-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lfl-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lfl-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.lfl-modal-overlay.active .lfl-modal {
    transform: scale(1);
}

.lfl-modal-header {
    background: <?php echo $color_primary; ?>;
    color: white;
    padding: 24px 30px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.lfl-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}
/* Force white text in modal headers - override any inheritance issues */
.lfl-modal-header,
.lfl-modal-header *,
.lfl-modal-header h1,
.lfl-modal-header h2,
.lfl-modal-header h3,
.lfl-modal-header h4,
.lfl-modal-header h5,
.lfl-modal-header h6 {
    color: white !important;
}

.lfl-modal-close {
    color: white !important;
}

.lfl-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.lfl-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lfl-modal-body {
    padding: 30px;
}

.lfl-modal-intro {
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 12px;
}

.lfl-modal-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lfl-modal-points li {
    padding: 8px 20px 8px 50px;
    margin-bottom: 12px;
    background: #F8FAFC;
    border-left: 4px solid <?php echo $color_accent; ?>;
    border-radius: 6px;
    position: relative;
    line-height: 1.6;
    color: #475569;
}

.lfl-modal-points li:before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 16px;
    color: <?php echo $color_accent; ?>;
    font-size: 20px;
    font-weight: bold;
}

.lfl-modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.lfl-modal-button {
    display: inline-block;
    background: <?php echo $color_primary; ?>;
    color: white;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.lfl-modal-button:hover {
    background: <?php echo $color_button_hover; ?>;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lfl-modal-button-secondary {
    background: transparent;
    color: #64748B;
    border: 2px solid #E2E8F0;
    margin-right: 12px;
}

.lfl-modal-button-secondary:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: none;
    box-shadow: none;
}
/* Container for logo + company name in modals */
.lfl-modal-container {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    gap: 15px;              /* Space between logo and text */
    width: 100%;            /* Full width for proper centering */
    padding: 0px 0;        /* Vertical padding */
    margin: 0 auto;         /* Center the container itself */
}

.lfl-modal-container img {
    width: auto;
    height: 60px;          /* Reasonable logo height */
    max-height: 60px;
    display: block;
}

.lfl-modal-container h2 {
    font-size: 32px;
    margin: 0;
    padding: 0;
    color: <?php echo $color_primary; ?>;
    white-space: nowrap;   /* Prevent text wrapping */
}
/* Exit popup specific styles */
.lfl-exit-modal .lfl-modal {
    max-width: 500px;
}

.lfl-exit-modal .lfl-modal-body {
    text-align: center;
    padding: 40px 30px;
}

.lfl-exit-modal h3 {
    color: #1E293B;
    font-size: 26px;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.lfl-exit-modal p {
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.lfl-exit-modal .highlight-box {
    background: #FEF3C7;
    border: 2px solid #FCD34D;
    border-radius: 8px;
    padding: 10px;
    margin: 24px 0;
}

.lfl-exit-modal .highlight-box p {
    margin: 0;
    color: #92400E;
    font-weight: 600;
}

@media (max-width: 640px) {
    .lfl-modal {
        width: 95%;
        margin: 20px;
    }
    
    .lfl-modal-header h2 {
        font-size: 20px;
        padding-right: 40px;
    }
    
    .lfl-modal-body {
        padding: 12px 20px;
    }
    
    .lfl-modal-points li {
        padding: 7px 16px 7px 45px;
        font-size: 14px;
    }
    
    .lfl-modal-button {
        display: block;
        margin: 8px 0;
    }
    
    .lfl-modal-button-secondary {
        margin-right: 0;
    }
}
</style>
<style type="text/css">.lfl-image-wrap{ width: 100%; position: relative;}.lfl-image-wrap.fill{ height: 100%;}.lfl-custom-image{ width: 100%; position: relative;}.lfl-custom-image >img,.lfl-custom-image >svg{ display: block; width: 100%; margin: 0; padding: 0;}.lfl-custom-image.has-height{ position: relative; height: 0;}.lfl-custom-image.has-height >img,.lfl-custom-image.has-height >svg{height: calc(100% - 2px); position: absolute; top: 0; left: 0; object-fit: fill}.lfl-custom-image.has-height.fit-contain >img,.lfl-custom-image.has-height.fit-contain >svg{object-fit: contain}.lfl-image-wrap.fill .lfl-custom-image{ height: 100% !important;}.lfl-image-wrap.fill .lfl-custom-image >img,.lfl-image-wrap.fill .lfl-custom-image >svg{ height: 100% !important; object-fit: cover;}.lfl-shadowable >img, .lfl-shadowable >div, .lfl-shadowable >svg{background-color: transparent !important}.lfl-shadowable.shadow1 >img:not(.lfl-new-skin), .lfl-shadowable.shadow1 >div,.lfl-shadowable.shadow2 >img:not(.lfl-new-skin), .lfl-shadowable.shadow2 >div,.lfl-shadowable.shadow3 >img:not(.lfl-new-skin), .lfl-shadowable.shadow3 >div,.lfl-shadowable.shadow4 >img:not(.lfl-new-skin), .lfl-shadowable.shadow4 >div,.lfl-shadowable.shadow5 >img:not(.lfl-new-skin), .lfl-shadowable.shadow5 >div,.lfl-shadowable.shadow6 >img:not(.lfl-new-skin), .lfl-shadowable.shadow6 >div,.lfl-shadowable.shadow7 >img:not(.lfl-new-skin), .lfl-shadowable.shadow7 >div,.lfl-shadowable.shadow8 >img:not(.lfl-new-skin), .lfl-shadowable.shadow8 >div,.lfl-shadowable.shadow9 >img:not(.lfl-new-skin), .lfl-shadowable.shadow9 >div{background-color: white !important}.lfl-shadowable.no-boxshadow.shadow3 >img,.lfl-shadowable.no-boxshadow.shadow3 >div,.lfl-shadowable.no-boxshadow.shadow3 >svg{box-shadow: 0 4px 3px rgb(0 0 0 / 15%), 0 0 2px rgb(0 0 0 / 15%)}.lfl-shadowable.no-boxshadow.shadow4 >img,.lfl-shadowable.no-boxshadow.shadow4 >div,.lfl-shadowable.no-boxshadow.shadow4 >svg{box-shadow: 0 10px 6px -6px rgb(0 0 0 / 15%)}.lfl-shadowable.no-boxshadow.shadow5 >img,.lfl-shadowable.no-boxshadow.shadow5 >div,.lfl-shadowable.no-boxshadow.shadow5 >svg{box-shadow: 0 4px 3px rgb(0 0 0 / 15%), 0 0 2px rgb(0 0 0 / 15%)}.lfl-shadowable.no-boxshadow.shadow6 >img,.lfl-shadowable.no-boxshadow.shadow6 >div,.lfl-shadowable.no-boxshadow.shadow6 >svg{box-shadow: 0 2px 5px 2px rgb(0 0 0 / 30%)}.lfl-shadowable.no-boxshadow.shadow7 >img,.lfl-shadowable.no-boxshadow.shadow7 >div,.lfl-shadowable.no-boxshadow.shadow7 >svg{box-shadow: 0 10px 6px -6px #999}.lfl-shadowable.no-boxshadow.shadow8 >img,.lfl-shadowable.no-boxshadow.shadow8 >div,.lfl-shadowable.no-boxshadow.shadow8 >svg{box-shadow: 3px 3px 15px rgb(33 33 33 / 66%)}.lfl-shadowable.no-boxshadow.shadow9 >img,.lfl-shadowable.no-boxshadow.shadow9 >div,.lfl-shadowable.no-boxshadow.shadow9 >svg{box-shadow: 0 10px 1px #ddd, 0 10px 20px #ccc}.lfl-shadowable.no-border.shadow1 >img,.lfl-shadowable.no-border.shadow1 >div,.lfl-shadowable.no-border.shadow1 >svg{border: 1px solid rgba(0, 0, 0, 0.15); padding: 5px !important; border-radius: 5px}.lfl-shadowable.no-border.shadow2 >img,.lfl-shadowable.no-border.shadow2 >div,.lfl-shadowable.no-border.shadow2 >svg{border: 1px solid rgba(0, 0, 0, 0.35); padding: 1px !important; border-radius: 5px}.lfl-shadowable.no-border.shadow3 >img,.lfl-shadowable.no-border.shadow3 >div,.lfl-shadowable.no-border.shadow3 >svg{border: 1px solid rgba(0, 0, 0, 0.15); padding: 5px !important}.lfl-shadowable.no-border.shadow4 >img,.lfl-shadowable.no-border.shadow4 >div,.lfl-shadowable.no-border.shadow4 >svg{border: 1px solid rgba(0, 0, 0, 0.35); padding: 1px !important; border-radius: 5px}.lfl-shadowable.no-border.shadow5 >img,.lfl-shadowable.no-border.shadow5 >div,.lfl-shadowable.no-border.shadow5 >svg{border: 2px solid rgba(0, 0, 0, .55)}.lfl-shadowable.no-border.shadow6 >img,.lfl-shadowable.no-border.shadow6 >div,.lfl-shadowable.no-border.shadow6 >svg{border-radius: 5px}.lfl-shadowable.no-border.shadow7 >img,.lfl-shadowable.no-border.shadow7 >div,.lfl-shadowable.no-border.shadow7 >svg{border: 5px solid #fff}.lfl-shadowable.no-border.shadow9 >img,.lfl-shadowable.no-border.shadow9 >div,.lfl-shadowable.no-border.shadow9 >svg{border-radius: 5px}</style>