/**
 * Pricing Page Specific Styles
 */

/* Pricing Hero Section */
.pricing-hero {
    position: relative;
    background-color: var(--background);
    padding: 100px 0 80px;
    overflow: hidden;
}

.pricing-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(79, 159, 243, 0.15) 0%, transparent 70%),
                radial-gradient(circle at 30% 70%, rgba(122, 9, 183, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.pricing-hero .container {
    position: relative;
    z-index: 1;
}

.pricing-hero .hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.2;
}

.pricing-hero p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Billing Toggle */
.pricing-toggle-section {
    padding: 40px 0;
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.billing-option {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.billing-option.monthly {
    opacity: 1;
}

.billing-option.annual {
    display: flex;
    align-items: center;
}

.discount {
    background-color: rgba(79, 159, 243, 0.15);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
}

/* Toggle Switch */
.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: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background-color: var(--primary-color);
    transition: .4s;
    border-radius: 50%;
}

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

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

/* Pricing Cards */
.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 50px;
}

.pricing-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-stronger);
    transform: translateY(-5px);
}

.pricing-header {
    padding: 30px;
    text-align: center;
    background-color: var(--background-alt);
    border-bottom: 1px solid var(--border-color);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.pricing-header p {
    font-size: 16px;
    color: var(--text-light);
}

.pricing-tiers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.tier {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    position: relative;
    border-right: 1px solid var(--border-color);
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
}

.tier:last-child {
    border-right: none;
}

.tier-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.tier.recommended {
    background-color: rgba(79, 159, 243, 0.05);
    padding-top: 40px;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}

.tier h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    text-align: center;
}

.price {
    text-align: center;
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.price-monthly, .price-annual {
    display: inline-block;
}

.pricing-card:not(.annual) .price-annual {
    display: none;
}

.pricing-card.annual .price-monthly {
    display: none;
}

.period {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
}

.custom-price {
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

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

.features-list li {
    display: flex;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.5;
    align-items: flex-start;
}

.features-list li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

.tier .btn-primary, .tier .btn-secondary {
    width: 100%;
    text-align: center;
}

/* Training Cards */
.training-cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

.training-cards .pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: calc(50% - 15px);
}

.pricing-details {
    padding: 30px;
}

.price-block {
    text-align: center;
    margin-bottom: 30px;
}

/* Consulting Pricing Table */
.pricing-table {
    margin-top: 50px;
    overflow-x: auto;
}

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

thead {
    background-color: var(--background-alt);
    border-bottom: 2px solid var(--border-color);
}

th, td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

th {
    font-weight: 600;
    color: var(--text-dark);
}

tr:hover {
    background-color: rgba(79, 159, 243, 0.05);
}

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

.consulting-cta p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* FAQ Section */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}

.faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.toggle-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.faq-item.active .faq-answer {
    padding: 0 30px 20px;
    max-height: 300px;
}

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

/* CTA Section */
.pricing-cta {
    margin-top: 80px;
}

/* Media Queries */
@media (max-width: 1024px) {
    .pricing-tiers {
        flex-direction: column;
    }
    
    .tier {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .tier:last-child {
        border-bottom: none;
    }
    
    .tier.recommended {
        transform: scale(1);
        margin: 20px 0;
    }
    
    .training-cards .pricing-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 36px;
    }
    
    .pricing-hero p {
        font-size: 18px;
    }
    
    th, td {
        padding: 10px 15px;
    }
}

@media (max-width: 576px) {
    .pricing-hero h1 {
        font-size: 30px;
    }
    
    .pricing-hero p {
        font-size: 16px;
    }
    
    .pricing-header {
        padding: 20px;
    }
    
    .tier, .pricing-details {
        padding: 20px;
    }
    
    .price {
        font-size: 36px;
    }
    
    .custom-price {
        font-size: 28px;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 15px;
    }
}

/* Security Icon Styling */
.security-icon {
    background: linear-gradient(135deg, #e03131 0%, #862e9c 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 49, 49, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(224, 49, 49, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(224, 49, 49, 0);
    }
}

#security-pricing .pricing-card {
    border-color: #e03131;
}

#security-pricing .tier.recommended {
    border-color: #e03131;
    background-color: rgba(224, 49, 49, 0.05);
}

#security-pricing .features-list li i {
    color: #e03131;
}

#security-pricing .custom-price {
    background: linear-gradient(135deg, #e03131 0%, #862e9c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}