/**
 * Pricing Page Styles
 */

/* General Styles */
.pricing-page {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2A6478;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.button-primary {
    background-color: #2A6478;
    color: white;
}

.button-primary:hover {
    background-color: #1a4a5a;
    transform: translateY(-2px);
}

.button-secondary {
    background-color: transparent;
    color: #2A6478;
    border: 2px solid #2A6478;
}

.button-secondary:hover {
    background-color: rgba(42, 100, 120, 0.1);
    transform: translateY(-2px);
}

/* Pricing Header */
.pricing-header {
    background-color: #2A6478;
    padding: 80px 0 40px;
    text-align: center;
}

.pricing-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.toggle-label {
    font-weight: 600;
    margin: 0 15px;
    color: #fff;
}

.save-badge {
    background-color: #4CAF50;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Pricing Plans */
.pricing-plans {
    padding: 40px 0 80px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.pricing-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 2px solid #2A6478;
    position: relative;
    transform: scale(1.05);
}

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

.featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #2A6478;
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom-left-radius: 8px;
}

.pricing-card-header {
    padding: 30px;
    text-align: center;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2A6478;
}

.plan-description {
    color: #666;
    margin-bottom: 20px;
    min-height: 48px;
}

.pricing-amount {
    margin-bottom: 30px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 5px;
}

.price.annual {
    display: none;
}

.toggle-annual .price.monthly {
    display: none;
}

.toggle-annual .price.annual {
    display: flex;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 5px;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: #666;
    margin-left: 5px;
}

.billed {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 5px;
    width: 100%;
    text-align: center;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
    margin-top: 10px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 30px;
}

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

.pricing-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.pricing-features li:before {
    content: "✓";
    color: #2A6478;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
}

.pricing-card-footer {
    padding: 20px 30px;
    text-align: center;
    margin-top: auto;
    background-color: #f8f9fa;
}

.pricing-card-footer .button {
    margin-bottom: 10px;
    width: 80%;
}

.pricing-card-footer .button:last-child {
    margin-bottom: 0;
}

/* Compare Plans Button */
.compare-plans-container {
    text-align: center;
    margin-top: 80px;
}

#compare-plans-btn {
    font-size: 1.1rem;
    padding: 12px 30px;
}

#compare-plans-btn:hover {
    transform: translateY(-2px);
}

/* Features Table */
#pricing-features-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    display: none; /* Initially hidden, shown by JavaScript */
}

.features-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.features-table th,
.features-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

/* Set column widths */
.features-table th:first-child,
.features-table td:first-child {
    width: 30%;
    text-align: left;
}

.features-table th:not(:first-child),
.features-table td:not(:first-child) {
    width: 23.33%;
}

.features-table th {
    background-color: #2A6478;
    color: white;
    font-weight: 600;
}

.features-table th:first-child {
    width: 25%;
}

.features-table td:first-child {
    font-weight: 600;
}

.features-table tr:last-child td {
    border-bottom: none;
}

.features-table i.fa-check {
    color: #4CAF50;
}

.features-table i.fa-times {
    color: #f44336;
}

.table-disclaimer {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 20px;
}

/* Benefits Section */
.pricing-benefits {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: #2A6478;
    margin-bottom: 20px;
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2A6478;
}

.benefit-description {
    color: #666;
}

.cta-container {
    text-align: center;
    margin-top: 40px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
}

.testimonials-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.testimonials-section .section-title {
    text-align: center;
    color: #2A6478;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.testimonials-slider {
    position: relative;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 50px;
}

.testimonials-slider .slick-list {
    overflow: hidden;
    margin: 0 -15px;
}

.testimonials-slider .slick-track {
    display: flex;
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 0 15px;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.author-name {
    font-weight: 600;
    color: #2A6478;
    margin-bottom: 4px;
}

.author-company {
    font-size: 0.8rem;
    color: #999;
}

/* Navigation Controls */
.testimonials-slider .slick-prev,
.testimonials-slider .slick-next {
    display: none !important;
}

.testimonials-slider .slick-prev:before,
.testimonials-slider .slick-next:before {
    color: #2A6478;
    font-size: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .testimonials-slider {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .testimonials-slider {
        max-width: 500px;
    }
}

/* Spacing for slick slider */
.testimonials-slider.with-spacing .slick-list {
    overflow: visible !important;
    margin: 0 -15px !important;
}

.testimonials-slider.with-spacing .slick-track {
    display: flex !important;
    gap: 10px !important;
}

.testimonials-slider.with-spacing .slick-wrapper {
    height: 100%;
}

/* Pricing CTA Section */
.pricing-cta {
    padding: 80px 0;
    background-color: #2A6478;
    color: white;
    text-align: center;
}

.pricing-cta .section-title {
    color: white;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-cta .button-primary {
    background-color: white;
    color: #2A6478;
    font-size: 1.1rem;
    padding: 15px 30px;
}

.pricing-cta .button-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Additional Services Section */
.additional-services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: #2A6478;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2A6478;
}

.service-description {
    color: #666;
    margin-bottom: 20px;
}

.service-link {
    color: #2A6478;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #1a4a5a;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto 40px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.faq-toggle {
    color: #2A6478;
    transition: transform 0.3s ease;
}

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

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-cta {
    text-align: center;
    margin-top: 40px;
}

.faq-cta p {
    margin-bottom: 20px;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-slider .slick-prev {
        left: -30px;
    }
    
    .testimonials-slider .slick-next {
        right: -30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-title {
        font-size: 2.2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-section .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .testimonials-slider .slick-prev {
        left: -20px;
    }
    
    .testimonials-slider .slick-next {
        right: -20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pricing-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-table th:first-child {
        width: 40%;
    }
}

/* Always show 3 at a time on desktop, 2 on tablet, 1 on mobile */
@media (min-width: 1025px) {
    .testimonials-slider.slick-initialized {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }
}
@media (max-width: 1024px) {
    .testimonials-slider.slick-initialized {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .testimonials-slider.slick-initialized {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

section.pricing-cta p {
    max-width: 700px;
    margin: 0 auto;
}

section.pricing-cta .buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}
