.beci-form-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.beci-form {
    display: grid;
    gap: 22px;
}

.beci-form h2 {
    margin: 0 0 4px;
}

.beci-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    counter-reset: beci-step;
}

.beci-steps li {
    counter-increment: beci-step;
    position: static;
    display: block;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.beci-steps li:before,
.beci-steps li:after,
.beci-steps li::before,
.beci-steps li::after {
    content: none !important;
    display: none !important;
}

.beci-steps button {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 66px;
    min-height: 66px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
    color: #111;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    line-height: 1.2;
}

.beci-steps button:hover,
.beci-steps button:focus,
.beci-steps button:active {
    background: var(--Bleu, #13B8BC) !important;
    border: 1px solid var(--Bleu, #13B8BC) !important;
    border-top: 1px solid var(--Bleu, #13B8BC) !important;
    padding: 8px 10px !important;
    color: #fff;
    outline: none;
}

.beci-steps button:hover::before,
.beci-steps button:focus::before,
.beci-steps button:active::before {
    background: #000;
    color: #fff;
}

.beci-steps button::before {
    content: counter(beci-step);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #111;
    font-size: 13px;
}

.beci-steps .is-active button {
    border-color: var(--Bleu, #13B8BC);
    box-shadow: none;
}

.beci-steps .is-active button::before,
.beci-steps .is-complete button::before {
    background: var(--Bleu, #13B8BC);
    color: #fff;
}

.beci-steps .is-complete button {
    border-color: rgba(19, 184, 188, 0.35);
    color: var(--Bleu, #13B8BC);
}

.beci-form fieldset {
    display: none;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 24px;
    margin: 0;
    background: #f6f5ef;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.beci-form fieldset.is-active {
    display: block;
}

.beci-form legend {
    display: table;
    margin: 0 0 18px;
    padding: 7px 14px;
    font-weight: 700;
    line-height: 1.2;
    background: #000;
    color: #fff;
    border-radius: 999px;
}

.beci-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.beci-wide {
    grid-column: 1 / -1;
}

.beci-form label {
    display: grid;
    gap: 12px;
    font-weight: 600;
}

.beci-form input,
.beci-form select,
.beci-form textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.beci-form input:focus,
.beci-form select:focus,
.beci-form textarea:focus {
    outline: 2px solid var(--Bleu, #13B8BC);
    outline-offset: 1px;
    border-color: var(--Bleu, #13B8BC);
}

.beci-form input[type="checkbox"],
.beci-form input[type="radio"] {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    width: 16px;
    height: 16px;
    min-width: 16px;
    max-width: 16px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    vertical-align: middle;
    cursor: pointer; top: 8px; position: relative;
}

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

.beci-discipline {
    grid-template-columns: auto 1fr;
    align-items: start;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.beci-discipline:hover,
.beci-discipline:focus-within {
    border-color: var(--Bleu, #13B8BC);
    box-shadow: 0 8px 18px rgba(19, 184, 188, 0.14);
    transform: translateY(-1px);
}

.beci-discipline input {
    margin-top: 5px;
}

.beci-discipline span {
    display: grid;
    gap: 3px;
}

.beci-discipline em,
.beci-discipline small,
.beci-help {
    color: #666;
    font-style: normal;
}

.beci-total {
    margin: 14px 0 0;
}

.beci-file[hidden],
[data-beci-minor-section][hidden],
[data-beci-payment-other][hidden] {
    display: none;
}

.beci-file.is-required::after {
    content: " obligatoire";
    color: #b42318;
    font-weight: 700;
}

.beci-check {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    line-height: 1.35;
}

.beci-check input {
    flex: 0 0 16px;
    align-self: center;
}

.beci-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.beci-step-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    background: var(--Bleu, #13B8BC);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0;
}

.beci-step-btn:hover,
.beci-step-btn:focus {
    background: #000;
    color: #fff;
}

.beci-step-btn--ghost {
    border: 1px solid #d6d6d6;
    background: #fff;
    color: #111;
}

.beci-step-btn--submit {
    background: #000;
}

.beci-step-btn[hidden] {
    display: none;
}

.beci-notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 6px;
}

.beci-notice--success {
    background: #e8f7ee;
    color: #175c2f;
}

@media (max-width: 720px) {
    .beci-steps {
        grid-template-columns: 1fr;
    }

    .beci-grid,
    .beci-disciplines {
        grid-template-columns: 1fr;
    }

    .beci-step-actions {
        flex-direction: column-reverse;
    }

    .beci-step-btn {
        width: 100%;
    }
}
