/* Shared calculator workspace */
body > main {
    overflow: hidden;
}

body > main > section.pt-18.pb-10:first-child {
    align-items: center;
    background-color: #1d2738 !important;
    background-image: url('/web/assets/banner/finance-calculator-banner-2.png') !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    display: flex;
    min-height: 330px;
    overflow: hidden;
    padding: 74px 0 92px !important;
    position: relative;
}

body > main > section.pt-18.pb-10:first-child::before {
    background: rgba(7, 15, 30, 0.68);
    content: '';
    inset: 0;
    position: absolute;
}

body > main > section.pt-18.pb-10:first-child > .container {
    position: relative;
    z-index: 1;
}

body > main > section.pt-18.pb-10:first-child .top-white {
    backdrop-filter: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: 760px;
    padding: 0 !important;
}

body > main > section.pt-18.pb-10:first-child .top-white h1 {
    color: #ffffff !important;
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.15;
    margin-bottom: 13px !important;
}

body > main > section.pt-18.pb-10:first-child .top-white h4 {
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6;
    margin: 0;
}

body > main > section.container {
    position: relative;
    z-index: 2;
}

body > main > section.container > .mt-n6.bg-white {
    background: #ffffff;
    border: 1px solid #dce3eb !important;
    border-radius: 8px !important;
    box-shadow: 0 16px 36px rgba(23, 32, 51, 0.1) !important;
    margin-bottom: 54px !important;
    margin-top: -52px !important;
    min-width: 0;
    padding: 32px !important;
}

body > main > section.container > .mt-n6.bg-white > .row {
    margin: 0;
}

body > main > section.container > .mt-n6.bg-white > .row > .container,
body > main > section.container > .mt-n6.bg-white .container.mt-5 {
    flex: 0 0 100%;
    margin: 0 !important;
    max-width: 100%;
    min-width: 0;
    padding: 0 !important;
    width: 100%;
}

body > main > section.container > .mt-n6.bg-white h2,
body > main > section.container > .mt-n6.bg-white h3,
body > main > section.container > .mt-n6.bg-white h4,
body > main > section.container > .mt-n6.bg-white h5 {
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

body > main > section.container > .mt-n6.bg-white > .row > .container > h3,
body > main > section.container > .mt-n6.bg-white .container.mt-5 > h3 {
    color: #172033 !important;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 9px;
}

body > main > section.container > .mt-n6.bg-white > .row > .container > h3 + p,
body > main > section.container > .mt-n6.bg-white .container.mt-5 > h3 + p {
    color: #667085;
    line-height: 1.65;
    margin-bottom: 26px;
    max-width: 920px;
}

body > main > section.container > .mt-n6.bg-white .row {
    row-gap: 24px;
}

body > main > section.container > .mt-n6.bg-white .row.mb-8 {
    margin-bottom: 0 !important;
}

body > main > section.container > .mt-n6.bg-white [class*='col-'] {
    min-width: 0;
}

body > main > section.container > .mt-n6.bg-white .card {
    background: #ffffff;
    border: 1px solid #dce3eb;
    border-radius: 8px !important;
    box-shadow: none !important;
    min-width: 0;
    overflow: hidden;
}

body > main > section.container > .mt-n6.bg-white .card.p-3,
body > main > section.container > .mt-n6.bg-white .card.p-4,
body > main > section.container > .mt-n6.bg-white .card.p-lg-5 {
    padding: 24px !important;
}

body > main > section.container > .mt-n6.bg-white .card-body {
    background: #ffffff !important;
    color: #536174;
    min-width: 0;
    padding: 17px 20px !important;
}

body > main > section.container > .mt-n6.bg-white .card-body h2,
body > main > section.container > .mt-n6.bg-white .card-body h3,
body > main > section.container > .mt-n6.bg-white .result-value,
body > main > section.container > .mt-n6.bg-white .result-display,
body > main > section.container > .mt-n6.bg-white #tdsResult {
    color: var(--pc, #123ea5) !important;
    font-size: 23px !important;
    font-weight: 600;
    line-height: 1.3;
}

body > main > section.container > .mt-n6.bg-white .form-group {
    margin-bottom: 21px;
    min-width: 0;
}

body > main > section.container > .mt-n6.bg-white .form-group:last-child {
    margin-bottom: 0;
}

body > main > section.container > .mt-n6.bg-white label,
body > main > section.container > .mt-n6.bg-white h5,
body > main > section.container > .mt-n6.bg-white .form-group > span {
    color: #344054;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.45;
    margin-bottom: 7px;
}

body > main > section.container > .mt-n6.bg-white .form-control,
body > main > section.container > .mt-n6.bg-white input[type='text'],
body > main > section.container > .mt-n6.bg-white input[type='number'],
body > main > section.container > .mt-n6.bg-white input[type='email'],
body > main > section.container > .mt-n6.bg-white select,
body > main > section.container > .mt-n6.bg-white textarea {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #172033;
    font-size: 14px;
    max-width: 100%;
    min-height: 44px;
    min-width: 0;
    width: 100%;
}

body > main > section.container > .mt-n6.bg-white .form-control:focus,
body > main > section.container > .mt-n6.bg-white input[type='text']:focus,
body > main > section.container > .mt-n6.bg-white input[type='number']:focus,
body > main > section.container > .mt-n6.bg-white input[type='email']:focus,
body > main > section.container > .mt-n6.bg-white select:focus,
body > main > section.container > .mt-n6.bg-white textarea:focus {
    border-color: var(--pc, #123ea5);
    box-shadow: 0 0 0 3px rgba(var(--pc-rgb, 18, 62, 165), 0.12);
    outline: 0;
}

body > main > section.container > .mt-n6.bg-white input[readonly] {
    background: #f3f6fa;
    color: #344054;
}

body > main > section.container > .mt-n6.bg-white .d-flex.justify-content-between {
    align-items: center;
    gap: 14px;
}

body > main > section.container > .mt-n6.bg-white .d-flex.justify-content-between > h5,
body > main > section.container > .mt-n6.bg-white .d-flex.justify-content-between > span {
    flex: 1 1 auto;
    margin-bottom: 0;
}

body > main > section.container > .mt-n6.bg-white .d-flex.justify-content-between > .form-control.w-25 {
    flex: 0 0 124px;
    width: 124px !important;
}

body > main > section.container > .mt-n6.bg-white .d-flex.justify-content-start {
    align-items: center;
    column-gap: 10px;
    flex-wrap: wrap;
    row-gap: 8px;
}

body > main > section.container > .mt-n6.bg-white .calculator-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

body > main > section.container > .mt-n6.bg-white .calculator-choice-group label,
body > main > section.container > .mt-n6.bg-white .d-flex.justify-content-start label,
body > main > section.container > .mt-n6.bg-white label:has(input[type='radio']),
body > main > section.container > .mt-n6.bg-white label:has(input[type='checkbox']) {
    align-items: center;
    background: #f6f8fb;
    border: 1px solid #dce3eb;
    border-radius: 6px;
    display: inline-flex;
    gap: 8px;
    margin: 0 !important;
    min-height: 42px;
    padding: 8px 12px;
}

body > main > section.container > .mt-n6.bg-white input[type='radio'],
body > main > section.container > .mt-n6.bg-white input[type='checkbox'] {
    accent-color: var(--pc, #123ea5);
    flex: 0 0 18px;
    height: 18px;
    margin: 0;
    width: 18px;
}

body > main > section.container > .mt-n6.bg-white input[type='range'] {
    accent-color: var(--pc, #123ea5);
    cursor: pointer;
    display: block;
    margin: 11px 0 4px;
    max-width: 100%;
    min-height: 24px;
    width: 100% !important;
}

body > main > section.container > .mt-n6.bg-white .custom-slider {
    background: #e2e8f0 !important;
}

body > main > section.container > .mt-n6.bg-white .input-group {
    align-items: stretch;
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
}

body > main > section.container > .mt-n6.bg-white .input-group .form-control {
    min-width: 0;
}

body > main > section.container > .mt-n6.bg-white .input-group-text {
    align-items: center;
    background: #f3f6fa !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--pc, #123ea5);
    display: inline-flex;
    font-weight: 500 !important;
    min-height: 44px;
    padding: 0 12px;
}

body > main > section.container > .mt-n6.bg-white .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 13px !important;
    font-weight: 600;
    justify-content: center;
    letter-spacing: 0;
    min-height: 40px;
    padding: 9px 15px;
    width: auto;
}

body > main > section.container > .mt-n6.bg-white .btn.w-100 {
    width: auto !important;
}

:root:has(.calculator-navigation--dark-brand) {
    --calculator-brand-contrast: #ffffff;
}

:root:has(.calculator-navigation--light-brand) {
    --calculator-brand-contrast: #172033;
}

body > main > section.container > .mt-n6.bg-white .btn-primary,
body > main > section.container > .mt-n6.bg-white .btn-success {
    background-color: var(--pc, #123ea5) !important;
    border-color: var(--pc, #123ea5) !important;
    color: var(--calculator-brand-contrast, #ffffff) !important;
}

body > main > section.container > .mt-n6.bg-white .btn-primary:hover,
body > main > section.container > .mt-n6.bg-white .btn-primary:focus,
body > main > section.container > .mt-n6.bg-white .btn-success:hover,
body > main > section.container > .mt-n6.bg-white .btn-success:focus {
    background-color: var(--sc, #006eff) !important;
    border-color: var(--sc, #006eff) !important;
    color: var(--calculator-brand-contrast, #ffffff) !important;
}

body > main > section.container > .mt-n6.bg-white .btn-outline-primary {
    background: #ffffff !important;
    border-color: var(--pc, #123ea5) !important;
    color: var(--pc, #123ea5) !important;
}

body > main > section.container > .mt-n6.bg-white .btn-outline-primary:hover,
body > main > section.container > .mt-n6.bg-white .btn-outline-primary:focus {
    background: var(--pc, #123ea5) !important;
    color: var(--calculator-brand-contrast, #ffffff) !important;
}

body > main > section.container > .mt-n6.bg-white .btn-light.active,
body > main > section.container > .mt-n6.bg-white .btn-light:active {
    background: var(--pc, #123ea5) !important;
    border-color: var(--pc, #123ea5) !important;
    color: var(--calculator-brand-contrast, #ffffff) !important;
}

body > main > section.container > .mt-n6.bg-white .text-primary,
body > main > section.container > .mt-n6.bg-white [style*='color: #007bff'],
body > main > section.container > .mt-n6.bg-white [style*='color:#007bff'],
body > main > section.container > .mt-n6.bg-white [style*='color: #3b82f6'],
body > main > section.container > .mt-n6.bg-white [style*='color:#3b82f6'] {
    color: var(--pc, #123ea5) !important;
}

body > main > section.container > .mt-n6.bg-white input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(var(--pc-rgb, 18, 62, 165), 0.18) !important;
    border: 0;
    border-radius: 6px;
    height: 6px !important;
    min-height: 6px;
}

body > main > section.container > .mt-n6.bg-white input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: var(--pc, #123ea5);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--pc, #123ea5);
    height: 18px;
    width: 18px;
}

body > main > section.container > .mt-n6.bg-white input[type='range']::-moz-range-thumb {
    background: var(--pc, #123ea5);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--pc, #123ea5);
    height: 12px;
    width: 12px;
}

body > main > section.container > .mt-n6.bg-white .form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

body > main > section.container > .mt-n6.bg-white .form-row > .col {
    max-width: none;
    padding: 0;
}

body > main > section.container > .mt-n6.bg-white .share-row {
    background: #f7f9fc;
    border: 1px solid #e1e7ee;
    border-radius: 7px;
    margin-bottom: 14px !important;
    padding: 16px;
}

body > main > section.container > .mt-n6.bg-white .result,
body > main > section.container > .mt-n6.bg-white .result-section {
    background: #f7f9fc;
    border: 1px solid #dce3eb;
    border-radius: 8px !important;
    padding: 18px;
}

body > main > section.container > .mt-n6.bg-white canvas {
    display: block;
    height: auto !important;
    margin: 0 auto;
    max-height: 360px;
    max-width: 360px;
    width: 100% !important;
}

body > main > section.container > .mt-n6.bg-white .table-responsive {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    overflow-x: auto;
}

body > main > section.container > .mt-n6.bg-white table {
    background: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
    display: block;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
}

body > main > section.container > .mt-n6.bg-white table th,
body > main > section.container > .mt-n6.bg-white table td {
    border-color: #e1e7ee;
    font-size: 13px;
    padding: 11px 12px;
    vertical-align: middle !important;
    white-space: nowrap;
}

body > main > section.container > .mt-n6.bg-white table th {
    background: #f3f6fa;
    color: #344054;
    font-weight: 600;
}

body > main > section.container > .mt-n6.bg-white table .form-control {
    min-width: 120px;
}

body > main > section.container > .mt-n6.bg-white hr {
    border-color: #e1e7ee;
    margin: 22px 0;
}

@media (max-width: 991.98px) {
    body > main > section.pt-18.pb-10:first-child {
        min-height: 300px;
        padding: 62px 0 80px !important;
    }

    body > main > section.pt-18.pb-10:first-child .top-white h1 {
        font-size: 36px;
    }

    body > main > section.container > .mt-n6.bg-white {
        padding: 26px !important;
    }
}

@media (max-width: 767.98px) {
    body > main > section.pt-18.pb-10:first-child {
        min-height: 270px;
        padding: 48px 0 70px !important;
    }

    body > main > section.pt-18.pb-10:first-child .top-white h1 {
        font-size: 31px;
    }

    body > main > section.pt-18.pb-10:first-child .top-white h4 {
        font-size: 15px;
    }

    body > main > section.container > .mt-n6.bg-white {
        margin-bottom: 38px !important;
        margin-left: 0;
        margin-right: 0;
        margin-top: -38px !important;
        padding: 20px !important;
    }

    body > main > section.container > .mt-n6.bg-white > .row > .container > h3,
    body > main > section.container > .mt-n6.bg-white .container.mt-5 > h3 {
        font-size: 22px;
    }

    body > main > section.container > .mt-n6.bg-white .card.p-3,
    body > main > section.container > .mt-n6.bg-white .card.p-4,
    body > main > section.container > .mt-n6.bg-white .card.p-lg-5 {
        padding: 18px !important;
    }

    body > main > section.container > .mt-n6.bg-white .card-body h2,
    body > main > section.container > .mt-n6.bg-white .card-body h3,
    body > main > section.container > .mt-n6.bg-white .result-value,
    body > main > section.container > .mt-n6.bg-white .result-display,
    body > main > section.container > .mt-n6.bg-white #tdsResult {
        font-size: 20px !important;
    }

    body > main > section.container > .mt-n6.bg-white .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    body > main > section.container > .mt-n6.bg-white canvas {
        margin-top: 6px;
        max-height: 300px;
        max-width: 300px;
    }
}

    @media (max-width: 575.98px) {
    body > main > section.pt-18.pb-10:first-child {
        min-height: 250px;
        padding: 42px 0 62px !important;
    }

    body > main > section.pt-18.pb-10:first-child .top-white {
        max-width: 100%;
    }

    body > main > section.pt-18.pb-10:first-child .top-white h1 {
        font-size: 28px;
    }

    body > main > section.container {
        padding-left: 12px;
        padding-right: 12px;
    }

    body > main > section.container > .mt-n6.bg-white {
        padding: 16px !important;
    }

    body > main > section.container > .mt-n6.bg-white .d-flex.justify-content-between {
        align-items: flex-start;
    }

    body > main > section.container > .mt-n6.bg-white .d-flex.justify-content-between > .form-control.w-25 {
        flex-basis: 104px;
        width: 104px !important;
    }

    body > main > section.container > .mt-n6.bg-white .d-flex.justify-content-start label,
    body > main > section.container > .mt-n6.bg-white label:has(input[type='radio']),
    body > main > section.container > .mt-n6.bg-white label:has(input[type='checkbox']) {
        padding: 8px 10px;
    }

    body > main > section.container > .mt-n6.bg-white table th,
    body > main > section.container > .mt-n6.bg-white table td {
        font-size: 12px;
        padding: 9px 10px;
    }
}

.calculator-navigation {
    background: #f4f7fa;
    border-bottom: 1px solid #dfe5ec;
    padding: 22px 0 72px;
}

.calculator-navigation__sequence {
    align-items: stretch;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin-bottom: 24px;
}

.calculator-navigation__step,
.calculator-navigation__all {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 6px;
    color: #14213d;
    display: inline-flex;
    min-height: 48px;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.calculator-navigation__step {
    gap: 10px;
    padding: 7px 12px;
}

.calculator-navigation__step--next {
    justify-content: flex-end;
    text-align: right;
}

.calculator-navigation__step span:not(.calculator-navigation__step-icon) {
    min-width: 0;
}

.calculator-navigation__step small,
.calculator-navigation__step strong {
    display: block;
}

.calculator-navigation__step small {
    color: #6d7888;
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.calculator-navigation__step strong {
    color: #14213d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.calculator-navigation__step-icon {
    align-items: center;
    background: rgba(var(--pc-rgb, 18, 62, 165), 0.1);
    border-radius: 5px;
    color: var(--pc, #123ea5);
    display: inline-flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.calculator-navigation__all {
    border-color: var(--pc, #123ea5);
    color: var(--pc, #123ea5);
    font-size: 12px;
    font-weight: 600;
    gap: 7px;
    justify-content: center;
    padding: 8px 14px;
}

.calculator-navigation__step:hover,
.calculator-navigation__step:focus,
.calculator-navigation__link:hover,
.calculator-navigation__link:focus {
    border-color: var(--pc, #123ea5);
    color: #14213d;
    text-decoration: none;
}

.calculator-navigation__all:hover,
.calculator-navigation__all:focus {
    background: var(--pc, #123ea5);
    color: var(--calculator-brand-contrast, #ffffff);
    text-decoration: none;
}

.calculator-navigation__header {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.calculator-navigation__position {
    color: var(--pc, #123ea5);
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.calculator-navigation__header h2 {
    color: #14213d;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0;
}

.calculator-navigation__header p {
    color: #6d7888;
    font-size: 13px;
    margin: 0;
}

.calculator-navigation__links {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calculator-navigation__link {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 7px;
    color: #14213d;
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    min-height: 74px;
    padding: 12px;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease;
}

.calculator-navigation__link:hover,
.calculator-navigation__link:focus {
    transform: translateY(-2px);
}

.calculator-navigation__arrow,
.calculator-navigation__icon {
    align-items: center;
    border-radius: 5px;
    display: inline-flex;
    justify-content: center;
}

.calculator-navigation__arrow {
    color: var(--pc, #123ea5);
    font-size: 12px;
    height: 30px;
    width: 30px;
}

.calculator-navigation__icon {
    background: rgba(var(--sc-rgb, 0, 110, 255), 0.1);
    color: var(--sc, #006eff);
    font-size: 16px;
    height: 38px;
    width: 38px;
}

.calculator-navigation__label {
    min-width: 0;
}

.calculator-navigation__label small,
.calculator-navigation__label strong {
    display: block;
}

.calculator-navigation__label small {
    color: #6d7888;
    font-size: 9px;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.calculator-navigation__label strong {
    color: #14213d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .calculator-navigation {
        padding: 18px 0 60px;
    }

    .calculator-navigation__sequence {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .calculator-navigation__all {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 40px;
    }

    .calculator-navigation__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .calculator-navigation__links {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .calculator-navigation__step {
        align-items: flex-start;
        min-height: 64px;
    }

    .calculator-navigation__step-icon {
        flex-basis: 30px;
        height: 30px;
        width: 30px;
    }

    .calculator-navigation__step strong {
        font-size: 12px;
    }

    .calculator-navigation__header h2 {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .calculator-navigation__all,
    .calculator-navigation__step,
    .calculator-navigation__link {
        transition: none;
    }
}
