/* Pricing Component Styles */

/* Billing Toggle */
.billing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(to right, #f3f4f6, #e5e7eb);
    border-radius: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.billing-toggle-container label {
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.billing-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    appearance: none;
    background: #9ca3af;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.3s;
    outline: none;
}

.billing-toggle:checked {
    background: #10b981;
}

.billing-toggle::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    top: 4px;
    left: 4px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.billing-toggle:checked::before {
    transform: translateX(28px);
}

.billing-savings-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.billing-savings-badge.hidden {
    display: none;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pricing-card-popular {
    border: 4px solid #facc15 !important;
    position: relative;
    transform: scale(1.05);
}

.pricing-card-popular::before {
    content: 'NAJPOPULARNIEJSZY';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #facc15;
    color: #1e293b;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin: 1rem 0;
}

.pricing-price-monthly {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
    margin-left: 0.5rem;
}

.pricing-price-yearly {
    font-size: 1.25rem;
    font-weight: 600;
    color: #10b981;
}

.pricing-original-price {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Trial Modal */
.trial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.trial-modal.active {
    display: flex;
}

.trial-modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.trial-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.trial-modal-close:hover {
    background: #f3f4f6;
}

.trial-form-group {
    margin-bottom: 1.5rem;
}

.trial-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.trial-form-group input,
.trial-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.trial-form-group input:focus,
.trial-form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.trial-form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.trial-form-group.error .trial-form-error {
    display: block;
}

.trial-form-group.error input,
.trial-form-group.error select {
    border-color: #ef4444;
}

/* Add-ons Section */
.addons-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
    border-radius: 1rem;
}

.addon-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.addon-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.addon-card.selected {
    border-color: #6366f1;
    background: #eef2ff;
}

.addon-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.addon-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6366f1;
}

/* Implementation Services */
.implementation-services-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(to bottom right, #fef3c7, #fde68a);
    border-radius: 1rem;
    border: 2px solid #fbbf24;
}

.service-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-price-range {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
}

/* Self-Hosted License Section */
.self-hosted-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(to bottom right, #ecfdf5, #d1fae5);
    border-radius: 1rem;
    border: 2px solid #10b981;
}

.self-hosted-price {
    font-size: 2rem;
    font-weight: 800;
    color: #059669;
}

/* CTA Buttons */
.pricing-cta-primary {
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    display: block;
    width: 100%;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.pricing-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.pricing-cta-secondary {
    background: white;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    display: block;
    width: 100%;
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    text-decoration: none;
    margin-top: 0.5rem;
}

.pricing-cta-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-card-popular {
        transform: scale(1);
    }

    .pricing-price {
        font-size: 2rem;
    }

    .billing-toggle-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .trial-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: fadeIn 0.5s ease-out;
}

.pricing-card[data-animation-delay="100"] {
    animation-delay: 0.1s;
}

.pricing-card[data-animation-delay="200"] {
    animation-delay: 0.2s;
}

