/* Pricing Page Styles */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Card */
.modal-card {
    background: var(--white);
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 85vh; /* Prevent it from being taller than the screen */
    overflow-y: auto; /* Enable vertical scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.modal-header h2 {
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
}

/* Business Options */
.business-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.business-option {
    background: var(--off-white);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.business-option:hover {
    background: var(--white);
    border-color: var(--soft-jade);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(77, 212, 172, 0.15);
}

.option-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.business-option:hover .option-icon {
    background: var(--primary-green);
    color: var(--white);
}

.option-icon i {
    font-size: 1.8rem;
    color: var(--primary-green);
}

.business-option:hover .option-icon i {
    color: var(--white);
}

.business-option h3 {
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 0.8rem;
}

.business-option p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.4;
    margin: 0;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    perspective: 1000px;
}

/* Pricing Card */
.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--light-gray);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    /* Glassmorphism attempt (needs background wrapper usually, but simple white is clean) */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 91, 79, 0.1);
    border-color: rgba(77, 212, 172, 0.3);
}

.pricing-card.popular {
    border: 2px solid var(--soft-jade);
    box-shadow: 0 15px 35px rgba(77, 212, 172, 0.15);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(77, 212, 172, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 2rem;
}

.pricing-header h3 {
    color: var(--charcoal);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 5px;
}

.amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.plus {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 5px;
    margin-left: 2px;
}

.period {
    align-self: flex-end;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-left: 5px;
}

.pricing-header .description {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin: 0;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--charcoal);
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--soft-jade);
    margin-right: 10px;
    font-size: 1rem;
}

.pricing-footer {
    text-align: center;
}

.pricing-footer .btn {
    width: 100%;
}

/* Category Badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 91, 79, 0.05); /* Very light green bg */
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--primary-green);
    font-size: 0.95rem;
    font-weight: 500;
}

.text-btn {
    background: none;
    border: none;
    color: var(--medium-gray);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    padding: 0;
}

.text-btn:hover {
    color: var(--primary-green);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-green);
    padding: 4rem;
    width: 100%;
}

/* Mobile Responsiveness for Modal */
@media (max-width: 768px) {
    .modal-card {
        padding: 1.5rem; /* Reduced padding */
        width: 95%;
        max-height: 90vh; /* Maximize height on mobile */
    }
    
    .modal-header {
        margin-bottom: 2rem;
    }

    .modal-header h2 {
        font-size: 1.5rem; /* Smaller title */
        margin-bottom: 0.5rem;
    }

    .modal-header p {
        font-size: 0.95rem;
    }
    
    .business-options {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .business-option {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 1rem 1.2rem; /* Compact padding */
        min-height: auto;
    }
    
    .option-icon {
        margin: 0 1rem 0 0;
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }

    .option-details {
        flex: 1; /* Allow text to fill space */
        min-width: 0; /* meaningful for text-overflow if needed */
    }

    .option-icon i {
        font-size: 1.1rem;
    }

    .business-option h3 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }

    .business-option p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* Extra Small Screen Optimization */
    @media (max-width: 380px) {
        .modal-card {
            padding: 1rem;
        }
        
        .business-option {
            padding: 0.8rem;
        }

        .option-icon {
            width: 35px;
            height: 35px;
            margin-right: 0.8rem;
        }

        .option-icon i {
            font-size: 1rem;
        }

        .business-option h3 {
            font-size: 1rem;
        }
    }

    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: scale(1);
    }
}
