/* Only new styles needed for the calculator */
.slider-track {
    position: relative;
    padding: 0.5rem 0;
}

.slider-track input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 50px;
    background: #e2e8f0;
    outline: none;
    transition: background 0.2s;
    background-image: linear-gradient(to right, #3b82f6, #8b5cf6);
    background-size: var(--fill, 0%) 100%;
    background-repeat: no-repeat;
}

.slider-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
    transition: all 0.2s;
    border: 3px solid white;
}

.slider-track input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
}

.slider-track input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.slider-track input[type="range"]:focus {
    outline: none;
}

.results-section.visible {
    display: block !important;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-amount.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* Fix for grid-4column in this context */
.grid-4column .service-card {
    padding: 1.2rem 1rem;
    text-align: center;
}

/* Override for the value-prop section */
.value-prop .grid-tw {
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-4column {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .value-prop .grid-tw {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}
