/**
 * Professional Drop-in Class Pop-up Styles
 * Swaastik Yog School
 */

/* Overlay */
.dropin-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Pop-up Content */
.dropin-popup-content {
    background: #fff;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.dropin-popup-overlay.active .dropin-popup-content {
    transform: scale(1);
}

/* Close Button */
.dropin-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropin-popup-close:hover {
    background: #fff;
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Pop-up Body */
.dropin-popup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* Image Side */
.dropin-popup-image {
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.dropin-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dropin-popup-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(18, 163, 151, 0.3));
}

/* Text Side */
.dropin-popup-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dropin-popup-text h2 {
    font-family: 'Philosopher', serif;
    font-size: 32px;
    color: #667eea;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.dropin-popup-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0 0 25px 0;
    font-weight: 500;
}

/* Benefits List */
.dropin-popup-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.dropin-popup-benefits li {
    font-size: 16px;
    color: #333;
    padding: 10px 0;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

.dropin-popup-benefits li:last-child {
    border-bottom: none;
}

/* CTA Section */
.dropin-popup-cta {
    text-align: center;
}

.dropin-popup-cta .btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #12a397);
    color: #fff;
    padding: 16px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dropin-popup-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.dropin-popup-note {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dropin-popup-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 15px;
    }

    .dropin-popup-body {
        grid-template-columns: 1fr;
    }

    .dropin-popup-image {
        min-height: 250px;
        max-height: 250px;
    }

    .dropin-popup-text {
        padding: 30px 25px;
    }

    .dropin-popup-text h2 {
        font-size: 26px;
    }

    .dropin-popup-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .dropin-popup-benefits li {
        font-size: 14px;
        padding: 8px 0;
    }

    .dropin-popup-cta .btn-primary {
        width: 100%;
        padding: 14px 25px;
        font-size: 15px;
    }

    .dropin-popup-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .dropin-popup-text {
        padding: 25px 20px;
    }

    .dropin-popup-text h2 {
        font-size: 22px;
    }

    .dropin-popup-benefits li {
        font-size: 13px;
    }
}

/* Animation for entrance */
@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.dropin-popup-overlay.active .dropin-popup-content {
    animation: popupSlideIn 0.4s ease-out;
}
