.jalsenx-roi,
.jalsenx-roi * {
    box-sizing: border-box;
}

.jalsenx-roi {
    --roi-ink: #071427;
    --roi-muted: #5f7187;
    --roi-blue: #047bb8;
    --roi-blue-2: #09a2e6;
    --roi-soft: #eef8ff;
    --roi-line: #cfe5f2;
    --roi-navy: #081426;
    --roi-navy-2: #0d2138;
    --roi-green: #16d59b;
    --roi-white: #ffffff;
    width: 100%;
    max-width: none;
    color: var(--roi-ink);
    font-family: "Manrope", sans-serif;
}

.jalsenx-roi__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.95fr);
    gap: 24px;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.jalsenx-roi__panel,
.jalsenx-roi__results {
    border-radius: 8px;
}

.jalsenx-roi__panel {
    border: 1px solid var(--roi-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.22)),
        var(--roi-soft);
    box-shadow: 0 16px 36px rgba(7, 20, 39, 0.07);
    padding: 30px;
}

.jalsenx-roi__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(4, 123, 184, 0.14);
}

.jalsenx-roi__heading p {
    margin: 0 0 3px;
    color: var(--roi-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.jalsenx-roi__heading h2 {
    margin: 0;
    color: var(--roi-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.jalsenx-roi__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
    background: #dff2fb;
    color: var(--roi-blue);
    font-size: 12px;
    font-weight: 800;
}

.jalsenx-roi__field {
    position: relative;
    display: block;
    margin-bottom: 24px;
}

.jalsenx-roi__field[hidden] {
    display: none;
}

.jalsenx-roi__field > span,
.jalsenx-roi__field > label,
.jalsenx-roi__number > span {
    display: block;
    padding-right: 150px;
    color: var(--roi-ink);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    text-transform: uppercase;
}

.jalsenx-roi__value {
    position: absolute;
    top: -1px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #def3fc;
    color: var(--roi-blue);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.jalsenx-roi select,
.jalsenx-roi input[type="number"],
.jalsenx-roi__lead input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #bad7e9;
    border-radius: 6px;
    background: var(--roi-white);
    color: var(--roi-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.jalsenx-roi select {
    margin-top: 10px;
}

.jalsenx-roi select:focus,
.jalsenx-roi input[type="number"]:focus,
.jalsenx-roi__lead input:focus {
    border-color: var(--roi-blue);
    box-shadow: 0 0 0 3px rgba(4, 123, 184, 0.15);
    outline: none;
}

.jalsenx-roi input[type="range"] {
    appearance: none;
    width: 100%;
    height: 5px;
    margin: 23px 0 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--roi-blue) var(--range-progress, 0%), #d5eaf5 var(--range-progress, 0%));
}

.jalsenx-roi input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 19px;
    height: 19px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--roi-blue);
    box-shadow: 0 5px 14px rgba(4, 123, 184, 0.28);
    cursor: pointer;
}

.jalsenx-roi input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--roi-blue);
    box-shadow: 0 5px 14px rgba(4, 123, 184, 0.28);
    cursor: pointer;
}

.jalsenx-roi__range-labels {
    display: flex;
    justify-content: space-between;
    color: #7b92a8;
    font-size: 10px;
    font-weight: 700;
}

.jalsenx-roi__number input {
    margin-top: 10px;
    max-width: 200px;
}

.jalsenx-roi__advanced {
    margin: 4px 0 22px;
    border: 1px solid var(--roi-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.54);
    overflow: hidden;
}

.jalsenx-roi__advanced summary {
    padding: 14px 16px;
    color: var(--roi-blue);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.jalsenx-roi__advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0 16px 16px;
}

.jalsenx-roi__advanced-grid label {
    color: var(--roi-muted);
    font-size: 12px;
    font-weight: 800;
}

.jalsenx-roi__note {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--roi-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
    color: #647b90;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.65;
}

.jalsenx-roi__results {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 96% 5%, rgba(9, 162, 230, 0.18), transparent 26%),
        linear-gradient(145deg, var(--roi-navy), var(--roi-navy-2));
    box-shadow: 0 20px 42px rgba(8, 20, 38, 0.28);
    color: #fff;
    padding: 28px;
}

.jalsenx-roi__results-heading {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    color: var(--roi-blue-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.jalsenx-roi__summary-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.jalsenx-roi__summary-strip div,
.jalsenx-roi__metric {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.jalsenx-roi__summary-strip div {
    padding: 13px;
}

.jalsenx-roi__summary-strip .jalsenx-roi__summary-strip-wide {
    grid-column: 1 / -1;
}

.jalsenx-roi__summary-strip span,
.jalsenx-roi__metric > span {
    display: block;
    margin-bottom: 7px;
    color: #8aa0bb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.35;
    text-transform: uppercase;
}

.jalsenx-roi__summary-strip strong {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
}

.jalsenx-roi__metric {
    margin-bottom: 12px;
    padding: 16px;
}

.jalsenx-roi__metric--hero {
    padding: 20px;
    background: rgba(9, 162, 230, 0.08);
}

.jalsenx-roi__metric strong {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 7px;
    color: var(--roi-blue-2);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.jalsenx-roi__metric--hero strong {
    font-size: 30px;
}

.jalsenx-roi__metric strong em {
    color: #a8bfd4;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.jalsenx-roi__metric--hero strong em {
    font-size: 13px;
}

.jalsenx-roi__metric small {
    display: block;
    margin-top: 7px;
    color: #8197b2;
    font-size: 11px;
    font-weight: 700;
}

.jalsenx-roi__metric-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.jalsenx-roi__metric--payback {
    margin-top: 2px;
}

.jalsenx-roi__metric--payback strong {
    color: #fff;
}

.jalsenx-roi__metric--payback small {
    color: var(--roi-green);
}

.jalsenx-roi__actions {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.jalsenx-roi__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.jalsenx-roi__button:hover {
    transform: translateY(-1px);
}

.jalsenx-roi__button--primary {
    border-color: var(--roi-blue);
    background: linear-gradient(180deg, #0a91cf, var(--roi-blue));
    color: #fff;
    box-shadow: 0 10px 20px rgba(4, 123, 184, 0.24);
}

.jalsenx-roi__button--secondary {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.jalsenx-roi__dialog {
    width: min(460px, calc(100% - 32px));
    border: 0;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 24px 60px rgba(7, 20, 39, 0.35);
}

.jalsenx-roi__dialog::backdrop {
    background: rgba(7, 20, 39, 0.56);
}

.jalsenx-roi__lead {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 28px;
    font-family: "Manrope", sans-serif;
}

.jalsenx-roi__lead h3 {
    margin: 0 34px 8px 0;
    color: var(--roi-ink);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.jalsenx-roi__lead label {
    color: var(--roi-muted);
    font-size: 12px;
    font-weight: 800;
}

.jalsenx-roi__lead input {
    margin-top: 6px;
}

.jalsenx-roi__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #edf5fa;
    color: var(--roi-ink);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.jalsenx-roi__lead-status {
    min-height: 18px;
    margin: 0;
    color: var(--roi-blue);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .jalsenx-roi__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
}

@media (max-width: 620px) {
    .jalsenx-roi__panel,
    .jalsenx-roi__results {
        padding: 20px;
    }

    .jalsenx-roi__field > span,
    .jalsenx-roi__field > label,
    .jalsenx-roi__number > span {
        padding-right: 0;
    }

    .jalsenx-roi__value {
        position: static;
        width: fit-content;
        margin-top: 7px;
    }

    .jalsenx-roi__advanced-grid,
    .jalsenx-roi__metric-row,
    .jalsenx-roi__summary-strip {
        grid-template-columns: 1fr;
    }

    .jalsenx-roi__summary-strip .jalsenx-roi__summary-strip-wide {
        grid-column: auto;
    }

    .jalsenx-roi__metric strong {
        font-size: 22px;
    }

    .jalsenx-roi__metric--hero strong {
        font-size: 26px;
    }
}
