/* --- Pricing Page Styles --- */
.pricing-section {
    padding: 20px 0 80px 0; /* Back to normal padding */
    background: linear-gradient(180deg, #cce1f0 0%, #fff 90%);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    margin-top: -95px; /* THIS IS THE KEY FIX - moves title up significantly */
}

.pricing-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-top: -50px;
    margin-bottom: -10px;
}

/* --- Toggle Switch --- */
.pricing-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px; /* Reduced from 50px to 35px */
}

.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--medium-gray);
}

.toggle-label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
    transition: color var(--transition-speed);
}

.toggle-label.active {
    color: var(--primary-color);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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: var(--medium-gray);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

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

.yearly-savings {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--success-color);
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.yearly-savings.show {
    opacity: 1;
}

/* --- Pricing Card --- */
.pricing-card-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px; /* Reduced from 60px to 40px */
}

.pricing-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 40px 35px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15);
    text-align: center;
    overflow: hidden;
    transform: translateY(-10px);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.pricing-badge {
    position: absolute;
    top: -1px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 0 10px 10px;
}

.pricing-plan-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 20px 0 10px 0;
}

.pricing-description {
    color: var(--dark-gray);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* --- Pricing Display --- */
.pricing-display {
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.currency-symbol {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.per-user-price {
    color: var(--dark-gray);
    font-size: 0.95rem;
    font-weight: 500;
}

.yearly-note {
    color: var(--success-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
}

/* --- Features List --- */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'><path d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* --- CTA Button --- */
.pricing-cta-button {
    display: block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #357ABD 100%);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    margin: 30px 0 20px 0;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.pricing-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    color: var(--white);
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin: 0;
}

/* --- Additional Info --- */
.pricing-info {
    margin-top: 40px; /* Reduced from 60px to 40px */
    padding-top: 40px; /* Reduced from 60px to 40px */
    border-top: 1px solid var(--medium-gray);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.info-item {
    text-align: center;
}

.info-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .pricing-section {
        padding: 15px 0 60px 0; /* Further reduced for mobile */
    }
    
    .pricing-header {
        margin-bottom: 25px; /* Reduced for mobile */
    }
    
    .pricing-toggle-container {
        margin-bottom: 30px; /* Reduced for mobile */
    }
    
    .pricing-card {
        margin: 0 20px;
        padding: 30px 25px;
    }
    
    .price-amount {
        font-size: 2.8rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 10px 0 50px 0; /* Even more reduced for small mobile */
    }
    
    .pricing-toggle {
        padding: 6px 15px;
        gap: 10px;
    }
    
    .toggle-label {
        font-size: 0.85rem;
    }
    
    .pricing-card {
        margin: 0 10px;
        padding: 25px 20px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}