/* Payment Plans CSS Styles
 * Custom styling for payment plan templates
 */

/* Plan Card Styles */
.plan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.plan-card.featured-plan {
    position: relative;
    z-index: 2;
    transform: scale(1.02);
}

.plan-card.featured-plan:hover {
    transform: scale(1.04) translateY(-5px);
}

.plan-card .card-header {
    border-bottom: none;
    padding: 1.5rem 1rem;
}

.plan-card .plan-badge {
    position: absolute;
    top: 0;
    right: 1rem;
    transform: translateY(-50%);
}

.plan-card .price-wrapper {
    transition: all 0.3s ease;
}

.plan-card .original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.plan-card .discount-price {
    font-weight: bold;
    color: #4f7dfa;
    transition: all 0.3s ease;
}

.plan-card .price-animate .discount-price {
    transform: scale(1.1);
}

.plan-card .feature-list {
    margin-top: 1rem;
}

.plan-card .feature-item {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    transition: background-color 0.2s ease;
    border-radius: 0.25rem;
}

.plan-card .feature-item:hover {
    background-color: rgba(79, 125, 250, 0.05);
}

.plan-card .feature-icon {
    color: #4f7dfa;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
}

.plan-card .feature-highlight {
    background-color: rgba(79, 125, 250, 0.1);
}

/* Plan Type Specific Styles */
.plan-type-subscription .card-header {
    background: linear-gradient(135deg, #2a52be, #1e3a8a);
    color: white;
}

.plan-type-installment .card-header {
    background: linear-gradient(135deg, #ff9500, #ff7e00);
    color: white;
}

.plan-type-one_time .card-header {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

/* Featured Banner */
.featured-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    transform: rotate(45deg);
    width: 150px;
    background-color: #ffc107;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.2rem 0;
    color: #212529;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Plan Filter Tabs */
.plan-filter-tabs {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    display: inline-flex;
    margin-bottom: 2rem;
}

.plan-filter-tabs .nav-link {
    padding: 0.75rem 1.5rem;
    border: none;
    color: #495057;
    transition: all 0.2s ease;
}

.plan-filter-tabs .nav-link:hover {
    background-color: rgba(79, 125, 250, 0.05);
}

.plan-filter-tabs .nav-link.active {
    background-color: #4f7dfa;
    color: white;
    font-weight: 500;
}

/* Hero Section */
.pricing-hero {
    background: linear-gradient(135deg, #2a52be, #1e3a8a);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 40% 0;
}

.pricing-hero h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-hero p {
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.faq-item {
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-toggle {
    background-color: #f8f9fa;
    padding: 1rem;
    width: 100%;
    text-align: left;
    font-weight: 500;
    border: none;
    position: relative;
    transition: all 0.2s ease;
}

.faq-toggle:hover {
    background-color: rgba(79, 125, 250, 0.05);
}

.faq-toggle::after {
    content: '+';
    position: absolute;
    right: 1rem;
    transition: transform 0.2s ease;
}

.faq-open .faq-toggle::after {
    transform: rotate(45deg);
}

.faq-open .faq-toggle {
    background-color: rgba(79, 125, 250, 0.1);
    color: #1e3a8a;
}

/* Plan Detail Page Styles */
.plan-detail-card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.plan-detail-header {
    padding: 2rem;
}

.plan-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* Purchase Form Styles */
.purchase-form {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.purchase-form label {
    font-weight: 500;
    color: #495057;
}

.purchase-summary {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.payment-option {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.payment-option:hover {
    border-color: #4f7dfa;
    background-color: rgba(79, 125, 250, 0.05);
}

.payment-option.selected {
    border-color: #4f7dfa;
    background-color: rgba(79, 125, 250, 0.1);
}

/* User Plans Page Styles */
.user-plan-card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.plan-status-badge {
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.plan-progress-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .pricing-hero {
        padding: 3rem 0;
        border-radius: 0;
    }
    
    .plan-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .plan-filter-tabs {
        display: flex;
        width: 100%;
    }
    
    .plan-filter-tabs .nav-link {
        flex: 1;
        text-align: center;
        padding: 0.5rem;
    }
    
    .featured-ribbon {
        transform: rotate(45deg) scale(0.8);
        right: -40px;
    }
}
