.hi {
    --hi-blue: #002c5f;
    --hi-muted: #637489;
    max-width: 1200px;
    margin: 0 auto;
    color: #172d47
}

.hi * {
    box-sizing: border-box
}

.hi-heading {
    max-width: 740px;
    margin-bottom: 32px
}

.hi .hi-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #53718f
}

.hi h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.25;
    color: var(--hi-blue);
    margin: 14px 0 16px;
    letter-spacing: -1px
}

.hi h1 span {
    font-weight: 400
}

.hi-heading p {
    color: var(--hi-muted);
    font-size: 16px
}

.hi-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    align-items: start
}

.hi-form {
    background: #fff;
    border: 1px solid #e0e7ed;
    border-radius: 18px;
    padding: 30px;
    margin: 0;
    box-shadow: 0 12px 40px #002c5f08
}

.hi-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px
}

.hi-section>span {
    display: grid;
    place-items: center;
    background: #edf3f8;
    color: var(--hi-blue);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700
}

.hi h2 {
    font-size: 21px;
    color: var(--hi-blue);
    margin: 0
}

.hi label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #314961;
    margin-bottom: 18px
}

.hi input:not([type=range]),
.hi select {
    display: block;
    width: 100%;
    margin: 8px 0 0;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #d9e2eb;
    border-radius: 8px;
    background-color: #fff;
    color: #172d47;
    font-size: 14px;
    box-shadow: none
}

.hi input:focus,
.hi select:focus {
    outline: 2px solid #6b9eca;
    outline-offset: 2px
}

.hi input:disabled,
.hi select:disabled {
    background: #f3f6f8
}

.hi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.hi-price {
    background: #f1f6fa;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    margin: 0 0 26px
}

.hi-price strong {
    color: var(--hi-blue)
}

.hi-percent {
    float: right;
    color: var(--hi-blue);
    font-size: 17px
}

.hi input[type=range] {
    width: 100%;
    margin: 15px 0 0;
    accent-color: var(--hi-blue);
    cursor: pointer
}

.hi-range-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--hi-muted);
    font-weight: 400
}

.hi .hi-help {
    font-size: 12px;
    color: var(--hi-muted);
    line-height: 1.6;
    margin: 0 0 20px
}

.hi .hi-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    background: var(--hi-blue);
    color: white;
    border: 0;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    margin: 0
}

.hi .hi-submit:hover {
    background: #164c7f
}

.hi-summary {
    background: #f0f5f9;
    border-radius: 18px;
    padding: 30px;
    border: 1px solid #e1eaf1
}

.hi-summary h2 {
    margin: 12px 0 24px;
    font-size: 25px
}

.hi-empty {
    text-align: center;
    padding: 32px 4px
}

.hi-empty>span {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dfeaf3;
    font-size: 30px;
    color: var(--hi-blue);
    margin-bottom: 18px
}

.hi-empty h3 {
    font-size: 18px;
    color: var(--hi-blue)
}

.hi-empty p {
    font-size: 14px;
    color: var(--hi-muted)
}

.hi-monthly {
    padding: 22px 0;
    border-top: 1px solid #d5e1eb;
    border-bottom: 1px solid #d5e1eb
}

.hi-monthly>span {
    display: block;
    font-size: 13px;
    color: #526980
}

.hi-monthly strong {
    display: block;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.4;
    color: var(--hi-blue);
    margin: 8px 0
}

.hi-monthly small {
    font-size: 20px
}

.hi dl {
    margin: 20px 0
}

.hi dl>div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    font-size: 14px
}

.hi dt {
    font-weight: 400;
    color: #526980
}

.hi dd {
    margin: 0;
    text-align: right;
    font-weight: 700
}

.hi dl>div:last-child {
    border-top: 1px solid #d5e1eb;
    margin-top: 8px;
    padding-top: 18px
}

.hi .hi-note {
    font-size: 12px;
    line-height: 1.8;
    color: #637489;
    border-top: 1px solid #d5e1eb;
    padding-top: 20px;
    margin: 14px 0 22px
}

.hi-contact {
    display: block;
    text-align: center;
    color: var(--hi-blue);
    border: 1px solid #9aafc2;
    border-radius: 8px;
    padding: 13px;
    font-weight: 700;
    font-size: 14px
}

.hi-contact:hover {
    background: white
}

.hi-schedule {
    margin-top: 35px
}

.hi-schedule p {
    font-size: 13px;
    color: var(--hi-muted);
    margin-top: 10px
}

.hi-table-wrap {
    max-height: 460px;
    overflow: auto;
    border: 1px solid #e1e7ed;
    border-radius: 10px
}

.hi table {
    margin: 0;
    width: 100%;
    min-width: 620px;
    border-collapse: collapse
}

.hi th,
.hi td {
    padding: 13px 16px;
    text-align: right;
    font-size: 13px;
    white-space: nowrap
}

.hi th {
    position: sticky;
    top: 0;
    background: var(--hi-blue);
    color: white;
    text-transform: none;
    letter-spacing: 0
}

.hi th:first-child,
.hi td:first-child {
    text-align: left
}

.hi tbody tr:nth-child(even) {
    background: #f3f7fa
}

.hi [hidden] {
    display: none !important
}

@media(max-width:800px) {
    .hi {
        padding: 30px 16px 45px
    }

    .hi-layout {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .hi-form,
    .hi-summary {
        padding: 23px
    }

    .hi-heading {
        margin-bottom: 25px
    }
}

@media(max-width:480px) {
    .hi-grid {
        grid-template-columns: 1fr;
        gap: 0
    }

    .hi h2 {
        font-size: 19px
    }

    .hi-form,
    .hi-summary {
        padding: 20px
    }

    .hi dl>div {
        font-size: 13px
    }
}

/* Keep the repayment schedule compact without a nested vertical scrollbar. */
.hi-layout>* {
    min-width: 0
}

.hi .hi-schedule {
    min-width: 0;
    padding: 26px;
    border: 1px solid #e1e7ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px #002c5f06
}

.hi .hi-table-wrap {
    max-height: none;
    overflow-x: auto;
    isolation: isolate;
    scrollbar-width: thin;
    scrollbar-color: #9badbf #f1f5f9
}

.hi .hi-table-wrap:focus-visible {
    outline: 2px solid #6b9eca;
    outline-offset: 3px
}

.hi .hi-schedule table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    min-width: 680px
}

.hi .hi-schedule th,
.hi .hi-schedule td {
    padding: 14px 18px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    border-bottom: 1px solid #e9eef3
}

.hi .hi-schedule th {
    position: static;
    background: #002c5f;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
    vertical-align: middle
}

.hi .hi-schedule th:first-child {
    width: 75px
}

.hi .hi-schedule td {
    color: #40536a;
    font-size: 13px
}

.hi .hi-schedule td:nth-child(4) {
    font-weight: 700;
    color: #002c5f
}

.hi .hi-schedule tbody tr:hover {
    background: #eaf2f9
}

.hi .hi-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px
}

.hi .hi-pagination span {
    font-size: 13px;
    color: #637489;
    text-align: center
}

.hi .hi-pagination button {
    margin: 0;
    min-height: 38px;
    padding: 7px 15px;
    border: 1px solid #d6e0e9;
    border-radius: 7px;
    background: #fff;
    color: #002c5f;
    font-size: 13px;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0
}

.hi .hi-pagination button:hover {
    background: #edf3f8
}

.hi .hi-pagination button:disabled {
    opacity: .4;
    cursor: default
}

@media(max-width:600px) {
    .hi .hi-schedule {
        padding: 18px 12px
    }

    .hi .hi-pagination {
        gap: 6px
    }

    .hi .hi-pagination button {
        padding: 7px 10px
    }

    .hi .hi-pagination span {
        font-size: 12px
    }

    .hi .hi-schedule th,
    .hi .hi-schedule td {
        padding: 12px
    }
}