:root {
    --navy: #102a43;
    --ink: #172b4d;
    --muted: #66788a;
    --blue: #2588e8;
    --blue-dark: #146bc1;
    --green: #1fc36b;
    --line: #dce6ef;
    --shadow: 0 18px 55px rgba(16, 42, 67, .10)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f6f9fc;
    color: var(--ink);
    font: 15px/1.6 'DM Sans', sans-serif
}

body:before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, #f8fbff, #f2f9f7)
}

h1,
h2,
h3 {
    font-family: Manrope, sans-serif;
    letter-spacing: -.03em;
    color: var(--navy);
    line-height: 1.2
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    margin: .3rem 0 .5rem
}

h2 {
    font-size: 1.25rem;
    margin: 0 0 1rem
}

h3 {
    font-size: 1rem
}

p {
    color: var(--muted)
}

a {
    color: var(--blue-dark);
    font-weight: 600;
    text-decoration: none
}

a:hover {
    color: var(--green)
}

.ambient {
    position: fixed;
    border-radius: 50%;
    filter: blur(2px);
    z-index: -1;
    pointer-events: none
}

.ambient-one {
    width: 360px;
    height: 360px;
    right: -150px;
    top: 100px;
    background: rgba(31, 195, 107, .10)
}

.ambient-two {
    width: 300px;
    height: 300px;
    left: -180px;
    bottom: 5%;
    background: rgba(37, 136, 232, .08)
}

.site-header {
    height: 78px;
    background: rgba(255, 255, 255, .91);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(220, 230, 239, .8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(1.25rem, calc((100% - 1160px)/2));
    position: sticky;
    top: 0;
    z-index: 10
}

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

.brand-logo {
    width: 143px;
    height: 58px;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 1rem
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem
}

.header-contact {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--navy)
}

.header-contact > span:last-child {
    display: grid;
    line-height: 1.1
}

.header-contact small {
    font-size: .68rem;
    font-weight: 700
}

.header-contact strong {
    font-size: .84rem
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 5px;
    background: var(--navy);
    color: #fff;
    font-size: 1rem
}

.top-nav form {
    margin: 0
}

.user-pill {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--muted);
    font-weight: 600
}

.avatar {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    font-size: .8rem
}

.nav-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--muted);
    font: 600 14px 'DM Sans';
    cursor: pointer
}

.nav-link:hover {
    color: var(--blue-dark)
}

.page-shell {
    width: min(1160px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 3.2rem 0 4rem
}

.site-footer {
    text-align: center;
    color: #8a9aaa;
    font-size: .8rem;
    padding: 1rem 0 2.2rem
}

.site-footer span {
    padding: 0 .35rem;
    color: var(--green)
}

.site-footer a { color: #66788a; font-weight: 700; }
.site-footer a:hover { color: var(--blue-dark); }

.privacy-hero { display:flex; align-items:center; justify-content:space-between; gap:2rem; padding:2.2rem 2.5rem; margin:1rem 0 1.25rem; border-radius:24px; background:linear-gradient(120deg,#102a43,#1a527e 66%,#217c70); color:#fff; box-shadow:0 18px 45px rgba(16,42,67,.18); }
.privacy-hero .eyebrow { color:#9de7bd; }
.privacy-hero h1 { color:#fff; font-size:clamp(2.2rem,5vw,3.5rem); margin:.45rem 0 .35rem; }
.privacy-hero p { color:#d7e8f3; margin:0; max-width:620px; }
.privacy-effective { display:inline-flex; align-items:center; gap:.5rem; margin-top:1.15rem; color:#c9e3d5; font-size:.82rem; font-weight:700; }
.privacy-dot { width:8px; height:8px; border-radius:50%; background:#61e39b; box-shadow:0 0 0 5px rgba(97,227,155,.16); }
.privacy-shield { display:grid; place-items:center; flex:none; width:82px; height:82px; border:1px solid rgba(255,255,255,.35); border-radius:25px; color:#b8f6d0; font:800 2.5rem Manrope; transform:rotate(8deg); background:rgba(255,255,255,.1); }
.privacy-layout { display:block; }
.privacy-document { padding:2.2rem 2.5rem; margin:0; }
.privacy-document section { scroll-margin-top:100px; padding-top:1.65rem; margin-top:1.65rem; border-top:1px solid var(--line); }
.privacy-document section:first-of-type { padding-top:0; margin-top:0; border-top:0; }
.privacy-document h2 { margin:0 0 .7rem; font:800 1.18rem/1.2 Manrope, sans-serif; letter-spacing:-.03em; color:var(--navy); }
.privacy-document p { margin:0 0 .85rem; }
.privacy-lead { font-size:1.02rem; line-height:1.75; color:#40566a; }
.privacy-document ul { margin:.65rem 0 0; padding-left:1.25rem; color:var(--muted); }
.privacy-document li { padding:.25rem 0 .25rem .2rem; }
.privacy-contact { padding:1.4rem !important; border:1px solid #bdebd1 !important; border-radius:14px; background:#f4fcf7; }
.privacy-contact p { margin-bottom:.55rem; }
.privacy-email { display:block; width:max-content; padding:0; margin-top:.1rem; border:0; border-radius:0; background:transparent; color:var(--blue-dark); font:700 .98rem/1.5 'DM Sans', sans-serif; }

.public-shell { max-width: 860px; margin: 1rem auto 0; }
.public-intro { text-align: center; max-width: 700px; margin: 0 auto 2rem; }
.public-intro h1 { font-size: clamp(2.2rem, 5vw, 3.35rem); margin: .45rem 0 .7rem; }
.public-intro p { max-width: 650px; margin: 0 auto 1rem; font-size: 1.02rem; }
.public-form-card { max-width: 820px; margin: 0 auto; padding: 2rem 2.4rem; }
.public-footnote { margin: 1.2rem 0 0; text-align: center; color: #8393a3; font-size: .78rem; }
.public-success { text-align: center; margin: 4rem auto; }
.public-success .empty-icon { color: var(--green); }
.public-success .button { margin-top: .8rem; }

@media(max-width:700px) {
    .privacy-hero { padding:1.7rem 1.35rem; border-radius:18px; }
    .privacy-shield { width:58px; height:58px; border-radius:18px; font-size:1.8rem; }
    .privacy-document { padding:1.25rem; }
    .public-form-card { padding: 1.25rem; }
    .public-intro { margin-bottom: 1.4rem; }
}

.flash {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.4rem;
    border: 1px solid
}

.flash-success {
    color: #126b46;
    background: #effbf5;
    border-color: #bdebd1
}

.card {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(220, 230, 239, .85);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1.6rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.leaderlist div {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}


.eyebrow {
    color: var(--blue-dark);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.page-heading p {
    margin: .3rem 0 0
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    background: linear-gradient(135deg, var(--blue), #1672cf);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: .78rem 1.15rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 136, 232, .22);
    transition: .2s
}

.button:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(37, 136, 232, .3)
}

.button-secondary {
    background: #eaf2f8;
    color: var(--navy);
    box-shadow: none
}

.button-secondary:hover {
    color: var(--navy);
    background: #dfeaf2
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem
}

.stat {
    padding: 1.15rem 1.3rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px
}

.stat-label {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 700
}

.stat-value {
    font: 800 1.7rem Manrope;
    color: var(--navy);
    display: block;
    margin-top: .25rem
}

.stat-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    margin-right: .4rem
}

.toolbar {
    display: flex;
    gap: .7rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem
}

.toolbar input,
.toolbar select {
    max-width: 260px
}

.table-wrap {
    overflow-x: auto
}

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

th {
    text-align: left;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8393a3;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--line)
}

td {
    padding: 1rem;
    border-bottom: 1px solid #edf1f5;
    color: var(--muted)
}

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

td strong {
    color: var(--navy)
}

.status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    background: #edf3f8;
    color: #587087
}

.status:before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%
}

.status-submitted {
    background: #eafaf2;
    color: #12804d
}

.status-expired {
    background: #fff1f0;
    color: #bd3e38
}

.status-pending {
    background: #fff8e7;
    color: #a36b00
}

label {
    display: block;
    font-weight: 700;
    color: var(--navy);
    font-size: .88rem;
    margin: 1rem 0 .35rem
}

input,
select,
textarea {
    width: 100%;
    padding: .78rem .9rem;
    border: 1px solid #cad7e2;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    outline: 0;
    transition: .2s
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 136, 232, .12)
}

.errorlist {
    list-style: none;
    margin: .25rem 0;
    color: #b42318;
    padding: 0;
    font-size: .83rem
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.2rem
}

.form-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-top: 1.5rem
}

.section-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--navy);
    font-weight: 800;
    margin: 1.8rem 0 .4rem
}

.section-label:after {
    content: '';
    height: 1px;
    background: var(--line);
    flex: 1
}

.consent-row {
    display: flex;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
    margin: .7rem 0
}

.consent-row input {
    width: 19px;
    height: 19px;
    flex: none;
    margin-top: .2rem;
    accent-color: var(--blue)
}

.consent-row label {
    margin: 0;
    font-weight: 500;
    line-height: 1.5
}

.empty {
    text-align: center;
    padding: 3rem 1rem
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: .5rem
}

.auth-card {
    max-width: 450px;
    margin: 3rem auto
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem
}

.auth-brand img {
    width: 190px;
    height: 100px;
    object-fit: contain;
    mix-blend-mode: multiply
}

.auth-card h1 {
    text-align: center
}

.auth-card>p {
    text-align: center
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem
}

.detail-item {
    padding: .8rem 0;
    border-bottom: 1px solid #edf1f5
}

.detail-item small {
    display: block;
    color: #8a9aaa;
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase
}

.detail-item strong {
    color: var(--navy)
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem
}

.customer-shell {
    max-width: 1060px;
    margin: 0 auto
}

.customer-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .84fr); gap: 1.35rem; align-items: start }
.customer-form-card { margin: 0; border: 2px solid #303c8d; box-shadow: 0 14px 35px rgba(48, 60, 141, .12) }
.benefit-panel { padding: 1rem; border: 2px solid #3a9b5c; border-radius: 20px; background: rgba(255,255,255,.8) }
.benefit-heading { padding: .25rem .35rem .9rem }
.benefit-heading span { color: #25884f; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase }
.benefit-heading h2 { margin: .25rem 0 .35rem; font-size: 1.45rem }
.benefit-heading p { margin: 0; font-size: .88rem }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem }
.benefit-grid figure { position: relative; aspect-ratio: 1.15 / 1; overflow: hidden; margin: 0; border-radius: 10px; background: #dfe8f1 }
.benefit-grid img { width: 100%; height: 100%; display: block; object-fit: cover }
.benefit-grid figure:after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(9, 24, 48, .72)) }
.benefit-grid figcaption { position: absolute; z-index: 1; right: .7rem; bottom: .55rem; left: .7rem; color: #fff; font: 800 1rem Manrope, sans-serif }
.photo-note { margin: .65rem .25rem 0; color: #8090a0; font-size: .7rem }
.customer-footnote { text-align: center; font-size: .8rem }

.customer-intro {
    text-align: center;
    margin-bottom: 2rem
}

.customer-intro .brand-logo {
    width: 175px;
    height: 75px
}

.secure-note {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #16744b;
    background: #effbf5;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700
}

@media(max-width:700px) {
    .page-shell {
        width: min(100% - 1.3rem, 1160px);
        padding-top: 2rem
    }

    .site-header {
        padding: 0 .8rem
    }

    .header-actions { gap: .55rem }
    .header-contact { gap: .35rem }
    .header-contact strong { font-size: .7rem }
    .header-contact small { font-size: .58rem }
    .header-contact .contact-icon { width: 27px; height: 27px; font-size: .85rem }

    .brand-logo {
        width: 125px
    }

    .user-pill {
        display: none
    }

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

    .stats {
        grid-template-columns: 1fr
    }

    .form-grid,
    .split,
    .detail-grid {
        grid-template-columns: 1fr
    }

    .customer-content { grid-template-columns: 1fr }
    .benefit-panel { order: 2 }

    .card {
        padding: 1.2rem;
        border-radius: 16px
    }

    th,
    td {
        padding: .75rem .55rem
    }

    .table-wrap {
        margin: 0 -.6rem
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch
    }

    .button {
        width: 100%
    }
}

.provider-combobox { position: relative; }
.provider-combobox > input { width: 100%; }
.provider-menu { display: none; position: absolute; z-index: 30; top: calc(100% + .35rem); right: 0; left: 0; max-height: 230px; overflow-y: auto; padding: .35rem; border: 1px solid #d5e2ed; border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 14px 32px rgba(16,42,67,.16); }
.provider-menu.is-open { display: block; }
.provider-option { display: block; width: 100%; padding: .6rem .75rem; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; font: 500 .9rem 'DM Sans', sans-serif; cursor: pointer; }
.provider-option:hover, .provider-option.is-active { background: #eaf5ff; color: var(--blue-dark); }
.page-actions { display:flex; gap:.75rem; align-items:center; flex-wrap:wrap; }
.export-note { color:#65788a; font-size:.82rem; margin:-.5rem 0 1rem; }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.export-status { position:fixed; inset:0; z-index:20; display:grid; place-items:center; background:rgba(16,42,67,.35); backdrop-filter:blur(3px); }
.export-status[hidden] { display:none; }
.export-status-card { display:grid; gap:.45rem; min-width:260px; padding:2rem; border-radius:18px; background:#fff; box-shadow:0 18px 50px rgba(16,42,67,.25); text-align:center; color:#102a43; }
.export-page { min-height:55vh; display:grid; place-items:center; }
.export-status-card span { color:#65788a; font-size:.85rem; }
.spinner { width:28px; height:28px; margin:0 auto .35rem; border:3px solid #d9e5ef; border-top-color:#2588e8; border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
