﻿html {
    background-color: #f3f2f1;
    overflow-y: scroll;
}

body {
    font-family: Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    background-color: #fff;
    font-weight: 400;
    font-size: 1rem;
}

h1 {
    color: #0b0c0c;
    margin-top: 0;
    margin-bottom: 15px;
}

@media (min-width: 40.0625em) {
    h1 {
        margin-bottom: 20px;
    }
}

h2 {
    color: #0b0c0c;
    font-weight: 700;
    font-size: 1.3125rem;
    line-height: 1.1904761905;
    display: block;
    margin-top: 0;
    margin-bottom: 15px;
}

@media (min-width: 40.0625em) {
    h2 {
        margin-bottom: 20px;
    }
}

p {
    color: #0b0c0c;
    font-size: 1.1875rem;
    line-height: 1.3157894737;
    margin-top: 0;
    margin-bottom: 15px;
}

@media (min-width: 40.0625em) {
    p {
        margin-bottom: 20px;
    }
}

.govuk-header {
    line-height: 1;
    border-bottom: 10px solid #fff;
    color: #fff;
    background: #0b0c0c;
}

.govuk-header__container {
    position: relative;
    margin-bottom: -10px;
    padding-top: 10px;
    border-bottom: 10px solid #1d70b8;
}

.govuk-width-container {
    max-width: 960px;
    margin-right: 15px;
    margin-left: 15px;
}

@supports (margin: max(calc(0px))) {
    .govuk-width-container {
        margin-right: max(15px, calc(15px + env(safe-area-inset-right)));
        margin-left: max(15px, calc(15px + env(safe-area-inset-left)));
    }
}

@media (min-width: 40.0625em) {
    .govuk-width-container {
        margin-right: 30px;
        margin-left: 30px;
    }
}

@media (min-width: 40.0625em) {
    @supports (margin: max(calc(0px))) {
        .govuk-width-container {
            margin-right: max(30px, calc(15px + env(safe-area-inset-right)));
            margin-left: max(30px, calc(15px + env(safe-area-inset-left)));
        }
    }
}

@media (min-width: 1020px) {
    .govuk-width-container {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (min-width: 1020px) {
    @supports (margin: max(calc(0px))) {
        .govuk-width-container {
            margin-right: auto;
            margin-left: auto;
        }
    }
}

.govuk-header__logo {
    margin-bottom: 10px;
    width: auto;
    padding-right: 0;
    float: none;
    color: #fff;
}

.govuk-header__logotype {
    display: inline-block;
    position: relative;
    top: -3px;
    margin-right: 5px;
    fill: currentcolor;
    vertical-align: top;
}

.govuk-ho-logo {
    display: block;
    padding-top: 20px;
}

@media (min-width: 40.0625em) {
    .govuk-ho-logo {
        padding-top: 30px;
    }
}

.govuk-main-wrapper {
    display: block;
    padding-top: 20px;
}

@media (min-width: 40.0625em) {
    .govuk-main-wrapper {
        padding-top: 30px;
        padding-bottom: 40px;
    }
}

.govuk-footer {
    font-size: 1.1875rem;
    line-height: 1.3157894737;
    padding-top: 25px;
    padding-bottom: 15px;
    border-top: 1px solid #b1b4b6;
    color: #0b0c0c;
    background: #f3f2f1;
}

@media (min-width: 40.0625em) {
    .govuk-footer {
        padding-top: 40px;
    }
}

@media (min-width: 40.0625em) {
    .govuk-footer {
        padding-bottom: 25px;
    }
}

.govuk-footer__meta {
    display: flex;
    margin-right: -15px;
    margin-left: -15px;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
}

.govuk-footer__meta-item {
    margin-right: 15px;
    margin-bottom: 25px;
    margin-left: 15px;
}

.govuk-footer__meta-item--grow {
    flex: 1;
}

@media (max-width: 40.0525em) {
    .govuk-footer__meta-item--grow {
        flex-basis: 320px;
    }
}

.govuk-footer__inline-list {
    margin-top: 0;
    margin-bottom: 15px;
    padding: 0;
}

.govuk-footer__inline-list-item {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
}

.govuk-footer__licence-logo {
    display: inline-block;
    margin-right: 10px;
    vertical-align: top;
    forced-color-adjust: auto;
}

.govuk-footer__licence-description {
    display: inline-block;
    text-wrap: balance;
}

.govuk-footer__link {
    text-decoration: underline;
    text-decoration-thickness: max(1px, .0625rem);
    text-underline-offset: .2em;
}

.govuk-footer__copyright-logo {
    display: inline-block;
    min-width: 125px;
    padding-top: 112px;
    background-image: url(/imgs/govuk-crest.svg);
    background-repeat: no-repeat;
    background-position: 50% 0%;
    background-size: 125px 102px;
    text-align: center;
    white-space: nowrap;
}

.govuk-footer__link:link, .govuk-footer__link:visited {
    color: #0b0c0c;
}

a:hover {
    text-decoration-thickness: max(3px, .0625rem);
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
    -webkit-text-decoration-skip: none;
    text-decoration-skip: none;
}

.govuk-form-group {
    margin-bottom: 20px;
}

.govuk-label {
    line-height: 1.25;
    color: #0b0c0c;
    display: block;
    margin-bottom: 5px;
}

@media (min-width: 40.0625em) {
    .govuk-label {
        font-size: 1.1875rem;
        line-height: 1.3157894737;
    }
}

.govuk-label--l, .govuk-label--m, .govuk-label--xl {
    font-weight: 700;
    margin-bottom: 15px;
}

@media (min-width: 40.0625em) {
    .govuk-label--l {
        font-size: 2.25rem;
        line-height: 1.1111111111;
    }
}

.govuk-hint {
    line-height: 1.25;
    margin-bottom: 15px;
    color: #505a5f;
}

@media (min-width: 40.0625em) {
    .govuk-hint {
        font-size: 1.1875rem;
        line-height: 1.3157894737;
    }
}

.govuk-input {
    line-height: 1.25;
    box-sizing: border-box;
    width: 100%;
    height: 2.5rem;
    margin-top: 0;
    padding: 5px;
    border: 2px solid #0b0c0c;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

    .govuk-input:focus {
        outline: 3px solid #fd0;
        outline-offset: 0;
        box-shadow: inset 0 0 0 2px;
    }

.govuk-textarea {
    line-height: 1.25;
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 40px;
    margin-bottom: 20px;
    padding: 5px;
    resize: vertical;
    border: 2px solid #0b0c0c;
    border-radius: 0;
    -webkit-appearance: none;
}

    .govuk-textarea:focus {
        outline: 3px solid #fd0;
        outline-offset: 0;
        box-shadow: inset 0 0 0 2px;
    }

.govuk-radios__item {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    margin-bottom: 10px;
}

.govuk-radios__input {
    z-index: 1;
    width: 44px;
    height: 44px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.govuk-radios__label {
    align-self: center;
    max-width: calc(100% - 74px);
    margin-bottom: 0;
    padding: 7px 15px;
    cursor: pointer;
    touch-action: manipulation;
}

    .govuk-radios__label:before {
        content: "";
        box-sizing: border-box;
        position: absolute;
        top: 2px;
        left: 2px;
        width: 40px;
        height: 40px;
        border: 2px solid;
        border-radius: 50%;
        background: transparent;
    }

    .govuk-radios__label:after {
        content: "";
        position: absolute;
        top: 12px;
        left: 12px;
        width: 0;
        height: 0;
        border: 10px solid;
        border-radius: 50%;
        opacity: 0;
        background: currentcolor;
    }

.govuk-radios__input:checked + .govuk-radios__label:after {
    opacity: 1;
}

.govuk-radios__input:focus + .govuk-radios__label:before {
    border-width: 4px;
    outline: 3px solid transparent;
    outline-offset: 1px;
    box-shadow: 0 0 0 4px #fd0;
}

.govuk-checkboxes__item {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    margin-bottom: 10px;
}

.govuk-checkboxes__input {
    z-index: 1;
    width: 44px;
    height: 44px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.govuk-checkboxes__label {
    align-self: center;
    max-width: calc(100% - 74px);
    margin-bottom: 0;
    padding: 7px 15px;
    cursor: pointer;
    touch-action: manipulation;
}

    .govuk-checkboxes__label:before {
        top: 2px;
        left: 2px;
        width: 40px;
        height: 40px;
        border: 2px solid;
    }

    .govuk-checkboxes__label:after {
        top: 13px;
        left: 10px;
        width: 23px;
        height: 12px;
        transform: rotate(-45deg);
        border: solid;
        border-width: 0 0 5px 5px;
        border-top-color: transparent;
        opacity: 0;
    }

    .govuk-checkboxes__label:after, .govuk-checkboxes__label:before {
        content: "";
        box-sizing: border-box;
        position: absolute;
        background: transparent;
    }

.govuk-checkboxes__input:checked + .govuk-checkboxes__label:after {
    opacity: 1;
}

.govuk-checkboxes__input:focus + .govuk-checkboxes__label:before {
    border-width: 4px;
    outline: 3px solid transparent;
    outline-offset: 1px;
    box-shadow: 0 0 0 3px #fd0;
}

.govuk-button {
    line-height: 1.1875;
    box-sizing: border-box;
    display: inline-block;
    position: relative;
    width: 100%;
    margin: 0 0 22px;
    padding: 8px 10px 7px;
    border: 2px solid transparent;
    border-radius: 0;
    color: #fff;
    background-color: #00703c;
    box-shadow: 0 2px 0 #002d18;
    text-align: center;
    vertical-align: top;
    cursor: pointer;
    text-decoration: none;
    -webkit-appearance: none;
}

    .govuk-button:hover {
        background-color: #005a30;
        color: #fff;
        text-decoration: none;
    }

    .govuk-button:active {
        top: 2px;
    }

    .govuk-button:focus {
        border-color: #fd0;
        outline: 3px solid transparent;
        box-shadow: inset 0 0 0 1px #fd0;
    }

        .govuk-button:focus:not(:active):not(:hover) {
            border-color: #fd0;
            color: #0b0c0c;
            background-color: #fd0;
            box-shadow: 0 2px 0 #0b0c0c;
        }

@media (min-width: 40.0625em) {
    .govuk-button {
        font-size: 1.1875rem;
        line-height: 1;
    }
}

@media (min-width: 40.0625em) {
    .govuk-button {
        margin-bottom: 32px;
        width: auto;
    }
}

.govuk-button--secondary {
    color: #0b0c0c;
    background-color: #f3f2f1;
    box-shadow: 0 2px 0 #929191;
}

    .govuk-button--secondary:hover {
        background-color: #dbdad9;
        color: #0b0c0c;
    }

.govuk-inset-text {
    font-size: 1.1875rem;
    line-height: 1.3157894737;
    color: #0b0c0c;
    padding: 15px;
    margin-bottom: 20px;
    clear: both;
    border-left: 10px solid #b1b4b6;
}

@media (min-width: 40.0625em) {
    .govuk-inset-text {
        margin-bottom: 30px;
    }
}

.govuk-inset-text > :only-child, .govuk-inset-text > :last-child {
    margin-bottom: 0;
}

.govuk-inset-red {
    border-left: 10px solid #b51721;
    background-color: #f0d6d7;
}

.govuk-inset-green {
    border-left: 10px solid #249386;
    background-color: #bbe9e4;
}

.govuk-inset-blue {
    border-left: 10px solid #2b8cc4;
    background-color: #DBEFF9;
}

.govuk-panel {
    font-weight: 400;
    font-size: 1.6875rem;
    line-height: 1.1111111111;
    box-sizing: border-box;
    margin-bottom: 15px;
    padding: 35px;
    text-align: center;
}

@media (min-width: 40.0625em) {
    .govuk-panel {
        font-size: 2.25rem;
        line-height: 1.1111111111;
    }
}

.govuk-panel--confirmation {
    color: #fff;
    background: #00703c;
}

    .govuk-panel--confirmation h1, .govuk-panel--confirmation h2, .govuk-panel--confirmation p {
        color: #fff;
    }

.govuk-panel--error {
    color: black;
    background: #F0D6D7;
    text-align: left;
    border-left: 8px solid #B51721;
    padding: 15px;
}

    .govuk-panel--error h1, .govuk-panel--error h2, .govuk-panel--error p {
        color: black;
    }

.govuk-panel__title {
    line-height: 1.09375;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 30px;
}

@media (min-width: 40.0625em) {
    .govuk-panel__title {
        line-height: 1.0416666667;
    }
}

.mi-combined {
    position: relative;
    display: inline-block;
    width: 65px;
    height: 65px;
    line-height: 1em;
    vertical-align: middle;
    margin: 0 auto 10px;
}

    .mi-combined .material-icons {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        text-align: center;
    }

    .mi-combined .upper {
        margin-top: 12px;
        font-size: 40px;
    }

    .mi-combined .lower {
        color: #2C7E52;
        font-size: 65px;
    }

    .mi-combined .lower-error {
        color: #FF3131;
        font-size: 65px;
    }

/* GDS Error Styling - Adding missing styles for validation messages */

/* Error Summary */
.govuk-error-summary {
    color: #d4351c;
    border: 5px solid #d4351c;
    padding: 15px;
    margin-bottom: 30px;
    background-color: #f0d6d7;
}

/* Error summary already has role="alert" in HTML */

.govuk-error-summary__title {
    color: #d4351c;
    font-weight: 700;
    font-size: 1.3125rem;
    line-height: 1.1904761905;
    margin-top: 0;
    margin-bottom: 15px;
}

.govuk-error-summary__body {
    color: #d4351c;
}

.govuk-error-summary__list {
    color: #d4351c;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.govuk-error-summary__list li {
    margin-bottom: 5px;
}

.govuk-error-summary__list a {
    color: #d4351c;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: max(1px, .0625rem);
    text-underline-offset: .2em;
}

.govuk-error-summary__list a:hover {
    color: #942514;
    text-decoration-thickness: max(3px, .0625rem);
}

/* Form Group Error State */
.govuk-form-group--error {
    border-left: 5px solid #d4351c;
    margin-right: 15px;
    padding-left: 10px;
}

/* Error Message */
.govuk-error-message {
    font-size: 1.1875rem;
    line-height: 1.3157894737;
    font-weight: 700;
    color: #d4351c;
    display: block;
    margin-bottom: 15px;
}

/* Only show "Error: " prefix when there's actual error content */
.govuk-error-message:not(:empty):before {
    content: "Error: ";
    font-weight: 700;
}

/* Hide empty error message elements */
.govuk-error-message:empty {
    display: none;
}

/* Input Error State */
.govuk-input--error {
    border: 2px solid #d4351c;
    box-shadow: none;
}

.govuk-input--error:focus {
    border-color: #0b0c0c;
    outline: 3px solid #fd0;
    outline-offset: 0;
    box-shadow: inset 0 0 0 2px;
}

/* Textarea Error State */
.govuk-textarea--error {
    border: 2px solid #d4351c;
    box-shadow: none;
}

.govuk-textarea--error:focus {
    border-color: #0b0c0c;
    outline: 3px solid #fd0;
    outline-offset: 0;
    box-shadow: inset 0 0 0 2px;
}

/* Select Error State */
.govuk-select--error {
    border: 2px solid #d4351c;
    box-shadow: none;
}

.govuk-select--error:focus {
    border-color: #0b0c0c;
    outline: 3px solid #fd0;
    outline-offset: 0;
    box-shadow: inset 0 0 0 2px;
}

/* Radio and Checkbox Error State */
.govuk-radios__input--error,
.govuk-checkboxes__input--error {
    border: 2px solid #d4351c;
}

/* Enhanced visibility for error states */
.govuk-form-group--error .govuk-label {
    color: #0b0c0c;
    font-weight: 700;
}

/* Ensure error styling is prominent */
.govuk-error-message,
.govuk-error-summary {
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#cassie_pre_banner_text {
    max-height: 70vh;
    overflow-y: auto;
    min-height: 250px;
    margin-bottom: 10px;
    padding-bottom: 0px;
}

/* Disable the GOV.UK header logo link to prevent navigation */
.govuk-header__link--homepage {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
}
/* Ensure it looks like text, not a link on hover */
.govuk-header__link--homepage:hover {
    text-decoration: none !important;
    color: inherit !important;
}