/* Intac Popup Styles - Inspiring Modern Design */
/* Primary Color: #08016e (Deep Blue) | Secondary Color: #f3c443 (Gold) */

/* Overlay - covers entire screen with semi-transparent background */
.intac-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 1, 110, 0.92), rgba(8, 1, 110, 0.85));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Popup container - Premium card style with golden accent */
.intac-popup-container {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(8, 1, 110, 0.5), 
                0 0 0 1px rgba(243, 196, 67, 0.3),
                0 0 40px rgba(243, 196, 67, 0.15);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px 45px 45px;
    box-sizing: border-box;
    animation: intacPopupSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Enhanced slide in animation with bounce */
@keyframes intacPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Elegant close button - Gold accent */
.intac-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, #f3c443, #ffd666);
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #08016e;
    cursor: pointer;
    padding: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(243, 196, 67, 0.4);
    font-weight: bold;
}

.intac-popup-close:hover {
    background: linear-gradient(135deg, #ffd666, #f3c443);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 6px 25px rgba(243, 196, 67, 0.6);
    color: #08016e;
}

.intac-popup-close:focus {
    outline: 3px solid rgba(243, 196, 67, 0.5);
    outline-offset: 2px;
}

/* Premium popup title - Bold with gradient accent */
.intac-popup-title {
    margin: 0 0 24px 0;
    padding: 0 0 16px 0;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #08016e 0%, #1a0d9e 50%, #08016e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.8px;
    text-align: center;
    position: relative;
}

/* Optional decorative underline for title */
.intac-popup-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f3c443, transparent);
    border-radius: 2px;
}

/* Popup content - Elegant and readable */
.intac-popup-content {
    font-size: 17px;
    line-height: 1.75;
    color: #4a4a4a;
    text-align: center;
    margin-bottom: 32px;
}

.intac-popup-content p {
    margin: 0 0 18px 0;
}

.intac-popup-content p:last-child {
    margin-bottom: 0;
}

/* Premium CTA Button Wrapper */
.intac-popup-cta-wrapper {
    text-align: center;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(8, 1, 110, 0.08);
}

/* Inspiring CTA Button - Primary Design Element */
.intac-popup-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #08016e 0%, #1a0d9e 100%);
    color: #f3c443 !important;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 18px 45px;
    border-radius: 50px;
    border: 2px solid #f3c443;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(8, 1, 110, 0.35),
                0 0 0 0 rgba(243, 196, 67, 0.4);
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Animated gradient background effect */
.intac-popup-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(243, 196, 67, 0.2), 
        transparent
    );
    transition: left 0.5s ease;
}

.intac-popup-cta-button:hover::before {
    left: 100%;
}

/* CTA Button Icon Animation */
.intac-popup-cta-icon {
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CTA Hover State - Inspiring elevation */
.intac-popup-cta-button:hover {
    background: linear-gradient(135deg, #0d0299 0%, #2515c0 100%);
    color: #f3c443 !important;
    border-color: #ffd666;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(8, 1, 110, 0.45),
                0 0 30px rgba(243, 196, 67, 0.6);
}

.intac-popup-cta-button:hover .intac-popup-cta-icon {
    transform: translateX(6px);
    color: #f3c443;
}

/* CTA Active/Click State */
.intac-popup-cta-button:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(8, 1, 110, 0.35);
}

/* CTA Focus State for Accessibility */
.intac-popup-cta-button:focus {
    outline: 3px solid rgba(243, 196, 67, 0.6);
    outline-offset: 4px;
}

/* Modern link styling in content */
.intac-popup-content a {
    color: #08016e;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.intac-popup-content a:hover {
    color: #1a0d9e;
    border-bottom-color: #f3c443;
}

/* Button styling within content - Theme style */
.intac-popup-content .intac-popup-button,
.intac-popup-content a.button,
.intac-popup-content button {
    display: inline-block;
    background: linear-gradient(135deg, #08016e, #1a0d9e);
    color: #f3c443;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 32px;
    border-radius: 25px;
    border: 2px solid #f3c443;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(8, 1, 110, 0.3);
    margin: 10px 5px;
}

.intac-popup-content .intac-popup-button:hover,
.intac-popup-content a.button:hover,
.intac-popup-content button:hover {
    background: linear-gradient(135deg, #0d0299, #2515c0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 1, 110, 0.4);
    color: #ffffff;
    border-color: #f3c443;
}

.intac-popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

.intac-popup-content ul,
.intac-popup-content ol {
    margin: 0 0 18px 20px;
    padding: 0;
    text-align: left;
}

.intac-popup-content li {
    margin-bottom: 10px;
    color: #535353;
}

/* Responsive styles - Premium and optimized */
@media (max-width: 768px) {
    .intac-popup-container {
        padding: 45px 30px 35px;
        max-width: 95%;
        border-radius: 16px;
    }
    
    .intac-popup-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .intac-popup-content {
        font-size: 16px;
        margin-bottom: 28px;
    }
    
    .intac-popup-close {
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
    
    .intac-popup-cta-wrapper {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .intac-popup-cta-button {
        padding: 16px 38px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .intac-popup-content .intac-popup-button,
    .intac-popup-content a.button,
    .intac-popup-content button {
        padding: 12px 28px;
        font-size: 13px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .intac-popup-overlay {
        padding: 15px;
    }
    
    .intac-popup-container {
        padding: 40px 22px 28px;
        border-radius: 12px;
    }
    
    .intac-popup-title {
        font-size: 24px;
        margin-bottom: 18px;
        letter-spacing: -0.5px;
    }
    
    .intac-popup-content {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .intac-popup-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .intac-popup-cta-wrapper {
        margin-top: 25px;
        padding-top: 22px;
    }
    
    .intac-popup-cta-button {
        padding: 14px 30px;
        font-size: 13px;
        letter-spacing: 0.8px;
        width: 100%;
        max-width: 100%;
    }
    
    .intac-popup-cta-icon {
        font-size: 18px;
    }
    
    .intac-popup-content .intac-popup-button,
    .intac-popup-content a.button,
    .intac-popup-content button {
        padding: 12px 24px;
        font-size: 12px;
        width: 100%;
    }
}

/* Premium scrollbar styling */
.intac-popup-container::-webkit-scrollbar {
    width: 10px;
}

.intac-popup-container::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 10px;
}

.intac-popup-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #08016e, #1a0d9e);
    border-radius: 10px;
    border: 2px solid #f9f9f9;
}

.intac-popup-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0d0299, #f3c443);
}

/* Additional premium elements */
.intac-popup-content strong,
.intac-popup-content b {
    color: #08016e;
    font-weight: 700;
}

.intac-popup-content em,
.intac-popup-content i {
    color: #4a4a4a;
}

/* Highlight/accent text - Gold accent */
.intac-popup-content mark {
    background: linear-gradient(120deg, rgba(243, 196, 67, 0.25) 0%, rgba(255, 214, 102, 0.25) 100%);
    color: #08016e;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Premium blockquote style */
.intac-popup-content blockquote {
    border-left: 4px solid #f3c443;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #4a4a4a;
    background: linear-gradient(90deg, rgba(243, 196, 67, 0.08), transparent);
    padding: 18px 24px;
    border-radius: 6px;
    position: relative;
}

.intac-popup-content blockquote::before {
    content: '"';
    position: absolute;
    left: 8px;
    top: 10px;
    font-size: 40px;
    color: rgba(243, 196, 67, 0.3);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Code styling if needed */
.intac-popup-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

/* Horizontal rule styling - Premium gradient */
.intac-popup-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #f3c443, transparent);
    margin: 25px 0;
}

/* Focus visible for accessibility */
.intac-popup-close:focus-visible {
    outline: 3px solid rgba(243, 196, 67, 0.6);
    outline-offset: 3px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .intac-popup-container {
        animation: none;
    }
    
    .intac-popup-close,
    .intac-popup-content a,
    .intac-popup-content button {
        transition: none;
    }
}

