.necs-roi.necs-roi {
    --roi-accent: #cc0000;
    --roi-ink: #000000;
    box-sizing: border-box;
    max-width: 820px;
    margin: 24px auto;
    padding: clamp(18px, 4vw, 34px);
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: var(--roi-ink);
    font: 16px/1.5 system-ui, sans-serif;
}

.necs-roi.necs-roi *,
.necs-roi.necs-roi *::before,
.necs-roi.necs-roi *::after {
    box-sizing: border-box;
}

.necs-roi.necs-roi [hidden] {
    display: none !important;
}

.necs-roi.necs-roi .necs-roi-progress {
    display: flex;
    list-style: none;
    margin: 0 0 28px !important;
    padding: 0 !important;
    gap: 6px;
}

.necs-roi.necs-roi .necs-roi-progress li {
    position: relative;
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #000000;
}

.necs-roi.necs-roi .necs-roi-progress li::before {
    content: '';
    position: absolute;
    top: 16px;
    left: -50%;
    right: 50%;
    height: 1px;
    background: #cccccc;
}

.necs-roi.necs-roi .necs-roi-progress li:first-child::before {
    display: none;
}

.necs-roi.necs-roi .necs-roi-progress li span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    border: 1px solid #cccccc;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--roi-ink);
    font-size: 14px;
}

.necs-roi.necs-roi .necs-roi-progress li[aria-current] {
    color: var(--roi-ink);
    font-weight: 600;
}

.necs-roi.necs-roi .necs-roi-progress li[aria-current] span,
.necs-roi.necs-roi .necs-roi-progress .is-complete span {
    background: var(--roi-accent);
    border-color: var(--roi-accent);
    color: #fff;
}

.necs-roi.necs-roi h2 {
    font-size: clamp(24px, 4vw, 30px);
    line-height: 1.2;
    color: var(--roi-ink);
    margin: 0 0 8px;
}

.necs-roi.necs-roi section>p {
    color: #000000;
    margin: 0 0 18px;
}

.necs-roi.necs-roi label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 500;
}

.necs-roi.necs-roi input:not([type=hidden]) {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    padding: 8px 10px;
    font: inherit;
    background: #fff;
    color: var(--roi-ink);
}

.necs-roi.necs-roi input:focus, .necs-roi.necs-roi input:focus-visible { border-color: #888; outline: none; box-shadow: none; }
.necs-roi.necs-roi button:focus-visible,
.necs-roi.necs-roi summary:focus-visible {
    outline: 3px solid #cc0000;
    outline-offset: 2px;
}

.necs-roi.necs-roi .necs-roi-table {
    overflow-x: auto;
    margin: 18px 0;
    border: 0;
    border-radius: 6px;
}

.necs-roi.necs-roi table {
    width: 100%;
    min-width: 510px;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.necs-roi.necs-roi th,
.necs-roi.necs-roi td {
    padding: 8px;
    border: 0;
    text-align: left;
    vertical-align: middle;
}

.necs-roi.necs-roi thead th {
    background: #f2f2f2;
    font-weight: 600;
}

.necs-roi.necs-roi tbody th {
    width: 32%;
    font-weight: 400;
}

.necs-roi.necs-roi td input {
    min-width: 80px;
    padding: 6px !important;
}

.necs-roi.necs-roi .necs-roi-note {
    font-size: 13px;
    color: #000000;
    margin-top: 16px;
}

.necs-roi.necs-roi summary {
    cursor: pointer;
}

.necs-roi.necs-roi .necs-roi-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.necs-roi.necs-roi button {
    cursor: pointer;
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: 10px 24px;
    background: white;
    color: var(--roi-ink);
    font: inherit;
}

.necs-roi.necs-roi [data-next],
.necs-roi.necs-roi button[type=submit] {
    margin-left: auto;
    background: var(--roi-accent);
    color: white;
    border-color: var(--roi-accent);
}

.necs-roi.necs-roi button:disabled {
    opacity: .6;
    cursor: wait;
}

.necs-roi.necs-roi .necs-roi-message:not(:empty) {
    padding: 12px;
    background: #f2f2f2;
    border-radius: 6px;
}

.necs-roi.necs-roi .necs-roi-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

@media (max-width: 540px) {
    .necs-roi.necs-roi .necs-roi-progress li {
        font-size: 10px;
    }

    .necs-roi.necs-roi .necs-roi-progress {
        gap: 3px;
    }

    .necs-roi.necs-roi {
        padding: 16px;
    }
}

/* Keep theme typography, table striping and button effects outside the widget. */
.necs-roi.necs-roi {
    box-shadow: none;
    text-align: left;
}

.necs-roi.necs-roi section {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.necs-roi.necs-roi h2 {
    font-family: inherit;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
}

.necs-roi.necs-roi p,
.necs-roi.necs-roi label {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.necs-roi.necs-roi table,
.necs-roi.necs-roi tr,
.necs-roi.necs-roi th,
.necs-roi.necs-roi td {
    border: 0;
    box-shadow: none;
    color: inherit;
}

.necs-roi.necs-roi tbody tr,
.necs-roi.necs-roi tbody tr>th,
.necs-roi.necs-roi tbody tr>td {
    background: transparent;
}

.necs-roi.necs-roi .necs-roi-progress li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.necs-roi.necs-roi input:not([type=hidden]) {
    margin: 0;
    height: auto;
    box-shadow: none;
    letter-spacing: normal;
}

.necs-roi.necs-roi button {
    width: auto;
    min-height: 0;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    text-decoration: none;
}

.necs-roi.necs-roi button:hover,
.necs-roi.necs-roi button:focus {
    background: #f2f2f2;
    color: var(--roi-ink);
}

.necs-roi.necs-roi button[data-next]:hover,
.necs-roi.necs-roi button[data-next]:focus,
.necs-roi.necs-roi button[type=submit]:hover,
.necs-roi.necs-roi button[type=submit]:focus {
    background: #000000;
    color: #fff;
}

.necs-roi.necs-roi a {
    color: #cc0000;
}

.necs-roi.necs-roi a:hover,
.necs-roi.necs-roi a:focus {
    color: #000000;
}