/* ==========================================================================
   GetCash Lending Management System
   ========================================================================== */

:root {
    --navy: #12275e;
    --navy-dark: #0c1b44;
    --navy-light: #1d3a80;
    --navy-soft: #eaeefb;
    --red: #d81f33;
    --red-dark: #b3121f;
    --red-soft: #fdecee;
    --green: #178a4c;
    --green-soft: #e8f6ee;
    --amber: #b45309;
    --amber-soft: #fdf3e3;
    --ink: #1f2a44;
    --muted: #64748b;
    --line: #dde3ef;
    --bg: #f4f6fb;
    --card: #ffffff;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(18, 39, 94, 0.08);
    --shadow-lg: 0 10px 30px rgba(18, 39, 94, 0.14);
    --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--navy-light); }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { line-height: 1.05; }
.brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.brand-name .b1 { color: var(--red); }
.brand-name .b2 { color: var(--navy); }
.brand-tag { font-size: .58rem; font-weight: 700; letter-spacing: .08em; color: var(--navy); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.main-nav a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .55rem .7rem;
    border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--red); }
.main-nav a.active { color: var(--red); border-bottom-color: var(--red); }

.nav-cta {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--navy); color: #fff !important;
    padding: .6rem 1.05rem; border-radius: 8px;
    border-bottom: none !important; margin-left: .5rem;
}
.nav-cta:hover { background: var(--navy-light); color: #fff !important; }

.nav-toggle {
    display: none; margin-left: auto;
    background: none; border: 1px solid var(--line); border-radius: 8px;
    color: var(--navy); padding: .45rem .55rem; cursor: pointer;
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1rem;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { display: flex; }
    .main-nav a { border-bottom: none; padding: .7rem .5rem; }
    .nav-cta { margin-left: 0; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--navy-dark); color: #cdd6ec; margin-top: 3rem; }
.footer-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    padding: 2rem 0;
}
.footer-item { display: flex; gap: .8rem; align-items: flex-start; }
.footer-item .icon { width: 2.2rem; height: 2.2rem; color: #fff; background: rgba(255,255,255,.12); border-radius: 50%; padding: .5rem; }
.footer-item strong { color: #fff; display: block; margin-bottom: .15rem; }
.footer-item p { margin: 0; font-size: .85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1rem 0; font-size: .8rem; text-align: center; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute; right: -140px; top: 50%; transform: translateY(-50%);
    width: 480px; height: 480px; border: 46px solid rgba(216, 31, 51, .25);
    border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; padding: 4rem 0; max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); text-transform: uppercase; letter-spacing: .01em; }
.hero .rule { width: 90px; height: 4px; background: var(--red); margin: .9rem 0 1.2rem; border-radius: 2px; }
.hero p { font-size: 1.02rem; color: #dbe3f5; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.page-banner { background: var(--navy); color: #fff; border-bottom: 4px solid var(--red); }
.page-banner .container { padding: 1.5rem 1.25rem; }
.page-banner h1 { color: #fff; text-transform: uppercase; font-size: 1.5rem; margin: 0; }
.page-banner p { margin: .25rem 0 0; color: #cdd6ec; font-size: .95rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: inherit; font-weight: 700; font-size: .9rem; letter-spacing: .03em;
    padding: .7rem 1.35rem; border-radius: 8px; border: 2px solid transparent;
    cursor: pointer; text-decoration: none; text-transform: uppercase;
    transition: background .15s, color .15s, border-color .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #106b3a; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--navy-soft); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy-soft); }
.btn-outline-red { background: #fff; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red-soft); }
.btn-outline-amber { background: #fff; color: var(--amber); border-color: var(--amber); }
.btn-sm { padding: .4rem .8rem; font-size: .78rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Cards / panels
   -------------------------------------------------------------------------- */

.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.5rem;
}
.card + .card { margin-top: 1.25rem; }

.card-title {
    display: flex; align-items: center; gap: .55rem;
    color: var(--navy); font-size: 1.02rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .03em;
    margin: 0 0 1rem;
}
.card-title .icon { color: var(--red); width: 1.35rem; height: 1.35rem; }

.section-heading { text-transform: uppercase; letter-spacing: .02em; }
.underline-red { position: relative; padding-bottom: .55rem; }
.underline-red::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: var(--red); border-radius: 2px; }
.underline-red.center::after { left: 50%; transform: translateX(-50%); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .badge-icon {
    width: 3.4rem; height: 3.4rem; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.feature .badge-icon .icon { width: 1.7rem; height: 1.7rem; }
.badge-icon.navy { background: var(--navy-soft); color: var(--navy); }
.badge-icon.red { background: var(--red-soft); color: var(--red); }
.badge-icon.green { background: var(--green-soft); color: var(--green); }
.feature h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Alerts */
.alert {
    display: flex; gap: .7rem; align-items: flex-start;
    border-radius: 8px; padding: .9rem 1rem; font-size: .92rem;
    margin-bottom: 1rem; border: 1px solid transparent;
}
.alert .icon { margin-top: .1rem; }
.alert-info { background: var(--navy-soft); color: var(--navy); border-color: #c6d2f2; }
.alert-danger { background: var(--red-soft); color: var(--red-dark); border-color: #f5c2c8; }
.alert-success { background: var(--green-soft); color: var(--green); border-color: #bfe5cf; }
.alert-warning { background: var(--amber-soft); color: var(--amber); border-color: #efd9ae; }
.alert p { margin: 0; }
.alert ul { margin: .25rem 0 0; padding-left: 1.1rem; }

/* Status badges */
.badge {
    display: inline-block; padding: .28rem .65rem; border-radius: 999px;
    font-size: .72rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
}
.badge-info { background: var(--navy-soft); color: var(--navy); }
.badge-success { background: var(--green-soft); color: var(--green); }
.badge-danger { background: var(--red-soft); color: var(--red-dark); }
.badge-warning { background: var(--amber-soft); color: var(--amber); }
.badge-muted { background: #eef1f6; color: var(--muted); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.25rem; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.25rem; }
.span-2 { grid-column: span 2; }

/* Let grid children shrink below their content width so inner tables
   scroll inside .table-wrap instead of stretching the page on mobile. */
.grid-2 > *, .review-grid > *, .form-grid > *, .form-grid-3 > *, .form-grid-4 > *,
.stat-grid > *, .dl > * { min-width: 0; }
@media (max-width: 720px) {
    .form-grid, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
}

.field label {
    display: block; font-weight: 700; font-size: .84rem;
    color: var(--navy); margin-bottom: .3rem;
}
.field .req { color: var(--red); }

.input, select.input, textarea.input {
    width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
    padding: .62rem .8rem; border: 1.5px solid var(--line); border-radius: 8px;
    background: #fff; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(29,58,128,.12); }
.input.is-invalid { border-color: var(--red); }
.input[readonly] { background: #f1f4f9; color: var(--muted); }

.input-group { display: flex; }
.input-group .input-addon {
    display: flex; align-items: center; padding: 0 .8rem;
    border: 1.5px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px;
    background: #f1f4f9; color: var(--navy); font-weight: 700;
}
.input-group .input { border-radius: 0 8px 8px 0; }

.field .error { color: var(--red); font-size: .8rem; margin-top: .25rem; display: block; }
.field .hint { color: var(--muted); font-size: .8rem; margin-top: .25rem; display: block; }

.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 1.05rem; height: 1.05rem; margin-top: .18rem; accent-color: var(--navy); flex: none; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
.table th {
    background: var(--navy); color: #fff; text-align: left;
    font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
    padding: .7rem .8rem; white-space: nowrap;
}
.table td { padding: .62rem .8rem; border-top: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:nth-child(even) { background: #f8fafd; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
/* Amortization tables: spread the columns across the full width and keep
   dates on a single line. */
.amort-table { width: 100%; }
.amort-table.amort-applicant { min-width: 0; table-layout: fixed; }
.amort-table th, .amort-table td { white-space: nowrap; }
@media (max-width: 640px) {
    .amort-table.amort-applicant th { white-space: normal; }
}
.table tfoot td { font-weight: 800; background: var(--navy-soft); color: var(--navy); }

/* Definition list rows */
.dl { display: grid; grid-template-columns: minmax(140px, 40%) 1fr; gap: .35rem .9rem; font-size: .92rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Stepper (application progress)
   -------------------------------------------------------------------------- */

.stepper {
    display: flex; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem .8rem .9rem; margin-bottom: 1.5rem;
    overflow-x: auto;
}
.step { flex: 1; min-width: 96px; text-align: center; position: relative; }
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 15px; left: calc(50% + 20px);
    width: calc(100% - 40px); height: 3px; background: var(--line); border-radius: 2px;
}
.step.done:not(:last-child)::after { background: var(--navy); }
.step-dot {
    width: 32px; height: 32px; border-radius: 50%; margin: 0 auto .4rem;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 2px solid var(--line); color: var(--muted);
    font-weight: 800; font-size: .85rem; position: relative; z-index: 1;
}
.step.done .step-dot, .step.current .step-dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-label { font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.step.current .step-label { color: var(--navy); }
.step-sub { font-size: .64rem; color: var(--muted); }
.step.current .step-sub { color: var(--red); font-weight: 700; }

/* Choice cards (YES / NO) */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 720px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-card {
    display: flex; align-items: center; gap: 1rem; text-align: left;
    border: 2px solid var(--line); border-radius: var(--radius);
    padding: 1.25rem; background: #fff; cursor: pointer; font: inherit;
    transition: border-color .15s, background .15s;
}
.choice-card:hover { border-color: var(--navy); }
.choice-card.yes { background: #f4f8ff; border-color: #c6d2f2; }
.choice-card.yes:hover { border-color: var(--navy); }
.choice-card.no { background: var(--red-soft); border-color: #f5c2c8; }
.choice-card.no:hover { border-color: var(--red); }
.choice-card .choice-word { font-size: 1.3rem; font-weight: 800; }
.choice-card.yes .choice-word { color: var(--navy); }
.choice-card.no .choice-word { color: var(--red); }
.choice-card p { margin: 0; color: var(--ink); font-size: .93rem; }
.choice-card .icon-wrap {
    width: 3.4rem; height: 3.4rem; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
}
.choice-card .arrow { margin-left: auto; color: currentColor; }

/* Upload / camera boxes */
.upload-box {
    border: 2px dashed var(--line); border-radius: var(--radius);
    padding: 1.1rem; text-align: center; background: #fbfcfe;
}
.upload-box strong { display: block; color: var(--navy); text-transform: uppercase; font-size: .85rem; letter-spacing: .03em; }
.upload-box .hint { font-size: .78rem; color: var(--muted); }
.upload-box.uploaded { border-color: var(--green); background: var(--green-soft); }

.camera-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: #fbfcfe; }
.camera-stage { position: relative; background: #0c1b44; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.camera-stage video, .camera-stage img, .camera-stage canvas { width: 100%; height: 100%; object-fit: cover; }
.camera-placeholder { color: #8ea3d8; display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .85rem; }
.camera-placeholder .icon { width: 2.4rem; height: 2.4rem; }
.camera-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }

/* Camera alignment guides */
.camera-overlay {
    position: absolute; inset: 0; pointer-events: none; display: none;
}
.camera-face-guide {
    position: absolute; left: 50%; top: 8%; transform: translateX(-50%);
    width: 44%; height: 62%;
    border: 3px dashed rgba(255, 255, 255, .85);
    border-radius: 50% / 46%;
    box-shadow: 0 0 0 2000px rgba(12, 27, 68, .25);
}
.camera-id-guide {
    position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%);
    width: 52%; height: 24%;
    border: 3px dashed rgba(255, 214, 90, .95);
    border-radius: 8px;
}
.camera-id-guide::after {
    content: "HOLD YOUR ID HERE";
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    color: rgba(255, 214, 90, .95); font-size: .6rem; font-weight: 800; letter-spacing: .08em;
    white-space: nowrap;
}
.camera-hint {
    display: block; margin-top: .5rem; font-size: .8rem; font-weight: 700;
    padding: .4rem .6rem; border-radius: 6px;
}
.camera-hint-ok { background: var(--green-soft); color: var(--green); }
.camera-hint-warn { background: var(--amber-soft); color: var(--amber); }

/* Signature pad */
.signature-pad { border: 2px dashed var(--line); border-radius: 8px; background: #fff; touch-action: none; width: 100%; height: 160px; }

/* --------------------------------------------------------------------------
   Review page
   -------------------------------------------------------------------------- */

.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.review-card header { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.review-card header h3 { font-size: .86rem; text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.review-card header .badge { margin-right: auto; }
.review-card header h3 + .badge { margin-right: auto; }

/* --------------------------------------------------------------------------
   Back office layout
   -------------------------------------------------------------------------- */

.bo-shell { display: flex; min-height: 100vh; }
.bo-sidebar {
    width: 250px; flex: none; background: var(--navy-dark); color: #cdd6ec;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.bo-sidebar .brand { padding: 1.1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.bo-sidebar .brand-name { font-size: 1.2rem; }
.bo-sidebar .brand-name .b2 { color: #fff; }
.bo-sidebar .brand-tag { color: #8ea3d8; }
.bo-nav { padding: 1rem .8rem; display: flex; flex-direction: column; gap: .15rem; overflow-y: auto; }
.bo-nav .nav-section { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #7288bd; padding: .9rem .6rem .3rem; }
.bo-nav a {
    display: flex; align-items: center; gap: .65rem;
    color: #cdd6ec; text-decoration: none; font-size: .9rem; font-weight: 600;
    padding: .6rem .7rem; border-radius: 8px;
}
.bo-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.bo-nav a.active { background: var(--red); color: #fff; }
.bo-user { margin-top: auto; padding: 1rem 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.bo-user strong { color: #fff; display: block; }
.bo-user .role-chip {
    display: inline-block; margin-top: .3rem; padding: .15rem .6rem; border-radius: 999px;
    background: rgba(255,255,255,.14); color: #fff; font-size: .68rem; font-weight: 800;
    letter-spacing: .05em; text-transform: uppercase;
}

.bo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bo-topbar {
    background: #fff; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 1rem; padding: .8rem 1.5rem;
    position: sticky; top: 0; z-index: 40;
}
.bo-topbar h1 { font-size: 1.15rem; margin: 0; }
.bo-topbar form { margin-left: auto; }
.bo-content { padding: 1.5rem; }

.bo-menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); padding: .4rem .5rem; cursor: pointer; }

@media (max-width: 960px) {
    .bo-sidebar { position: fixed; z-index: 60; left: -260px; transition: left .2s; height: 100vh; }
    .bo-sidebar.open { left: 0; }
    .bo-menu-toggle { display: inline-flex; }
    .bo-backdrop { display: none; position: fixed; inset: 0; background: rgba(12,27,68,.5); z-index: 55; }
    .bo-backdrop.show { display: block; }
}

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: .9rem; box-shadow: var(--shadow);
    text-decoration: none; color: inherit; transition: border-color .15s, transform .1s;
}
a.stat-card:hover { border-color: var(--navy-light); transform: translateY(-2px); }

/* Sortable table headers */
.table th a { color: #fff; text-decoration: none; }
.table th a:hover { text-decoration: underline; }
.stat-card .icon-wrap {
    width: 2.9rem; height: 2.9rem; border-radius: 10px; flex: none;
    background: var(--navy-soft); color: var(--navy);
    display: flex; align-items: center; justify-content: center;
}
.stat-card .icon-wrap .icon { width: 1.5rem; height: 1.5rem; }
.stat-card .value { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-card .label { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* Login split screen */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .login-shell { grid-template-columns: 1fr; } }
.login-info { padding: 3rem; display: flex; flex-direction: column; justify-content: center; background: #f8fafd; }
.login-info h1 { font-size: 1.9rem; }
.login-info h1 .accent { color: var(--red); }
.login-roles { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.login-panel {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
    display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem;
}
.login-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 2.2rem; width: 100%; max-width: 420px; }
.login-card .brand-mark { width: 64px; height: 64px; margin: 0 auto .6rem; display: block; }

/* Modal */
.modal-backdrop {
    display: none; position: fixed; inset: 0; z-index: 100;
    background: rgba(12, 27, 68, .55);
    align-items: center; justify-content: center; padding: 1.25rem;
}
.modal-backdrop.show { display: flex; }
.modal {
    background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
    max-width: 460px; width: 100%; padding: 1.8rem; text-align: center;
    max-height: 90vh; overflow-y: auto;
}
.modal h3 { text-transform: uppercase; }
.modal .modal-actions { display: flex; gap: .8rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }

/* Pagination (Laravel default overridden simply) */
.pagination-simple { display: flex; gap: .4rem; margin-top: 1rem; flex-wrap: wrap; }
.pagination-simple a, .pagination-simple span {
    padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 6px;
    text-decoration: none; font-size: .85rem; color: var(--navy); background: #fff;
}
.pagination-simple .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination-simple .disabled { color: var(--muted); }

/* Justified body text (e.g. the About Us page): both edges of each
   paragraph align, with hyphenation to avoid large word gaps. */
.text-justified p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Utility */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-navy { color: var(--navy); }
.fw-bold { font-weight: 800; }
.small { font-size: .84rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.flex-gap { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* Print styles for application copy / agreement */
@media print {
    body { background: #fff; }
    .no-print { display: none !important; }
    .print-sheet { box-shadow: none !important; border: none !important; }
    .site-header, .site-footer { display: none !important; }
}
.print-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; max-width: 900px; margin: 1.5rem auto; box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ */
/* First Payment Amortization Date calendar                            */
/* Only the employer's payroll dates are clickable; every other day is */
/* drawn so the month still reads as a month, but cannot be chosen.    */
/* ------------------------------------------------------------------ */
.cal { border: 1px solid var(--line); border-radius: 10px; padding: .75rem; background: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.cal-title { font-weight: 700; color: var(--navy); }
.cal-nav {
    border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer;
    width: 28px; height: 28px; font-size: 1.1rem; line-height: 1; color: var(--navy);
}
.cal-nav:hover:not(:disabled) { border-color: var(--navy); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: .2rem 0; }
.cal-day {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 1;
    font-size: .85rem; color: #b6bcca; border: 1px solid transparent; border-radius: 6px;
    background: none; padding: 0;
}
.cal-day.is-empty { border: 0; }
.cal-day.is-open {
    color: var(--navy); font-weight: 700; cursor: pointer;
    background: #f4f8ff; border-color: #c6d2f2;
}
.cal-day.is-open:hover { border-color: var(--navy); }
.cal-day.is-chosen { background: var(--navy); border-color: var(--navy); color: #fff; }
.cal-chosen { margin: .6rem 0 0; font-size: .82rem; color: var(--ink); }
