﻿/* =========================================================
   ROI scope (komponent-tokens + basis-typografi)
   ========================================================= */
.roi {
    /* Map site tokens -> ROI tokens */
    --roi-bg: var(--background-color, #fff);
    --roi-surface: var(--surface-color, #fff);
    --roi-text: var(--default-color, #111);
    --roi-heading: var(--heading-color, #111);
    --roi-accent: var(--accent-color, #99481a);
    --roi-contrast: var(--contrast-color, #fff);
    /* Styling tokens */
    --roi-radius: 3px;
    --roi-shadow: 0 10px 30px rgba(0,0,0,.08);
    --roi-border: 1px solid rgba(0,0,0,.06);
    color: var(--roi-text);
    font-family: var(--default-font, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
}

    .roi h1,
    .roi h2,
    .roi h3 {
        color: var(--roi-heading);
        font-family: var(--heading-font, inherit);
    }

    /* =========================================================
   Box-look (matcher kontaktformular/kort)
   Bruges til både venstre og højre kolonne
   ========================================================= */
    .roi .roi-panel {
        background: var(--roi-surface);
        border: var(--roi-border);
        border-radius: var(--roi-radius);
        box-shadow: var(--roi-shadow);
        padding-bottom: 15px;
    }
    /* Hero layout tweaks */
    .roi--hero .roi-form .btn.btn-primary {
        margin-left: auto;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    /* Hvis du vil sikre at knappen står på egen linje og til højre */
    .roi--hero .roi-form {
        display: grid;
        gap: 12px;
    }

    .roi--hero .roi-result {
        margin-top: 10px;
    }

    .roi--hero .roi-form .btn.btn-primary {
        width: fit-content;
        justify-self: end;
    }


/* lidt mere luft på små skærme */
@media (max-width: 575px) {
    .roi .roi-panel {
        border-radius: 14px;
    }
}

/* =========================================================
   Icon badge (dotted ring vibe + Bootstrap Icon inside)
   ========================================================= */
.roi .roi-panel__icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px dotted rgba(153, 72, 26, .55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--roi-accent);
    background: rgba(153, 72, 26, .06);
}

    .roi .roi-panel__icon .bi {
        font-size: 20px;
        line-height: 1;
    }

/* =========================================================
   Richtext spacing (valgfrit, men hjælper)
   ========================================================= */
.roi .roi-description > *:first-child {
    margin-top: 0;
}

.roi .roi-description > *:last-child {
    margin-bottom: 0;
}

/* =========================================================
   Form controls (kun inde i beregneren)
   ========================================================= */
.roi [data-roi-calculator] label {
    font-weight: 600;
    color: rgba(0,0,0,.65);
}

.roi [data-roi-calculator] input,
.roi [data-roi-calculator] select {
    font-size : 14px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 0px;
    border: 1px solid rgba(0,0,0,.18);
    background: var(--roi-surface);
    color: var(--roi-text);
}

    .roi [data-roi-calculator] input:focus,
    .roi [data-roi-calculator] select:focus {
        outline: 0;
        border-color: var(--roi-accent);
        box-shadow: 0 0 0 4px rgba(153, 72, 26, .15);
    }
    .roi-subindustry
    {
        margin-top: 10px;
    }

/* =========================================================
   Button (pill + luft) — matcher jeres design
   JS render typisk .btn.btn-primary, så vi styler på den
   ========================================================= */
.roi [data-roi-calculator] .btn.btn-primary {
    margin-top: 12px;
    border: 0;
    border-radius: 999px;
    padding: 12px 50px;
    font-size: 18px;
    font-weight: 400;
    background: var(--roi-accent);
    border-color: var(--roi-accent);
    color: var(--roi-contrast);
}

    .roi [data-roi-calculator] .btn.btn-primary:hover {
        filter: brightness(.95);
    }

/* =========================================================
   Result / callout
   (JS bør sætte .roi-result — ellers kan du mappe dens selector)
   ========================================================= */
.roi [data-roi-calculator] .roi-result {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 4px solid var(--roi-accent);
    background: rgba(153, 72, 26, .08);
    border-radius: 10px;
    font-weight: 600;
}

.roi-field-error {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #b42318;
}

.roi-chart canvas {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.95;
}

