/* Pricing Page Styles */

/* Hero Section */
.pricing-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(30, 41, 59, 0.70) 100%),
                url('static/pri-bg.webp') center center / cover no-repeat;
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(15, 23, 42, 0.15) 100%);
    z-index: 1;
}

.pricing-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.pricing-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-label.active {
    color: var(--accent-color);
    font-weight: 600;
}

.save-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    animation: pulse-badge 2s infinite;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
    cursor: pointer;
}

.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: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 34px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #1d4ed8 100%);
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(59, 130, 246, 0.3);
    border-color: var(--accent-color);
}

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

/* Pricing Cards Section */
.pricing-cards-section {
    padding: 80px 20px;
    background: var(--background-primary);
}

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

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.pricing-card.featured {
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

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

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.popular-badge i {
    margin-right: 0.5rem;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.package-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.package-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.card-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.price-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.price-display .currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.price-display .amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    transition: all 0.3s ease;
}

.price-display .period {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 2rem;
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Card Highlights */
.card-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 12px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.highlight-item span {
    font-size: 1rem;
    color: var(--text-primary);
}

.highlight-item strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Expand Features Button */
.expand-features-btn {
    width: 100%;
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.expand-features-btn:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.expand-features-btn i {
    transition: transform 0.3s ease;
}

.expand-features-btn.active i {
    transform: rotate(180deg);
}

/* Features List */
.features-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    margin-bottom: 0;
}

.features-list.expanded {
    max-height: 2000px;
    opacity: 1;
    margin-bottom: 2rem;
}

.feature-category {
    margin-bottom: 1.5rem;
}

.feature-category h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-category ul {
    list-style: none;
    padding: 0;
}

.feature-category li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.feature-category li i {
    color: #10b981;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Comparison Section */
.comparison-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.comparison-table-wrapper::after {
    content: '← Scroll to see more →';
    display: none;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--accent-color) 0%, #1d4ed8 100%);
}

.comparison-table th {
    padding: 1.5rem 1rem;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
}

.comparison-table th.feature-col {
    text-align: left;
    background: #1e3a8a;
}

.comparison-table th.featured-col {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    position: relative;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.comparison-table td {
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 1rem;
}

.comparison-table td.feature-name {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td.featured-col {
    background: rgba(245, 158, 11, 0.05);
    font-weight: 600;
}

.comparison-table .text-success {
    color: #10b981;
    font-size: 1.25rem;
}

.comparison-table .text-muted {
    color: #cbd5e1;
    font-size: 1.25rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
    background: var(--background-primary);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question i {
    font-size: 1rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.expanded {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA Section */
.pricing-cta-section {
    padding: 100px 20px 100px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%),
                url('static/pri-bg.webp') center center / cover no-repeat;
    background-attachment: fixed;
    text-align: center;
    position: relative;
    margin-bottom: 0;
}

.pricing-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.cta-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-feature i {
    font-size: 2rem;
    color: var(--accent-color);
}

.cta-feature span {
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
}

.cta-note {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.cta-note i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 120px 15px 60px;
    }

    .pricing-hero-title {
        font-size: 2.5rem;
    }

    .pricing-hero-subtitle {
        font-size: 1.125rem;
        padding: 0 10px;
    }

    .billing-toggle {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .pricing-cards-section {
        padding: 60px 15px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card {
        margin: 0 10px;
    }

    .pricing-card.featured .card-header {
        padding-top: 1.5rem;
    }

    .popular-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
        top: -12px;
    }

    .price-display .amount {
        font-size: 3rem;
    }

    /* Comparison Table Mobile Enhancements */
    .comparison-section {
        padding: 60px 15px;
    }

    .comparison-table-wrapper {
        border-radius: 12px;
        margin: 2rem 0 0 0;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(59, 130, 246, 0.3);
    }

    .comparison-table-wrapper::after {
        display: block;
    }

    .comparison-table {
        min-width: 700px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }

    .comparison-table th {
        font-size: 1rem;
    }

    .comparison-table td.feature-name {
        font-size: 0.875rem;
        padding-left: 1rem;
    }

    /* FAQ Section Mobile */
    .faq-section {
        padding: 60px 15px;
    }

    .faq-grid {
        margin: 2rem 10px 0;
    }

    /* CTA Section Mobile */
    .pricing-cta-section {
        padding: 80px 15px 80px;
    }

    .cta-content h2 {
        font-size: 2rem;
        padding: 0 10px;
    }

    .cta-content > p {
        font-size: 1.125rem;
        padding: 0 10px;
    }

    .cta-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 10px;
    }

    .cta-buttons {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .pricing-hero {
        padding: 110px 10px 50px;
    }

    .pricing-hero-title {
        font-size: 1.75rem;
        padding: 0 5px;
    }

    .pricing-hero-subtitle {
        font-size: 1rem;
        padding: 0 5px;
    }

    .billing-toggle {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }

    .toggle-label {
        font-size: 0.875rem;
    }

    .save-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .pricing-cards-section {
        padding: 50px 10px;
    }

    .pricing-card {
        padding: 1.75rem 1.25rem;
        margin: 0 5px;
        border-radius: 16px;
    }

    .pricing-card.featured .card-header {
        padding-top: 2rem;
    }

    .popular-badge {
        font-size: 0.75rem;
        padding: 5px 14px;
        top: -10px;
    }

    .package-name {
        font-size: 1.5rem;
    }

    .package-description {
        font-size: 0.95rem;
    }

    .price-display .amount {
        font-size: 2.5rem;
    }

    .price-display .currency {
        font-size: 1.5rem;
    }

    .price-display .period {
        font-size: 1rem;
    }

    .card-highlights {
        padding: 1rem;
        gap: 0.75rem;
    }

    .highlight-item {
        gap: 0.75rem;
    }

    .highlight-item i {
        font-size: 1.25rem;
    }

    .highlight-item span {
        font-size: 0.95rem;
    }

    .expand-features-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .feature-category {
        margin-bottom: 1.25rem;
    }

    .feature-category h4 {
        font-size: 0.9rem;
    }

    .feature-category li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    /* Comparison Section Mobile */
    .comparison-section {
        padding: 50px 10px;
    }

    .section-header {
        padding: 0 5px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .comparison-table-wrapper {
        border-radius: 10px;
        margin: 1.5rem 0 0 0;
    }

    .comparison-table-wrapper::after {
        font-size: 0.7rem;
        padding: 6px 12px;
        bottom: 8px;
    }

    .comparison-table {
        min-width: 650px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.875rem 0.5rem;
        font-size: 0.8rem;
    }

    .comparison-table th {
        font-size: 0.9rem;
        padding: 1.25rem 0.5rem;
    }

    .comparison-table td.feature-name {
        font-size: 0.8rem;
        padding-left: 0.75rem;
        max-width: 150px;
    }

    .comparison-table .text-success,
    .comparison-table .text-muted {
        font-size: 1.1rem;
    }

    /* FAQ Section Mobile */
    .faq-section {
        padding: 50px 10px;
    }

    .faq-grid {
        margin: 1.5rem 5px 0;
        gap: 1rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1.125rem;
    }

    .faq-question i {
        font-size: 0.9rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }

    /* CTA Section Mobile */
    .pricing-cta-section {
        padding: 60px 10px 60px;
    }

    .cta-content h2 {
        font-size: 1.75rem;
        padding: 0 5px;
    }

    .cta-content > p {
        font-size: 1rem;
        padding: 0 5px;
    }

    .cta-features {
        margin: 2rem 5px;
        gap: 0.875rem;
    }

    .cta-feature {
        padding: 1.25rem;
    }

    .cta-feature i {
        font-size: 1.75rem;
    }

    .cta-feature span {
        font-size: 0.95rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 5px;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .cta-note {
        font-size: 0.9rem;
        padding: 0 5px;
    }
}

/* Animation for price changes */
@keyframes price-change {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.price-display .amount.changing {
    animation: price-change 0.3s ease;
}

/* Custom Services Banner */
.custom-services-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 2rem 0;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.custom-services-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="white" opacity="0.1"/></svg>');
    pointer-events: none;
}

.custom-services-banner .container {
    position: relative;
    z-index: 1;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.banner-text {
    flex: 1;
    color: white;
}

.banner-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.banner-text p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

.banner-cta {
    flex-shrink: 0;
    background: white;
    color: #1e3a8a;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.banner-cta:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-cta i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .banner-icon {
        margin: 0 auto;
    }
    
    .banner-text h3 {
        font-size: 1.125rem;
    }
    
    .banner-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .custom-services-banner {
        padding: 1.5rem 0;
        margin: 2rem 0;
    }
    
    .banner-content {
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .banner-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .banner-text h3 {
        font-size: 1rem;
    }
    
    .banner-text p {
        font-size: 0.85rem;
    }
    
    .banner-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .custom-services-banner {
        margin: 1.5rem 0;
    }
    
    .banner-content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .banner-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .banner-text h3 {
        font-size: 0.95rem;
    }
    
    .banner-text p {
        font-size: 0.8rem;
    }
}
