/* ===== FINANCING PAGE ENHANCEMENTS ===== */

/* Enhanced Calculator */
.calculator-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00cc6a, #00ff88);
    background-size: 200% 100%;
    animation: calculatorProgress 3s ease-in-out infinite;
}

@keyframes calculatorProgress {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.calculator-form {
    position: relative;
    z-index: 2;
}

.calculator-results {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.calculator-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: resultsGlow 3s ease-in-out infinite;
}

@keyframes resultsGlow {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.calculator-results h3 {
    color: #00ff88;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.result-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #00ff88;
}

.result-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.result-value {
    color: #00ff88;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Enhanced Form Elements */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.form-input,
.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-input:focus + .form-label,
.form-select:focus + .form-label {
    color: #00ff88;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Enhanced Calculate Button */
.glass-button.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 1rem;
}

.glass-button.large::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.glass-button.large:hover::after {
    width: 400px;
    height: 400px;
}

.glass-button.primary.large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.4);
}

/* Enhanced Solutions Cards */
.solution-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.solution-card:hover::before {
    left: 100%;
}

.solution-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.3);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6));
}

.solution-card h3 {
    color: #00ff88;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.solution-card:hover h3 {
    color: #00cc6a;
}

.solution-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.solution-card ul {
    list-style: none;
    padding: 0;
}

.solution-card li {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.solution-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}

/* Enhanced Quote Form */
.quote-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.quote-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00cc6a, #00ff88);
    background-size: 200% 100%;
    animation: quoteProgress 3s ease-in-out infinite;
}

@keyframes quoteProgress {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.quote-form {
    position: relative;
    z-index: 2;
}

.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.form-textarea:focus {
    outline: none;
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Enhanced Buttons */
.glass-button.accent.neon {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border-color: #00ff88;
    color: #000;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.glass-button.accent.neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.glass-button.accent.neon:hover::before {
    left: 100%;
}

.glass-button.accent.neon:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.4);
}

/* Loading States */
.calculator-loading {
    opacity: 0.6;
    pointer-events: none;
}

.calculator-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #00ff88;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

/* Success Animation */
.calculation-success {
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calculator-container,
    .quote-container {
        padding: 2rem;
    }
    
    .solution-card {
        padding: 1.5rem;
    }
    
    .solution-icon {
        font-size: 2.5rem;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .result-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .calculator-container,
    .quote-container {
        padding: 1.5rem;
    }
    
    .solution-card {
        padding: 1rem;
    }
    
    .solution-icon {
        font-size: 2rem;
    }
    
    .glass-button.large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .result-item {
        padding: 0.75rem 0;
    }
}
