/* ================================================================
   SQUID LEADS PREMIUM CUSTOM MODAL PLUGIN
   ================================================================ */

.sl-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 200000 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.sl-modal.sl-active {
    display: flex !important;
}

.sl-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(4px) !important;
}

.sl-modal-container {
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    width: 60vw !important;
    max-width: 900px !important;
    min-width: 320px !important;
    max-height: 80vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
    animation: sl-modal-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes sl-modal-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .sl-modal-container {
        width: 92vw !important;
        max-width: 92vw !important;
        max-height: 85vh !important;
    }
}

.sl-modal-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 20px 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

.sl-modal-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    color: #0f172a !important;
}

.sl-modal-close-x {
    background: #f1f5f9 !important;
    border: none !important;
    font-size: 20px !important;
    color: #64748b !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.sl-modal-close-x:hover {
    background: #e2e8f0 !important;
    color: #ff6105 !important;
}

.sl-modal-body {
    padding: 28px !important;
    overflow-y: auto !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.sl-modal-body h1,
.sl-modal-body h2,
.sl-modal-body h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
}

.sl-modal-body h1:first-child,
.sl-modal-body h2:first-child,
.sl-modal-body h3:first-child {
    margin-top: 0 !important;
}

/* Scrollbar styling for custom modal */
.sl-modal-body::-webkit-scrollbar {
    width: 6px !important;
}

.sl-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 4px !important;
}

.sl-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

.sl-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.sl-modal-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 16px 28px !important;
    display: flex !important;
    justify-content: flex-end !important;
    box-sizing: border-box !important;
}

.sl-modal-close-btn {
    background: #ff6105 !important;
    border: none !important;
    color: #ffffff !important;
    padding: 10px 28px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(255, 97, 5, 0.2) !important;
}

.sl-modal-close-btn:hover {
    background: #e04f00 !important;
    box-shadow: 0 6px 16px rgba(255, 97, 5, 0.3) !important;
}

body.sl-modal-open {
    overflow: hidden !important;
}
