/* MZGuard Pricing Page Styles */

/* Hero Section */
.pricing-hero {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    padding: 80px 20px 100px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.pricing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.pricing-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.pricing-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.billing-option {
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.billing-option.active {
    opacity: 1;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.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.3);
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: rgba(255, 255, 255, 0.5);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.discount-badge {
    background: #00c896;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 20px;
    background: #f9fafb;
    margin-top: -50px;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    z-index: 1; /* ✅ Basso z-index per non interferire con modal */
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 2; /* ✅ Leggermente più alto in hover ma sempre sotto modal */
}

.pricing-card.featured {
    border-color: #0066ff;
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.2);
    z-index: 3; /* ✅ Featured card più visibile ma sempre sotto modal */
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00c896, #00a876);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.currency {
    font-size: 2rem;
    font-weight: 700;
    color: #0066ff;
}

.amount {
    font-size: 4rem;
    font-weight: 900;
    color: #0066ff;
    line-height: 1;
}

.period {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 500;
}

.original-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.plan-description {
    color: #6b7280;
    font-size: 1rem;
    margin-top: 15px;
}

/* Plan Features */
.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #4b5563;
    font-size: 0.95rem;
}

.plan-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Plan Buttons */
.plan-button {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.plan-button-primary {
    background: linear-gradient(135deg, #0066ff, #0052cc);
    color: white;
}

.plan-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.plan-button-outline {
    background: transparent;
    color: #0066ff;
    border: 2px solid #0066ff;
}

.plan-button-outline:hover {
    background: #0066ff;
    color: white;
}

.trial-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 12px;
}

.volume-discount {
    color: #00c896;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
    background: white;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #0066ff;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.faq-answer {
    color: #4b5563;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-title {
        font-size: 2rem;
    }
    
    .pricing-subtitle {
        font-size: 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .amount {
        font-size: 3rem;
    }
    
    .billing-toggle {
        flex-direction: column;
        gap: 10px;
    }
}
