/* ROI Calculator Styles */
.roi-calculator-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.roi-calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.roi-header {
    padding: 30px 40px 25px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.roi-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
    line-height: 1.2;
}

.fee-model-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.selector-label {
    font-weight: 600;
    color: #475569;
    font-size: 1rem;
}

.model-tabs {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.model-tab {
    padding: 12px 24px;
    border: none;
    background: white;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.model-tab:hover {
    background: #f1f5f9;
}

.model-tab.active {
    background: #3b82f6;
    color: white;
}

/* Parameters Panel */
.roi-parameters {
    padding: 30px 40px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.roi-parameters h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 30px;
    text-align: center;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group.span-two-columns {
    grid-column: span 2;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

/* Remove the half-width classes as they're no longer needed */
.input-group.half-width-left,
.input-group.half-width-right {
    width: auto;
    display: flex;
    margin: 0;
}

/* Adjust radio group for proper horizontal layout */
.span-two-columns .radio-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: flex-start;
    min-width: auto;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.slider-input {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-input input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.slider-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-input input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.number-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    background: white;
}

.number-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.suffix {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    min-width: 40px;
}

.radio-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    min-width: 800px;
    justify-content: space-between;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.radio-option span {
    font-size: 0.9rem;
    color: #374151;
}

.model-inputs.hidden {
    display: none;
}

/* Results Panel */
.roi-results {
    padding: 30px 40px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.roi-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 30px;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.result-card {
    background: #f8fafc;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.result-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1;
}

.result-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.cta-card {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roi-cta-btn {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 25px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.roi-cta-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Assumptions Panel */
.roi-assumptions {
    padding: 30px 40px;
    background: #f8fafc;
}

.assumptions-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.info-icon {
    width: 24px;
    height: 24px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.assumptions-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.assumptions-content {
    max-width: 800px;
    margin: 0 auto;
}

.assumptions-content.hidden {
    display: none;
}

.assumptions-content p {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 15px;
    line-height: 1.6;
}

.assumptions-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.assumptions-content li {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .roi-calculator-section {
        padding: 40px 0;
    }

    .roi-header {
        padding: 30px 20px 20px;
    }

    .roi-header h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .fee-model-selector {
        flex-direction: column;
        gap: 15px;
    }

    .model-tabs {
        width: 100%;
    }

    .model-tab {
        flex: 1;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .roi-parameters,
    .roi-results,
    .roi-assumptions {
        padding: 30px 20px;
    }

    .input-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .slider-input {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .number-input {
        width: 100%;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .result-card {
        padding: 25px 15px;
    }

    .result-value {
        font-size: 2rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
}

