/* App Development Cost Page Custom Styles */

/* Cost Calculator Animations */
@keyframes price-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.price-highlight {
    animation: price-pulse 2s infinite;
}

/* Pricing Card Enhancements */
.pricing-card {
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.pricing-card:hover::before {
    left: 100%;
}

.pricing-card:hover {
    border-color: #3B82F6;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.pricing-card.featured {
    border-color: #3B82F6;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.pricing-card.featured:hover {
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.25);
}

/* Cost Factor Cards */
.cost-factor-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    position: relative;
}

.cost-factor-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    opacity: 0.05;
    transition: width 0.4s ease;
}

.cost-factor-card:hover::after {
    width: 100%;
}

.cost-factor-card:hover {
    transform: translateY(-8px);
    border-color: #3B82F6;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.1);
}

/* Cost Optimization Section */
.optimization-tip {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-left: 4px solid #3B82F6;
    transition: all 0.3s ease;
    position: relative;
}

.optimization-tip::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #1D4ED8 0%, #3B82F6 100%);
    transition: height 0.4s ease;
}

.optimization-tip:hover::before {
    height: 100%;
}

.optimization-tip:hover {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    transform: translateX(8px);
}

/* Estimate Form Styling */
.estimate-form {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
}

.estimate-form:hover {
    border-color: #3B82F6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.form-input {
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.form-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-input:hover {
    border-color: #9CA3AF;
}

/* Cost Comparison Table */
.cost-comparison-table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.cost-comparison-table thead {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.cost-comparison-table tbody tr {
    transition: all 0.2s ease;
}

.cost-comparison-table tbody tr:hover {
    background: linear-gradient(90deg, #F0F9FF 0%, #E0F2FE 100%);
    transform: scale(1.01);
}

.cost-range {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    border-radius: 8px;
    font-weight: bold;
    color: #92400E;
}

/* Interactive Price Calculator */
.price-calculator {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 2px solid #E2E8F0;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.price-calculator:hover {
    border-color: #3B82F6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.calculator-result {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    border-radius: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

/* Button Animations */
.cost-btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cost-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.cost-btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.cost-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.3);
}

/* Package Popularity Badge */
.popularity-badge {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    position: absolute;
    top: -8px;
    right: -8px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Cost Breakdown Cards */
.cost-breakdown-item {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.cost-breakdown-item:hover {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-color: #3B82F6;
    transform: translateY(-4px);
}

/* Advantage Icons */
.advantage-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    transform: rotate(5deg) scale(1.1);
}

/* Loading States */
.cost-loading {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pricing-card:hover {
        transform: translateY(-6px);
    }

    .cost-factor-card:hover {
        transform: translateY(-4px);
    }

    .optimization-tip:hover {
        transform: translateX(4px);
    }

    .cost-comparison-table tbody tr:hover {
        transform: none;
    }
}

/* Form Validation States */
.form-input.valid {
    border-color: #10B981;
    background-color: #F0FDF4;
}

.form-input.invalid {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

/* Custom Tooltips */
.cost-tooltip {
    position: relative;
    cursor: help;
}

.cost-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.cost-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Print Styles */
@media print {
    .pricing-card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }

    .cost-btn-primary {
        background: #3B82F6 !important;
        color: white !important;
    }

    .popularity-badge {
        animation: none;
    }
}