﻿:root {
    --navy: #1b2a52;
    --navy-deep: #11193a;
    --gold: #d9a73e;
    --gold-dark: #c4922b;
    --paper: #ffffff;
    --ink: #1b2a52;
    --ink-soft: #5b6584;
    --red: #b3231f;
    --line: #e3e6ee;
    --field-bg: #f4f5f9;
    --container: 1320px;
    --radius: 6px;
    --shadow-sm: 0 2px 8px rgba(17, 25, 58, 0.08);
    --shadow-md: 0 8px 24px rgba(17, 25, 58, 0.14);
}

.app-page {
    font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

    .app-page * {
        box-sizing: border-box;
    }

    .app-page h1,
    .app-page h2,
    .app-page h3 {
        font-family: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
        margin: 0;
    }

    .app-page a {
        text-decoration: none;
    }

    .app-page button {
        font-family: inherit;
        cursor: pointer;
    }

.app-form__input {
    width: 100%;
    padding: 12px 15px;
    background-color: #f8f9fb; 
    border: 1px solid #dcdfe6; 
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 16px;
    color: #88909e;
}

.app-form__row--two input,
.app-form__row--two .app-form__select-wrap {
    flex: 1; 
    min-width: 0; 

}
.app-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    height: auto;
    overflow: visible;
}

body {
    padding-top: 76px;
    height: auto;
    overflow-y: auto;
}

.app-navbar {
    background: var(--paper);
    border: none;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
    min-height: 76px;
    z-index: 1000;
    
}

.app-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-navbar__logo {
    display: flex !important;
    align-items: center;
    padding: 8px 4px !important;
    margin: 14px 0;
    height: auto;
}

.app-navbar__logo-mark {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.app-navbar__logo-text {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #9aa0ad;
}

.app-navbar__links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    float: none;
}

    .app-navbar__links > li {
        float: none;
        display: flex;
        align-items: center;
    }

.app-navbar__link {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy) !important;
    background: transparent !important;
    padding: 10px 16px !important;
    transition: color 0.15s ease;
}

    .app-navbar__link:hover,
    .app-navbar__link:focus {
        color: var(--gold-dark) !important;
        background: transparent !important;
    }

.app-navbar__apply {
    display: inline-block;
    background: var(--gold) !important;
    color: #2a1e05 !important;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 11px 28px !important;
    border-radius: 3px;
    margin-left: 6px;
    transition: background 0.15s ease;
}

    .app-navbar__apply:hover,
    .app-navbar__apply:focus {
        background: var(--gold-dark) !important;
    }

@media (max-width: 768px) {
    .app-navbar__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 0 12px;
    }

    .app-navbar__apply {
        margin: 8px 14px 0;
    }
}

.app-page--in-layout {
    min-height: 100vh;
    height: auto; 
    overflow-y: visible; 
    padding-bottom: 50px; 
}

.app-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 460px;
    overflow: hidden;
    background: var(--paper);
}

.hero__copy {
    position: relative;
    z-index: 2;
    padding: 0 0 0 200px;
    max-width: 560px;
}

    .hero__copy h1 {
        font-size: 3.4rem;
        font-weight: 700;
        line-height: 1.18;
        color: var(--navy);
        margin-bottom: 32px;
    }

.hero__art {
    position: relative;
    height: 100%;
    min-height: 460px;
    overflow: hidden;
    background-image: url('../Images/KNB-Hero banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .hero__art::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 6%, rgba(255, 255, 255, 0.7) 14%, rgba(255, 255, 255, 0.35) 22%, rgba(255, 255, 255, 0) 32% );
        z-index: 1;
    }

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero__copy {
        padding: 48px 32px 32px;
        order: 1;
    }

    .hero__art {
        order: 2;
        min-height: 280px;
    }
}

.process {
    background: var(--navy);
    padding: 56px 0 64px;
    color: var(--paper);
}

.process__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 80px;
}

    .process__heading .chevrons {
        color: var(--gold);
        font-weight: 700;
    }

.process__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.process__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.process__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .process__icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.process__label {
    font-size: 1.50rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #cfd5e6;
}

@media (max-width: 860px) {
    .process__grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 36px;
    }
}

@media (max-width: 520px) {
    .process__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.application {
    padding: 40px 0 80px;
}

.application__heading {
    text-align: center;
    color: var(--red);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-top: 10px;
    margin-bottom: 120px;
}

.application__layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.application__art {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 320px;
    background-image: url('../Images/KNB-Apply-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-sm);
}

.app-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-form__row {
    display: grid;
    gap: 16px;
}

.app-form__row--three {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
}

    .app-form__row--three > div:has(.app-form__field-hint) {
        display: flex;
        flex-direction: column;
    }

    .app-form__row--three > div input[type="text"] {
        width: 100%;
    }

.app-form__row--two {
    grid-template-columns: 1fr 1fr;
}
    .app-form__row--two:has(input[name="UnitAssignment"]) {
        grid-template-columns: 1fr 1fr;
    }

    .app-form__row--two:has(input[name="ContactNo"]) {
        grid-template-columns: 1fr 1fr;
    }

.app-form__field-hint {
    display: block;
    font-size: 0.75rem;
    color: #9aa0ad;
    margin-top: 4px;
}

.app-form input[type="text"],
.app-form input[type="email"],
.app-form input[type="tel"],
.app-form select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--field-bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    appearance: none;
}

.app-form input::placeholder {
    color: #9aa0ad;
}

.app-form input:focus,
.app-form select:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
    background: var(--paper);
}

.app-form select:invalid {
    color: #9aa0ad;
}

.app-form select:valid {
    color: var(--ink);
}

.app-form__select-wrap {
    position: relative;
    width: 100%;
    flex: 1; 
}
    .app-form__select-wrap::after {
        content: "";
        position: absolute;
        right: 14px;
        top: 50%;
        width: 9px;
        height: 9px;
        border-right: 2px solid var(--ink-soft);
        border-bottom: 2px solid var(--ink-soft);
        transform: translateY(-65%) rotate(45deg);
        pointer-events: none;
    }

.app-form__select-wrap select {
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding-right: 36px;
    max-width: 100%; 
}

.app-form__phone-wrap {
    position: relative;
    width: 100%;
}


.app-form__phone-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--ink-soft);
    pointer-events: none;
}

.app-form__phone-wrap input[type="tel"] {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--field-bg);
    border: 1px solid var(--line);
    border-radius: 4px;
}

    .app-form__phone-wrap input[type="tel"]:focus {
        outline: 2px solid var(--gold);
        outline-offset: 1px;
        background: var(--paper);
    }

.app-form__uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin-top: 4px;
}

.app-form__upload-row {
    display: grid;
    grid-template-columns: 160px 1fr max-content;
    align-items: center;
    gap: 12px;
}

.app-form__upload-label {
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.app-form__hint {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: #9aa0ad;
    margin: -2px 0 2px;
}

.app-form__filename {
    font-size: 0.82rem;
    color: var(--ink-soft);
    font-style: italic;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-form__file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.btn-attach {
    background: #8a90a0;
    color: var(--paper);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 9px 20px;
    border: none;
    border-radius: 3px;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

    .btn-attach:hover,
    .btn-attach:focus-visible {
        background: #767c8c;
    }

.app-form__consent-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.app-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.4;
}

    .app-form__consent input[type="checkbox"] {
        margin-top: 2px;
        flex-shrink: 0;
        width: 17px;
        height: 17px;
        accent-color: var(--gold);
    }

    .app-form__consent a {
        color: #3a5fc4;
    }

        .app-form__consent a:hover {
            text-decoration: underline;
        }

.app-form__message {
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 4px;
}

.app-form__message--success {
    background: #e6f4ea;
    color: #1e7a34;
    border: 1px solid #b7e1c2;
}

.app-form__message--error {
    background: #fbe9e7;
    color: #b3231f;
    border: 1px solid #f3c2bd;
}

.app-form__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}

@media (max-width: 860px) {
    .app-form__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .btn-submit {
        width: 100%;
    }
}

.btn-submit {
    background: var(--gold);
    color: #2a1e05;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 14px 42px;
    border: none;
    border-radius: 3px;
    transition: background 0.15s ease;
}

    .btn-submit:hover,
    .btn-submit:focus-visible {
        background: var(--gold-dark);
    }

@media (max-width: 860px) {
    .application__layout {
        grid-template-columns: 1fr;
    }

    .application__art {
        min-height: 220px;
    }

    .app-form__row--three,
    .app-form__row--two,
    .app-form__uploads {
        grid-template-columns: 1fr;
    }
}

.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: #2a1e05;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 13px 30px;
    border: none;
    border-radius: 3px;
    transition: background 0.15s ease, transform 0.1s ease;
}

    .btn-gold:hover,
    .btn-gold:focus-visible {
        color: #2a1e05;
        background: var(--gold-dark);
    }

    .btn-gold:active {
        transform: translateY(1px);
    }

.app-footer {
    background: #20242b;
    color: #d4d6dc;
    padding: 28px 0;
}

.app-footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.app-navbar__logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.app-footer__logo {
    display: flex;
    align-items: center;
}

.app-footer__logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.app-footer__logo-text {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #9aa0ad;
}

.app-footer__links {
    display: flex;
    gap: 28px;
    font-size: 0.92rem;
}

    .app-footer__links a {
        color: #d4d6dc;
        transition: color 0.15s ease;
    }

        .app-footer__links a:hover,
        .app-footer__links a:focus {
            color: var(--gold);
        }

html {
    scroll-behavior: smooth;
}

[id="process"],
[id="application"] {
    scroll-margin-top: 76px;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; 
    padding-top: 76px; 
}

.modal-card {
    background: var(--paper);
    width: 95%; 
    max-width: 800px; 
    max-height: 90vh; 
    display: flex;
    flex-direction: column; 
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.modal-card__languages {
    display: flex;
    gap: 32px;
}

.modal-card__lang-col {
    flex: 1;
}

@media (max-width: 768px) {
    .modal-card__languages {
        flex-direction: column;
        gap: 20px;
    }
}

.modal-card__header {
    background: #990000;
    padding: 28px 24px;
    text-align: center;
}

    .modal-card__header h2 {
        color: var(--paper);
        font-size: 1.8rem;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

.modal-card__body {
    padding: 28px;
    overflow-y: auto; 
    flex: 1; 
}

    .modal-card__body h3 {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 8px;
        margin-top: 16px;
    }

        .modal-card__body h3:not(:first-child) {
            margin-top: 20px;
        }

    .modal-card__body p {
        margin-bottom: 12px;
    }

.modal-card__actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.btn-modal-ok {
    background: var(--navy);
    color: var(--paper);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 48px;
    border: none;
    border-radius: 4px;
    transition: background 0.15s ease;
}

    .btn-modal-ok:hover,
    .btn-modal-ok:focus-visible {
        background: var(--navy-deep);
    }

.modal-overlay--blocking {
    display: flex;
}

.modal-card__header--dark {
    background: #20242b;
}

.modal-card__body a {
    color: #0000ff;
    text-decoration: underline;
    font-weight: bold;
}

.btn-modal-dark {
    background: #201b3a;
    color: #ffffff;
    font-weight: 600;
    padding: 16px 32px;
    width: 100%;
    border: none;
    border-radius: 12px;
    margin-top: 10px;
}

    .btn-modal-dark:hover,
    .btn-modal-dark:focus-visible {
        background: #15171c;
    }

body.modal-locked {
    overflow: hidden;
}

.legal-page {
    padding: 64px 0 80px;
}

.app-container--narrow {
    max-width: 860px;
}

.legal-page__title {
    text-align: center;
    color: var(--navy);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 56px;
}

.legal-page__section {
    margin-bottom: 48px;
}

    .legal-page__section h2 {
        color: var(--navy);
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .legal-page__section p {
        font-size: 0.92rem;
        line-height: 1.7;
        color: #3a4258;
        margin-bottom: 16px;
    }

        .legal-page__section p:last-child {
            margin-bottom: 0;
        }


.consent-declaration {
    border: 2px solid #2e529e;
    margin-top: 30px;
}

.declaration-list {
    list-style-type: none;
    padding: 20px;
}

    .declaration-list li {
        margin-bottom: 15px;
        position: relative;
        padding-left: 25px;
    }

        .declaration-list li::before {
            content: "n";
            font-family: Wingdings;
            position: absolute;
            left: 0;
            color: #2e529e;
        }
.consent-header {
    background: #203a74;
    color: white;
    text-align: center;
    padding: 20px;
}

.consent-header__title {
    font-size: 24px;
    margin: 0;
}

.consent-title-box {
    background: #2e529e;
    color: #d4af37;
    text-align: center;
    padding: 20px;
    border-bottom: 3px solid #d4af37;
}

    .consent-title-box h1 {
        margin: 0;
        color: #d4af37;
    }

.consent-warning {
    background: #eef6ff;
    border: 1px solid #b3d7ff;
    padding: 15px;
    margin: 20px 0;
    border-left: 5px solid #2e529e;
}

.consent-section__header {
    background: #2e529e;
    color: white;
    padding: 10px;
    margin-top: 30px;
    font-size: 18px;
}

.consent-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .consent-table th, .consent-table td {
        border: 1px solid #ccc;
        padding: 12px;
        text-align: left;
        vertical-align: top;
    }

    .consent-table td {
        padding: 10px;
        border: 1px solid #ddd;
        vertical-align: top;
    }

    .consent-table th {
        background-color: #f4f4f4;
        text-align: left;
        padding: 10px;
        border: 1px solid #ddd;
    }

    .consent-table tr:nth-child(even) {
        background: #f9f9f9;
    }

.consent-warning--alert {
    background: #fff5f5;
    border-color: #f5c2c0;
    border-left-color: #b3231f;
    color: #b3231f;
    font-weight: 700;
}

.consent-confirm-box {
    border: 1px solid #b3d7ff;
    background: #ffffff;
    padding: 18px 20px;
    margin-top: 24px;
    font-weight: 700;
    text-align: justify;
}

.consent-footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: #9aa0ad;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.consent-final-notice {
    padding: 20px;
    background-color: #f0f4f8;
    border-top: 2px solid #2e529e;
    font-weight: 500;
    margin-top: 30px;
}

.consent-footer-references {
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.privacy-section__header, .consent-declaration-header {
    background-color: #003366; 
    color: #ffffff;
    padding: 10px;
    margin-bottom: 10px;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #003366;
}

    .privacy-table th, .privacy-table td {
        border: 1px solid #003366;
        padding: 12px;
    }

    .privacy-table th {
        background-color: #f2f2f2;
    }

.consent-declaration-box {
    border: 2px solid #003366;
    padding: 20px;
    margin: 20px 0;
}

.confidential-box {
    border: 2px solid #8b0000; 
    padding: 15px;
    text-align: center;
    color: #8b0000;
    margin-top: 40px;
}

.accordion-header {
    background-color: #003366;
    color: white;
    width: 100%;
    padding: 15px;
    text-align: left;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
}

.accordion-content {
    display: none;
    padding: 15px;
    border: 1px solid #003366;
}