/**
 * PK Pest Control Popup Styles
 * Professional, Modern Design with Vibrant Colors
 */

/* CSS Variables for Theme */
:root {
    --pkpc-primary: #1a5f2a;
    --pkpc-primary-dark: #134a20;
    --pkpc-secondary: #ff6b35;
    --pkpc-secondary-dark: #e55a26;
    --pkpc-accent: #25d366;
    --pkpc-accent-dark: #1da851;
    --pkpc-dark: #1a1a2e;
    --pkpc-light: #ffffff;
    --pkpc-gray: #6b7280;
    --pkpc-gradient: linear-gradient(135deg, #1a5f2a 0%, #2d8a3e 50%, #1a5f2a 100%);
    --pkpc-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --pkpc-shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Overlay */
.pkpc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pkpc-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.pkpc-popup-container {
    background: var(--pkpc-light);
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: scale(0.8) translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--pkpc-shadow);
    overflow: hidden;
}

.pkpc-popup-overlay.active .pkpc-popup-container {
    transform: scale(1) translateY(0);
}

/* Header Section */
.pkpc-popup-header {
    background: var(--pkpc-gradient);
    padding: 30px 30px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pkpc-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 50%);
    animation: pkpc-shimmer 3s ease-in-out infinite;
}

@keyframes pkpc-shimmer {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(25%, 25%);
    }
}

/* Close Button */
.pkpc-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.pkpc-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.pkpc-popup-close svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2.5;
}

/* Badge */
.pkpc-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pkpc-secondary);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    animation: pkpc-pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes pkpc-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pkpc-popup-badge svg {
    width: 16px;
    height: 16px;
}

/* Headline */
.pkpc-popup-headline {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.pkpc-popup-subheadline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Price Section */
.pkpc-popup-price-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.pkpc-popup-price {
    font-size: 56px;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.pkpc-popup-price-tag {
    background: var(--pkpc-secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    animation: pkpc-bounce 1s ease-in-out infinite;
}

@keyframes pkpc-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Content Section */
.pkpc-popup-content {
    padding: 30px;
}

.pkpc-popup-description {
    text-align: center;
    color: var(--pkpc-gray);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* CTA Buttons Container */
.pkpc-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Button Base Styles */
.pkpc-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pkpc-popup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pkpc-popup-btn:hover::before {
    left: 100%;
}

.pkpc-popup-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Call Button */
.pkpc-popup-btn-call {
    background: var(--pkpc-primary);
    color: white;
}

.pkpc-popup-btn-call:hover {
    background: var(--pkpc-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(26, 95, 42, 0.4);
}

/* WhatsApp Button */
.pkpc-popup-btn-whatsapp {
    background: var(--pkpc-accent);
    color: white;
}

.pkpc-popup-btn-whatsapp:hover {
    background: var(--pkpc-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
}

/* Book Button */
.pkpc-popup-btn-book {
    background: var(--pkpc-secondary);
    color: white;
}

.pkpc-popup-btn-book:hover {
    background: var(--pkpc-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 107, 53, 0.4);
}

/* Button Text */
.pkpc-popup-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.pkpc-popup-btn-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features List */
.pkpc-popup-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pkpc-popup-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--pkpc-gray);
}

.pkpc-popup-feature svg {
    width: 16px;
    height: 16px;
    color: var(--pkpc-primary);
}

/* CTA Text */
.pkpc-popup-cta-text {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--pkpc-secondary);
    font-weight: 600;
    animation: pkpc-fade 2s ease-in-out infinite;
}

@keyframes pkpc-fade {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Mobile Responsive */
@media (max-width: 520px) {
    .pkpc-popup-overlay {
        padding: 15px;
        align-items: flex-end;
    }

    .pkpc-popup-container {
        border-radius: 24px 24px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .pkpc-popup-header {
        padding: 25px 20px 35px;
    }

    .pkpc-popup-headline {
        font-size: 24px;
    }

    .pkpc-popup-price {
        font-size: 48px;
    }

    .pkpc-popup-content {
        padding: 25px 20px;
    }

    .pkpc-popup-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .pkpc-popup-features {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Animation for pest icon */
.pkpc-pest-icon {
    display: inline-block;
    animation: pkpc-wiggle 2s ease-in-out infinite;
}

@keyframes pkpc-wiggle {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/* Trust badges section */
.pkpc-popup-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.pkpc-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 500;
}

.pkpc-trust-item svg {
    width: 14px;
    height: 14px;
}