
/* ==========================================
   PRICING CALCULATOR STYLES
   ========================================== */

.pricing-calculator-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin: 40px 0;
}

.calc-wrapper {
    max-width: 100%;
}

/* Calculator Header */
.calc-header {
    margin-bottom: 30px;
}

.calc-toggles {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.calc-toggle-group {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--light-grey);
    padding: 12px 20px;
    border-radius: 30px;
}

.toggle-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--black);
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #e5e7eb;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-switch.active {
    background: var(--success);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    left: 33px;
}

.savings-badge {
    background: var(--success);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Currency Selector */
.currency-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.currency-btn {
    padding: 10px 18px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    color: var(--black);
}

.currency-btn:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.currency-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Configuration Grid */
.calc-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.calc-config-section {
    background: var(--light-grey);
    padding: 30px;
    border-radius: 12px;
}

.calc-config-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-config-section h3 i {
    color: var(--primary-blue);
}

/* Counter Control */
.counter-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.counter-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-blue);
    background: white;
    color: var(--primary-blue);
    border-radius: 8px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
}

.counter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.counter-display {
    flex: 1;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.counter-note {
    font-size: 0.85rem;
    color: var(--grey);
    margin-top: 10px;
    text-align: center;
}

/* Slider Control */
.slider-control {
    margin-top: 20px;
}

.slider-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.slider-value span {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.slider-value small {
    font-size: 0.85rem;
    color: var(--grey);
}

.slider-input {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(1, 4, 250, 0.3);
}

.slider-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--grey);
    margin-top: 5px;
}

/* Bundle Discount */
.bundle-discount {
    background: var(--success);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
    font-size: 1.05rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features Grid */
.calc-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.calc-feature-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.calc-feature-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(1, 4, 250, 0.1);
    transform: translateY(-3px);
}

.calc-feature-card.selected {
    border-color: var(--primary-blue);
    background: #e8f4ff;
    box-shadow: 0 0 0 4px rgba(1, 4, 250, 0.1);
}

.calc-feature-card.selected .feature-check {
    display: flex;
}

.feature-check {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.feature-badge {
    display: inline-block;
    background: var(--warning);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.feature-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.feature-price .per-month {
    font-size: 1rem;
    color: var(--grey);
}

.feature-description {
    font-size: 0.85rem;
    color: var(--grey);
    line-height: 1.5;
}

/* Results Bar */
.calc-results-bar {
    background: white;
    border-top: 2px solid #e5e7eb;
    padding: 30px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.result-item h4 {
    font-size: 0.85rem;
    color: var(--grey);
    margin-bottom: 5px;
}

.result-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}

.results-price {
    text-align: right;
}

.total-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
}

.total-price .currency {
    font-size: 1.5rem;
}

.total-price .period {
    font-size: 1rem;
    color: var(--grey);
    font-weight: 600;
}

.price-tax {
    font-size: 0.8rem;
    color: var(--grey);
    margin-top: 5px;
}

.cta-button {
    padding: 18px 40px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(1, 4, 250, 0.3);
    white-space: nowrap;
}

.cta-button:hover {
    background: #0003d1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 4, 250, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .pricing-calculator-container {
        padding: 20px;
    }

    .calc-config-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calc-features-grid {
        grid-template-columns: 1fr;
    }

    .calc-results-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .results-info {
        flex-direction: column;
        gap: 15px;
    }

    .results-price {
        text-align: center;
    }

    .cta-button {
        width: 100%;
    }

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

    .calc-toggles {
        flex-direction: column;
        gap: 15px;
    }
}
