/* Popup Container */
.popup-container {
    position: fixed;
    bottom: -350px;
    right: 20px;
    z-index: 9999;
    transition: bottom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-container.active {
    bottom: 20px;
}

/* Popup Content */
.popup-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(45, 80, 22, 0.15);
    width: 420px;
    height: 280px;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    position: relative;
    overflow: visible;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    color: #2d5016;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    padding: 0;
}

.popup-close:hover {
    transform: scale(1.1);
}

/* Image Section (Left, sticking out) */
.popup-image-section {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -100px;
    position: relative;
    z-index: 1;
}

.popup-avatar-large {
    width: 280px;
    height: 380px;
    object-fit: contain;
    object-position: top left;
}

/* Text Section (Right) */
.popup-text-section {
    flex: 1;
    padding: 24px 24px 24px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-text-section h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #2d5016;
    font-weight: 700;
    line-height: 1.2;
}

/* Message Section */
.popup-message {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #2d5016;
    line-height: 1.5;
    font-weight: 500;
    text-align: left;
}

/* Contact Section */
.popup-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popup-contact p {
    margin: 0;
    font-size: 16px;
    color: #2d5016;
    text-align: left;
    line-height: 1.4;
}

.popup-contact a {
    color: #2d5016;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.popup-contact a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-container {
        right: 10px;
        left: 10px;
        bottom: 10px !important;
    }

    .popup-content {
        width: auto;
        height: auto;
        flex-direction: column;
    }

    .popup-image-section {
        width: 100%;
        height: 200px;
        margin-left: 0;
        margin-top: -100px;
        margin-bottom: 15px;
    }

    .popup-avatar-large {
        width: 100%;
        height: 200px;
    }

    .popup-text-section {
        padding: 15px 16px;
    }

    .popup-text-section h2 {
        font-size: 20px;
    }

    .popup-message {
        font-size: 16px;
    }
}

/* Animation keyframes */
@keyframes slideInUp {
    from {
        bottom: -400px;
        opacity: 0;
    }
    to {
        bottom: 20px;
        opacity: 1;
    }
}

a {    color: #2d5016;
}