/* Pricing Cards Styling */
.pricing-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 8rem 0;
}

.pricing-container {
    position: relative;
}

.pricing-cards {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    max-width: 350px;
    width: 100%;
    position: relative;
    transition: all 0.4s ease;
    z-index: 1;
}

/* Initial stacking state for desktop */
@media (min-width: 992px) {
    .pricing-cards {
        height: 750px; /* Gives enough room for the cards */
    }
    
    .pricing-card.starter, 
    .pricing-card.enterprise {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.9;
        z-index: 3;
    }
    
    .pricing-card.professional {
        z-index: 1;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    }
}

/* Mobile stacking */
@media (max-width: 991px) {
    .pricing-cards {
        flex-direction: column;
        gap: 2rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        order: -1; /* Featured card appears first on mobile */
    }
}

.pricing-card.featured {
    border: 2px solid #3a86ff;
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: #1a1a1a;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 500;
    vertical-align: super;
}

.pricing-price .period {
    font-size: 1rem;
    color: #777;
    font-weight: 400;
}

.pricing-features {
    padding-left: 0;
    list-style-type: none;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.pricing-features i {
    color: #3a86ff;
    margin-right: 0.5rem;
}

.pricing-features li.disabled {
    color: #aaa;
    text-decoration: line-through;
}

.pricing-cta {
    margin-top: 1.5rem;
}

.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.toggle-label {
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    margin: 0 1rem;
}

.toggle-label.active {
    color: #3a86ff;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #3a86ff;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #3a86ff;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Yearly pricing initially hidden */
.amount.yearly {
    display: none;
}

/* Popular badge */
.popular-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #3a86ff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(58, 134, 255, 0.3);
}
