@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ============================================
   ROI Calculator — Exact CSS Match
   selector = .roi-calculator-wrap
   ============================================ */

.roi-calculator-wrap {
    font-family: 'Poppins', sans-serif;
}

/* ---- Fields ---- */
.roi-calculator-wrap .roi-field {
    margin-bottom: 20px;
}

.roi-calculator-wrap .roi-field .roi-label {
    display: block;
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 8px;
    color: black;
}

/* ---- Input wrapper (value display box) ---- */
.roi-calculator-wrap .roi-input-wrapper {
    position: relative;
}

.roi-calculator-wrap .roi-input-wrapper .roi-input-display,
.roi-calculator-wrap .roi-field .roi-input-display {
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    border: none;
    background: #e9edf2;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    display: block;
}

.roi-calculator-wrap .roi-input-wrapper .roi-unit-label {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #7a7f8c;
}

/* ---- Select dropdown ---- */
.roi-calculator-wrap .roi-field select,
.roi-calculator-wrap .roi-select {
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    border: none;
    background: #e9edf2;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    font-family: 'Poppins', sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7f8c' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    box-sizing: border-box;
}

/* ---- Slider (custom-range style) ---- */
.roi-calculator-wrap .roi-slider,
.roi-calculator-wrap .custom-range {
    width: 100%;
    cursor: pointer;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 50px;
    outline: none;
    margin-top: 10px;
    transition: background 0.3s ease;
}

/* webkit track */
.roi-calculator-wrap .roi-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 50px;
}

/* webkit thumb */
.roi-calculator-wrap .roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #ee272e;
    cursor: pointer;
    margin-top: -7px;
    transition: 0.3s ease;
    box-shadow: 0 1px 4px rgba(238,39,46,0.25);
}

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

/* Firefox thumb */
.roi-calculator-wrap .roi-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #ee272e;
    cursor: pointer;
}

/* Firefox progress fill */
.roi-calculator-wrap .roi-slider::-moz-range-progress {
    background: #ee272e;
    height: 6px;
    border-radius: 50px;
}

/* ---- Years label ---- */
.roi-calculator-wrap .roi-years-label {
    font-size: 0.9em;
    color: #ee272e;
    font-weight: bold;
    margin-top: 5px;
    text-align: right;
}

/* ---- Error message ---- */
.roi-calculator-wrap .error-msg {
    color: #d93025;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

/* ---- Results box ---- */
.roi-calculator-wrap .roi-results {
    background: #fcfcfc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
    border: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 40px;
    justify-content: flex-start;
    align-items: center;
}

/* ---- Result items ---- */
.roi-calculator-wrap .roi-result-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
}

/* Label */
.roi-calculator-wrap .roi-result-label {
    font-size: 14px;
    font-weight: 400;
    color: #1d2b4f;
}

/* Value */
.roi-calculator-wrap .roi-result-value {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1d2b4f !important;
    line-height: 1.1;
}

/* ROI % — accent red */
.roi-calculator-wrap .roi-percent {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #ee272e !important;
}

/* Profit color states */
.roi-calculator-wrap .roi-net-profit.positive { color: #1d2b4f !important; }
.roi-calculator-wrap .roi-net-profit.negative { color: #d93025 !important; }

/* ---- Divider (hidden — results use flex gap instead) ---- */
.roi-calculator-wrap .roi-result-divider {
    display: none;
}

/* ---- Slider wrapper spacing ---- */
.roi-calculator-wrap .roi-slider-wrap {
    margin-top: 4px;
}

/* ---- Title ---- */
.roi-calculator-wrap .roi-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #1d2b4f;
    margin: 0 0 24px;
    padding: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .roi-calculator-wrap .roi-result-value {
        font-size: 22px !important;
    }
    .roi-calculator-wrap .roi-percent {
        font-size: 22px !important;
    }
    .roi-calculator-wrap .roi-results {
        gap: 14px 20px;
    }
}
