/* Promotional Popup Styles - DocFlip Brand */
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer; /* Indicate overlay is clickable to close */
}

.promo-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.promo-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #ffffff;
    border: 2px solid #1565C0;
    border-radius: 12px;
    padding: 0;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 25px 50px rgba(21, 101, 192, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10001;
    font-family: 'Montserrat', sans-serif !important;
    cursor: default; /* Reset cursor inside popup */
}

.promo-popup-overlay.show .promo-popup {
    transform: translate(-50%, -50%) scale(1);
}

.promo-popup-header {
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.promo-close {
    position: fixed !important;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    font-family: 'Montserrat', sans-serif !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
    font-weight: bold;
    z-index: 10002;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.promo-close:hover {
    background: rgba(220, 53, 69, 0.9);
    border-color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.promo-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #1565C0;
    padding: 0.4rem 1.2rem;
    border-radius: 15px;
    font-weight: normal !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.5px !important;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Removed aggressive pulse animation */

.promo-title {
    color: white;
    font-size: 2rem;
    font-weight: normal !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.1px !important;
    margin: 1rem 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.promo-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: normal !important;
    letter-spacing: 0.1px !important;
    margin: 0;
}

.promo-popup-body {
    background: white;
    padding: 1.5rem;
    text-align: center;
    min-height: auto;
}

.promo-countdown {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.countdown-item {
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
    font-family: 'Montserrat', sans-serif !important;
}

.countdown-number {
    font-size: 1.6rem;
    font-weight: normal !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.1px !important;
    display: block;
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: normal !important;
    letter-spacing: 0.1px !important;
}

.promo-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem 0;
    text-align: left;
    max-width: 100%;
}

.promo-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.9rem;
    color: #333;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: normal !important;
    letter-spacing: 0.1px !important;
}

.promo-features li::before {
    content: '✨';
    margin-right: 1rem;
    font-size: 1.2rem;
}

.promo-signup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.promo-signup-btn {
    background: #1565C0;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: normal !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.1px !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
    cursor: pointer;
    min-width: 140px;
}

.promo-signup-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
    color: white;
    text-decoration: none;
}

.promo-signup-btn.secondary {
    background: transparent;
    color: #1565C0;
    border: 2px solid #1565C0;
}

.promo-signup-btn.secondary:hover {
    background: #1565C0;
    color: white;
}

.promo-cta {
    background: #1565C0;
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: normal !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.1px !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
}

.promo-cta:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
}

.promo-social {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.promo-social h4 {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: normal !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.1px !important;
}

.social-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: normal !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.1px !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: #666;
    background: white;
}

.social-btn:hover {
    border-color: #1565C0;
    color: #1565C0;
    background: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.promo-disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .promo-popup {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }
    
    .promo-popup-header {
        padding: 1rem;
    }
    
    .promo-title {
        font-size: 1.4rem;
        margin: 0.5rem 0;
    }
    
    .promo-popup-body {
        padding: 1rem;
    }
    
    .promo-countdown {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0.75rem 0;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.5rem;
    }
    
    .countdown-number {
        font-size: 1.4rem;
    }
    
    .promo-features li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .promo-signup-buttons {
        gap: 0.5rem;
    }
    
    .promo-signup-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
}

/* Add urgency indicator styling */
.urgency-indicator {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: normal !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.1px !important;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}
    
    .countdown-item {
        min-width: 60px;
        padding: 0.75rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .social-buttons {
        gap: 0.5rem;
    }
    
    .social-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Animation for entrance */
@keyframes popupEnter {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

.promo-popup.entering {
    animation: popupEnter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Urgency indicator */
.urgency-indicator {
    background: #ff6b6b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 1rem 0;
    animation: urgencyPulse 1.5s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { 
        background: #ff6b6b; 
        transform: scale(1);
    }
    50% { 
        background: #ff5252; 
        transform: scale(1.05);
    }
}