﻿body, html, form {
    color: #0B0C0C;
    height: 100%;
}

label {
    font-weight: normal;
}

div.question.row > legend {
    font-weight: bold;
}

.DateDropdown > legend {
    margin-left: 15px;
}

#pageOuterWrapper, #banner #title, #footer-content {
    margin: 0 auto;
    max-width: 990px;
}

    #footer-content a {
        cursor: pointer;
    }

    #footer-content ul {
        list-style: none;
    }

    #footer-content li {
        float: left;
        padding-left: 20px;
    }

#banner {
    background-color: #0b0c0c;
    text-align: center;
    color: white;
    width: 100%;
}

    #banner #title {
        background-position: left;
        background-repeat: no-repeat;
        padding: 3px 0 5px 0;
    }

#banner-below {
    margin: 0 auto;
    width: auto;
    max-width: 1020px;
}

#banner-below-inner {
    padding-left: 15px;
    padding-right: 15px;
    height: 10px;
    background-color: #005ea5;
}

#breadcrumbWrapper {
    display: none;
    max-width: 800px;
    float: left;
    height: 35px;
    margin-bottom: 20px;
}

    #breadcrumbWrapper .navbar {
        height: 34px;
        min-height: 0px;
    }

    #breadcrumbWrapper .navbar-nav > li > a {
        padding-bottom: 6px;
        padding-top: 6px;
        border-radius: 0px;
    }

    #breadcrumbWrapper a.disabled, #breadcrumbWrapper a.disabled:hover {
        cursor: auto;
        font-weight: normal;
        color: #777;
        background-color: #e5e5e5;
    }

    #breadcrumbWrapper a.enabled {
        cursor: pointer;
        color: black;
    }

        #breadcrumbWrapper a.enabled.current {
            color: #005ea5;
        }

        #breadcrumbWrapper a.enabled:hover {
            color: black;
        }

div.no-address-lookup {
    margin-left: -28px;
}

    div.no-address-lookup label {
        text-align: left;
    }

    div.no-address-lookup input {
        width: 34px;
    }

.statementContent ul {
    list-style: disc;
    margin-left: 30px;
}


@media (min-width: 641px) {
    #banner-below-inner-inner {
        padding-left: 30px;
        padding-right: 30px;
    }
}

h1 {
    font-size: 24px;
    font-weight: bold;
}

h2 {
    font-size: 27px;
    font-weight: bold;
    margin-bottom: 40px;
}

#logo {
    float: right;
    display: none;
    max-height: 100px;
    max-width: 200px;
    /*    margin-top: -15px;*/
}

h2, .Caption, fieldset.question.row > legend {
    display: block;
}

h3 {
    font-size: 19px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
}

#pageOuterWrapper {
    padding: 10px;
}

#footer {
    background-color: rgb(222, 224, 226);
    border-top-color: rgb(161, 172, 178);
    margin-top: 20px;
}

#footer-content {
    padding: 10px;
    padding-bottom: 20px;
}

    #footer-content a {
        float: right;
        cursor: pointer;
    }

.section, .help {
    font-size: 19px;
}

#backButton {
    font-size: 16px;
    font-weight: 300;
    border-bottom: #0b0c0c 1px solid;
    overflow: hidden;
    width: 13em;
    margin: 20px 0px;
}

input[type="button"] {
    background-color: #00823b;
    font-size: 19px;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-right: 10px;
}

#navWrapper {
    margin-top: 30px;
}

.Caption {
    padding-left: 15px;
    padding-right: 15px;
}

.help {
    cursor: pointer;
    margin-bottom: 15px;
}

    .help > div.details {
        display: none;
        border-left: solid 10px rgb(222, 224, 226);
        padding-left: 10px;
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .help[open="open"] > div {
        display: block;
    }

    .help .summary {
        color: rgb(0, 94, 165);
        text-decoration: underline;
    }

div.question.error, fieldset.question.error, #error {
    border-left: solid #df3034 4px;
    margin-left: -18px;
}

.errorText {
    /**color: #A52A2D; #df3034*/
    color: #df3034 !important;
    padding-left: 18px;
    clear: both;
    display: none;
}

fieldset.Radio, fieldset.dateDropdownAnswer fieldset.row, fieldset.Checkbox, fieldset.CheckboxGroup, fieldset.YesNo,
div.Radio, div.dateDropdownAnswer div.row, div.Checkbox, div.CheckboxGroup, div.YesNo {
    padding-left: 15px;
}

div.question.two-lines {
    min-height: 4.4em;
}

div.question.three-lines {
    min-height: 5.9em;
}

div.question.four-lines {
    min-height: 7.3em;
}

#footer {
    padding-top: 5px;
}

.LongText ul, .Caption ul {
    list-style: disc;
    margin-left: 30px;
}

div.LongText {
    margin-left: 15px;
}

div.margLeft0 {
    margin-left: 0px;
}

.LongText h3, .LongText h4 {
    color: darkblue;
}

.LongText h4 {
    font-style: italic;
    margin-top: 20px;
}

div.page.actionPlan {
    padding: 15px;
    margin: 15px;
    border: solid black 1px;
    box-shadow: 10px 10px 5px #888888;
    background-color: antiquewhite;
}

div.section.actionPlan {
    padding: 10px;
    padding-bottom: 0;
    padding-right: 40px;
    margin: 10px;
    margin-top: 30px;
    border: solid black 1px;
    background-color: floralwhite;
}

.hide {
    display: none;
}


@media screen and (max-width: 480px) {
    div.page.actionPlan {
        padding: 0px;
        margin: 0px;
        border: none;
        box-shadow: none;
    }

    div.section.actionPlan {
        margin: 0px;
        margin-top: 10px;
        border: none;
    }
}

span.id {
    font-size: 10px;
    float: left;
    margin-right: 2px;
    color: darkgray;
    font-weight: normal;
}

div.question.Checkbox:nth-child(1) {
    text-align: right;
}

.RadioItem, .CheckboxItem {
    background-color: #DFE0E2;
    border: solid 2px #DFE0E2;
    margin: 10px;
    padding: 10px;
    min-height: 3.5em;
}

.CheckboxItem {
    margin-left: 0px;
}

div.CheckboxOnLeft {
    /*needs div.CheckboxOnLeft for the style to show as an option on the online register back office*/
}

div.question.row.CheckboxOnLeft > label {
    width: 95%;
    float: right;
}

div.question.CheckboxOnLeft input {
    width: 40px;
}

div.question.CheckboxOnLeft > div.col-sm-5 {
    width: 40px;
}


.RadioItem.selected {
    border-color: #FFBF47;
}

.dateDropdownAnswer input {
    width: 70px;
}

.explanation {
    font-size: .86em;
    color: #444444;
    font-weight: normal;
    margin-left: 40px;
}

#saveButton2 {
    display: none;
}

.highlight {
    background-color: lightblue;
}

div.AddressLookup .selected {
    background-color: lightcoral;
}

div.AddressLookup tr {
    cursor: pointer;
}

/*mobile specific css*/
@media (min-width: 480px) {
    h2, .Caption, div.question.row > label {
        width: 70%;
    }

    #backButton a, #backButton a:active, #backButton a:hover, #backButton a:focus {
        color: #0b0c0c;
        text-decoration: none;
    }

    input[type="button"]:hover {
        background-color: #FFBF47;
    }

    .RadioItem:hover {
        border-color: #FFBF47;
    }
}

@media (max-width: 480px) {

    h1 {
        font-size: 18px;
    }

    h2 {
        margin-top: 0px;
        margin-bottom: 15px;
        font-size: 22px;
    }

    #footer h3, #footer img {
        display: none;
    }

    #logo {
        width: 0px;
        height: 0px;
    }

    #footer {
        padding-bottom: 10px;
    }

    .row {
        margin-right: -7px;
    }

    #navWrapper input[type=button] {
        font-size: 17px;
    }

    div.question div.question.two-lines, div.question div.question.three-lines, div.question div.question.four-lines {
        min-height: inherit;
    }

    .question label {
        display: inline;
    }
}

/*end of mobile specific css*/

@media screen {
    .print {
        display: none;
    }
}

@media print {
    .screen {
        display: none;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link-focused {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 10px;
    background-color: #ffffff;
    z-index: 9999;
    clip: auto;
    overflow: visible;
}

.responsive-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

#pageContent {
    width: 100%;
}


@media screen and (max-width: 768px) {
    .responsive-wrapper {
        padding: 0 10px;
    }
}

/* Adjust font sizes for better readability at high zoom levels */
@media screen and (min-resolution: 192dpi) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}

.required {
    color: #B22222;
    margin-right: 5px;
    float: left;
}

.question.Checkbox .form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.question.Checkbox .form-check-input {
    margin-top: 0.25rem;
    margin-right: 0.5rem;
}

.question.Checkbox .form-check-label {
    margin-bottom: 0;
    line-height: 1.5;
}

.question.Checkbox .id {
    margin-right: 0.25rem;
}

.question.Checkbox .required {
    color: #B22222;
    margin-left: 0.25rem;
}

.govuk-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.govuk-form-group {
    margin-bottom: 20px;
}

.govuk-checkboxes {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25;
    display: block;
    margin-bottom: 10px;
}

.govuk-checkboxes--small .govuk-checkboxes__item {
    min-height: 0;
    margin-bottom: 20px;
    padding-left: 34px;
    float: left;
}

.govuk-checkboxes__item {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25;
    display: block;
    position: relative;
    min-height: 40px;
    margin-bottom: 10px;
    padding-left: 40px;
    clear: left;
}

.govuk-checkboxes__input {
    cursor: pointer;
    position: absolute;
    z-index: 1;
    top: -2px;
    left: -2px;
    width: 44px;
    height: 44px;
    margin: 0;
    opacity: 0;
}

.govuk-checkboxes__label {
    display: inline-block;
    margin-bottom: 0;
    padding: 8px 15px 5px;
    cursor: pointer;
    touch-action: manipulation;
    margin-left:15px;
}

    .govuk-checkboxes__label::before {
        content: "";
        box-sizing: border-box;
        position: absolute;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        border: 2px solid currentColor;
        background: transparent;
    }

    .govuk-checkboxes__label::after {
        content: "";
        position: absolute;
        top: 11px;
        left: 9px;
        width: 23px;
        height: 12px;
        transform: rotate(-45deg);
        border: solid;
        border-width: 0 0 5px 5px;
        border-top-color: transparent;
        opacity: 0;
        background: transparent;
    }

.govuk-checkboxes__input:checked + .govuk-checkboxes__label::after {
    opacity: 1;
    border-color: #0b0c0c;
}

.govuk-checkboxes__input:focus + .govuk-checkboxes__label::before {
    outline: 3px solid transparent;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #fd0;
}

.govuk-required {
    color: #d4351c;
    margin-left: 0.25rem;
}

.id {
    margin-right: 0.25rem;
}

@media (min-width: 40.0625em) {
    .govuk-checkboxes {
        font-size: 19px;
        line-height: 1.31579;
    }

    .govuk-checkboxes__item {
        font-size: 19px;
        line-height: 1.31579;
    }
}


/* Styles for 200% zoom on all devices, including mobile */
@media screen and (min-resolution: 192dpi), screen and (-webkit-min-device-pixel-ratio: 2), screen and (min-zoom: 200%) {
    /* General styles for 200% zoom on all devices */
    label {
        font-size: 13.5px !important;
    }

    div.question.four-lines {
        min-height: 10em !important;
    }

    div.question.three-lines {
        min-height: 10em !important;
    }
}

/* Styles for 200% zoom specifically on devices wider than 767px */
@media screen and (min-width: 768px) and (min-resolution: 192dpi), screen and (min-width: 768px) and (-webkit-min-device-pixel-ratio: 2), screen and (min-width: 768px) and (min-zoom: 200%) {
    /* More specific styles for larger screens */
    label {
        font-size: 2ch !important; /* Larger font size on larger screens */
    }

    div.question.four-lines {
        min-height: 10em !important;
    }

    div.question.three-lines {
        min-height: 10em !important;
    }
}


    /* Styles for 300% zoom */
@media screen and (min-width: 768px) and (min-resolution: 288dpi), screen and (min-width: 768px) and (-webkit-min-device-pixel-ratio: 3), screen and (min-width: 768px) and (min-zoom: 300%) {
    /* Your custom styles for 300% zoom */
    label {
        font-size: 1.5ch !important;
    }


    div.question.four-lines {
        min-height: 3.5em !important;
    }
}

    /* Styles for 400% zoom */
@media screen and (min-width: 768px) and (min-resolution: 384dpi), screen and (min-width: 768px) and (-webkit-min-device-pixel-ratio: 4), screen and (min-width: 768px) and (min-zoom: 400%) {
    /* Your custom styles for 400% zoom */
    label {
        font-size: 1.2ch !important;
    }

    div.question.four-lines {
        min-height: 3.5em !important;
    }
}

    h1:focus, h2:focus, p:focus, input:focus, select:focus, .question.RadioItem:focus, textarea:focus, govuk-checkboxes__input:focus, button:focus, a[href]:focus, legend:focus {
        outline: none;
        border-color: #FFBF47;
        border: 1px solid;
        border-radius: 5px;
    }

    .pageHeader-required::before {
        content: "* ";
        color: #B22222;
    }
