/**
 * Connect Pricing Simulator Component
 * Global pricing simulator styles
 *
 * @package RevBridge
 * @since 1.0.0
 */

/* ========================================
   CONNECT PRICING SIMULATOR
   ======================================== */

.connect-pricing-simulator {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    max-width: 1000px;
    margin: 0 auto;
}

/* ========================================
   PRICING BANNER
   ======================================== */

.pricing-banner {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.banner-icon {
    font-size: 1.25rem;
}

.banner-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.banner-subtext {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ========================================
   PRICING HEADER
   ======================================== */

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.pricing-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ========================================
   PRICING TIERS
   ======================================== */

.pricing-tiers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pricing-tier {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.tier-free {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}

.tier-header {
    margin-bottom: 0.5rem;
}

.tier-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.tier-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.tier-price.free {
    color: #059669;
}

.tier-details {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ========================================
   VOLUME CONTROL
   ======================================== */

.volume-control {
    margin-bottom: 2rem;
}

.volume-label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.slider-container {
    position: relative;
    margin-bottom: 1rem;
}

.volume-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(232, 17, 17, 0.3);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(232, 17, 17, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(232, 17, 17, 0.3);
}

.slider-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.volume-display {
    text-align: center;
}

#volume-amount {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

/* ========================================
   COST BREAKDOWN
   ======================================== */

.cost-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.breakdown-section,
.features-section {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

.breakdown-title,
.features-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.breakdown-items {
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.free-item .item-value {
    color: #059669;
    font-weight: 600;
}

.item-label {
    color: var(--gray-700);
    font-size: 0.875rem;
}

.item-value {
    color: var(--gray-900);
    font-weight: 500;
    font-size: 0.875rem;
}

.breakdown-total {
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 2px solid var(--gray-200);
}

.total-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.total-amount.free {
    color: #059669;
}

.total-note {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ========================================
   FEATURES LIST
   ======================================== */

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

.feature-text {
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   CALL TO ACTION
   ======================================== */

.pricing-cta {
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(232, 17, 17, 0.3);
}

.cta-button:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 17, 17, 0.4);
    color: var(--white);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .connect-pricing-simulator {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .pricing-tiers {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cost-breakdown {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-title {
        font-size: 1.75rem;
    }
    
    .pricing-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        width: 100%;
        padding: 1.25rem 2rem;
    }
}

@media (max-width: 480px) {
    .connect-pricing-simulator {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .pricing-title {
        font-size: 1.5rem;
    }
    
    .tier-price {
        font-size: 1.25rem;
    }
    
    .total-amount {
        font-size: 1.25rem;
    }
}
