/*
 * Cyclr ROI Calculator — stylesheet
 * Plain CSS, no @layer rules, no framework utilities.
 *
 * File path in theme:
 *   roi-calculator/assets/css/roi-calculator.css
 */

/* ── Outer wrapper ──────────────────────────────────────────────────────── */

.roi-calc-wrap {
    font-family: 'Inter', sans-serif;
    color: #002e3d;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #dbdce0;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.roi-calc-wrap *,
.roi-calc-wrap *::before,
.roi-calc-wrap *::after {
    box-sizing: inherit;
}

.roi-calc-inner {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

/* ── Left panel: inputs ─────────────────────────────────────────────────── */

.roi-calc-inputs {
    flex: 1 1 500px;
    padding: 40px 48px 48px;
    min-width: 0;
}

.roi-calc-heading {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 36px;
    color: #002e3d;
}

/* Field row */

.roi-field {
    margin-bottom: 32px;
}

.roi-field-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.roi-field-label {
    font-size: 17px;
    font-weight: 600;
    color: #002e3d;
    line-height: 1.35;
}

/* Spinbox */

.roi-spinbox {
    display: flex;
    align-items: stretch;
    border: 1px solid #dbdce0;
    border-radius: 4px;
    background: #ffffff;
    flex-shrink: 0;
    height: 48px;
    overflow: hidden;
}

.roi-spinbox-value {
    font-size: 18px;
    font-weight: 500;
    color: #002e3d;
    padding: 0 12px;
    min-width: 90px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.roi-spinbox-btns {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #dbdce0;
}

.roi-spinbox-btns button {
    flex: 1;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #dbdce0;
    cursor: pointer;
    padding: 0 10px;
    color: #002e3d;
    font-size: 9px;
    line-height: 1;
    transition: background 0.12s ease;
}

.roi-spinbox-btns button:last-child {
    border-bottom: none;
}

.roi-spinbox-btns button:hover {
    background: #f3e8e9;
}

/* Range slider */

.roi-slider {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 14px;
    border-radius: 100px;
    background: #dbdce0;
    outline: none;
    cursor: pointer;
    margin: 4px 0 8px;
}

/* WebKit thumb */
.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    cursor: grab;
}

/* WebKit track */
.roi-slider::-webkit-slider-runnable-track {
    height: 14px;
    border-radius: 100px;
}

/* Firefox thumb */
.roi-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    cursor: grab;
    border: none;
}

/* Firefox filled portion */
.roi-slider::-moz-range-progress {
    height: 14px;
    background: #c63943;
    border-radius: 100px 0 0 100px;
}

/* Firefox track */
.roi-slider::-moz-range-track {
    height: 14px;
    background: #dbdce0;
    border-radius: 100px;
}

.roi-field-hint {
    font-size: 14px;
    font-weight: 400;
    color: #002e3d;
    margin: 0;
}

/* ── Right panel: results ───────────────────────────────────────────────── */

.roi-calc-results {
    flex: 0 0 380px;
    background: #f3e8e9;
    border-radius: 12px;
    padding: 40px 36px 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    margin: 16px 16px 16px 0;
}

.roi-result-section {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #c4c4c4;
}

.roi-result-label {
    font-size: 15px;
    font-weight: 600 !important;
    color: #002e3d !important;
    margin: 0 0 4px;
}

.roi-result-value {
    font-size: 42px;
    font-weight: 800 !important;
    color: #002e3d !important;
    margin: 0;
    line-height: 1.2 !important;
}

/* CTA block */

.roi-result-cta {
    margin-top: 50px;
}

.roi-cta-title {
    font-size: 22px;
    font-weight: 700;
    color: #002e3d;
    margin: 0 0 8px;
}

.roi-cta-text {
    font-size: 13px;
    font-weight: 400;
    color: #002e3d;
    margin: 0 0 20px;
    line-height: 1.55;
}

.roi-cta-btn {
    display: inline-block;
    background: #c63943;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.roi-cta-btn:hover {
    background: #a82e37;
    color: #ffffff;
    text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 820px) {
    .roi-calc-inputs {
        padding: 28px 24px 32px;
    }

    .roi-calc-results {
        flex: 1 1 100%;
        margin: 0 16px 16px;
    }

    .roi-calc-heading {
        font-size: 22px;
    }

    .roi-result-value {
        font-size: 24px;
    }
}
