/**
 * Neo ROI Calculator Widget - Styles
 * Version: 1.2.0 - Header bleu actif
 */

/* ============================================
   WRAPPER PRINCIPAL
   ============================================ */
.neo-roi-wrapper {
    font-family: 'Bai Jamjuree', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

.neo-roi-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================
   SECTION PRINCIPALE
   ============================================ */
.neo-roi-section {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

/* ============================================
   HEADER BLEU - STYLE PAR DEFAUT
   ============================================ */
.neo-roi-section-header {
    background: linear-gradient(135deg, #3DB2FF 0%, #1F97E6 100%);
    padding: 24px 24px;
    text-align: left;
}

.neo-roi-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    padding: 0;
    line-height: 1.3;
}

.neo-roi-section-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 400;
}

/* ============================================
   BODY - ZONE QUESTIONS
   ============================================ */
.neo-roi-section-body {
    padding: 20px 24px 24px;
    background: #FFFFFF;
}

/* ============================================
   QUESTIONS
   ============================================ */
.neo-roi-questions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.neo-roi-question {
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid #EAEAEA;
}

.neo-roi-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.neo-roi-question-label {
    font-size: 13px;
    font-weight: 500;
    color: #101518;
}

.neo-roi-question-value {
    font-size: 14px;
    font-weight: 700;
    color: #3DB2FF;
    background: rgba(61, 178, 255, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    min-width: 45px;
    text-align: center;
}

.neo-roi-question-helper {
    font-size: 11px;
    color: #414141;
    opacity: 0.5;
    margin-top: 8px;
}

/* ============================================
   SLIDER
   ============================================ */
.neo-roi-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.neo-roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3DB2FF;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(61, 178, 255, 0.4);
    border: 2px solid white;
    transition: transform 0.15s ease;
}

.neo-roi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.neo-roi-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3DB2FF;
    cursor: pointer;
    border: 2px solid white;
}

.neo-roi-slider-range {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #414141;
    opacity: 0.35;
    margin-top: 4px;
}

/* ============================================
   SELECT
   ============================================ */
.neo-roi-select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    font-size: 13px;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 500;
    border: 1px solid #EAEAEA;
    border-radius: 6px;
    background: #FFFFFF;
    color: #101518;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%233DB2FF' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s;
}

.neo-roi-select:focus {
    outline: none;
    border-color: #3DB2FF;
}

/* ============================================
   SOLUTIONS
   ============================================ */
.neo-roi-solutions {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 24px;
    margin-bottom: 20px;
}

.neo-roi-solutions-title {
    font-size: 16px;
    font-weight: 700;
    color: #101518;
    margin: 0 0 16px 0;
    text-align: center;
}

.neo-roi-solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .neo-roi-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .neo-roi-solutions-grid {
        grid-template-columns: 1fr;
    }
}

.neo-roi-solution {
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.neo-roi-solution:hover {
    border-color: #3DB2FF;
}

.neo-roi-solution.active {
    border-color: #3DB2FF;
    background: rgba(61, 178, 255, 0.08);
}

.neo-roi-solution-name {
    font-size: 11px;
    font-weight: 600;
    color: #414141;
    margin-bottom: 4px;
}

.neo-roi-solution-price {
    font-size: 22px;
    font-weight: 700;
    color: #3DB2FF;
}

.neo-roi-solution-price span {
    font-size: 11px;
    font-weight: 500;
    color: #414141;
    opacity: 0.6;
}

.neo-roi-solution-badge {
    display: inline-block;
    font-size: 8px;
    font-weight: 600;
    color: #FFFFFF;
    background: #F97316;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* ============================================
   RESULTATS
   ============================================ */
.neo-roi-results {
    background: linear-gradient(135deg, #101518 0%, #1e2d3a 100%);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.neo-roi-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3DB2FF, #F97316);
}

.neo-roi-results-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 16px;
}

.neo-roi-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 500px) {
    .neo-roi-results-grid {
        grid-template-columns: 1fr;
    }
}

.neo-roi-result-box {
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.neo-roi-result-box.cost {
    background: rgba(249, 115, 22, 0.15);
    border: 2px solid #F97316;
}

.neo-roi-result-box.gain {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
}

.neo-roi-result-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.neo-roi-result-box.cost .neo-roi-result-label {
    color: #F97316;
}

.neo-roi-result-box.gain .neo-roi-result-label {
    color: #10b981;
}

.neo-roi-result-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.neo-roi-result-box.cost .neo-roi-result-value {
    color: #F97316;
}

.neo-roi-result-box.gain .neo-roi-result-value {
    color: #10b981;
}

.neo-roi-result-period {
    font-size: 14px;
    font-weight: 500;
}

.neo-roi-result-detail {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 6px;
    color: #FFFFFF;
}

/* ============================================
   STATS
   ============================================ */
.neo-roi-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 480px) {
    .neo-roi-stats {
        grid-template-columns: 1fr;
    }
}

.neo-roi-stat {
    text-align: center;
}

.neo-roi-stat-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.neo-roi-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #3DB2FF;
}

/* ============================================
   RESUME
   ============================================ */
.neo-roi-summary {
    background: rgba(61, 178, 255, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    border-left: 3px solid #3DB2FF;
}

.neo-roi-summary-text {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0;
}

.neo-roi-summary-text strong {
    color: #3DB2FF;
}

.neo-roi-summary-text em {
    color: #F97316;
    font-style: normal;
}
