/* CSS for ROI Calculator Widget */


.roi-calculator-container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
}

.roi-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 8px;
}

.roi-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 40px;
}

.roi-calculator {
    display: flex;
    gap: 20px;
    padding: 12px;
    border-radius: 24px;
    background: #eef2ff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.apps-panel, .results-panel {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.apps-panel {
    flex: 1;
}

.results-panel {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
}

.panel-header {
    text-align: center;
    margin-bottom: 24px;
}

.panel-header h3 {
    background-color: #fee2e2;
    color: #ef4444;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.results-panel .panel-header h3 {
     background-color: #e0e7ff;
     color: #3730a3;
}

.apps-content {
    display: flex;
    flex-direction: column;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.app {
    position: relative;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 10px;
    transition: all 0.2s ease;
    text-align: center;
    background-color: #f9fafb;
}

.app:hover {
    background-color: #f0f2f5;
}

.app-icon-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.app-name {
    font-size: 0.8rem;
    color: #4A5568;
    display: block;
}

.app.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
}
.app.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}


.employee-slider-container {
    margin-top: 30px;
    padding-bottom: 20px;
}

.employee-slider-container:last-of-type {
    border-bottom: none;
}

.employee-slider-container label {
    margin-bottom: 0;
    font-weight: 500;
    color: #4A5568;
    font-size: 1rem;
}

#employee-slider, #businesses-slider, #sessions-slider, #sports-slider, #students-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
    margin-top: 10px;
}

#employee-slider::-webkit-slider-thumb, 
#businesses-slider::-webkit-slider-thumb, 
#sessions-slider::-webkit-slider-thumb, 
#sports-slider::-webkit-slider-thumb,
#students-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4f46e5;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin-top: 0px; /* Center thumb on track */
}

.slider-wrapper {
    position: relative;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-value {
    position: static;
    transform: none;
    font-weight: 600;
    color: #1e3a8a;
    font-size: 1rem;
}


.slider-labels {
    display: none;
}

.results-panel .nrich-logo {
    height: 24px;
}

.results-content {
    flex-grow: 1;
}

.results-section {
    margin-bottom: 32px;
}

.replace-apps-title, .savings-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e3a8a;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background: none;
    margin: 0 0 8px 0;
}

.results-section p {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

.btn-cta {
    width: 100%;
    padding: 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-bottom: 16px;
}

.btn-cta:hover {
    opacity: 0.9;
}

.link-cta {
    display: block;
    text-align: center;
    color: #1e3a8a;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
}

.testimonial {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.testimonial-text .stars {
    color: #f59e0b;
    margin: 0 0 4px 0;
}

.testimonial-text .testimonial-author {
    font-weight: 500;
    font-size: 0.875rem;
    margin: 0 0 8px 0;
}

.testimonial-text blockquote {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.initial-questions-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#initial-questions, #app-selection {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#app-selection {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

#initial-questions.hidden, #app-selection.hidden {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    transform: translateX(-20px);
}

.initial-results-content {
    text-align: center;
    padding: 20px;
}

.initial-results-content h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.initial-results-content p {
    color: #6b7280;
    margin-bottom: 32px;
}

.animated-icons .icon {
    font-size: 2.5rem;
    margin: 0 10px;
    display: inline-block;
    animation: bounce 2s infinite;
}

.animated-icons .icon:nth-child(2) {
    animation-delay: 0.2s;
}

.animated-icons .icon:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

@media (max-width: 992px) {
    .roi-calculator {
        flex-direction: column;
    }
    .results-panel {
        flex: 1;
    }
}

.fun-fact {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #eff6ff;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    animation: fadeIn 1s ease-in-out;
}

.fun-fact-icon {
    font-size: 1.5rem;
    animation: tada 1.5s ease-in-out infinite;
    animation-delay: 1s;
}

.fun-fact-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #4A5568;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tada {
    0% { transform: scale(1); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); }
}
.roi-calculator h1,
.roi-calculator h2,
.roi-calculator h3,
.roi-calculator h4,
.roi-calculator h5,
.roi-calculator h6,
.roi-calculator p,
.roi-calculator span,
.roi-calculator label,
.roi-calculator .results-panel *,
.roi-calculator .fun-fact *,
.roi-calculator .app *,
.roi-calculator .slider-label,
.roi-calculator .slider-value,
.roi-calculator .panel-title,
.roi-calculator .main-title,
.roi-calculator .main-subtitle,
.roi-calculator .discover-title,
.roi-calculator .discover-subtitle,
.roi-calculator .app-name,
.roi-calculator .app-price,
.roi-calculator .app-time,
.roi-calculator .results-label,
.roi-calculator .results-value,
.roi-calculator .results-description,
.roi-calculator .results-summary,
.roi-calculator .results-detail,
.roi-calculator .results-initial-state,
.roi-calculator .results-content-wrapper {
    letter-spacing: 0 !important;
}

