.bf-app {
    --bf-blue: #173f68;
    --bf-light-blue: #edf4f8;
    --bf-gold: #c8a563;
    --bf-border: #d9dee3;
    --bf-text: #26323d;
    --bf-muted: #66727d;
    --bf-danger: #a83232;

    max-width: 920px;
    margin: 0 auto;
    color: var(--bf-text);
    font-family: inherit;
}

.bf-app * {
    box-sizing: border-box;
}

.bf-header {
    margin-bottom: 32px;
}

.bf-step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 650px;
    margin: 0 auto;
}

.bf-step-indicator::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--bf-border);
    z-index: 0;
}

.bf-step-indicator span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--bf-border);
    color: var(--bf-muted);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.bf-step-indicator span.active {
    background: var(--bf-blue);
    border-color: var(--bf-blue);
    color: #fff;
}

.bf-step {
    display: none;
}

.bf-step.active {
    display: block;
}

.bf-step h2 {
    color: var(--bf-blue);
    font-size: 30px;
    margin: 0 0 24px;
}

.bf-step h3 {
    color: var(--bf-blue);
}

.bf-important,
.bf-special,
.bf-minimum-info,
.bf-price-includes {
    border-radius: 8px;
    padding: 18px 20px;
    margin: 20px 0;
}

.bf-important {
    background: var(--bf-light-blue);
    border-left: 4px solid var(--bf-blue);
}

.bf-special {
    background: #faf8f2;
    border: 1px solid #e6dcc7;
}

.bf-minimum-info {
    background: #f5f7f8;
}

.bf-minimum-info.error {
    background: #fff0f0;
    color: var(--bf-danger);
}

.bf-app label {
    display: block;
    font-weight: 600;
    margin: 18px 0;
}

.bf-app label small,
.bf-help {
    display: block;
    margin-top: 7px;
    color: var(--bf-muted);
    font-weight: 400;
    font-size: 14px;
}

.bf-app input[type="text"],
.bf-app input[type="email"],
.bf-app input[type="tel"],
.bf-app input[type="number"],
.bf-app select,
.bf-app textarea {
    width: 100%;
    border: 1px solid #bfc8cf;
    border-radius: 5px;
    background: #fff;
    padding: 12px 13px;
    font-size: 16px;
    margin-top: 7px;
}

.bf-app input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 11px 12px;
    border: 1px dashed #aeb9c2;
    border-radius: 6px;
    background: #fff;
    color: var(--bf-text);
    font-family: inherit;
    font-size: 14px;
}

.bf-app input[type="file"]::file-selector-button {
    appearance: none;
    border: 1px solid var(--bf-blue);
    border-radius: 5px;
    background: var(--bf-light-blue);
    color: var(--bf-blue);
    padding: 8px 12px;
    margin-right: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.bf-app input[type="file"]::file-selector-button:hover {
    background: #e1edf4;
}

.bf-two-columns {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.bf-fender-group {
    border: 1px solid var(--bf-border);
    border-radius: 8px;
    padding: 22px;
    margin: 22px 0;
    background: #fff;
}

.bf-fender-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bf-fender-group h3 {
    margin: 0;
}

.bf-remove-fender {
    border: 0;
    background: transparent;
    color: var(--bf-danger);
    cursor: pointer;
}

.bf-radio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.bf-radio-list label {
    border: 1px solid var(--bf-border);
    padding: 12px 16px;
    border-radius: 6px;
    margin: 0;
    cursor: pointer;
}

.bf-colours {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bf-colour {
    border: 1px solid var(--bf-border);
    border-radius: 6px;
    padding: 10px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    cursor: pointer;
}

.bf-colour-chip {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    display: inline-block;
}

.bf-conditional {
    display: none;
}

.bf-conditional.visible {
    display: block;
}

.bf-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--bf-border);
}

.bf-next,
.bf-submit,
.bf-secondary,
.bf-prev {
    appearance: none;
    border-radius: 5px;
    padding: 12px 22px;
    font-size: 16px;
    cursor: pointer;
}

.bf-next,
.bf-submit {
    background: var(--bf-blue);
    color: #fff;
    border: 1px solid var(--bf-blue);
}

.bf-prev,
.bf-secondary {
    background: #fff;
    color: var(--bf-blue);
    border: 1px solid var(--bf-blue);
}

.bf-next:hover,
.bf-submit:hover {
    background: #123758;
    border-color: #123758;
}

.bf-prev:hover,
.bf-secondary:hover {
    background: var(--bf-light-blue);
}

.bf-next:disabled,
.bf-submit:disabled,
.bf-secondary:disabled,
.bf-prev:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bf-price-row,
.bf-summary-row {
    padding: 14px 0;
    border-bottom: 1px solid var(--bf-border);
}

.bf-price-total {
    font-size: 24px;
    font-weight: 700;
    color: var(--bf-blue);
    padding-top: 20px;
}

.bf-confirmations label {
    font-weight: 400;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.bf-success {
    background: #ecf7ef;
    border: 1px solid #b7dfc0;
    color: #245f33;
    border-radius: 6px;
    padding: 18px;
}

.bf-error {
    background: #fff0f0;
    color: #8e2525;
    border-radius: 6px;
    padding: 14px;
}

@media (max-width: 700px) {
    .bf-colours {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bf-step h2 {
        font-size: 25px;
    }
}


/* =========================================================
   SIDE 1 – FENDERIDENTIFIKASJON OG MÅLING
   ========================================================= */

.bf-identification {
    background: #f7f9fa;
    border: 1px solid var(--bf-border);
    border-radius: 8px;
    padding: 18px 20px;
    margin: 20px 0 28px;
}

.bf-identification h4,
.bf-measurement-area h4,
.bf-end-selection h4 {
    color: var(--bf-blue);
    font-size: 20px;
    margin: 0 0 8px;
}

.bf-measurement-area {
    margin-top: 25px;
}

.bf-long-fields,
.bf-ball-fields {
    margin-top: 20px;
}

.bf-long-fields label,
.bf-ball-fields label {
    margin-bottom: 20px;
}


/* =========================================================
   MÅLEILLUSTRASJONER
   ========================================================= */

.bf-measure-image {
    width: 100%;
    margin: 20px 0 28px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--bf-border);
    border-radius: 8px;
    text-align: center;
}

.bf-measure-image img {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 0 auto;
}


/* =========================================================
   TOPP / BUNN
   ========================================================= */

.bf-end-selection {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--bf-border);
}

.bf-end-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.bf-end-option {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 180px;
    padding: 12px;
    background: #ffffff;
    border: 2px solid var(--bf-border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--bf-text);
    font-family: inherit;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease,
        transform 0.15s ease;
}

.bf-end-option:hover {
    border-color: var(--bf-blue);
    box-shadow: 0 3px 10px rgba(23, 63, 104, 0.12);
    transform: translateY(-1px);
}

.bf-end-option img {
    display: block;
    width: 100%;
    max-width: 125px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 10px;
}

.bf-end-option span {
    display: block;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid #edf0f2;
    color: var(--bf-blue);
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.bf-end-option.selected {
    border-color: var(--bf-blue);
    background: var(--bf-light-blue);
    box-shadow: 0 0 0 2px rgba(23, 63, 104, 0.10);
}

.bf-end-option.selected span::before {
    content: "✓ ";
    color: var(--bf-blue);
}


/* =========================================================
   BEDRE FELTSTRUKTUR
   ========================================================= */

.bf-identification small {
    min-height: 34px;
}

.bf-measurement-area label {
    margin-bottom: 20px;
}


/* =========================================================
   MOBIL / NETTBRETT
   ========================================================= */

@media (max-width: 800px) {

    .bf-end-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-end-option {
        min-height: 165px;
    }

    .bf-end-option img {
        height: 105px;
    }
}

@media (max-width: 480px) {

    .bf-end-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .bf-end-option {
        min-height: 145px;
        padding: 8px;
    }

    .bf-end-option img {
        height: 90px;
    }

    .bf-measure-image {
        padding: 8px;
    }

    .bf-app input[type="file"]::file-selector-button {
        display: block;
        width: 100%;
        margin: 0 0 8px;
    }
}