/* ROI Calculator Modal Styles */

.roi-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.roi-modal-container {
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 95vw;
    max-height: 95vh;
    width: 1200px;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.roi-modal-header {
    background: linear-gradient(135deg, #3B82F6 0%, #0EA5E9 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.roi-modal-title-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.roi-modal-title-container .logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.roi-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.roi-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

.roi-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.roi-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.roi-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #059669);
    width: 0%;
    transition: width 0.3s ease;
}

.roi-modal-content {
    max-height: calc(95vh - 120px);
    overflow-y: auto;
    background: #f8fafc;
}

/* Adjust the main calculator styles for modal */
.roi-modal-content .calculator-main {
    padding: 0;
    min-height: auto;
    background: transparent;
}

.roi-modal-content .container {
    max-width: none;
    padding: 2rem;
}

/* Hero section adjustments for modal */
.roi-hero-section {
    border-radius: 16px !important;
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .roi-modal-backdrop {
        padding: 10px;
    }
    
    .roi-modal-container {
        width: 100%;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .roi-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .roi-modal-title {
        font-size: 1.25rem;
    }
    
    .roi-modal-content .container {
        padding: 1rem;
    }
    
    .roi-modal-content .calc-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .roi-modal-header {
        padding: 1rem;
    }
    
    .roi-modal-title-container {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .roi-modal-title {
        font-size: 1.1rem;
    }
}

/* Custom scrollbar for modal content */
.roi-modal-content::-webkit-scrollbar {
    width: 6px;
}

.roi-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.roi-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.roi-modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}