/* Pricing Calculator Styles */
.pricing-calculator-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.pricing-calculator-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/bg/calculator-bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    z-index: 1;
}

.pricing-calculator-wrapper {
    position: relative;
    z-index: 2;
}

.calculator-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.pricing-form .form-group {
    position: relative;
}

.pricing-form label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculator-select,
.pricing-form input[type="number"] {
    height: 55px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0 20px;
    font-size: 16px;
    color: #495057;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calculator-select:focus,
.pricing-form input[type="number"]:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.calculator-btn-wrapper {
    margin-top: 20px;
}

.calculator-btn {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
}

.calculator-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.calculator-btn:hover::before {
    left: 100%;
}

.calculator-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
}

.calculator-btn i {
    margin-right: 10px;
    font-size: 18px;
}

/* Results Section */
.calculator-results {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h4 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
}

.result-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #6c5ce7;
}

.result-item.total-cost {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: #ffffff;
}

.result-item.total-cost .result-content h6,
.result-item.total-cost .result-content span {
    color: #ffffff;
}

.result-icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-item.total-cost .result-icon {
    background: rgba(255, 255, 255, 0.2);
}

.result-icon i {
    font-size: 24px;
    color: #6c5ce7;
}

.result-item.total-cost .result-icon i {
    color: #ffffff;
}

.result-content h6 {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-content span {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.results-actions {
    margin-top: 30px;
}

.results-actions .btn {
    margin: 0 10px;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #6c5ce7;
    color: #6c5ce7;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #6c5ce7;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Loading Animation */
.calculator-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.calculator-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-card {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .calculator-btn {
        width: 100%;
        padding: 15px 20px;
    }
    
    .results-actions .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .result-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .pricing-form .row {
        margin: 0 -10px;
    }
    
    .pricing-form .col-lg-4,
    .pricing-form .col-lg-6,
    .pricing-form .col-md-6 {
        padding: 0 10px;
    }
}

/* Custom Select Styling */
.calculator-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-control.is-valid {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Pulse Animation for Results */
.result-item.animate-pulse {
    animation: pulse 0.8s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}