:root {
    --ink: #102033;
    --muted: #5f6f82;
    --line: #dfe6ee;
    --paper: #ffffff;
    --soft: #f4f7fb;
    --navy: #0f2e52;
    --navy-2: #143b68;
    --orange: #ff8a1d;
    --orange-2: #ff6433;
    --teal: #12a594;
    --green: #5dbb63;
    --shadow: 0 18px 50px rgba(15, 46, 82, .12);
    --radius: 8px;
    --container: min(1180px, calc(100% - 40px));
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    font-size: 16px;
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 50;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(223, 230, 238, .86);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
}

.nav-shell {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
}

.brand img {
    width: 154px;
    height: auto;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav a,
.language-switch a {
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    padding: 9px 11px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.language-switch a:hover,
.language-switch a.active {
    background: #eef4f9;
    color: var(--navy);
}

.header-actions,
.language-switch {
    display: flex;
    align-items: center;
}

.header-actions {
    gap: 10px;
    justify-content: flex-end;
}

.language-switch {
    gap: 2px;
    white-space: nowrap;
}

.language-switch a {
    font-size: 12px;
    padding: 7px 8px;
}

.header-notifications {
    position: relative;
}

.header-notifications summary {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    list-style: none;
    padding: 8px 10px;
}

.header-notifications summary::-webkit-details-marker {
    display: none;
}

.header-notifications b {
    min-width: 20px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}

.notification-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    width: min(330px, 86vw);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
    padding: 10px;
}

.notification-menu a,
.notification-menu p {
    border-radius: var(--radius);
    margin: 0;
    padding: 10px;
}

.notification-menu a {
    color: var(--navy);
    display: grid;
    gap: 3px;
}

.notification-menu a:hover {
    background: #eef4f9;
}

.notification-menu span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 11px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--navy);
}

.hero {
    position: relative;
    min-height: min(780px, 82vh);
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media {
    background-image: url("../img/logistics-hero.webp");
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(8, 25, 44, .94) 0%, rgba(8, 25, 44, .78) 42%, rgba(8, 25, 44, .18) 100%),
        linear-gradient(0deg, rgba(8, 25, 44, .42), rgba(8, 25, 44, .05));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: end;
    padding-block: 92px 54px;
}

.hero-copy {
    max-width: 760px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 20px;
    background: currentColor;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1 {
    margin: 0;
    font-size: clamp(38px, 5.4vw, 64px);
    line-height: 1.04;
    max-width: 820px;
    hyphens: auto;
}

h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.12;
}

h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
}

.hero-copy p,
.page-hero p,
.section-heading p {
    max-width: 720px;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 800;
    padding: 12px 18px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #fff;
    box-shadow: 0 16px 30px rgba(255, 112, 34, .28);
}

.btn-secondary {
    background: #e9fbf7;
    color: #087b70;
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.btn-light {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
}

.btn-small {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 14px;
}

.full-width {
    width: 100%;
}

.hero-search {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    padding: 12px 13px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(18, 165, 148, .12);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #d63b2f;
    background: #fff7f6;
    box-shadow: 0 0 0 4px rgba(214, 59, 47, .12);
}

input[type="checkbox"][aria-invalid="true"] {
    outline: 3px solid rgba(214, 59, 47, .32);
    outline-offset: 3px;
}

.stats-strip {
    position: relative;
    z-index: 3;
    margin-top: -34px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-card {
    min-height: 116px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    color: var(--navy);
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1;
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.section {
    padding-block: 86px;
}

.section.soft,
.soft {
    background: var(--soft);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.section-heading.centered {
    display: grid;
    justify-items: center;
    text-align: center;
}

.section-heading .eyebrow,
.page-hero .eyebrow,
.rich-copy .eyebrow,
.compliance-grid .eyebrow,
.pricing-grid .eyebrow {
    color: var(--teal);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.link-arrow::after {
    content: "->";
    color: var(--orange);
}

.job-grid,
.feature-grid,
.testimonial-grid,
.service-grid,
.blog-grid,
.dashboard-cards,
.detail-grid {
    display: grid;
    gap: 18px;
}

.job-grid.compact {
    grid-template-columns: repeat(3, 1fr);
}

.job-grid.list {
    grid-template-columns: 1fr;
}

.job-card,
.feature-card,
.testimonial-card,
.service-card,
.blog-card,
.detail-card,
.team-card,
.form-card,
.form-aside,
.contact-panel,
.apply-panel,
.table-card,
.timeline-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 32, 51, .08);
}

.job-card {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.job-card[hidden],
.job-card.is-filtered-out {
    display: none !important;
}

.job-card h2,
.job-card h3 {
    font-size: 23px;
}

.job-card p,
.feature-card p,
.testimonial-card p,
.service-card p,
.blog-card p,
.detail-card p,
.team-card p,
.rich-copy p,
.form-aside p,
.contact-panel p,
.apply-panel p {
    color: var(--muted);
}

.job-card-points {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.job-card-top,
.job-meta,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.job-card-top {
    justify-content: space-between;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff1e5;
    color: #a94605;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
}

.badge-ok {
    background: #e7f7ef;
    color: #126b3f;
}

.badge-warning {
    background: #fff1e5;
    color: #a94605;
}

.job-meta span {
    border-radius: 999px;
    background: #eef4f9;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    padding: 7px 10px;
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.feature-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.service-card,
.blog-card,
.detail-card,
.team-card {
    padding: 24px;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: #e9fbf7;
    color: #087b70;
    font-size: 13px;
    font-weight: 900;
}

.employer-band {
    padding-block: 0;
}

.employer-band-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(15, 46, 82, .96), rgba(21, 83, 102, .94)),
        var(--navy);
    color: #fff;
    padding: clamp(28px, 5vw, 52px);
}

.employer-band p {
    max-width: 680px;
    color: rgba(255, 255, 255, .78);
}

.testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
    padding: 24px;
}

.testimonial-card p {
    font-size: 18px;
}

.logo-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.logo-row span {
    min-height: 74px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--navy);
    text-align: center;
    font-weight: 900;
    padding: 12px;
}

.page-hero {
    padding-block: 92px;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 138, 29, .22), transparent 28%),
        linear-gradient(135deg, var(--navy), #155366);
    color: #fff;
}

.compact-hero {
    padding-block: 54px;
}

.compact-hero h1 {
    font-size: 34px;
    line-height: 1.14;
}

.compact-hero p {
    max-width: 760px;
    font-size: 16px;
    line-height: 1.55;
}

.page-hero h1 {
    max-width: 900px;
}

.page-hero p {
    color: rgba(255, 255, 255, .78);
}

.split-hero,
.job-detail-head,
.content-grid,
.compliance-grid,
.pricing-grid,
.contact-layout,
.form-layout,
.jobs-layout,
.dashboard-grid {
    display: grid;
    gap: 28px;
}

.split-hero,
.job-detail-head,
.content-grid,
.compliance-grid,
.pricing-grid,
.contact-layout,
.form-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
}

.form-layout.reversed {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.application-layout {
    display: grid;
    gap: 22px;
    max-width: 980px;
}

.application-layout .form-card,
.application-layout .form-aside {
    width: 100%;
}

.application-success-section {
    min-height: 48vh;
    display: grid;
    align-items: center;
}

.application-success-card {
    display: grid;
    justify-items: start;
    gap: 14px;
    max-width: 720px;
    border: 1px solid #bfead2;
    border-radius: var(--radius);
    background: #f1fbf5;
    padding: 34px;
    box-shadow: var(--shadow);
}

.application-success-card h2 {
    color: #17613a;
}

.application-success-card p {
    margin: 0;
    color: var(--ink);
}

.jobs-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
}

.filters-panel {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow);
}

.filters-panel h2 {
    font-size: 24px;
}

.results-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--muted);
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.apply-panel {
    padding: 24px;
    color: var(--ink);
}

.hero-meta span {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

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

.check-list {
    display: grid;
    gap: 11px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--green));
}

.rich-copy,
.callout {
    padding: 28px;
}

.callout {
    border-radius: var(--radius);
    background: #e9fbf7;
}

.avatar-mark {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 900;
}

.compliance-list,
.price-list,
.info-list,
.mini-process {
    display: grid;
    gap: 10px;
}

.compliance-list span,
.price-list div,
.info-list span,
.mini-process span {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 14px 16px;
    font-weight: 800;
}

.service-grid {
    grid-template-columns: repeat(4, 1fr);
}

.price-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.metric-stack {
    display: grid;
    gap: 12px;
}

.metric-stack div,
.dashboard-preview,
.support-card,
.review-box,
.confirmation-card {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .12);
    padding: 18px;
}

.metric-stack strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.form-card,
.form-aside,
.contact-panel {
    padding: 24px;
}

.form-card h2,
.form-aside h2,
.contact-panel h2,
.detail-card h2,
.table-card h2,
.timeline-card h2 {
    font-size: 22px;
    line-height: 1.2;
}

.form-card h3,
.admin-form h3 {
    font-size: 18px;
    line-height: 1.25;
}

.detail-card p,
.form-aside p,
.table-card p,
.timeline-card p {
    font-size: 15px;
    line-height: 1.55;
}

.application-steps-card {
    display: grid;
    gap: 18px;
}

.application-steps-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.application-steps-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.application-stage-meter {
    --progress: 25%;
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(var(--teal) var(--progress), #e6edf5 0);
    color: var(--navy);
    font-size: 14px;
    font-weight: 900;
}

.application-stage-meter::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    background: #fff;
}

.application-stage-meter span {
    position: relative;
    z-index: 1;
}

.application-stage-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.application-stage-list li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 94px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 14px 10px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.step-index {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf3f8;
    color: var(--muted);
}

.step-label {
    line-height: 1.25;
}

.application-stage-list li.is-complete {
    border-color: #bfead2;
    background: #f1fbf5;
    color: #17613a;
}

.application-stage-list li.is-complete .step-index {
    background: var(--green);
    color: #fff;
}

.application-stage-list li.is-active {
    border-color: rgba(18, 165, 148, .48);
    background: #effbf9;
    color: var(--navy);
    box-shadow: 0 12px 30px rgba(18, 165, 148, .14);
}

.application-stage-list li.is-active .step-index {
    background: var(--teal);
    color: #fff;
}

.application-stage-list li.is-active .step-index::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 2px solid rgba(18, 165, 148, .32);
    border-radius: inherit;
    animation: stepRadar 1.4s ease-out infinite;
}

@keyframes stepRadar {
    0% {
        opacity: .9;
        transform: scale(.82);
    }

    100% {
        opacity: 0;
        transform: scale(1.28);
    }
}

.confirmation-card {
    margin-bottom: 18px;
    border-color: #bfead2;
    background: #eefaf3;
    color: #17613a;
}

.application-preview {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.application-preview div,
.record-list div,
.upload-list li {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 10px 12px;
}

.application-preview div {
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
}

.application-preview span,
.record-list dt,
.text-muted {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.application-preview strong,
.record-list dd {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.record-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.upload-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.pending-upload-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(41, 151, 100, 0.28);
    border-radius: 8px;
    background: rgba(41, 151, 100, 0.08);
    font-size: 0.92rem;
}

.pending-upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff;
    color: var(--navy);
}

.pending-upload-item small {
    color: var(--muted);
    overflow-wrap: anywhere;
    text-align: right;
}

.hr-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.payslip-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.payslip-sheet {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px;
}

.payslip-header,
.payslip-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.payslip-header {
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.payslip-status {
    text-align: right;
}

.payslip-grid {
    margin-bottom: 22px;
}

.payslip-grid section {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #f8fafc;
}

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

.payslip-table th,
.payslip-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.payslip-table tfoot th {
    font-size: 1.08rem;
}

.print-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.print-only {
    display: none;
}

.upload-preview-list {
    display: grid;
    gap: 18px;
}

.upload-preview-page {
    display: grid;
    gap: 12px;
    min-height: 960px;
    break-before: page;
}

.upload-preview-page header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.upload-preview-page h3 {
    color: var(--navy);
}

.upload-preview-page p {
    margin: 0;
}

.upload-document-image,
.upload-document-frame {
    width: 100%;
    height: 900px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.upload-document-image {
    object-fit: contain;
}

.pdf-preview-frame {
    min-height: 76vh;
}

.lazy-preview-shell {
    position: relative;
    min-height: min(900px, 76vh);
}

.lazy-preview-shell .pdf-preview-frame {
    min-height: min(900px, 76vh);
}

.lazy-preview-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow);
}

.lazy-preview-shell.is-loaded .lazy-preview-button {
    display: none;
}

.upload-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.empty-copy {
    color: var(--muted);
    margin: 0;
}

.auth-layout {
    display: grid;
    justify-items: center;
}

.auth-card {
    width: min(100%, 460px);
}

.field-grid,
.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stacked-form,
.multi-step-form {
    display: grid;
    gap: 18px;
}

.form-step {
    display: none;
    gap: 18px;
}

.form-step.active {
    display: grid;
}

.progress-shell {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.progress-track {
    flex: 1;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef4f9;
}

.progress-track span {
    display: block;
    width: 25%;
    height: 100%;
    background: linear-gradient(135deg, var(--teal), var(--green));
    transition: width .25s ease;
}

.progress-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.checkbox-label {
    grid-template-columns: auto 1fr;
    align-items: start;
}

.checkbox-label input {
    width: auto;
    margin-top: 6px;
}

.alert {
    margin-bottom: 18px;
    border-radius: var(--radius);
    padding: 14px 16px;
    font-weight: 800;
}

.alert.success {
    background: #e8f8ee;
    color: #17613a;
}

.alert.error {
    background: #fff0ed;
    color: #a23b2a;
}

.form-note {
    color: var(--muted);
    font-size: 14px;
}

.contact-panel {
    display: grid;
    gap: 16px;
}

.contact-panel > a:not(.btn) {
    color: var(--navy);
    font-weight: 900;
}

.contact-card-image {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.map-frame {
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #eef4f9;
}

.map-frame iframe {
    width: 100%;
    height: 280px;
    border: 0;
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 900px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 18px 20px;
}

.faq-item summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 900;
}

.faq-item p {
    color: var(--muted);
}

.blog-grid {
    grid-template-columns: repeat(3, 1fr);
}

.city-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.city-grid h2 {
    width: 100%;
}

.city-grid a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--navy);
    font-weight: 900;
    padding: 13px 16px;
}

.dashboard-section {
    background: #eef4f9;
}

.dashboard-grid {
    grid-template-columns: 250px minmax(0, 1fr);
}

.dashboard-side {
    display: grid;
    align-content: start;
    gap: 8px;
    border-radius: var(--radius);
    background: var(--navy);
    color: #fff;
    padding: 18px;
}

.dashboard-side strong {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.25;
}

.dashboard-side a {
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .74);
    font-size: 15px;
    font-weight: 700;
    padding: 10px 12px;
}

.dashboard-side a.active,
.dashboard-side a:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.dashboard-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.dashboard-cards {
    grid-template-columns: repeat(4, 1fr);
}

.dashboard-cards article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 18px;
}

.dashboard-cards span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.dashboard-cards strong {
    display: block;
    margin-block: 8px;
    color: var(--navy);
    font-size: 24px;
    line-height: 1.15;
}

.timeline-card,
.table-card {
    padding: 22px;
    overflow-x: auto;
    min-width: 0;
    max-width: 100%;
}

.company-email-card {
    display: grid;
    gap: 18px;
    overflow-x: hidden;
}

.company-email-card > * {
    min-width: 0;
    max-width: 100%;
}

.company-email-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fbfd;
    padding: 18px;
    min-width: 0;
    max-width: 100%;
}

.company-email-panel > div {
    min-width: 0;
}

.company-email-panel h2 {
    margin: 6px 0 8px;
}

.company-email-panel p {
    max-width: 760px;
    overflow-wrap: anywhere;
}

.company-email-panel .btn {
    min-width: 0;
    white-space: normal;
}

.admin-tool-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0;
}

.admin-tool-strip form {
    margin: 0;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.system-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fbfd;
    padding: 16px;
    min-width: 0;
}

.metric-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.metric-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.metric-list dt,
.metric-list dd {
    margin: 0;
}

.metric-list dt {
    color: var(--muted);
    font-weight: 700;
}

.metric-list dd {
    color: var(--navy);
    font-weight: 900;
}

.application-status-form {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.application-status-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.application-status-form textarea {
    min-height: 68px;
}

.application-list-card {
    overflow: hidden;
}

.staff-request-list-card {
    overflow-x: visible;
}

.application-record-list,
.request-record-list {
    display: grid;
    gap: 14px;
}

.application-record,
.request-record {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 14px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.application-summary-grid,
.request-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(108px, .75fr) minmax(116px, .75fr) minmax(110px, max-content);
    gap: 12px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.application-summary-grid div,
.request-summary-grid div {
    min-width: 0;
    max-width: 100%;
}

.application-summary-grid span,
.request-summary-grid span,
.staff-request-action-form label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.application-summary-grid strong,
.request-summary-grid strong {
    display: block;
    margin-top: 3px;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.application-summary-grid small,
.request-summary-grid small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.application-record-actions,
.request-record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: 0;
}

.application-record-actions form,
.request-record-actions form {
    margin: 0;
    min-width: 0;
}

.application-record-actions .btn,
.request-record-actions .btn {
    max-width: 100%;
    white-space: nowrap;
}

.applications-table,
.dashboard-job-table {
    min-width: 0;
    table-layout: fixed;
}

.applications-table th,
.applications-table td {
    padding: 8px;
    font-size: 12.5px;
    line-height: 1.3;
    vertical-align: top;
    word-break: break-word;
}

.applications-table th:nth-child(1) {
    width: 18%;
}

.applications-table th:nth-child(2) {
    width: 14%;
}

.applications-table th:nth-child(3),
.applications-table th:nth-child(4) {
    width: 10%;
}

.applications-table th:nth-child(5) {
    width: 37%;
}

.applications-table th:nth-child(6) {
    width: 11%;
}

.application-decision-grid {
    grid-template-columns: minmax(112px, 1fr) 140px minmax(120px, 1fr) auto;
    align-items: end;
    gap: 6px;
    min-width: 0;
}

.application-record .application-decision-grid {
    grid-template-columns: minmax(0, .9fr) minmax(150px, .75fr) minmax(0, 1.4fr) minmax(112px, max-content);
    border-top: 1px solid var(--line);
    padding-top: 12px;
    min-width: 0;
    max-width: 100%;
}

.application-record .application-decision-grid > * {
    min-width: 0;
    max-width: 100%;
}

.staff-request-action-form {
    display: grid;
    grid-template-columns: minmax(180px, .9fr) minmax(280px, 1.6fr) auto;
    gap: 10px;
    align-items: end;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.staff-request-action-form label {
    display: grid;
    gap: 5px;
}

.staff-request-action-form textarea {
    min-height: 42px;
    resize: vertical;
}

.application-decision-grid label {
    font-size: 11px;
}

.application-decision-grid textarea {
    min-height: 40px;
    resize: vertical;
}

.application-row-actions {
    align-items: stretch;
}

.application-row-actions .btn {
    width: 100%;
}

.timeline {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    border-left: 4px solid var(--line);
    padding: 10px 0 10px 16px;
    font-weight: 800;
}

.timeline li.done {
    border-color: var(--green);
}

.timeline li.active {
    border-color: var(--orange);
}

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

.admin-form {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.admin-form h3 {
    color: var(--navy);
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.inline-actions form {
    margin: 0;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    font-size: 15px;
    line-height: 1.4;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.site-footer {
    background: #0b213a;
    color: #dce7f1;
    padding-block: 58px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 30px;
}

.site-footer h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 16px;
}

.site-footer p,
.footer-bottom {
    color: #aebdca;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #dce7f1;
    font-weight: 700;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius);
    background: #fff;
    padding: 6px;
}

.footer-logo img {
    width: 170px;
    height: auto;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.trust-row span {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 38px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 20px;
    font-size: 14px;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #083b1f;
    box-shadow: 0 14px 34px rgba(17, 94, 49, .28);
    font-weight: 900;
}

[data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .nav-shell {
        grid-template-columns: auto auto 1fr;
    }

    .nav-toggle {
        display: block;
        order: 2;
    }

    .main-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 76px;
        display: none;
        justify-content: start;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        padding: 12px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: grid;
    }

    .language-switch {
        justify-content: end;
    }

    .hero-content,
    .split-hero,
    .job-detail-head,
    .content-grid,
    .compliance-grid,
    .pricing-grid,
    .contact-layout,
    .form-layout,
    .form-layout.reversed,
    .jobs-layout {
        grid-template-columns: 1fr;
    }

    .hero-search,
    .filters-panel {
        position: static;
    }

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

    .stats-grid,
    .feature-grid,
    .feature-grid.four,
    .service-grid,
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .job-grid.compact,
    .testimonial-grid,
    .blog-grid,
    .logo-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .application-decision-grid {
        grid-template-columns: 1fr 1fr;
    }

    .application-summary-grid,
    .request-summary-grid,
    .application-record .application-decision-grid,
    .staff-request-action-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .application-record-actions,
    .request-record-actions,
    .application-record .application-decision-grid .btn,
    .staff-request-action-form .btn {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    :root {
        --container: min(100% - 28px, 1180px);
    }

    .nav-shell {
        min-height: 68px;
        gap: 10px;
    }

    .brand img {
        width: 126px;
    }

    .language-switch {
        grid-column: auto;
        justify-content: center;
        padding-bottom: 0;
    }

    .nav-toggle {
        justify-self: end;
    }

    .main-nav {
        top: 68px;
    }

    .header-actions {
        gap: 4px;
    }

    .header-notifications summary span {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding-block: 70px 36px;
    }

    h1 {
        font-size: 34px;
        overflow-wrap: anywhere;
    }

    h2 {
        font-size: 24px;
    }

    .compact-hero h1 {
        font-size: 30px;
    }

    .section {
        padding-block: 58px;
    }

    .stats-strip {
        margin-top: 0;
        background: var(--soft);
        padding-block: 16px;
    }

    .stats-grid,
    .feature-grid,
    .feature-grid.four,
    .feature-grid.three,
    .job-grid.compact,
    .testimonial-grid,
    .blog-grid,
    .logo-row,
    .detail-grid,
    .field-grid,
    .upload-grid,
    .service-grid,
    .dashboard-grid,
    .dashboard-cards,
    .system-grid,
    .print-grid,
    .hr-two-column,
    .payslip-header,
    .payslip-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .employer-band-inner,
    .results-bar,
    .footer-bottom {
        display: grid;
        justify-items: start;
    }

    .employer-band-inner {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .card-actions,
    .form-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-content,
    .hero-copy,
    .hero-copy p,
    .hero-search,
    .eyebrow {
        max-width: 100%;
        min-width: 0;
    }

    .price-list div {
        display: grid;
    }

    .application-steps-head {
        display: grid;
    }

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

    .application-preview div,
    .record-list div,
    .upload-list li {
        grid-template-columns: 1fr;
    }

    .applications-table,
    .applications-table thead,
    .applications-table tbody,
    .applications-table tr,
    .applications-table th,
    .applications-table td {
        display: block;
        width: 100%;
    }

    .applications-table thead {
        display: none;
    }

    .applications-table tr {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        margin-bottom: 12px;
        padding: 10px;
    }

    .applications-table td {
        border: 0;
        display: grid;
        grid-template-columns: 96px 1fr;
        gap: 8px;
        padding: 7px 0;
    }

    .applications-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .applications-table .application-decision-cell {
        display: block;
    }

    .application-decision-grid {
        grid-template-columns: 1fr;
    }

    .application-summary-grid,
    .request-summary-grid,
    .application-record .application-decision-grid,
    .staff-request-action-form {
        grid-template-columns: 1fr;
    }

    .company-email-panel {
        grid-template-columns: 1fr;
    }

    .application-record-actions,
    .request-record-actions {
        justify-content: flex-start;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
    }
}

@media print {
    @page {
        size: A4;
        margin: 14mm;
    }

    .site-header,
    .site-footer,
    .whatsapp-float,
    .no-print {
        display: none !important;
    }

    body,
    .section,
    .page-hero {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
        line-height: 1.35;
    }

    .page-hero,
    .section {
        padding-block: 20px;
    }

    .container {
        width: 100%;
    }

    .detail-card,
    .form-card,
    .table-card,
    .timeline-card {
        box-shadow: none;
        break-inside: avoid;
    }

    .detail-card h2,
    .form-card h2,
    .table-card h2 {
        font-size: 14pt;
    }

    .application-preview strong,
    .record-list dd {
        font-size: 10.5pt;
        font-weight: 400;
        line-height: 1.4;
    }

    .application-preview span,
    .record-list dt {
        font-size: 9pt;
        font-weight: 700;
    }

    .printable-application {
        max-width: none;
    }

    .upload-preview-page {
        min-height: auto;
        break-before: page;
        break-inside: avoid;
    }

    .upload-document-image,
    .upload-document-frame {
        height: 235mm;
        border: 0;
    }

    .pdf-preview-frame {
        display: none;
    }

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

    .print-only {
        display: inline;
    }

    .payslip-actions {
        display: none;
    }

    .payslip-sheet {
        border: 0;
        padding: 0;
    }
}
