/* ============================================================
   APPLICATION FORM - MODERN UI
============================================================ */
:root {
    --app-primary: #0f766e;
    --app-primary-dark: #115e59;
    --app-primary-light: #ecfdf5;
    --app-blue: #2563eb;
    --app-blue-light: #eff6ff;
    --app-text: #172033;
    --app-muted: #64748b;
    --app-border: #e2e8f0;
    --app-bg: #f6f8fb;
    --app-white: #ffffff;
    --app-danger: #dc2626;
    --app-success: #16a34a;
    --app-warning: #d97706;
    --app-radius: 18px;
    --app-shadow: 0 10px 35px rgba(15, 23, 42, 0.07);
}
/* ============================================================
   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: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.status-message-box.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.status-message-box.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
/* ============================================================
   PASSPORT GATE
============================================================ */
.passport-gate {
    max-width: 1120px;
    margin: 20px auto 0;
    transition: all 0.4s ease;
}
.passport-gate-completed {
    opacity: 0;
    transform: translateY(-20px);
}
/* ============================================================
   GATE HEADER
============================================================ */
.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: 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;
}
/* ============================================================
   UPLOAD LAYOUT
============================================================ */
.passport-upload-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(330px, 0.65fr);
    gap: 24px;
    align-items: stretch;
}
/* ============================================================
   UPLOAD CARD
============================================================ */
.passport-upload-card {
    background: 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 {
    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;
}
/* ============================================================
   DROPZONE
============================================================ */
.passport-dropzone {
    min-height: 330px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    cursor: pointer;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}
.passport-dropzone:hover,
.passport-dropzone.dragover {
    border-color: var(--app-primary);
    background: #f0fdfa;
}
.passport-dropzone.dragover {
    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 {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: white;
    color: var(--app-primary);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.1);
    border: 1px solid #e2e8f0;
}
.passport-dropzone h3 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 650;
}
.upload-formats {
    margin: 8px 0 18px;
    color: #94a3b8;
    font-size: 13px;
}
.browse-file-btn {
    border: 1px solid #cbd5e1;
    background: white;
    color: #334155;
    border-radius: 10px;
    padding: 10px 23px;
    font-size: 14px;
    font-weight: 650;
    transition: all 0.2s ease;
}
.browse-file-btn:hover {
    background: var(--app-primary);
    color: white;
    border-color: var(--app-primary);
}
/* ============================================================
   SELECTED FILE
============================================================ */
.selected-passport-file {
    max-width: 430px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border: 1px solid #d1fae5;
    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: #fef2f2;
    color: #dc2626;
    cursor: pointer;
}
/* ============================================================
   SCANNING
============================================================ */
.passport-scanning-box {
    margin-top: 16px;
    padding: 15px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1e40af;
}
.passport-scanning-box strong {
    font-size: 14px;
}
.passport-scanning-box p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #64748b;
}
.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
============================================================ */
.upload-security-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}
.upload-security-note i {
    color: var(--app-success);
    font-size: 15px;
}
/* ============================================================
   INFO COLUMN
============================================================ */
.passport-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* ============================================================
   INFO CARDS
============================================================ */
.passport-sample-card,
.passport-requirements-card {
    background: white;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 20px;
    box-shadow: var(--app-shadow);
}
.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: #eff6ff;
    color: var(--app-blue);
}
.info-title-icon.warning {
    background: #fffbeb;
    color: #d97706;
}
.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;
}
/* ============================================================
   SAMPLE IMAGE
============================================================ */
.passport-sample-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.passport-sample-image img {
    display: block;
    /* width: 100%;
    height: 165px; */
    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: #047857;
    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 #f1f5f9;
}
.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: #ecfdf5;
    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
============================================================ */
.workspace-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        320px;
    gap: 24px;
    align-items: start;
}
/* ============================================================
   MAIN
============================================================ */
.application-main {
    min-width: 0;
}
/* ============================================================
   HEADER
============================================================ */
.application-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px;
    background: 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: #047857;
    font-size: 11px;
    font-weight: 750;
    margin-bottom: 7px;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    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: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}
/* ============================================================
   APPLICATION CARDS
============================================================ */
.application-card {
    background: 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: #eff6ff;
    color: #2563eb;
    font-size: 17px;
}
.heading-icon.passport {
    background: #ecfdf5;
    color: #0f766e;
}
.heading-icon.travel {
    background: #f0fdfa;
    color: #0d9488;
}
.heading-icon.host {
    background: #f5f3ff;
    color: #7c3aed;
}
.heading-icon.documents {
    background: #fff7ed;
    color: #ea580c;
}
.heading-icon.processing {
    background: #fefce8;
    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: #64748b;
    font-size: 12px;
    line-height: 1.5;
}
.auto-detected-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    background: #ecfdf5;
    color: #047857;
    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: #fff;
    color: #1e293b;
    font-size: 13px;
    transition: all 0.2s ease;
}
.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(15, 118, 110, 0.08);
    outline: none;
}
.application-card input.error,
.application-card select.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.07) !important;
}
.error-text {
    color: #dc2626;
    font-size: 11px;
}
/* ============================================================
   DOCUMENTS
============================================================ */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.document-upload-item {
    border: 1px solid #e2e8f0;
    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: #f1f5f9;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
}
.mini-dropzone {
    position: relative;
    min-height: 140px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    background: 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: #eff6ff;
    color: #2563eb;
    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: #0f766e;
}
.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 #e2e8f0;
    border-radius: 14px;
    padding: 17px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}
.processing-card:hover {
    border-color: #99f6e4;
    transform: translateY(-2px);
}
.processing-card.active-card {
    border-color: var(--app-primary);
    background: #f0fdfa;
    box-shadow: 0 5px 20px rgba(15, 118, 110, 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: #ecfdf5;
    color: #047857;
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
}
.processing-badge.rush {
    background: #eff6ff;
    color: #2563eb;
}
.processing-badge.priority {
    background: #fff7ed;
    color: #c2410c;
}
.processing-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    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: #64748b;
}
.modern-checkbox input {
    position: absolute;
    opacity: 0;
}
.custom-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: 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 white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    left: 6px;
    top: 3px;
}
.modern-checkbox strong {
    color: var(--app-primary);
}
/* ============================================================
   SUBMIT
============================================================ */
.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: #ecfdf5;
    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: white;
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
    transition: all 0.2s ease;
}
.submit-application-btn:hover {
    background: var(--app-primary-dark);
    transform: translateY(-1px);
    color: white;
}
.submit-application-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
/* =========================================================
   APPLICATION SIDEBAR
========================================================= */
.application-sidebar {
    width: 100%;
    position: relative;
}
.sidebar-sticky {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
/* =========================================================
   NEW APPLICATION CARD
========================================================= */
.sidebar-new-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    background: linear-gradient(135deg, #f2fbfa 0%, #ffffff 100%);
    border: 1px solid #dcefed;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(26, 66, 85, 0.06);
    overflow: hidden;
}
/* Decorative circle */
.sidebar-new-card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    right: -50px;
    top: -50px;
    background: rgba(13, 148, 136, 0.05);
    border-radius: 50%;
    pointer-events: none;
}
/* Icon */
.new-card-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d9488;
    color: #ffffff;
    border-radius: 13px;
    font-size: 16px;
    box-shadow: 0 7px 16px rgba(13, 148, 136, 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;
}
/* Add button */
.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: #ffffff;
    color: #0d8c80;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}
.sidebar-new-card .add-applicant-btn:hover {
    background: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(13, 148, 136, 0.2);
}
/* =========================================================
   APPLICANT LIST CARD
========================================================= */
.applicant-sidebar-card {
    background: #ffffff;
    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
========================================================= */
.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;
}
/* =========================================================
   COUNT BADGE
========================================================= */
.applicant-count {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    background: #effaf8;
    color: #078b7d;
    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
========================================================= */
.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: #ffffff;
    border-color: #cddfe2;
    box-shadow: 0 5px 18px rgba(27, 59, 78, 0.06);
    transform: translateY(-1px);
}
/* ACTIVE APPLICANT */
.applicant-item.active-applicant {
    background: #f1faf9;
    border-color: #8ed0c8;
    box-shadow:
        inset 3px 0 0 #0d9488,
        0 5px 18px rgba(13, 148, 136, 0.07);
}
/* =========================================================
   APPLICANT AVATAR
========================================================= */
.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: #dff4f1;
    color: #0a8e81;
}
/* =========================================================
   APPLICANT CONTENT
========================================================= */
.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;
}
/* =========================================================
   STATUS 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 */
.completed-badge {
    background: #e7f8f0;
    color: #15815d;
}
.completed-badge::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
}
/* IN PROGRESS */
.running-badge {
    background: #fff6e6;
    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: #ffffff !important;
    color: #718492 !important;
    font-size: 9px !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}
.edit-preview-btn:hover {
    background: #eef8f7 !important;
    border-color: #a8d7d1 !important;
    color: #078b7e !important;
    transform: scale(1.05);
}
/* =========================================================
   DELETE 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: all 0.2s ease;
}
.remove-btn:hover {
    background: #fff0f0;
    border-color: #e6bcbc;
    color: #c43e3e;
    transform: scale(1.05);
}
/* =========================================================
   HELP CARD
========================================================= */
.sidebar-help-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e8eef2;
    border-radius: 15px;
}
/* HELP ICON */
.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 LIST
========================================================= */
.applicant-list:empty::before {
    content: "No applicants added yet";
    display: block;
    padding: 25px 10px;
    text-align: center;
    color: #9ba8b3;
    font-size: 11px;
}
/* =========================================================
   TABLET
========================================================= */
@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;
    }
}
/* =========================================================
   MOBILE
========================================================= */
@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;
    }
}
/* ============================================================
   HIDDEN
============================================================ */
.d-none {
    display: none !important;
}
/* ============================================================
   TABLET
============================================================ */
@media (max-width: 1100px) {
    .workspace-layout {
        grid-template-columns:
            minmax(0, 1fr)
            280px;
    }
    .passport-upload-layout {
        grid-template-columns:
            minmax(0, 1fr)
            300px;
    }
}
/* ============================================================
   TABLET
============================================================ */
@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;
    }
}
/* ============================================================
   MOBILE
============================================================ */
@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;
    }
}
/* ============================================================
   SMALL MOBILE
============================================================ */
@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;
    }
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error,
input.error,
select.error,
textarea.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08) !important;
}
.error-text {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}
.dynamic-error {
    margin-top: 5px;
}
#submitMainApplicationBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.passport-dropzone.drag-over {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}
.passport-dropzone.scanning {
    pointer-events: none;
    opacity: 0.75;
}

/* =========================================
   DYNAMIC NATIONALITY REQUIREMENTS
========================================= */

#nationalityRequirements {
    margin-top: 8px;
}

/* Title */

#nationalityRequirements .nationality-condition-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 18px;
    margin-bottom: 12px;
    background: #f8fafc;
    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: #64748b;
}

/* Requirements list */

#nationalityRequirements .nationality-condition-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual checkbox */

#nationalityRequirements .condition-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-height: 52px;
    padding: 13px 15px;

    margin: 0;

    background: #ffffff;
    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;
}

/* Hover */

#nationalityRequirements .condition-checkbox:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* Hide original checkbox */

#nationalityRequirements .condition-checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Custom checkbox */

#nationalityRequirements .custom-check {
    flex: 0 0 20px;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1.5px solid #cbd5e1;
    border-radius: 5px;

    background: #ffffff;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

/* Check icon */

#nationalityRequirements .custom-check i {
    font-size: 10px;
    color: #ffffff;

    opacity: 0;
    transform: scale(0.5);

    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

/* Checked */

#nationalityRequirements .condition-checkbox input:checked + .custom-check {
    background: #2563eb;
    border-color: #2563eb;
}

#nationalityRequirements .condition-checkbox input:checked + .custom-check i {
    opacity: 1;
    transform: scale(1);
}

/* Checked row */

#nationalityRequirements .condition-checkbox:has(input:checked) {
    background: #f8fbff;
    border-color: #93c5fd;
}

/* Text */

#nationalityRequirements .condition-checkbox > span:last-child {
    flex: 1;

    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;

    color: #374151;
}

/* Focus */

#nationalityRequirements
    .condition-checkbox
    input:focus-visible
    + .custom-check {
    outline: 3px solid rgba(37, 99, 235, 0.15);
    outline-offset: 2px;
}

/* Validation error */

#nationalityRequirements .condition-checkbox.has-error {
    border-color: #ef4444;
    background: #fff7f7;
}

#nationalityRequirements .condition-checkbox.has-error .custom-check {
    border-color: #ef4444;
}

/* Mobile */

@media (max-width: 767px) {
    #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;
    }
}
