/* ========================================
   PRICING PAGE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8fafc;
    color: #334155;
    line-height: 1.6;
    padding-top: 80px;
}

/* Main Container */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Section */
.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-title {
    font-size: 3rem;
    font-weight: 700;
    color: #00356B;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.pricing-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.billing-label {
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
}

.billing-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #e2e8f0;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.billing-switch.yearly {
    background: #00356B;
}

.billing-switch-indicator {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.billing-switch.yearly .billing-switch-indicator {
    transform: translateX(30px);
}

.save-badge {
    background: #10b981;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    margin-left: 0.5rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 53, 107, 0.1);
    border-color: #00356B;
}

.pricing-card-popular {
    border-color: #00356B;
    transform: scale(1.05);
}

.pricing-card-popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00356B 0%, #004080 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 53, 107, 0.3);
}

/* Card Header */
.pricing-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.plan-description {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.price-section {
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #00356B;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: #64748b;
    margin-left: 0.5rem;
}

.yearly-savings {
    margin-top: 0.5rem;
}

.savings-text {
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 600;
}

/* Card Body */
.pricing-card-body {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list {
    list-style: none;
    space-y: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item span {
    font-size: 1rem;
    color: #334155;
    line-height: 1.5;
}

/* Card Footer */
.pricing-card-footer {
    text-align: center;
}

.pricing-btn {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pricing-btn-primary {
    background: linear-gradient(135deg, #00356B 0%, #004080 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 53, 107, 0.3);
}

.pricing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 53, 107, 0.4);
}

.pricing-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.pricing-btn-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Enterprise Section */
.enterprise-section {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
}

.enterprise-card {
    background: linear-gradient(135deg, #00356B 0%, #004080 100%);
    color: white;
    border-radius: 16px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 53, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.enterprise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.enterprise-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.enterprise-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.enterprise-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0;
}

.enterprise-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.enterprise-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.enterprise-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.enterprise-feature:last-child {
    margin-bottom: 0;
}

.enterprise-feature .feature-icon {
    width: 24px;
    height: 24px;
    color: #10b981;
    flex-shrink: 0;
}

.enterprise-cta {
    text-align: center;
}

.enterprise-cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.enterprise-cta-text {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.enterprise-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #00356B;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.enterprise-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

.enterprise-btn svg {
    transition: transform 0.3s ease;
}

.enterprise-btn:hover svg {
    transform: translateX(4px);
}

/* FAQ Section */
.faq-section {
    margin: 6rem 0 4rem;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00356B;
    text-align: center;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 53, 107, 0.1);
    border-color: #00356B;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-answer {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Back Section */
.back-section {
    text-align: center;
    margin-top: 4rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00356B;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: #f1f5f9;
    transform: translateX(-2px);
}

/* Checkout Modal */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.checkout-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.checkout-modal-overlay.active .checkout-modal {
    transform: scale(1) translateY(0);
}

.checkout-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.checkout-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.checkout-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkout-close:hover {
    background: #f1f5f9;
    color: #333;
}

.checkout-modal-body {
    padding: 2rem;
}

.checkout-plan-summary {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.checkout-plan-summary h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.checkout-price {
    font-size: 2rem;
    font-weight: 700;
    color: #00356B;
}

.checkout-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.checkout-notice p {
    margin-bottom: 0.5rem;
    color: #9a3412;
    line-height: 1.5;
}

.checkout-notice p:last-child {
    margin-bottom: 0;
}

.checkout-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.checkout-btn-primary {
    background: linear-gradient(135deg, #00356B 0%, #004080 100%);
    color: white;
}

.checkout-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.checkout-btn-secondary {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.checkout-btn-secondary:hover {
    background: #f8fafc;
}

/* Error Message Styles */
.pricing-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0 2rem;
    display: none;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.error-text {
    flex: 1;
    color: #dc2626;
    font-weight: 500;
    line-height: 1.5;
}

.error-close {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.error-close:hover {
    background: #fecaca;
}

/* Current Subscription Info Styles */
.current-subscription-info {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0 2rem;
    display: none;
}

.subscription-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.status-text {
    color: #059669;
    font-weight: 500;
    line-height: 1.5;
}

.subscription-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 2rem;
}

.expiry-date {
    color: #047857;
    font-size: 0.9rem;
    font-weight: 500;
}

.expiry-date.expiring-soon {
    color: #dc2626;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-container {
        padding: 1rem;
    }
    
    .pricing-title {
        font-size: 2rem;
    }
    
    .pricing-subtitle {
        font-size: 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card-popular {
        transform: none;
    }
    
    .pricing-card-popular:hover {
        transform: translateY(-4px);
    }
    
    .billing-toggle {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .checkout-actions {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-title {
        font-size: 2rem;
    }
    
    .enterprise-card {
        margin: 0 1rem;
        padding: 2rem;
    }
    
    .enterprise-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .enterprise-title {
        font-size: 2rem;
    }
    
    .enterprise-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .checkout-modal {
        margin: 1rem;
        max-width: none;
    }
    
    .checkout-modal-header,
    .checkout-modal-body {
        padding: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-question {
        font-size: 1.125rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
    
    .faq-title {
        font-size: 1.75rem;
    }
    
    .faq-grid {
        gap: 1rem;
    }
    
    .enterprise-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .enterprise-title {
        font-size: 1.75rem;
    }
    
    .enterprise-subtitle {
        font-size: 1rem;
    }
    
    .enterprise-cta-title {
        font-size: 1.25rem;
    }
    
    .enterprise-feature {
        font-size: 1rem;
    }
    
    .enterprise-btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}
