:root {
    --roi-red: #f50f10;
    --roi-red-dark: #c40c0d;
    --roi-black: #0b0b0b;
    --roi-ink: #111111;
    --roi-white: #ffffff;
    --roi-muted: #5d5d5d;
    --roi-line: #d8d8d8;
    --roi-soft: #f6f6f6;
}

html,
body {
    background: var(--roi-white);
    color: var(--roi-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 0;
    height: auto;
    overflow-x: hidden;
}

a {
    color: var(--roi-red);
}

.roi-body,
.roi-body .container-fluid {
    width: 100%;
    max-width: 100%;
}

.how-card,
.form-card,
.result-wrap,
.industry-wrap {
    border: 1px solid var(--roi-line);
    background: var(--roi-white);
}

.how-card {
    border-left: 6px solid var(--roi-red);
}

.section-bar {
    background: var(--roi-black);
    color: var(--roi-white);
    padding: 0.7rem 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

button.section-bar {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

button.section-bar:hover,
button.section-bar:focus {
    color: var(--roi-white);
    filter: brightness(1.08);
}

button.section-bar:focus-visible {
    outline: 2px solid var(--roi-white);
    outline-offset: -4px;
}

.section-toggle-icon {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.form-card.is-collapsed .section-toggle-icon {
    transform: rotate(-45deg);
}

.form-card.is-collapsed .section-body {
    display: none;
}

.section-bar.inputs {
    background: var(--roi-red);
}

label.form-label {
    font-weight: 700;
    color: var(--roi-ink);
}

.form-control,
.form-select {
    border-color: #cfcfcf;
    border-radius: 0;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--roi-red);
    box-shadow: 0 0 0 0.2rem rgba(245, 15, 16, 0.15);
}

.lookup-box {
    background: var(--roi-soft);
    border: 1px solid var(--roi-line);
    min-height: 100%;
}

.lookup-value {
    font-weight: 700;
    color: var(--roi-black);
}

.btn {
    border-radius: 0;
    font-weight: 700;
}

.btn-red {
    background: var(--roi-red);
    border-color: var(--roi-red);
    color: var(--roi-white);
}

.btn-red:hover,
.btn-red:focus {
    background: var(--roi-red-dark);
    border-color: var(--roi-red-dark);
    color: var(--roi-white);
}

.btn-black {
    background: var(--roi-black);
    border-color: var(--roi-black);
    color: var(--roi-white);
}

.btn-black:hover,
.btn-black:focus {
    background: #000;
    color: var(--roi-white);
}

.btn-ghost {
    background: var(--roi-white);
    border: 1px solid var(--roi-black);
    color: var(--roi-black);
}

.metric-card {
    border: 1px solid var(--roi-line);
    background: var(--roi-white);
    min-height: 132px;
}

.metric-card.featured-red {
    background: var(--roi-red);
    color: var(--roi-white);
    border-color: var(--roi-red);
}

.metric-card.featured-black {
    background: var(--roi-black);
    color: var(--roi-white);
    border-color: var(--roi-black);
}

.metric-card .label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    opacity: 0.9;
}

.metric-card .value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
}

.table thead th {
    background: var(--roi-black);
    color: var(--roi-white);
    border-color: var(--roi-black);
    font-weight: 700;
}

.table-results tbody th {
    width: 42%;
    background: var(--roi-soft);
}

.email-box {
    background: var(--roi-soft);
    border: 1px solid var(--roi-line);
}

.alert-roi {
    border-radius: 0;
    border: 1px solid var(--roi-red);
    background: #fff5f5;
    color: var(--roi-ink);
}

.note {
    color: var(--roi-muted);
    font-size: 0.9rem;
}

#industry-reference {
    scroll-margin-top: 1rem;
}

#results {
    scroll-margin-top: 0.5rem;
}

body.has-results .site-footer {
    display: none !important;
}

body.has-results .roi-body {
    padding-bottom: 0;
}

@media screen and (max-width: 768px) {
  .table-results tbody th {
    font-size: 12px;
  }
  .table-bordered>:not(caption)>*>* {
    font-size: 12px;
  }
}