* {
    box-sizing: border-box;
}

:root {
    --citi-blue: #004486;
    --citi-red: #EE1620;
    --navy: var(--citi-blue);
    --navy-dark: var(--citi-blue);
    --blue: var(--citi-blue);
    --blue-dark: var(--citi-blue);
    --ink: var(--citi-blue);
    --muted: #68737c;
    --line: #dce3e8;
    --bg: #f4f7f9;
    --white: #ffffff;
    --success: #0c7a4d;
    --danger: var(--citi-red);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

.hero {
    display: flex;
    align-items: center;
}

.hero.white-header {
    min-height: 300px;
    background: #ffffff;
    color: var(--citi-blue);
}

.hero.compact {
    min-height: 190px;
    color: #ffffff;
    background: var(--citi-blue);
}

.hero-inner,
.top-nav {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 34px 0 38px;
}

.brand-logo {
    width: 180px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.brand-text {
    text-align: left;
    color: var(--citi-blue);
}

.hero-label {
    margin: 0 0 8px;
    color: var(--citi-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.white-header h1 {
    margin: 0;
    color: var(--citi-blue);
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 300;
    line-height: 1.12;
}

.hero-description {
    max-width: 600px;
    margin: 12px 0 0;
    color: var(--citi-blue);
    font-size: 16px;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: .18em;
    font-weight: 700;
    opacity: .78;
}

.eyebrow.dark {
    color: var(--citi-red);
    opacity: 1;
}

h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 300;
    line-height: 1.12;
}

h2,
h3 {
    margin-top: 0;
}

.top-nav {
    display: flex;
    gap: 8px;
    padding: 16px 0;
}

.top-nav:empty {
    padding: 0;
}

.top-nav a {
    padding: 10px 14px;
    border-radius: 5px;
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 700;
}

.top-nav a.active {
    background: var(--citi-red);
    color: white;
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 10px auto 60px;
}

.records-shell {
    margin-top: 10px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(23, 38, 49, .1);
}

.form-card,
.table-card {
    padding: clamp(24px, 5vw, 52px);
}

.section-heading {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.payment-heading {
    margin-top: 42px;
}

.section-heading h2,
.table-heading h2 {
    margin-bottom: 4px;
    font-size: 28px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.step {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--citi-red);
    color: white;
    font-weight: 700;
}

.grid {
    display: grid;
    gap: 22px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #b8c3ca;
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.field input:focus {
    outline: none;
    border-color: var(--citi-red);
    box-shadow: 0 0 0 3px rgba(238, 22, 32, .14);
}

.field input.invalid {
    border-color: var(--danger);
}

.error-text {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    color: var(--danger);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 30px;
}

.primary-btn,
.secondary-btn,
.link-btn {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.primary-btn {
    min-width: 230px;
    padding: 15px 22px;
    border-radius: 4px;
    background: var(--citi-blue);
    color: white;
    font-weight: 700;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .18);
}

.primary-btn:hover {
    background: var(--citi-red);
}

.anchor-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.secondary-btn {
    padding: 12px 16px;
    border-radius: 5px;
    background: #e5f4fb;
    color: var(--blue-dark);
    font-weight: 700;
}

.link-btn {
    background: transparent;
    color: var(--blue-dark);
    font-weight: 700;
}

.alert {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 6px;
}

.alert.success {
    color: #075d3a;
    background: #e9f8f1;
}

.alert.error {
    color: #8f1d14;
    background: #fff0ef;
}

.table-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.count {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef4f7;
    color: #4b5d68;
    font-size: 13px;
    white-space: nowrap;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    background: #f6f9fb;
    color: #4f5d67;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fbfdfe;
}

.status-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef4f7;
    color: #41535f;
    font-size: 12px;
    font-weight: 700;
}

.empty {
    padding: 32px;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 720px) {
    .hero.white-header {
        min-height: auto;
    }

    .header-content {
        gap: 15px;
        padding: 24px 0 28px;
    }

    .brand-logo {
        width: 150px;
    }

    .white-header h1 {
        font-size: 38px;
    }

    .grid.two {
        grid-template-columns: 1fr;
    }

    .table-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .primary-btn {
        width: 100%;
    }

    .top-nav {
        width: calc(100% - 32px);
    }
}
