:root {
    --fgb-navy: #07182c;
    --fgb-navy-2: #0d2744;
    --fgb-ink: #102033;
    --fgb-muted: #5c6d80;
    --fgb-line: #e4ebf3;
    --fgb-gold: #f6c445;
    --fgb-gold-2: #ffd15a;
    --fgb-blue: #1d4f91;
    --fgb-page: #f3f6fb;
    --fgb-card: #ffffff;
    --fgb-radius: 16px;
    --fgb-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

body.fgb {
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(186, 210, 236, .55), transparent 60%),
        radial-gradient(700px 360px at 0% 110%, rgba(198, 220, 240, .45), transparent 55%),
        var(--fgb-page);
    color: var(--fgb-ink);
    font-family: var(--fgb-font);
}

body.fgb .content {
    padding: 1.75rem 2rem 3.5rem !important;
}

.fgb-brand {
    align-items: center;
    color: var(--fgb-navy);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.05rem;
    font-weight: 800;
    gap: .65rem;
    letter-spacing: -.02em;
    text-decoration: none;
}

.fgb-brand img {
    display: block;
    height: 48px;
    width: auto;
}

.fgb-bar {
    align-items: center;
    background: var(--fgb-navy);
    display: flex;
    gap: 1.25rem;
    min-height: 72px;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 30;
}

.fgb-bar .fgb-brand,
.app-sidebar .fgb-brand {
    color: #fff;
}

.fgb-nav {
    align-items: center;
    display: flex;
    gap: .15rem;
}

.fgb-nav a,
.fgb-guest a,
.fgb-split__bar a {
    border-radius: 8px;
    color: rgba(255, 255, 255, .84);
    font-size: .92rem;
    font-weight: 600;
    padding: .45rem .75rem;
    text-decoration: none;
}

.fgb-nav a.is-active,
.fgb-nav a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.fgb-bar__tools {
    align-items: center;
    display: flex;
    gap: .85rem;
    margin-left: auto;
}

.fgb-continue {
    background: var(--fgb-gold);
    border-radius: 999px;
    color: #1c2430;
    font-size: .92rem;
    font-weight: 800;
    padding: .6rem 1rem;
    text-decoration: none;
}

.fgb-continue:hover {
    background: var(--fgb-gold-2);
    color: #1c2430;
}

.fgb-bell {
    align-items: center;
    color: #fff;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.fgb-bell svg {
    height: 22px;
    width: 22px;
}

.fgb-avatar {
    align-items: center;
    background: #1d4e89;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.fgb-account {
    position: relative;
}

.fgb-account summary {
    align-items: center;
    color: #fff;
    cursor: pointer;
    display: flex;
    gap: .4rem;
    list-style: none;
}

.fgb-account summary::-webkit-details-marker {
    display: none;
}

.fgb-account summary svg {
    height: 8px;
    width: 12px;
}

.fgb-account__name {
    font-size: .84rem;
    font-weight: 650;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fgb-account__menu {
    background: #fff;
    border: 1px solid var(--fgb-line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(7, 24, 44, .16);
    min-width: 220px;
    padding: .85rem;
    position: absolute;
    right: 0;
    top: calc(100% + .45rem);
}

.fgb-account__menu p {
    color: var(--fgb-muted);
    font-size: .82rem;
    margin: 0 0 .6rem;
    overflow-wrap: anywhere;
}

.fgb-account__menu button {
    background: transparent;
    border: 0;
    color: var(--fgb-navy);
    font-weight: 700;
    padding: 0;
}

.fgb-guest {
    align-items: center;
    display: flex;
    gap: .35rem;
    margin-left: auto;
}

.fgb-guest__register,
.fgb-split__bar .fgb-guest__register {
    border: 1px solid currentColor;
    border-radius: 8px;
}

.fgb-menu {
    display: none;
}

.fgb-kicker,
.onboarding-eyebrow,
.form-wizard__eyebrow,
.home-eyebrow {
    color: var(--fgb-blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.onboarding-page h1,
.saved-applications-page h1,
.fgb-auth h1 {
    color: var(--fgb-ink);
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.home-hero h1 {
    color: #f5f9fb;
    font-weight: 800;
}

body.fgb .content:has(.home-page) {
    padding: 0 !important;
}

.onboarding-page,
.saved-applications-page {
    max-width: 1180px;
}

.page-breadcrumbs,
.page-breadcrumbs a {
    color: var(--fgb-muted);
    font-size: .84rem;
}

.page-breadcrumbs a {
    text-decoration: none;
}

.section-card,
.fgb-card {
    background: var(--fgb-card);
    border: 1px solid #e7eef6;
    border-radius: var(--fgb-radius);
    box-shadow: 0 10px 30px rgba(16, 40, 72, .045);
}

.wizard-button,
.home-primary-button,
.fgb-btn {
    align-items: center;
    background: var(--fgb-navy-2);
    border: 1px solid var(--fgb-navy-2);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    font-weight: 750;
    gap: .35rem;
    justify-content: center;
    padding: .72rem 1.05rem;
    text-decoration: none;
}

.wizard-button:hover,
.home-primary-button:hover,
.fgb-btn:hover {
    background: #16365c;
    color: #fff;
}

.wizard-button--secondary,
.fgb-btn--ghost {
    background: #fff;
    border-color: #d5deea;
    color: var(--fgb-navy-2);
}

.wizard-button--secondary:hover,
.fgb-btn--ghost:hover {
    background: #f7fafc;
    color: var(--fgb-navy);
}

.fgb-banner,
.fgb-current,
.fgb-help,
.fgb-table-card {
    margin-top: 1rem;
    padding: 1.25rem 1.35rem;
}

.fgb-banner {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.fgb-banner__icon,
.fgb-empty__art {
    align-items: center;
    background: #eef5ff;
    border-radius: 14px;
    display: flex;
    flex: 0 0 auto;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.fgb-banner h2,
.fgb-current h2,
.fgb-table-card h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: .15rem 0;
}

.fgb-banner p,
.fgb-current p,
.fgb-help p,
.fgb-empty p {
    color: var(--fgb-muted);
    margin: 0;
}

.fgb-current__top,
.fgb-table-card__head,
.saved-applications-page__heading,
.overview-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.fgb-progress {
    background: #e7eef5;
    border-radius: 999px;
    height: 8px;
    margin: 1rem 0 .45rem;
    overflow: hidden;
}

.fgb-progress span {
    background: linear-gradient(90deg, #16365c, #3d7ab5);
    display: block;
    height: 100%;
}

.fgb-status {
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 750;
    padding: .28rem .65rem;
    white-space: nowrap;
}

.fgb-status--draft { background: #e7f0ff; color: #1d4f91; }
.fgb-status--in-review { background: #fff4d6; color: #8a5b00; }
.fgb-status--submitted,
.fgb-status--approved { background: #e8eef3; color: #3d4d5c; }
.fgb-status--more-information-needed,
.fgb-status--declined { background: #fde8e8; color: #9b2332; }

.fgb-table {
    border-collapse: collapse;
    width: 100%;
}

.fgb-table th {
    color: var(--fgb-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: .8rem .7rem;
    text-align: left;
    text-transform: uppercase;
}

.fgb-table td {
    border-top: 1px solid var(--fgb-line);
    padding: .9rem .7rem;
    vertical-align: middle;
}

.fgb-table a.fgb-ref {
    color: var(--fgb-blue);
    font-weight: 800;
    text-decoration: none;
}

.fgb-help {
    align-items: center;
    background: #eef5ff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.fgb-empty {
    align-items: center;
    display: grid;
    justify-items: center;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
}

.fgb-empty img {
    height: 180px;
    object-fit: contain;
    width: 220px;
}

.fgb-empty h2 {
    margin: .4rem 0 .35rem;
}

.fgb-callout {
    background: #f4f8fd;
    border-radius: 12px;
    margin-top: 1rem;
    padding: .9rem 1rem;
}

.fgb-callout strong {
    display: block;
    margin-bottom: .15rem;
}

.fgb-callout p {
    color: var(--fgb-muted);
    margin: 0;
}

.fgb-hero {
    align-items: end;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    position: relative;
}

.fgb-hero .onboarding-review-notice {
    grid-column: 1 / -1;
}

.fgb-hero__photo {
    border-radius: 18px 18px 0 0;
    height: 180px;
    object-fit: cover;
    width: min(420px, 38vw);
}

.fgb-time {
    background: #fff;
    border: 1px solid var(--fgb-line);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(16, 40, 72, .08);
    margin-top: -4.5rem;
    padding: 1rem 1.1rem;
    position: relative;
}

.fgb-time strong {
    display: block;
    font-size: 1.15rem;
}

.fgb-time li {
    color: #1f7a45;
    font-size: .88rem;
    list-style: none;
    margin-top: .25rem;
}

.application-sections {
    gap: 1.25rem;
    grid-template-columns: 280px minmax(0, 1fr);
    margin-top: 1.25rem;
}

.application-sections__navigation,
.application-sections__content,
.application-sections__panel,
.form-wizard {
    background: #fff;
    border: 1px solid #e7eef6;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 40, 72, .04);
}

.application-sections__navigation {
    padding: .85rem;
    top: 5.5rem;
}

.application-sections__steps li:not(:last-child)::after {
    display: none;
}

.application-sections__steps button {
    align-items: flex-start;
    border-radius: 12px;
    color: var(--fgb-ink);
    min-height: 64px;
    padding: .7rem .75rem;
}

.application-sections__steps button > span:first-child {
    background: #e8eef6;
    border-radius: 50%;
    flex: 0 0 28px;
    font-weight: 800;
    height: 28px;
    width: 28px;
}

.application-sections__steps .is-current button {
    background: var(--fgb-navy-2);
    border-color: var(--fgb-navy-2);
    color: #fff;
}

.application-sections__steps .is-current button > span:first-child,
.application-sections__steps .is-complete button > span:first-child {
    background: #fff;
    color: var(--fgb-navy-2);
}

.application-sections__steps .is-current button small {
    color: rgba(255, 255, 255, .75);
}

.fgb-step-copy {
    background: none !important;
    display: grid !important;
    flex: 1 !important;
    height: auto !important;
    width: auto !important;
}

.fgb-step-copy small {
    color: #4d6074;
    font-size: .75rem;
    font-weight: 600;
}

.form-wizard .form-card {
    border: 0;
    box-shadow: none;
}

.form-wizard .form-card__header {
    display: none;
}

.application-sections__content {
    padding: 1.35rem 1.4rem 1.2rem;
}

.form-wizard {
    border: 0;
    box-shadow: none;
    padding: 0;
}

.form-wizard__header {
    align-items: flex-end;
}

.form-wizard__steps {
    gap: .65rem;
    padding: .2rem 0 1rem;
}

.form-wizard__steps li {
    flex: 0 0 auto;
}

.form-wizard__steps button {
    background: transparent;
    border: 0;
    color: var(--fgb-muted);
    display: grid;
    font-size: 0;
    gap: .35rem;
    justify-items: center;
    padding: 0;
}

.form-wizard__steps button span {
    align-items: center;
    background: #e8eef6;
    border-radius: 50%;
    color: var(--fgb-navy);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.form-wizard__steps .is-current button span {
    background: var(--fgb-blue);
    color: #fff;
}

.form-wizard__steps .is-current button::after {
    background: var(--fgb-blue);
    border-radius: 99px;
    content: "";
    height: 3px;
    width: 28px;
}

.form-wizard__panel {
    border: 1px solid var(--fgb-line);
    border-radius: 16px;
    padding: 1.1rem 1.15rem 1.2rem;
}

.application-sections__actions,
.form-wizard__actions {
    margin-top: 1rem;
}

.app-sidebar {
    background: #071425;
    padding: 1.25rem 1rem 1.5rem;
    top: 0;
    width: 260px;
}

@media (min-width: 641px) {
    .app-sidebar {
        top: 0;
        width: 260px;
    }

    .page:has(.app-sidebar) > main {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
}

.page:has(.app-sidebar) > main {
    margin-left: 260px;
    width: calc(100% - 260px);
}

.page:has(.app-sidebar) > main > .fgb-bar {
    background: #fff;
    border-bottom: 1px solid var(--fgb-line);
    margin-left: 0;
    width: auto;
}

.page:has(.app-sidebar) .fgb-account summary,
.page:has(.app-sidebar) .fgb-account__name {
    color: var(--fgb-ink);
}

.fgb-side-label {
    color: #7f93a8;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 1.1rem .75rem .35rem;
    text-transform: uppercase;
}

.app-sidebar nav a.is-active {
    background: #123154;
}

.fgb-auth {
    background: #f7f9fc;
}

.fgb-split {
    display: grid;
    grid-template-columns: minmax(320px, 42%) 1fr;
    min-height: 100vh;
}

.fgb-split__story {
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    overflow: hidden;
    padding: 2rem;
    position: relative;
}

.fgb-split__story img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.fgb-split__scrim {
    background: linear-gradient(180deg, rgba(6, 18, 36, .25), rgba(5, 16, 32, .88));
    inset: 0;
    position: absolute;
}

.fgb-split__copy,
.fgb-split__help {
    position: relative;
    z-index: 1;
}

.fgb-split__copy .fgb-kicker {
    color: #9ec0ff;
}

.fgb-split__copy h1 {
    color: #fff;
    font-size: 3rem;
    max-width: 12ch;
}

.fgb-split__copy h1 em,
.fgb-split__copy p {
    color: #d5e4f5;
}

.fgb-split__copy p {
    max-width: 36ch;
}

.fgb-split__copy ul {
    display: grid;
    gap: .9rem;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.fgb-split__copy li {
    align-items: center;
    display: flex;
    gap: .75rem;
}

.fgb-split__copy li > span:first-child {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.fgb-split__copy small,
.fgb-split__help p {
    color: #c5d4e4;
    display: block;
}

.fgb-split__help {
    background: rgba(8, 20, 38, .72);
    border-radius: 14px;
    margin-top: 2rem;
    padding: .9rem 1rem;
}

.fgb-split__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fgb-split__bar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
}

.fgb-split__bar a {
    color: var(--fgb-navy);
}

.fgb-split__bar .is-active {
    font-weight: 800;
}

.fgb-split__body {
    margin: auto;
    max-width: 920px;
    padding: 1rem 1.5rem 2.5rem;
    width: 100%;
}

.fgb-auth-card {
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--fgb-line);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(16, 40, 72, .06);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
    overflow: hidden;
}

.fgb-auth-card form,
.fgb-secure {
    padding: 1.5rem 1.4rem 1.6rem;
}

.fgb-secure {
    background: linear-gradient(180deg, #f4f8ff, #fff);
    border-left: 1px solid var(--fgb-line);
}

.fgb-secure h2 {
    font-size: 1.35rem;
    font-weight: 800;
}

.fgb-field {
    margin-bottom: .9rem;
}

.fgb-field .form-control {
    min-height: 48px;
    border-radius: 10px;
}

.fgb-rules {
    background: #f6f9fc;
    border-radius: 12px;
    display: grid;
    gap: .4rem 1.25rem;
    grid-template-columns: 1fr 1fr;
    list-style: none;
    margin: .55rem 0 0;
    padding: .8rem .9rem;
}

.fgb-rules li {
    color: #3e5164;
    font-size: .84rem;
    line-height: 1.35;
}

.fgb-secure .fgb-rules {
    background: transparent;
    grid-template-columns: 1fr;
    padding-left: 0;
}

.fgb-auth-submit {
    margin-top: .4rem;
    width: 100%;
}

.fgb-switch {
    color: var(--fgb-muted);
    margin: .9rem 0 0;
    text-align: center;
}

.home-page {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.home-page__backdrop {
    background:
        linear-gradient(90deg, rgba(7, 24, 44, .88), rgba(7, 24, 44, .35)),
        url("../images/bank-tower.png") center/cover;
}

@media (max-width: 980px) {
    .fgb-nav,
    .fgb-continue,
    .fgb-bell,
    .fgb-account {
        display: none;
    }

    .fgb-menu {
        display: block;
        margin-left: auto;
        position: relative;
    }

    .fgb-menu summary {
        border: 1px solid rgba(255, 255, 255, .3);
        border-radius: 8px;
        color: #fff;
        cursor: pointer;
        list-style: none;
        padding: .4rem .7rem;
    }

    .fgb-menu nav {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(7, 24, 44, .16);
        display: grid;
        padding: .4rem;
        position: absolute;
        right: 0;
        top: calc(100% + .4rem);
        width: 220px;
    }

    .fgb-menu nav a {
        color: var(--fgb-ink);
        padding: .55rem .7rem;
        text-decoration: none;
    }

    .fgb-split,
    .fgb-auth-card,
    .fgb-banner,
    .fgb-current__top,
    .application-sections,
    .fgb-hero {
        display: block;
    }

    .fgb-split__story {
        min-height: 280px;
    }

    .fgb-hero__photo,
    .fgb-time {
        display: none;
    }

    .page:has(.app-sidebar) > main {
        margin-left: 0;
        width: 100%;
    }

    .app-sidebar {
        position: static;
        width: auto;
    }
}
