:root {
    /* =========================================================
       KUWAIT BRAND COLORS
    ========================================================= */
    --brand-primary: #15527a;
    --brand-secondary: #1d6fa5;
    --brand-accent: #0284c7;
    --primary-red: #ce1126;

    /* =========================================================
       BACKGROUNDS & SURFACES
    ========================================================= */
    --bg-primary: #ffffff;
    --bg-light: #f8fafc;

    --surface-body: #f8fafc;
    --surface-white: #ffffff;
    --surface-light: #f1f5f9;

    /* Kuwait aliases */
    --kw-green: #15527a;
    --kw-green-dark: #0f3e5c;
    --kw-green-light: #f0f7fb;

    --kw-red: #ce1126;
    --kw-red-dark: #9b0d1c;
    --kw-gold-light: #fef9c3;

    /* =========================================================
       BORDERS
    ========================================================= */
    --border-default: #e2e8f0;
    --border-color: #e2e8f0;
    --divider-muted: #cbd5e1;

    /* =========================================================
       TEXT
    ========================================================= */
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #475569;
    --text-dark: #0f172a;
    --text-light: #ffffff;

    /* =========================================================
       SHADOWS
    ========================================================= */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);

    /* =========================================================
       TOP BAR
    ========================================================= */
    --top-bar-bg: var(--surface-light);
    --top-bar-border: var(--border-default);
    --top-bar-text: var(--text-muted);

    --lang-link-color: #334155;
    --lang-link-hover: var(--brand-accent);
    --lang-divider: var(--divider-muted);

    /* =========================================================
       HEADER
    ========================================================= */
    --header-bg: var(--surface-white);
    --header-border: var(--border-default);

    --ministry-title-en: var(--text-primary);
    --ministry-title-ar: var(--text-secondary);

    /* =========================================================
       NAVIGATION
    ========================================================= */
    --navbar-gradient-start: var(--brand-secondary);
    --navbar-gradient-end: var(--brand-primary);
    --navbar-link-color: var(--text-light);
    --navbar-link-hover-bg: rgba(255, 255, 255, 0.1);
    --active-tab-bg: var(--brand-accent);

    /* =========================================================
       SOCIAL / MOBILE NAV
    ========================================================= */
    --social-icon-bg: rgba(255, 255, 255, 0.1);
    --social-icon-color: var(--text-light);
    --social-icon-hover-bg: var(--surface-white);
    --social-icon-hover-color: var(--brand-primary);

    --toggler-border: rgba(255, 255, 255, 0.5);
    --mobile-collapse-bg: var(--brand-primary);
    --mobile-collapse-border: rgba(255, 255, 255, 0.1);
    --mobile-social-border: rgba(255, 255, 255, 0.15);

    /* =========================================================
       APPLICATION ALIASES
    ========================================================= */
    --app-primary: var(--brand-primary);
    --app-primary-dark: var(--kw-green-dark);
    --app-primary-light: var(--kw-green-light);

    --app-blue: var(--brand-accent);
    --app-blue-light: #eff6ff;

    --app-text: var(--text-primary);
    --app-muted: var(--text-muted);

    --app-border: var(--border-default);
    --app-bg: var(--surface-body);
    --app-white: var(--surface-white);

    --app-danger: var(--kw-red);
    --app-success: #16a34a;
    --app-warning: #d97706;

    --app-radius: 18px;
    --app-shadow: var(--shadow-md);

    /* =========================================================
       SEMANTIC COLORS
    ========================================================= */

    /* Blue */
    --color-blue-light: #eff6ff;
    --color-blue-border: #dbeafe;
    --color-blue-text: #1e40af;

    /* Green */
    --color-green-light: #ecfdf5;
    --color-green-border: #a7f3d0;
    --color-green-text: #047857;
    --color-green: #10b981;

    /* Red */
    --color-red-light: #fef2f2;
    --color-red-border: #fecaca;
    --color-red-text: #b91c1c;

    /* Yellow */
    --color-yellow-light: #fffbeb;
    --color-yellow-border: #fde68a;
    --color-yellow-text: #92400e;

    /* Orange */
    --color-orange-light: #fff7ed;
    --color-orange-text: #c2410c;

    /* Purple */
    --color-purple-light: #f5f3ff;
    --color-purple: #7c3aed;

    /* =========================================================
       TRANSITION
    ========================================================= */
    --transition: all 0.3s ease;
}


/* =========================================================
   APPLICATION PAGE
========================================================= */

.application-page {
    background: var(--app-bg);
    min-height: 100vh;
    padding: 25px 0 70px;
}


/* =========================================================
   STATUS MESSAGE
========================================================= */

.status-message-box {
    position: fixed;
    top: 85px;
    right: 25px;
    z-index: 99999;
    max-width: 420px;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.status-message-box.success {
    background: var(--color-green-light);
    color: var(--color-green-text);
    border: 1px solid var(--color-green-border);
}

.status-message-box.error {
    background: var(--color-red-light);
    color: var(--color-red-text);
    border: 1px solid var(--color-red-border);
}

.status-message-box.warning {
    background: var(--color-yellow-light);
    color: var(--color-yellow-text);
    border: 1px solid var(--color-yellow-border);
}


/* =========================================================
   PASSPORT GATE
========================================================= */

.passport-gate {
    max-width: 1120px;
    margin: 20px auto 0;
    transition: all 0.4s ease;
}

.passport-gate-completed {
    opacity: 0;
    transform: translateY(-20px);
}

.passport-gate-header {
    text-align: center;
    margin-bottom: 30px;
}

.gate-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 50px;
    background: var(--app-primary-light);
    color: var(--app-primary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.gate-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--app-white);
    border-radius: 50%;
}

.passport-gate-header h1 {
    margin: 0;
    color: var(--app-text);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.8px;
}

.passport-gate-header p {
    max-width: 650px;
    margin: 12px auto 0;
    color: var(--app-muted);
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   PASSPORT UPLOAD LAYOUT
========================================================= */

.passport-upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
    gap: 24px;
    align-items: stretch;
}

.passport-upload-card {
    background: var(--app-white);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 28px;
    box-shadow: var(--app-shadow);
}

.upload-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-kicker {
    display: block;
    color: var(--app-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    margin-bottom: 5px;
}

.upload-card-header h2 {
    margin: 0;
    font-size: 25px;
    color: var(--app-text);
    font-weight: 750;
}

.upload-card-header p {
    margin: 6px 0 0;
    color: var(--app-muted);
    font-size: 14px;
}


/* =========================================================
   SECURE ICON
========================================================= */

.secure-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--app-primary-light);
    color: var(--app-primary);
    font-size: 18px;
}


/* =========================================================
   PASSPORT DROPZONE
========================================================= */

.passport-dropzone {
    min-height: 330px;
    border: 2px dashed var(--divider-muted);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg,
            var(--surface-white) 0%,
            var(--surface-body) 100%);
    cursor: pointer;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.passport-dropzone:hover,
.passport-dropzone.dragover,
.passport-dropzone.drag-over {
    border-color: var(--app-primary);
    background: var(--app-primary-light);
}

.passport-dropzone.dragover,
.passport-dropzone.drag-over {
    transform: scale(1.01);
}

.passport-dropzone.has-file {
    border-color: var(--app-primary);
    background: var(--app-primary-light);
}

.passport-dropzone.scanning {
    pointer-events: none;
    opacity: 0.75;
}

.dropzone-content {
    width: 100%;
    padding: 30px;
}


/* =========================================================
   CLOUD ICON
========================================================= */

.cloud-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: var(--surface-white);
    color: var(--app-primary);
    box-shadow: 0 8px 25px rgba(21, 82, 122, 0.10);
    border: 1px solid var(--border-default);
}

.passport-dropzone h3 {
    margin: 0;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 650;
}

.upload-formats {
    margin: 8px 0 18px;
    color: #94a3b8;
    font-size: 13px;
}


/* =========================================================
   BROWSE BUTTON
========================================================= */

.browse-file-btn {
    border: 1px solid var(--divider-muted);
    background: var(--surface-white);
    color: #334155;
    border-radius: 10px;
    padding: 10px 23px;
    font-size: 14px;
    font-weight: 650;
    transition: var(--transition);
}

.browse-file-btn:hover {
    background: var(--brand-primary);
    color: var(--text-light);
    border-color: var(--brand-primary);
}


/* =========================================================
   SELECTED FILE
========================================================= */

.selected-passport-file {
    max-width: 430px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface-white);
    border: 1px solid var(--color-green-border);
    border-radius: 10px;
    color: var(--app-primary);
    text-align: left;
}

.selected-passport-file i {
    font-size: 18px;
}

.selected-passport-file span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.selected-passport-file button {
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--color-red-light);
    color: var(--kw-red);
    cursor: pointer;
}


/* =========================================================
   SCANNING
========================================================= */

.passport-scanning-box {
    margin-top: 16px;
    padding: 15px;
    border-radius: 12px;
    background: var(--color-blue-light);
    border: 1px solid var(--color-blue-border);
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-blue-text);
}

.passport-scanning-box strong {
    font-size: 14px;
}

.passport-scanning-box p {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--app-muted);
}

.scan-animation {
    display: flex;
    gap: 4px;
}

.scan-animation span {
    width: 5px;
    height: 24px;
    border-radius: 5px;
    background: var(--app-blue);
    animation: scanning 1s infinite ease-in-out;
}

.scan-animation span:nth-child(2) {
    animation-delay: 0.15s;
}

.scan-animation span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes scanning {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.upload-security-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.5;
}

.upload-security-note i {
    color: var(--app-success);
    font-size: 15px;
}


/* =========================================================
   PASSPORT INFO COLUMN
========================================================= */

.passport-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.passport-sample-card,
.passport-requirements-card {
    background: var(--app-white);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 20px;
    box-shadow: var(--app-shadow);
}


/* =========================================================
   INFO CARD
========================================================= */

.info-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.info-title-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--color-blue-light);
    color: var(--app-blue);
}

.info-title-icon.warning {
    background: var(--color-yellow-light);
    color: var(--app-warning);
}

.info-card-title h3 {
    margin: 0;
    color: var(--app-text);
    font-size: 15px;
    font-weight: 750;
}

.info-card-title p {
    margin: 2px 0 0;
    color: #94a3b8;
    font-size: 11px;
}


/* =========================================================
   PASSPORT SAMPLE
========================================================= */

.passport-sample-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-body);
    border: 1px solid var(--border-default);
}

.passport-sample-image img {
    display: block;
    object-fit: cover;
}

.sample-label {
    position: absolute;
    bottom: 9px;
    left: 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-green-text);
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   REQUIREMENTS
========================================================= */

.requirements-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requirements-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--surface-light);
}

.requirements-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.requirements-list li>span {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-green-light);
    color: #059669;
    font-size: 9px;
}

.requirements-list strong {
    display: block;
    color: #334155;
    font-size: 12px;
}

.requirements-list small {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.45;
}


/* =========================================================
   APPLICATION WORKSPACE
========================================================= */

.application-workspace {
    animation: workspaceIn 0.45s ease;
}

@keyframes workspaceIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.workspace-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.application-main {
    min-width: 0;
}


/* =========================================================
   APPLICATION HEADER
========================================================= */

.application-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px;
    background: var(--surface-white);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    margin-bottom: 20px;
}

.application-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-green-text);
    font-size: 11px;
    font-weight: 750;
    margin-bottom: 7px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 0 4px #d1fae5;
}

.application-header-card h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--app-text);
}

.application-header-card p {
    margin: 5px 0 0;
    color: var(--app-muted);
    font-size: 13px;
}

.passport-uploaded-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    background: var(--color-green-light);
    color: var(--color-green-text);
    border: 1px solid var(--color-green-border);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}


/* =========================================================
   APPLICATION CARD
========================================================= */

.application-card {
    background: var(--surface-white);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 26px;
    margin-bottom: 20px;
    box-shadow: var(--app-shadow);
}


/* =========================================================
   CARD HEADING
========================================================= */

.card-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 24px;
    position: relative;
}

.heading-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--color-blue-light);
    color: var(--app-blue);
    font-size: 17px;
}

.heading-icon.passport {
    background: var(--app-primary-light);
    color: var(--app-primary);
}

.heading-icon.travel {
    background: #f0fdfa;
    color: #0d9488;
}

.heading-icon.host {
    background: var(--color-purple-light);
    color: var(--color-purple);
}

.heading-icon.documents {
    background: var(--color-orange-light);
    color: var(--color-orange-text);
}

.heading-icon.processing {
    background: var(--color-yellow-light);
    color: #ca8a04;
}

.card-heading>div:nth-child(2) {
    min-width: 0;
}

.card-heading span {
    display: block;
    color: #94a3b8;
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 3px;
}

.card-heading h2 {
    margin: 0;
    color: var(--app-text);
    font-size: 19px;
    font-weight: 750;
}

.card-heading p {
    margin: 4px 0 0;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   AUTO DETECTED
========================================================= */

.auto-detected-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    background: var(--color-green-light);
    color: var(--color-green-text);
    border: 1px solid #bbf7d0;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   FORM
========================================================= */

.application-card .form-group {
    margin-bottom: 17px;
}

.application-card label {
    color: #334155;
    font-size: 12px;
    font-weight: 650;
}

.application-card input:not([type="radio"]):not([type="checkbox"]),
.application-card select,
.application-card textarea {
    min-height: 44px;
    border: 1px solid #dbe2ea;
    border-radius: 9px;
    background: var(--surface-white);
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}

.application-card input:not([type="radio"]):not([type="checkbox"]):focus,
.application-card select:focus,
.application-card textarea:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(21, 82, 122, 0.10);
    outline: none;
}

.application-card input.error,
.application-card select.error {
    border-color: var(--kw-red) !important;
    box-shadow: 0 0 0 3px rgba(206, 17, 38, 0.07) !important;
}

.error-text {
    color: var(--kw-red);
    font-size: 11px;
}


/* =========================================================
   DOCUMENTS
========================================================= */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.document-upload-item {
    border: 1px solid var(--border-default);
    border-radius: 14px;
    padding: 15px;
    background: #fafbfc;
}

.document-label {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.document-label strong {
    display: block;
    color: #334155;
    font-size: 12px;
}

.document-label small {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    margin-top: 3px;
}

.optional-badge {
    height: fit-content;
    padding: 4px 7px;
    border-radius: 6px;
    background: var(--surface-light);
    color: var(--app-muted);
    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   MINI DROPZONE
========================================================= */

.mini-dropzone {
    position: relative;
    min-height: 140px;
    border: 1.5px dashed var(--divider-muted);
    border-radius: 10px;
    background: var(--surface-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    overflow: hidden;
    cursor: pointer;
}

.mini-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.mini-upload-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blue-light);
    color: var(--app-blue);
    border-radius: 9px;
    margin-bottom: 7px;
}

.mini-dropzone strong {
    font-size: 11px;
    color: #334155;
}

.mini-dropzone>small {
    color: #94a3b8;
    font-size: 9px;
}

.preview-file-name {
    margin-top: 7px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    color: var(--app-primary);
}

.preview-image {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    margin-top: 8px;
    border-radius: 5px;
}


/* =========================================================
   PROCESSING
========================================================= */

.processing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.processing-card {
    position: relative;
    border: 1px solid var(--border-default);
    border-radius: 14px;
    padding: 17px;
    background: var(--surface-white);
    cursor: pointer;
    transition: var(--transition);
}

.processing-card:hover {
    border-color: #7db5d5;
    transform: translateY(-2px);
}

.processing-card.active-card {
    border-color: var(--app-primary);
    background: var(--app-primary-light);
    box-shadow: 0 5px 20px rgba(21, 82, 122, 0.08);
}

.processing-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.processing-card input[type="radio"] {
    width: 17px;
    height: 17px;
}

.processing-badge {
    padding: 4px 7px;
    border-radius: 6px;
    background: var(--color-green-light);
    color: var(--color-green-text);
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
}

.processing-badge.rush {
    background: var(--color-blue-light);
    color: var(--app-blue);
}

.processing-badge.priority {
    background: var(--color-orange-light);
    color: var(--color-orange-text);
}

.processing-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--surface-body);
    color: var(--text-muted);
    margin-bottom: 9px;
}

.processing-card h3 {
    margin: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 750;
}

.processing-card p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 10px;
}


/* =========================================================
   TERMS
========================================================= */

.terms-card {
    padding: 18px 22px;
}

.modern-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
    font-size: 12px;
    color: var(--app-muted);
}

.modern-checkbox input {
    position: absolute;
    opacity: 0;
}

.custom-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1px solid var(--divider-muted);
    border-radius: 6px;
    background: var(--surface-white);
    position: relative;
}

.modern-checkbox input:checked+.custom-check {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.modern-checkbox input:checked+.custom-check::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 10px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    left: 6px;
    top: 3px;
}

.modern-checkbox strong {
    color: var(--app-primary);
}


/* =========================================================
   SUBMIT AREA
========================================================= */

.application-submit-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.submit-security {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-security>i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-green-light);
    color: #059669;
    border-radius: 9px;
}

.submit-security strong {
    display: block;
    color: #334155;
    font-size: 11px;
}

.submit-security span {
    display: block;
    color: #94a3b8;
    font-size: 9px;
    margin-top: 2px;
}

.submit-application-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 210px;
    border: 0;
    border-radius: 11px;
    padding: 13px 20px;
    background: var(--app-primary);
    color: var(--text-light);
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 8px 20px rgba(21, 82, 122, 0.20);
    transition: var(--transition);
}

.submit-application-btn:hover {
    background: var(--app-primary-dark);
    transform: translateY(-1px);
    color: var(--text-light);
}

.submit-application-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   SIDEBAR
========================================================= */

.application-sidebar {
    width: 100%;
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* =========================================================
   NEW APPLICANT CARD
========================================================= */

.sidebar-new-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    background: linear-gradient(135deg,
            var(--kw-green-light) 0%,
            var(--surface-white) 100%);
    border: 1px solid #dcefed;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(26, 66, 85, 0.06);
    overflow: hidden;
}

.sidebar-new-card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    right: -50px;
    top: -50px;
    background: rgba(21, 82, 122, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.new-card-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary);
    color: var(--text-light);
    border-radius: 13px;
    font-size: 16px;
    box-shadow: 0 7px 16px rgba(21, 82, 122, 0.22);
}

.sidebar-new-card>div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.sidebar-new-card h3 {
    margin: 0 0 3px;
    color: #17364b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.sidebar-new-card p {
    margin: 0;
    color: #8495a4;
    font-size: 11px;
    line-height: 1.35;
}

.sidebar-new-card .add-applicant-btn {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #b9ded9;
    border-radius: 10px;
    background: var(--surface-white);
    color: var(--brand-primary);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.sidebar-new-card .add-applicant-btn:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(21, 82, 122, 0.20);
}


/* =========================================================
   APPLICANT SIDEBAR CARD
========================================================= */

.applicant-sidebar-card {
    background: var(--surface-white);
    border: 1px solid #e6edf2;
    border-radius: 20px;
    padding: 18px;
    box-shadow:
        0 10px 32px rgba(25, 52, 72, 0.07),
        0 2px 7px rgba(25, 52, 72, 0.025);
}

.sidebar-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf1f4;
}

.sidebar-title-row>div {
    min-width: 0;
}

.sidebar-title-row span:first-child {
    display: block;
    margin-bottom: 4px;
    color: #9aa8b4;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.3px;
    line-height: 1;
}

.sidebar-title-row h4 {
    margin: 0;
    color: #20394d;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.applicant-count {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    background: var(--kw-green-light);
    color: var(--brand-primary);
    border: 1px solid #d7eeea;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 850;
}


/* =========================================================
   APPLICANT LIST
========================================================= */

.applicant-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 14px;
}

.applicant-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 11px 10px 11px 12px;
    background: #fbfcfd;
    border: 1px solid #e8eef2;
    border-radius: 14px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.applicant-item:hover {
    background: var(--surface-white);
    border-color: #cddfe2;
    box-shadow: 0 5px 18px rgba(27, 59, 78, 0.06);
    transform: translateY(-1px);
}

.applicant-item.active-applicant {
    background: var(--kw-green-light);
    border-color: #8eb9d0;
    box-shadow:
        inset 3px 0 0 var(--brand-primary),
        0 5px 18px rgba(21, 82, 122, 0.07);
}

.applicant-item::before {
    content: "\f007";
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf3f6;
    color: #718696;
    border-radius: 10px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
}

.applicant-item.active-applicant::before {
    background: #e1eef5;
    color: var(--brand-primary);
}


/* =========================================================
   APPLICANT USER
========================================================= */

.applicant-user {
    min-width: 0;
    flex: 1;
}

.applicant-user h5 {
    margin: 0 0 5px;
    color: #243d51;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.applicant-user small {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    color: #96a4af;
    font-size: 10px;
    line-height: 1.4;
}


/* =========================================================
   BADGES
========================================================= */

.completed-badge,
.running-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.completed-badge {
    background: var(--color-green-light);
    color: #15815d;
}

.completed-badge::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
}

.running-badge {
    background: var(--color-yellow-light);
    color: #b87812;
}

.running-badge::before {
    content: "\f017";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 8px;
}


/* =========================================================
   EDIT BUTTON
========================================================= */

.edit-preview-btn {
    width: 25px !important;
    height: 25px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 2px !important;
    padding: 0 !important;
    border: 1px solid #dce5ea !important;
    border-radius: 7px !important;
    background: var(--surface-white) !important;
    color: #718492 !important;
    font-size: 9px !important;
    box-shadow: none !important;
    transition: var(--transition);
}

.edit-preview-btn:hover {
    background: var(--kw-green-light) !important;
    border-color: #a8c5d7 !important;
    color: var(--brand-primary) !important;
    transform: scale(1.05);
}


/* =========================================================
   REMOVE BUTTON
========================================================= */

.remove-btn {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fffafa;
    border: 1px solid #f0dddd;
    border-radius: 8px;
    color: #bd7777;
    cursor: pointer;
    font-size: 10px;
    transition: var(--transition);
}

.remove-btn:hover {
    background: var(--color-red-light);
    border-color: var(--color-red-border);
    color: var(--kw-red);
    transform: scale(1.05);
}


/* =========================================================
   SIDEBAR HELP
========================================================= */

.sidebar-help-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    background: var(--surface-body);
    border: 1px solid #e8eef2;
    border-radius: 15px;
}

.help-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4f7;
    color: #718797;
    border-radius: 9px;
    font-size: 13px;
}

.sidebar-help-card strong {
    display: block;
    margin-bottom: 3px;
    color: #4a6172;
    font-size: 11px;
    font-weight: 800;
}

.sidebar-help-card p {
    margin: 0;
    color: #95a3ae;
    font-size: 9px;
    line-height: 1.45;
}


/* =========================================================
   EMPTY APPLICANT LIST
========================================================= */

.applicant-list:empty::before {
    content: "No applicants added yet";
    display: block;
    padding: 25px 10px;
    text-align: center;
    color: #9ba8b3;
    font-size: 11px;
}


/* =========================================================
   NATIONALITY REQUIREMENTS
========================================================= */

#nationalityRequirements {
    margin-top: 8px;
}

#nationalityRequirements .nationality-condition-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 18px;
    margin-bottom: 12px;
    background: var(--surface-body);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

#nationalityRequirements .nationality-condition-title strong {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

#nationalityRequirements .nationality-condition-title small {
    font-size: 12px;
    color: var(--app-muted);
}

#nationalityRequirements .nationality-condition-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#nationalityRequirements .condition-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    margin: 0;
    background: var(--surface-white);
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

#nationalityRequirements .condition-checkbox:hover {
    border-color: var(--divider-muted);
    background: var(--surface-body);
}

#nationalityRequirements .condition-checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

#nationalityRequirements .custom-check {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--divider-muted);
    border-radius: 5px;
    background: var(--surface-white);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

#nationalityRequirements .custom-check i {
    font-size: 10px;
    color: var(--text-light);
    opacity: 0;
    transform: scale(0.5);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

#nationalityRequirements .condition-checkbox input:checked+.custom-check {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

#nationalityRequirements .condition-checkbox input:checked+.custom-check i {
    opacity: 1;
    transform: scale(1);
}

#nationalityRequirements .condition-checkbox:has(input:checked) {
    background: #f5f9fc;
    border-color: #8eb9d0;
}

#nationalityRequirements .condition-checkbox>span:last-child {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    color: #374151;
}

#nationalityRequirements .condition-checkbox input:focus-visible+.custom-check {
    outline: 3px solid rgba(21, 82, 122, 0.15);
    outline-offset: 2px;
}

#nationalityRequirements .condition-checkbox.has-error {
    border-color: var(--kw-red);
    background: #fff7f7;
}

#nationalityRequirements .condition-checkbox.has-error .custom-check {
    border-color: var(--kw-red);
}


/* =========================================================
   GENERAL ERRORS
========================================================= */

.form-group input.error,
.form-group select.error,
.form-group textarea.error,
input.error,
select.error,
textarea.error {
    border-color: var(--kw-red) !important;
    box-shadow: 0 0 0 3px rgba(206, 17, 38, 0.08) !important;
}

.error-text {
    display: block;
    color: var(--kw-red);
    font-size: 12px;
    margin-top: 5px;
}

.dynamic-error {
    margin-top: 5px;
}


/* =========================================================
   MISC
========================================================= */

#submitMainApplicationBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.d-none {
    display: none !important;
}


/* =========================================================
   RESPONSIVE - 1100px
========================================================= */

@media (max-width: 1100px) {

    .workspace-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .passport-upload-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}


/* =========================================================
   RESPONSIVE - 991px
========================================================= */

@media (max-width: 991px) {

    .sidebar-sticky {
        position: static;
    }

    .application-sidebar {
        margin-top: 20px;
    }

    .applicant-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}


/* =========================================================
   RESPONSIVE - 900px
========================================================= */

@media (max-width: 900px) {

    .workspace-layout {
        grid-template-columns: 1fr;
    }

    .application-sidebar {
        order: -1;
    }

    .sidebar-sticky {
        position: static;
    }

    .passport-upload-layout {
        grid-template-columns: 1fr;
    }

    .passport-info-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   RESPONSIVE - 767px
========================================================= */

@media (max-width: 767px) {

    .application-page {
        padding: 15px 0 50px;
    }

    .passport-gate {
        margin-top: 5px;
    }

    .passport-gate-header {
        margin-bottom: 20px;
    }

    .passport-gate-header h1 {
        font-size: 28px;
    }

    .passport-gate-header p {
        font-size: 13px;
    }

    .passport-upload-card {
        padding: 18px;
    }

    .upload-card-header {
        margin-bottom: 17px;
    }

    .upload-card-header h2 {
        font-size: 21px;
    }

    .passport-dropzone {
        min-height: 280px;
    }

    .dropzone-content {
        padding: 20px 12px;
    }

    .passport-info-column {
        display: flex;
    }

    .passport-sample-image img {
        height: 190px;
    }

    .application-header-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .application-header-card h1 {
        font-size: 23px;
    }

    .application-card {
        padding: 19px;
        border-radius: 15px;
    }

    .card-heading {
        flex-wrap: wrap;
    }

    .auto-detected-badge {
        margin-left: 57px;
    }

    .documents-grid,
    .processing-grid {
        grid-template-columns: 1fr;
    }

    .application-submit-area {
        flex-direction: column;
        align-items: stretch;
    }

    .submit-application-btn {
        width: 100%;
    }

    .sidebar-new-card {
        margin-bottom: 10px;
    }

    #nationalityRequirements .nationality-condition-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 14px 15px;
    }

    #nationalityRequirements .nationality-condition-title strong {
        font-size: 15px;
    }

    #nationalityRequirements .nationality-condition-title small {
        font-size: 11px;
    }

    #nationalityRequirements .condition-checkbox {
        min-height: 50px;
        padding: 12px;
        gap: 10px;
    }

    #nationalityRequirements .condition-checkbox>span:last-child {
        font-size: 12.5px;
    }
}


/* =========================================================
   RESPONSIVE - 575px
========================================================= */

@media (max-width: 575px) {

    .sidebar-sticky {
        gap: 10px;
    }

    .sidebar-new-card {
        padding: 13px;
        border-radius: 15px;
    }

    .new-card-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 11px;
    }

    .sidebar-new-card h3 {
        font-size: 13px;
    }

    .sidebar-new-card p {
        font-size: 10px;
    }

    .applicant-sidebar-card {
        padding: 14px;
        border-radius: 17px;
    }

    .sidebar-title-row h4 {
        font-size: 16px;
    }

    .applicant-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .applicant-item {
        min-height: 72px;
        padding: 10px;
    }

    .applicant-item::before {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .applicant-user h5 {
        font-size: 12px;
    }

    .remove-btn {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .sidebar-help-card {
        padding: 12px;
    }
}


/* =========================================================
   RESPONSIVE - 480px
========================================================= */

@media (max-width: 480px) {

    .application-page .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .passport-upload-card {
        padding: 14px;
    }

    .passport-dropzone {
        min-height: 250px;
    }

    .cloud-icon {
        width: 58px;
        height: 58px;
    }

    .passport-dropzone h3 {
        font-size: 15px;
    }

    .upload-formats {
        font-size: 11px;
    }

    .application-card {
        padding: 15px;
    }

    .heading-icon {
        width: 38px;
        height: 38px;
    }

    .card-heading h2 {
        font-size: 17px;
    }

    .card-heading p {
        font-size: 11px;
    }

    .auto-detected-badge {
        margin-left: 50px;
        font-size: 8px;
    }

    .status-message-box {
        left: 12px;
        right: 12px;
        top: 70px;
        max-width: none;
    }
}