﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');
@import url('student-application.css?v=20261008');
/* Shared visual language; preserve the existing page controls and their behavior. */
html body{background:#f2f6fa!important;color:#17324d;font-family:Cairo,Tahoma,sans-serif!important;min-height:100vh}body>form{width:100%}body #bgCanvas{display:none}body .container{max-width:1120px}body .header-container{background:transparent!important;box-shadow:none!important;border-radius:0;padding:28px 20px!important;margin:0 auto 28px!important;border-bottom:1px solid #dce6ee;max-width:1120px}body .header-container h1{color:#17324d!important}body .header-container h2{color:#61748b!important}body .header-container .container{gap:22px;flex-direction:row!important}body .ministry-logo{width:72px!important;height:auto}body .card,body .login-card,body .registration-card,body .wizard-container,body .form-container{background:#fff!important;border:1px solid #dce6ee!important;border-radius:16px!important;box-shadow:0 4px 20px #17324d08!important}body .card-header{background:#fff!important;color:#176b80!important;border-bottom:1px solid #dce6ee!important;border-right:5px solid #176b80;font-size:18px!important}body .card-footer{display:block;background:#f8fafc;border-top:1px solid #dce6ee}body .login-title{color:#176b80!important;background:none!important;-webkit-text-fill-color:#176b80!important;text-shadow:none!important}body .title-line{background:#176b80!important}body .title-container{background:#176b80!important;border-radius:12px}body .login-container{padding:0 16px 32px}body .login-card{margin-top:0;padding:30px;max-width:740px}body .form-label{font-weight:600;color:#61748b;font-size:14px}body .form-control,body .form-select,body .custom-ddl{border:1px solid #dce6ee!important;border-radius:9px!important;color:#17324d!important;font-family:inherit!important;font-size:14px!important;min-height:43px}body .form-control:focus,body .form-select:focus{border-color:#176b80!important;box-shadow:0 0 0 3px #176b8015!important}body .btn-primary,body .bg-primary{background:#176b80!important;border-color:#176b80!important}body .btn-primary:hover{background:#125769!important}body .text-primary{color:#176b80!important}body .btn{font-family:inherit!important;border-radius:10px!important;font-size:14px!important;font-weight:600}body .btn:disabled,body input:disabled{cursor:not-allowed}body .btn-outline-primary{color:#176b80;border-color:#176b80}body .btn-outline-primary:hover{background:#176b80;color:#fff}body .modal-content{border:1px solid #dce6ee;border-radius:16px;box-shadow:0 20px 60px #17324d20}body .modal-header{background:#f8fafc;color:#17324d;border-bottom:1px solid #dce6ee}body .modal-title{font-weight:700}body footer,body .footer{color:#61748b;background:transparent!important;font-size:12px;padding:22px;text-align:center}body .list-group{border:1px solid #dce6ee;border-radius:14px!important;overflow:hidden;box-shadow:0 4px 20px #17324d08!important}body .list-group-item{font-family:inherit;font-size:14px;white-space:normal;padding:15px 18px;border-color:#e8eef3;color:#17324d;background:#fff;text-align:right!important}body .list-group-item:hover{background:#edf5f6;color:#176b80}body .list-group-item.bg-primary{color:#fff!important;font-weight:700}body .list-group-item:disabled{background:#f5f8fb;color:#8b98a7;opacity:.7}body .styled-grid{border-color:#dce6ee!important;border-radius:12px;overflow:hidden;font-family:inherit!important}body .styled-grid th{background:#edf5f6!important;color:#176b80!important;font-size:13px;padding:14px}body .styled-grid td{padding:12px;font-size:14px}body .styled-grid tr:nth-child(even){background:#f8fafc}body .step-circle.active,body .step.active,body .step-indicator.active{background:#176b80!important;color:#fff!important;border-color:#176b80!important}body .progress-bar{background:#176b80!important}
.portal-shell{padding-bottom:32px}.portal-student{border-right:5px solid #176b80!important}.portal-student .card-body{padding:20px 24px}.portal-student .fw-bold{font-size:13px}.portal-sidebar{position:sticky;top:20px}.portal-main{min-width:0}.portal-welcome{padding:30px!important}.portal-eyebrow{font-size:12px;font-weight:700;color:#176b80;letter-spacing:.3px;margin-bottom:8px}.portal-welcome h1{font-size:25px;line-height:1.6;font-weight:700;margin:0 0 10px}.portal-lead{font-size:15px;line-height:2;color:#61748b;margin:0}.portal-section-title{font-size:17px;font-weight:700;margin:28px 0 16px}.portal-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.portal-step{padding:22px;background:#fff;border:1px solid #dce6ee;border-radius:14px}.portal-step-number{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;background:#eaf4f5;color:#176b80;border-radius:10px;font-weight:700;margin-bottom:14px}.portal-step h2{font-size:16px;font-weight:700;margin:0 0 9px}.portal-step p{font-size:13px;color:#61748b;line-height:1.9;margin:0}.portal-help{margin-top:22px;padding:18px 20px;background:#eaf4f5;border:1px solid #d4e8ea;border-radius:12px;color:#245b69;font-size:14px}.portal-warning{padding:18px 22px;border:1px solid #ebd7b3;border-radius:12px;background:#fff8eb;color:#775420;font-size:14px;margin:0 0 22px}.portal-warning p{margin:0}.portal-footer{max-width:1120px;margin:16px auto 0;padding:22px;border-top:1px solid #dce6ee;color:#61748b;font-size:12px;text-align:center}
@media(max-width:767px){body .header-container{padding:18px 12px!important;margin-bottom:18px!important}body .header-container .container{gap:12px;align-items:center!important}body .ministry-logo{width:52px!important}body .header-container h1{font-size:15px!important;line-height:1.8}body .header-container h2{font-size:11px!important}body .login-card{padding:22px 16px}body .card-body{padding:16px}.portal-welcome{padding:22px!important}.portal-welcome h1{font-size:21px}.portal-steps{grid-template-columns:1fr}.portal-sidebar{position:static}.portal-student .card-body{padding:16px}.portal-shell{padding:0 12px}}
@media print{html body{background:#fff!important;color:#000!important}.portal-sidebar,.portal-footer,#cardStep8,.btn{display:none!important}.card,.login-card{box-shadow:none!important;border-radius:0!important}.container{max-width:none!important;padding:0!important}.header-container{margin:0!important;padding:8px!important}.table{font-size:11px}.portal-main{width:100%!important}}
body>canvas{display:none!important}body .btn-success,body .btn-otp-verify,body .btn-continue{background:#176b80!important;border-color:#176b80!important;color:#fff!important}body .btn-success:hover{background:#125769!important}

/* Registration uses its own card and stepper classes. */
body .form-container{padding:28px!important;margin-bottom:32px}body .card-Reg{background:#fff!important;border-radius:0!important;border-bottom:1px solid #dce6ee!important;padding:0 0 18px!important;box-shadow:none!important}body .Reg-title{background:none!important;color:#176b80!important;font-size:21px!important;-webkit-text-fill-color:#176b80!important;text-shadow:none!important}body .stepper-wrapper{max-width:720px;margin:0 auto 28px!important;padding:0 24px}body .stepper-wrapper .step{background:transparent!important;border:0!important;color:#61748b!important;box-shadow:none!important}body .stepper-wrapper .step-icon{width:38px;height:38px;background:#edf2f6!important;border:1px solid #dce6ee!important;color:#61748b!important;box-shadow:none!important;font-size:16px}body .stepper-wrapper .step.active .step-icon{background:#176b80!important;color:#fff!important;border-color:#176b80!important}body .stepper-wrapper .step.done .step-icon{background:#eaf4f5!important;color:#176b80!important;border-color:#176b80!important}body .stepper-wrapper .step-label{font-size:13px!important;color:#61748b!important}body .stepper-wrapper .step.active .step-label{color:#176b80!important;font-weight:700}body .stepper-line{background:#dce6ee!important;height:3px!important}body .stepper-line .line-fill{background:#176b80!important}body .wizard-panel .form-label{color:#61748b!important}body .wizard-panel .row{row-gap:8px}body .form-container .card-body{padding-bottom:0!important}@media(max-width:700px){body .form-container{padding:20px 16px!important}body .Reg-title{font-size:18px!important}body .stepper-wrapper{padding:0 16px;margin-bottom:20px!important}}
@media screen {
    body.theme-login {
        --page-light: #e5f3f6;
        --banner-start: #123451;
        --banner-end: #126577;
        --accent: #146377;
        --accent-dark: #0d4d5e;
        --accent-tint: #e9f5f7;
    }

    body.theme-registration {
        --page-light: #e5f3ec;
        --banner-start: #163d3b;
        --banner-end: #23694f;
        --accent: #25634c;
        --accent-dark: #174a37;
        --accent-tint: #eaf6ee;
    }

    body.theme-portal,
    body.theme-application {
        --page-light: #edf1fb;
        --banner-start: #243760;
        --banner-end: #315381;
        --accent: #315381;
        --accent-dark: #233e64;
        --accent-tint: #edf3fc;
    }

    html body:is(.theme-login, .theme-registration, .theme-portal, .theme-application) {
        background: linear-gradient(155deg, var(--page-light), #f7f9fc 65%) !important;
    }

    body:is(.theme-login, .theme-registration, .theme-portal, .theme-application) .header-container {
        background: linear-gradient(110deg, var(--banner-start), var(--banner-end)) !important;
        border-bottom: 3px solid #e3bd73;
        border-radius: 0 0 18px 18px;
    }

    body:is(.theme-login, .theme-registration, .theme-portal, .theme-application) .header-container h1 {
        color: #fff !important;
    }

    body:is(.theme-login, .theme-registration, .theme-portal, .theme-application) .header-container h2 {
        color: #eef4fb !important;
    }

    body:is(.theme-login, .theme-registration, .theme-portal, .theme-application) .btn-primary {
        background: var(--accent) !important;
        border-color: var(--accent) !important;
    }

    body:is(.theme-login, .theme-registration, .theme-portal, .theme-application) .btn-primary:hover {
        background: var(--accent-dark) !important;
    }

    body.theme-login .login-card,
    body.theme-registration .form-container {
        border-top: 4px solid var(--accent) !important;
    }

    body.theme-registration .Reg-title,
    body.theme-registration .stepper-wrapper .step.active .step-label {
        color: var(--accent) !important;
        -webkit-text-fill-color: var(--accent) !important;
    }

    body.theme-registration .stepper-wrapper .step.active .step-icon,
    body.theme-registration .stepper-line .line-fill,
    body.theme-portal .list-group-item.bg-primary {
        background: var(--accent) !important;
        border-color: var(--accent) !important;
    }

    body.theme-portal .portal-welcome,
    body.theme-portal .portal-step-number,
    body.theme-application .card-header {
        background: var(--accent-tint) !important;
        color: var(--accent) !important;
        border-right-color: var(--accent);
    }

    body.theme-portal .portal-student {
        border-right-color: var(--accent) !important;
    }

    body.theme-application #cardStep8 .card-body {
        background: var(--accent-tint);
        border-radius: inherit;
    }

    body.theme-application .disability-options label {
        margin-inline: .4rem 1.25rem;
        cursor: pointer;
    }

    body.theme-application .disability-options input {
        accent-color: var(--accent);
    }
}

body.theme-application .application-choices {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}

body.theme-application .application-choice {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .8rem;
    border: 2px solid #d1dce8;
    border-radius: .65rem;
    background: #fff;
    color: #40536b;
}

body.theme-application .application-choice .form-check-input {
    margin: 0 !important;
    flex: 0 0 18px;
}

body.theme-application .application-choice:has(input:checked) {
    border-color: #315381;
    background: #e3efff;
    color: #17375c;
    font-weight: 700;
}

body.theme-application .application-choice input:checked {
    border-color: #315381;
    background: radial-gradient(circle, #fff 0 3px, #315381 4px) !important;
}

.family-document {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.family-document-thumbnail {
    padding: 3px;
    border: 1px solid #315381;
    border-radius: 9px;
    background: #fff;
    cursor: zoom-in;
}

.family-document-thumbnail img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.family-document-dialog {
    max-width: min(92vw, 960px);
    max-height: 92vh;
    padding: 1rem;
    border: 1px solid #dce6ee;
    border-radius: 14px;
    color: #17324d;
}

.family-document-dialog::backdrop {
    background: rgb(17 34 54 / 70%);
}

.family-document-dialog > img {
    display: block;
    max-width: 100%;
    max-height: 74vh;
    margin-inline: auto;
    object-fit: contain;
}

body:is(.login-page, .registration-page) {
    --login-accent: #315381;
    --login-tint: #edf3fc;
}

body:is(.login-page, .registration-page) .auth-banner {
    max-width: 896px;
    width: calc(100% - 1.5rem);
}

body:is(.login-page, .registration-page) .auth-banner h1 {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.7;
}

body:is(.login-page, .registration-page) .auth-banner h2 {
    line-height: 1.7;
}

.login-main {
    width: calc(100% - 1.5rem);
    max-width: 896px;
    margin-inline: auto;
}

body.login-page .login-panel .card-header {
    padding: .9rem 1.25rem;
    background: var(--login-tint) !important;
    color: var(--login-accent) !important;
    border-inline-start-color: var(--login-accent);
    font-weight: 700;
}

body.login-page .login-panel .card-body {
    padding: clamp(1rem, 4vw, 1.75rem);
}

.auth-captcha {
    padding: .875rem;
    border: 1px solid #d6e2f2;
    border-radius: .75rem;
    background: var(--login-tint);
}

.auth-captcha-image {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .625rem;
    margin-bottom: .625rem;
}

.auth-captcha-image img {
    max-width: 100%;
    object-fit: contain;
    border: 1px solid #d6e2f2;
    border-radius: .5rem;
    background: #fff;
}

.login-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #dce6ee;
}

.login-links a {
    color: var(--login-accent);
    font-size: .875rem;
}

.login-links .login-register {
    width: 100%;
    background: var(--login-tint);
}

body:is(.login-page, .registration-page) .btn-outline-primary {
    color: var(--login-accent);
    border-color: var(--login-accent);
}

body:is(.login-page, .registration-page) .btn-outline-primary:hover {
    color: #fff;
    background: var(--login-accent);
}

body.login-page .login-footer {
    width: calc(100% - 1.5rem);
    max-width: 896px;
    margin: auto auto 0;
    padding: 1rem;
    border-top: 1px solid #dce6ee;
}

.registration-main {
    max-width: 820px;
    margin-inline: auto;
    padding: 0 .75rem;
}

body.registration-page .registration-panel .card-header {
    padding: .9rem 1.25rem;
    background: var(--login-tint) !important;
    color: var(--login-accent) !important;
    border-inline-start-color: var(--login-accent);
    font-weight: 700;
}

body.registration-page .registration-panel .card-body {
    padding: clamp(1rem, 4vw, 1.75rem);
}

body.registration-page .stepper-wrapper .step:is(.active, .done) .step-icon {
    background: var(--login-accent) !important;
    border-color: var(--login-accent) !important;
    color: #fff !important;
}

body.registration-page .stepper-wrapper .step.active .step-label {
    color: var(--login-accent) !important;
    font-weight: 700;
}

body.registration-page .stepper-line .line-fill {
    background: var(--login-accent) !important;
}

.registration-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #dce6ee;
}

.registration-actions .btn {
    min-width: 9rem;
}

.registration-footer {
    width: calc(100% - 1.5rem);
    max-width: 896px;
}

@media (max-width: 575px) {
    .registration-actions .btn {
        width: 100%;
    }
}

@media screen {
    .portal-form {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .portal-form > .header-container {
        width: calc(100% - 1.5rem);
    }

    .portal-form .portal-shell {
        display: flex;
        flex: 1;
        flex-direction: column;
    }

    .portal-form .portal-side-column {
        margin-bottom: 1.25rem;
    }

    .portal-form .portal-sidebar {
        position: static;
        background: linear-gradient(180deg, #eef4fc, #e4edf9);
        border-color: #d1dff0;
    }

    .portal-form .portal-sidebar .list-group-item {
        min-height: 3.25rem;
        padding: .85rem 1rem;
        border-color: #dbe6f4;
        background: transparent;
        color: #1d3c63;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.65;
    }

    .portal-form .portal-sidebar .list-group-item.bg-primary {
        font-size: 16px;
    }

    .portal-form .portal-sidebar .list-group-item-action:not(.bg-primary):not(:disabled):hover,
    .portal-form .portal-sidebar .list-group-item-action:not(.bg-primary):focus-visible {
        background: #dbe9fa;
        color: #17375c;
    }

    .portal-form .portal-footer {
        width: calc(100% - 1.5rem);
    }
}

@media screen and (min-width: 768px) {
    .portal-form .portal-layout {
        flex: 1;
    }

    .portal-form .portal-side-column {
        display: flex;
        margin-bottom: 0;
    }

    .portal-form .portal-sidebar {
        width: 100%;
    }
}

.portal-form .portal-sidebar .list-group-item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}

.portal-form .portal-sidebar .list-group-item .bi {
    flex: 0 0 1.25rem;
    font-size: 1.1rem;
    text-align: center;
}

.portal-form .portal-sidebar .list-group-item.aspNetDisabled {
    color: #61748b;
    cursor: not-allowed;
}
