/* Subscription page specific styles */

/* Header size reduction for subscription page */
header.border-bottom {
    min-height: 60px !important;
}

header.border-bottom .container {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* User menu button reduction for subscription page */
#userMenu {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

#userMenu .fa-user {
    font-size: 0.875rem !important;
}

/* Smaller dropdown menu for subscription page */
#userMenu + .dropdown-menu {
    min-width: 180px !important;
    font-size: 0.875rem !important;
}

#userMenu + .dropdown-menu .dropdown-item {
    padding: 0.375rem 1rem !important;
}

/* Pricing cards */
.pricing-card {
    border: 2px solid #dee2e6; /* Changed from #e9ecef to #dee2e6 (darker grey) */
    border-radius: 10px;
    /* Removed transition to prevent any animation */
    height: 100%;
}



.pricing-card.featured {
    border-color: #dee2e6; /* Changed from #007bff to grey */
    background-color: #ffffff; /* Changed from #f8f9fa to white */
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #337ab7;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00509d;
}

.pricing-card .price-period {
    font-size: 1rem;
    color: #6c757d;
}

.pricing-card ul {
    padding-left: 0;
}

.pricing-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-card li:last-child {
    border-bottom: none;
}

/* Features */
.feature {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.feature i {
    color: #6c757d;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #868e96;
    margin-bottom: 10px;
}

/* Subscription details */
.subscription-details {
    /* Removed left border for cleaner design */
}

.subscription-details .badge {
    font-size: 0.9rem;
    padding: 5px 10px;
}

.subscription-details .badge.bg-secondary {
    background-color: #d2e3dd !important;
    color: #1a5c3e;
}

/* Status badges */
/* Active uses Bootstrap's .bg-secondary */

.badge-trialing {
    background-color: #17a2b8;
}

.badge-canceled {
    background-color: #dc3545;
}

.badge-unpaid {
    background-color: #ffc107;
    color: #212529;
}

/* FAQ section */
.faq-section {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0c63e4;
}



/* Buttons */
.btn-subscribe {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
}

.subscription-action-btn {
    min-width: 120px;
}

#accessDbBtn {
    background-color: #ffbf5b !important;
    border-color: #ffbf5b !important;
    color: #1a1a1a !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 20px;
    }
    
    .subscription-details .row {
        flex-direction: column;
    }
    
    .subscription-action-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .feature {
        padding: 15px;
    }
    
    .faq-section {
        padding: 20px;
    }
    
    .btn-subscribe {
        width: 100%;
    }
}

/* Value proposition */
.value-proposition {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success/error states */
.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* ========================================
   Stripe-style Pricing Grid
   ======================================== */

.pricing-hero {
    text-align: center;
    padding: 3rem 0 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pricing-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: #111;
    margin: 0;
}

.pricing-hero .subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0.5rem auto 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(312px, 312px));
    gap: 8px;
    justify-content: center;
    margin: 0 auto 40px;
}

.pricing-column {
    width: 312px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    position: relative;
}

.pricing-column-highlight {
    border-color: rgba(0, 0, 0, 0.05);
}

.pricing-column-content {
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pricing-product {
    display: flex;
    flex-direction: column;
}

.pricing-badge-placeholder {
    min-height: 22px;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    background: #00509d;
    color: #fff;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-image {
    margin-bottom: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.pricing-image img {
    max-height: 80px;
    width: auto;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.pricing-description {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.pricing-price-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-price-row {
    display: flex;
    align-items: baseline;
}

.pricing-amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.pricing-interval {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-left: 4px;
}

.pricing-interval-note {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.pricing-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #333;
    border-bottom: none;
}

.pricing-features li i {
    color: #00509d;
    margin-right: 8px;
    font-size: 0.8rem;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #00509d;
    background: #fff;
    color: #00509d;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.pricing-btn:hover {
    background: #f0f5ff;
    color: #00509d;
    text-decoration: none;
}

.pricing-btn-primary {
    background: #00509d;
    color: #fff;
    border-color: #00509d;
}

.pricing-btn-primary:hover {
    background: #003d7a;
    color: #fff;
    text-decoration: none;
}

.pricing-cancel {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: minmax(280px, 400px);
    }
    .pricing-column {
        width: 100%;
    }
}