/* Premier Dental Popup Styles */
.premier-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.premier-popup-container {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.premier-popup-container-vertical {
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
}

.premier-popup-container-vertical .premier-popup-cta {
    padding: 15px 15px;
}

.premier-popup-container-vertical .premier-popup-button {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
}

.premier-popup-container-vertical .premier-popup-cta-dual {
    gap: 10px;
}

.premier-popup-container-vertical .whatsapp-icon {
    font-size: 16px;
}

.premier-popup-overlay.show .premier-popup-container {
    transform: scale(1);
}

.premier-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.premier-popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.premier-popup-content {
    text-align: center;
    padding: 0;
}

.premier-popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px 15px 0 0;
    max-height: 300px;
    object-fit: cover;
}

.premier-popup-image-vertical {
    max-height: 65vh;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: top;
}

.premier-popup-cta {
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.premier-popup-cta-dual {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.premier-popup-button-web {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
}

.premier-popup-button-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
}

.premier-popup-button-secondary {
    background: linear-gradient(135deg, #ff6b35 0%, #e85d2a 100%);
}

.premier-popup-button-secondary:hover {
    background: linear-gradient(135deg, #e85d2a 0%, #d14d1f 100%);
}

.premier-popup-button-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.premier-popup-button-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.whatsapp-icon {
    font-size: 20px;
}

.premier-popup-countdown {
    padding: 20px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
}

.premier-popup-countdown .countdown-label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    min-width: 70px;
    backdrop-filter: blur(10px);
}

.countdown-value {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    color: white;
}

.countdown-label-small {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 0.9;
}

.countdown-expired {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b6b;
    padding: 10px;
}

.premier-popup-button {
    display: inline-block;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
    border: none;
    cursor: pointer;
}

.premier-popup-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
    color: white;
    text-decoration: none;
}

.premier-popup-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 124, 186, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .premier-popup-container {
        max-width: 95%;
        margin: 20px;
    }
    
    .premier-popup-container-vertical {
        max-width: 90%;
    }
    
    .premier-popup-container-vertical .premier-popup-cta {
        padding: 12px 10px;
    }
    
    .premier-popup-container-vertical .premier-popup-button {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .premier-popup-container-vertical .whatsapp-icon {
        font-size: 14px;
    }
    
    .premier-popup-image {
        max-height: 250px;
    }
    
    .premier-popup-image-vertical {
        max-height: 60vh;
    }
    
    .premier-popup-countdown {
        padding: 15px;
    }
    
    .premier-popup-countdown .countdown-label {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 8px 10px;
    }
    
    .countdown-value {
        font-size: 24px;
    }
    
    .countdown-label-small {
        font-size: 10px;
    }
    
    .premier-popup-cta {
        padding: 25px 15px;
    }
    
    .premier-popup-cta-dual {
        gap: 12px;
    }
    
    .premier-popup-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .whatsapp-icon {
        font-size: 18px;
    }
    
    .premier-popup-close {
        top: 10px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .premier-popup-container {
        max-width: 98%;
        margin: 10px;
    }
    
    .premier-popup-container-vertical {
        max-width: 95%;
    }
    
    .premier-popup-container-vertical .premier-popup-cta {
        padding: 10px 8px;
    }
    
    .premier-popup-container-vertical .premier-popup-button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .premier-popup-container-vertical .whatsapp-icon {
        font-size: 13px;
    }
    
    .premier-popup-image {
        max-height: 200px;
    }
    
    .premier-popup-image-vertical {
        max-height: 55vh;
    }
    
    .premier-popup-countdown {
        padding: 12px;
    }
    
    .premier-popup-countdown .countdown-label {
        font-size: 14px;
    }
    
    .countdown-timer {
        gap: 8px;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: 6px 8px;
    }
    
    .countdown-value {
        font-size: 20px;
    }
    
    .countdown-label-small {
        font-size: 9px;
    }
    
    .premier-popup-cta {
        padding: 20px 10px;
    }
    
    .premier-popup-cta-dual {
        gap: 10px;
    }
    
    .premier-popup-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .whatsapp-icon {
        font-size: 16px;
    }
}

/* Animation for popup entrance */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.premier-popup-container.animate-in {
    animation: popupFadeIn 0.3s ease-out;
}
