
#vhcReferralform h1 {
    font-size: 30px;
}
#subpage #dnn_dnnLOGO_imgLogo {
    width: 150px;
}

#dnn_dnnLOGO_imgLogo {
    width: 100%;
    max-width: 250px;
}

header a[id*=dnnLOGO] img {
   height:unset !important;
    max-height: unset !important;
    width: auto;
}


.vaapp > h4{font-size:20px;}

#vacontainer .aperture-theme .aperture-header .logo-menu-bar {
    background-color: #fff;
    padding: 0.5rem 0;
    height:150px;
}

#vacontainer .aperture-theme .aperture-header #subpage.logo-menu-bar {
    background-color: #fff;
    padding: 0.5rem 0;
    height: 70px;
}

.aperture-theme .aperture-header #subpage.logo-menu-bar .aperture-container {
    height: 50px;
}


#nav-desktop a.vamenu,#nav-footer a.vamenu {
    color: #0d3ea5;
}

#nav-desktop a.vamenu:hover, #nav-footer a.vamenu:hover {
    color:#ff0000;
}

#nav-desktop li.selected{border-bottom:2px solid #ff0000;}

#contact-list p {
    white-space: pre;
}

.aperture-content-pane {
    padding:unset !important;
}


/*--Form--*/
.formfields {
    margin-bottom: 30px;
}
.appbutton, #formsubmit.submitBtn {
    text-align: center;
    width: fit-content;
    padding: 10px 30px;
    background-color: #0d3ea5;
    color: #fff;
    cursor: pointer;
    border-radius: 10px;
}

#startbtn.appbutton {margin:80px auto; border-radius:10px; }

.w01 {
    width: 150px;
    display: inline-block;
}
.fldbox {
    margin-bottom: 15px;
}

.w02 {
    width: 200px;
    display: inline-block;
}

.errmsg {
    display: none;
    color: #ff0000;
    font-size: 10px;
}

#seniorGP, #contactGP {
    position: relative;
}

    #seniorGP input[type="radio"], #contactGP input[type="radio"] {
        position: absolute;
        margin-top: 4px;
        flex-shrink: 0;
    }

    #seniorGP label, #contactGP label{
        display: block;
        padding-left: 30px;
        margin-bottom: 15px;
    }

    #seniorGP legend, #contactGP legend {
        margin-bottom: 15px;
    }

#nextofKin, #nextofKinRelasion, #seniorinfo1, #seniorinfo2 {
    display: none;
}

div#continue1, div#continue2, div#continue3, div#continue4, .submitBtn {
    float: right;
}


div#back2, div#back3, div#back4, div#back5 {
    float: left;
}

#assignment, #req{display:none;}

.aperture-theme .aperture-header .eyebrow-bar, .aperture-theme .aperture-footer {
    background-color: #003870 !important;
}
    .aperture-theme .aperture-footer .aperture-container .footer-right {
        display:none;
    }
.aperture-theme .aperture-footer {
    margin-top:30px !important;
}
    #nav-footer a {
    font-size: .6rem !important;
}

:root {
    --navy: #1B3A6B;
    --navy-dark: #0F2347;
    --red: #B22234;
    --gold: #C8A96A;
    --light-bg: #F4F2ED;
    --panel-bg: #FFFFFF;
    --text-main: #1a1a1a;
    --text-muted: #5a5a5a;
    --border: rgba(0,0,0,0.1);
    --yes: #1B5E20;
    --no: #B71C1C;
    --unsure: #4A4A6A;
    --radius: 12px;
}

#checklist-root {
    background: var(--light-bg);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.panel {
    display: none;
    flex-direction: column;
    min-height: 520px;
    animation: fadeIn 0.35s ease;
}

    .panel.active {
        display: flex;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* INTRO */
.intro-panel {
    background: var(--navy-dark);
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
}

    .intro-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, var(--red) 33%, #fff 33% 66%, var(--navy) 66%);
    }

.stars-row {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.star {
    color: var(--gold);
    font-size: 18px;
}

.intro-badge {
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 4px;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.intro-panel h1 {
    font-family: 'Merriweather', serif;
    color: #fff;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.intro-panel .subtitle {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 300px;
}

#panel-intro .heading {
    color: #224781;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

#panel-intro .whiteBkg {
    background-color: #E8E6DF;
    padding: 20px;
}

#panel-intro .itemgroup {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #224781;
}

.itemright {
    white-space: nowrap;
}

.start-btn {
    background: var(--gold);
    color: var(--navy-dark);
    border: none;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

    .start-btn:hover {
        background: #d4b87a;
        transform: scale(1.02);
    }

    .start-btn:active {
        transform: scale(0.98);
    }

/* QUESTION */
.q-panel {
    background: var(--panel-bg);
    position: relative;
}

.q-header {
    background: var(--navy);
    padding: 1rem 1.25rem;
    position: relative;
}

    .q-header::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--red) 33%, #fff 33% 66%, var(--navy-dark) 66%);
    }

.q-label {
    color: var(--gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.q-title {
    font-family: 'Merriweather', serif;
    color: #fff;
    font-size: 16px;
}

.progress-bar-wrap {
    background: var(--light-bg);
    padding: 1rem 1.25rem 0.5rem;
    border-bottom: 0.5px solid var(--border);
}

.progress-track {
    background: #ddd;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--navy);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

.q-body {
    padding: 1.5rem 1.25rem;
    flex: 1;
}

.q-text {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    font-family: 'Merriweather', serif;
    font-weight: 400;
}

.answer-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    clear: both;
    margin-bottom:20px;
}

.ans-btn {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.ans-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.btn-yes {
    background: #E8F5E9;
    border-color: #A5D6A7;
    color: var(--yes);
}

    .btn-yes .ans-icon {
        background: var(--yes);
        color: #fff;
    }

    .btn-yes:hover {
        background: #C8E6C9;
        border-color: var(--yes);
    }

.btn-no {
    background: #FFEBEE;
    border-color: #EF9A9A;
    color: var(--no);
}

    .btn-no .ans-icon {
        background: var(--no);
        color: #fff;
    }

    .btn-no:hover {
        background: #FFCDD2;
        border-color: var(--no);
    }

.btn-unsure {
    background: #EDEDF5;
    border-color: #B0B0CC;
    color: var(--unsure);
}

    .btn-unsure .ans-icon {
        background: var(--unsure);
        color: #fff;
    }

    .btn-unsure:hover {
        background: #D8D8EE;
        border-color: var(--unsure);
    }

.ans-btn:active {
    transform: scale(0.98);
}

.q-footer {
    padding: 0.75rem 1.25rem;
    border-top: 0.5px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
}

.back-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
    padding: 4px 0;
    text-decoration: underline;
}

    .back-link:hover {
        color: var(--navy);
    }

.step-dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.3s;
}

    .dot.done {
        background: var(--gold);
    }

    .dot.active {
        background: var(--navy);
    }

.subtext {
    color: #565555;
    font-size: 13px;
}

/* RESULT */
.result-panel {
    background: var(--panel-bg);
}

.result-header {
    padding: 2rem 1.25rem 1.5rem;
    text-align: center;
    position: relative;
}

    .result-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
    }

    .result-header.r-all::before {
        background: #1B5E20;
    }

    .result-header.r-unsure::before {
        background: #4A4A6A;
    }

    .result-header.r-no::before {
        background: #B71C1C;
    }

.result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 1rem;
}

.r-all .result-icon {
    background: #E8F5E9;
}

.r-unsure .result-icon {
    background: #EDEDF5;
}

.r-no .result-icon {
    background: #FFEBEE;
}

.result-header h2 {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    margin-bottom: 0.5rem;
}

.r-all h2 {
    color: var(--yes);
}

.r-unsure h2 {
    color: var(--unsure);
}

.r-no h2 {
    color: var(--no);
}

.result-header p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
}

.result-body {
    padding: 0 1.25rem 1rem;
}

.result-card {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 10px;
}

.result-card-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.result-card p {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
}

.answers-summary {
    padding: 0 1.25rem 1rem;
}

.answers-summary-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.answer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 0.5px solid var(--border);
    gap: 8px;
}

    .answer-row:last-child {
        border-bottom: none;
    }

.answer-row-q {
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
    line-height: 1.4;
}

.answer-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.pill-yes {
    background: #C8E6C9;
    color: var(--yes);
}

.pill-no {
    background: #FFCDD2;
    color: var(--no);
}

.pill-unsure {
    background: #D8D8EE;
    color: var(--unsure);
}

.restart-btn {
    display: block;
    width: calc(100% - 2.5rem);
    margin: 0 1.25rem 1.5rem;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Source Sans 3', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}

    .restart-btn:hover {
        background: var(--navy-dark);
    }

    .restart-btn:active {
        transform: scale(0.98);
    }

.disclaimer {
    margin: 0 1.25rem 1.25rem;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    padding: 10px 12px;
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}

#q-info-link {
    padding-bottom: 20px;
}

.info-link {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    margin-bottom: 15px;
    cursor: pointer;
}

.info-icon {
    display: none;
}
/* MODAL OVERLAY */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

    .modal-overlay.open {
        display: flex;
        animation: fadeIn 0.2s ease;
    }

.modal-box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--navy);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

    .modal-header::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--red) 33%, #fff 33% 66%, var(--navy-dark) 66%);
    }

    .modal-header h3 {
        font-family: 'Merriweather', serif;
        color: #fff;
        font-size: 15px;
        margin: 0;
    }

.modal-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

    .modal-close:hover {
        background: rgba(255,255,255,0.3);
    }

.modal-body {
    padding: 1.25rem;
}

.modal-intro {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 0.5px solid var(--border);
}

.war-period {
    padding: 10px 0;
    border-bottom: 0.5px solid var(--border);
}

    .war-period:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.war-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 3px;
}

.war-dates {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal-footer {
    padding: 0.75rem 1.25rem;
    background: var(--light-bg);
    border-top: 0.5px solid var(--border);
}

.modal-close-btn {
    width: 100%;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Source Sans 3', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}

    .modal-close-btn:hover {
        background: var(--navy-dark);
    }

.disclaimer, .answers-summary {
    display: none;
}
.footer-copyright{margin-top:20px;}

.appPage {
    margin: 15px 30px !important;
}

.LoginPanel {
    margin: 15px 30px !important;
    box-sizing: border-box !important;
}

.appPage {
    box-sizing: border-box !important;
}

.appPage h2 {
    font-size: 24px;
}

    .appPage h3 {
        font-size: 20px;
    }

    .appPage h4 {
        font-size: 18px;
    }

.appPage li{margin-bottom:15px;}

#formsubmit.submitBtn {
    padding: 15px 30px;
    float: right !important;
    border:1px solid #0d3ea5;
}

#startover, #closeBtn{text-align:center; margin-bottom:30px;}
    #startover a, #closeBtn a, #startover a:visited, #closeBtn a:visited {
        color: #fff;
        display: inline-block;
    }

/* Media Breaks */
@media (min-width: 480px) {
    .itemright {
        float: right;
    }
    .appPage h2 {
        font-size: 30px !important;
    }
}









