/**
 * Pricing Page Styles
 * Advanced UI design for HanuPay pricing page
 */

/* Hero Section with Parallax */
.page-header.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 120px 0 70px;
}

.page-header.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(243, 247, 246, 0.85) 0%, rgb(240, 241, 241) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Pricing Toggle Switch */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 15px;
}

.toggle-label {
    font-weight: 500;
    color: #64748b;
    transition: var(--transition);
}

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

.discount {
    background-color: #10b981;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 5px;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

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

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

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

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

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

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

/* Pricing Grid */
.pricing-section {
    padding: 80px 0;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.05);
    z-index: 0;
}

.pricing-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.05);
    z-index: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.pricing-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    z-index: 2;
}

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

.popular-badge {
    position: absolute;
    top: 0;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 0 0 10px 10px;
    z-index: 3;
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.annual-price {
    display: none;
}

.period {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
}

.pricing-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.pricing-features {
    padding: 30px;
}

.pricing-features ul {
    display: grid;
    gap: 15px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--success-color);
    margin-top: 3px;
}

.pricing-features li.not-included {
    color: #94a3b8;
}

.pricing-features li.not-included i {
    color: #cbd5e1;
}

.pricing-footer {
    padding: 0 30px 30px;
    text-align: center;
}

/* Transaction Fees Table */
.transaction-fees {
    padding: 80px 0;
    background-color: white;
}

.fees-table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.fees-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-weight: 500;
    font-size: 1rem;
}

.fees-table th:first-child {
    border-top-left-radius: 10px;
}

.fees-table th:last-child {
    border-top-right-radius: 10px;
}

.fees-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
}

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

.fees-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.fees-table tr:hover {
    background-color: #f1f5f9;
}

/* Additional Fees Cards */
.additional-fees {
    padding: 80px 0;
    background-color: #f8fafc;
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.fee-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.fee-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.fee-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.fee-card p {
    color: #64748b;
    font-size: 0.9rem;
}

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

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

.faq-item {
    background-color: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    margin: 0;
}

.toggle-icon {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-answer p {
    color: #64748b;
    line-height: 1.7;
}

.faq-item.active .faq-question {
    background-color: #f1f5f9;
}

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

.faq-item.active .faq-answer {
    display: block;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-section .btn-primary:hover {
    background-color: transparent;
    color: white;
}

.cta-section .btn-outline {
    border-color: white;
    color: white;
}

.cta-section .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-on-scroll.from-left {
    transform: translateX(-50px);
}

.reveal-on-scroll.from-right {
    transform: translateX(50px);
}

.reveal-on-scroll.from-bottom {
    transform: translateY(50px);
}

.reveal-on-scroll.scale-in {
    transform: scale(0.9);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
    
    .fees-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .pricing-toggle {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-header h3 {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .pricing-grid, .fees-grid {
        grid-template-columns: 1fr;
    }
    
    .fee-card {
        padding: 20px;
    }
    
    .fees-table th, .fees-table td {
        padding: 10px 15px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}
