.wf-credit-intro-title {
    text-align: center;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.wf-credit-intro-subtitle {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: 20px;
    line-height: 1.35;
}

.wf-credit-simulation-steps {
    overflow: hidden;
    &.apk-shadow-1 {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
        /* légère */
    }

    &.apk-shadow-2 {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
        /* modérée */
    }

    &.apk-shadow-3 {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        /* intermédiaire */
    }

    &.apk-shadow-4 {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
        /* forte */
    }

    &.apk-shadow-5 {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
        /* très forte */
    }
    &.apk-border {
        border: 1px solid #e7e7e7;
    }
    &.apk-border-radius {
        border-radius: calc(var(--block-border-radius) * 1px);
    }
}


.wf-credit-step-card {
    /* border-radius: 26px;
    border: 1px solid #e7e7e7;
    box-shadow: 0 14px 34px rgba(9, 23, 47, 0.08); */
    padding: 38px 42px;
}

.wf-credit-step-title {
    margin-bottom: 8px;
    color: #1f3658;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wf-credit-field {
    margin-bottom: 12px;
}

.wf-credit-form-label {
    display: block;
    margin-bottom: 6px;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.wf-credit-checkbox-label {
    color: #111827;
    font-size: 14px;
}

.wf-credit-checkbox-control {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.wf-credit-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.wf-credit-checkbox-box {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid #d4dae2;
    border-radius: 8px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 120ms ease-in-out;
}

.wf-credit-checkbox-box::after {
    content: "";
    width: 7px;
    height: 12px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg) scale(0);
    margin-top: -2px;
    transition: transform 120ms ease-in-out;
}

.wf-credit-checkbox-input:checked + .wf-credit-checkbox-box {
    border-color: #1f4c80;
    background: #1f4c80;
}

.wf-credit-checkbox-input:checked + .wf-credit-checkbox-box::after {
    transform: rotate(45deg) scale(1);
}

.wf-credit-checkbox-input:focus-visible + .wf-credit-checkbox-box {
    outline: 2px solid #1f4c80;
    outline-offset: 2px;
}

.wf-credit-checkbox-text {
    color: #1f3658;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.wf-credit-file-step .wf-credit-checkbox-box {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

/* File-step checkbox/choice labels aligned with form labels (14px). */
.wf-credit-file-step .wf-credit-checkbox-text {
    font-size: 14px;
    line-height: 1.3;
    color: #111827;
}

.wf-credit-file-step .wf-credit-choice-label {
    font-size: 14px;
    line-height: 1.3;
    color: #111827;
}

.wf-credit-field-checkbox {
    display: flex;
    align-items: center;
}

.wf-credit-field-checkbox .wf-credit-checkbox-control {
    width: 100%;
}

#wf-credit-simulation-app .uk-input,
#wf-credit-simulation-app .uk-select,
#wf-credit-simulation-app .uk-textarea {
    border-radius: 12px;
    min-height: 46px;
    border-color: #d6dae0;
    background: #ffffff;
    font-size: 16px;
    color: #1f3658;
    padding: 8px 14px;
}

#wf-credit-simulation-app .uk-button-primary {
    background: #c59b4f;
    border-color: #c59b4f;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 600;
}

#wf-credit-simulation-app .uk-button-default {
    border-radius: 12px;
}

.wf-credit-loan-type-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wf-credit-loan-type-btn {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #1f2937;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.wf-credit-loan-type-active {
    background: #1f3658;
    color: #ffffff;
    border-color: #1f3658;
}

.wf-credit-amount-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wf-credit-amount-slider {
    width: 100%;
}

.wf-credit-amount-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.wf-credit-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 24px;
    width: 100%;
    max-width: 980px;
    padding: 0 8px;
}

.wf-credit-progress-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #6f7c8f;
    min-width: 0;
    text-align: center;
    position: relative;
    font: inherit;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    outline: 0;
    cursor: pointer;
}

.wf-credit-progress-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    border-top: 2px solid #d6dde6;
}

.wf-credit-progress-done:not(:last-child)::after,
.wf-credit-progress-current:not(:last-child)::after {
    border-top-color: #ccb675;
}

.wf-credit-progress-item[aria-disabled="true"] {
    cursor: default;
}

.wf-credit-progress-badge {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    background: #d6dce5;
    color: #274469;
}

.wf-credit-progress-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.wf-credit-progress-current {
    color: #1f3658;
}

.wf-credit-progress-current .wf-credit-progress-badge {
    background: #1f4c80;
    color: #ffffff;
}

.wf-credit-progress-done .wf-credit-progress-badge {
    background: #ccb675;
    color: #ffffff;
}

.wf-credit-result-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wf-credit-result-main-title {
    margin: 0;
    color: #1f2937;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
}

.wf-credit-result-greeting {
    margin: 0;
    color: #6b7280;
}

.wf-credit-result-hero {
    background: #1f4c80;
    color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.wf-credit-result-hero-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.wf-credit-result-hero-value {
    font-size: 46px;
    line-height: 1.05;
    font-weight: 700;
    margin-top: 8px;
}

.wf-credit-result-hero-disclaimer {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 8px;
}

.wf-credit-result-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wf-credit-result-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
}

.wf-credit-result-card-label {
    color: #6b7280;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-credit-result-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
}

.wf-credit-result-card-value {
    margin-top: 6px;
    color: #1f2937;
    font-size: 31px;
    line-height: 1.1;
    font-weight: 700;
}

.wf-credit-result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wf-credit-result-actions .uk-button {
    width: 100%;
}

.wf-credit-result-legal {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 12px;
}

.wf-credit-file-step .uk-grid-small {
    margin-top: 20px;
}

.wf-credit-file-subtitle {
    margin: 0;
    color: #5b6778;
    font-size: 25px;
    line-height: 1.35;
}

.wf-credit-file-step .wf-credit-form-label {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #111827;
}

.wf-credit-file-step .wf-credit-field {
    margin-bottom: 18px;
}

.wf-credit-file-step .uk-input,
.wf-credit-file-step .uk-select,
.wf-credit-file-step .uk-textarea {
    min-height: 54px;
    font-size: 24px;
    padding: 10px 16px;
}

.wf-credit-choice-label {
    margin: 12px 0 12px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 600;
    color: #1f3658;
}

.wf-credit-choice-group {
    display: flex;
    gap: 12px;
}

.wf-credit-choice-button {
    flex: 1;
    min-height: 54px;
    border-radius: 12px;
    border: 1px solid #d4dae2;
    background: #ffffff;
    color: #1f3658;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 120ms ease-in-out;
}

.wf-credit-choice-active {
    border-color: #1f4c80;
    background: #1f4c80;
    color: #ffffff;
}

.wf-credit-file-divider {
    margin: 16px 0 0;
    border-top: 1px solid #d8dce2;
}

.wf-credit-file-section-title {
    margin: 8px 0 4px;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    color: #1f3658;
}

.wf-credit-file-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wf-credit-file-actions .uk-button {
    min-height: 54px;
    padding: 0 30px;
    font-size: 20px;
}

.wf-credit-file-actions #step-file-primary {
    min-width: 270px;
}

.wf-credit-notary-expenses td {
    vertical-align: middle;
}

.wf-credit-notary-expenses-reference td {
    color: #6b7280;
    font-style: italic;
}

.wf-credit-notary-expenses-total td {
    border-top: 2px solid #1f3658;
    padding-top: 12px;
}

@media (max-width: 640px) {
    .wf-credit-intro-title {
        font-size: 36px;
    }

    .wf-credit-intro-subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .wf-credit-result-cards {
        grid-template-columns: 1fr;
    }

    .wf-credit-result-main-title {
        font-size: 28px;
    }

    .wf-credit-result-hero-value {
        font-size: 36px;
    }

    .wf-credit-result-card-value {
        font-size: 24px;
    }

    .wf-credit-step-card {
        border-radius: 18px;
        padding: 22px 18px;
    }

    .wf-credit-step-title {
        font-size: 30px;
    }

    .wf-credit-file-subtitle {
        font-size: 18px;
    }

    .wf-credit-file-step .wf-credit-form-label {
        font-size: 14px;
    }

    .wf-credit-choice-label {
        font-size: 20px;
    }

    .wf-credit-file-section-title {
        font-size: 28px;
    }

    #wf-credit-simulation-app .uk-input,
    #wf-credit-simulation-app .uk-select,
    #wf-credit-simulation-app .uk-textarea {
        min-height: 46px;
        font-size: 18px;
    }

    .wf-credit-choice-button {
        font-size: 16px;
    }

    .wf-credit-file-step .wf-credit-checkbox-text,
    .wf-credit-file-step .wf-credit-choice-label {
        font-size: 14px;
    }

    .wf-credit-progress {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
        margin-bottom: 16px;
        gap: 10px;
    }

    .wf-credit-progress-item {
        flex: 0 0 auto;
        min-width: 92px;
    }

    .wf-credit-progress-item:not(:last-child)::after {
        left: calc(100% + 4px);
        right: auto;
        width: 44px;
    }

    .wf-credit-progress-label {
        font-size: 14px;
    }

    .wf-credit-file-actions {
        flex-direction: column;
    }

    .wf-credit-file-actions .uk-button {
        width: 100%;
    }
}
