/********************************************************************************************************************************/
/*                                                                                                                              */
/*       CONTENTS                                                                                                               */
/*       --------                                                                                                               */
/*       1. Default formatting for ALL Pages                                                                                    */
/*       2. Formatting for BASE Template                                                                                        */
/*       3. Formatting for HOME, SELECTION and DETAILS Pages                                                                               */
/*       4. Formatting for RESULTS Page                                                                                         */
/*       5. Formatting for ABOUT Page                                                                                           */
/*                                                                                                                              */
/********************************************************************************************************************************/

/********************************************************************************************************************************/
/*       1. Default formatting for ALL Pages                                                                                    */
/********************************************************************************************************************************/

/* 1.1 Font */

body,
html {
    /* This is the default font for all styles */
    font-family: "Lato", sans-serif;
    font-weight: 400;
    /* This is the default text colour for all styles */
    color: #0b0c0c;
    font-size: 19px;
    line-height: 25px;
    -pykit-font-smoothing: antialiased;
}

/* 1.2 Form margin */

form {
    margin: 10px 0;
}

/* 1.3 Text settings for Headings and Paragraphs */

h1 {
    font-weight: 900;
    line-height: 1.3;
    color: #0b0c0c;
}

h2 {
    margin-top: 0.3em;
    margin-bottom: 20px;
    font-size: 1.5em;
    line-height: 1.3;
    font-weight: 900;
    padding: 0;
}

h3 {
    margin-top: 0.3em;
    margin-bottom: 20px;
    font-size: 1.2em;
    line-height: 1.6;
    font-weight: 900;
    padding: 0;
}

h4 {
    margin: 0 0 20px 0;
    font-size: 19px;
    line-height: 25px;
    font-weight: 900;
}

p {
    margin-top: 0;
    margin-bottom: 20px;
    color: #212222;
}

b {
    font-weight: 900;
}

/* 1.4 Horizontal Lines */

hr {
    height: 0px;
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid #d6d6d6;
    margin: 20px 0;
}

/* Before Disclaimer */

hr.footer {
    margin: 40px 0 20px 0;
}

/* 1.5 Colours for Back and other Links */

a {
    color: #1d70b8;
}

a:hover {
    color: #003078;
}

a:visited {
    color: #4c2c92;
}

a:active {
    color: #0b0c0c;
}

.back-link {
    font-size: 16px;
}

.back-link a,
.back-link a:visited {
    color: #0b0c0c;
}

/* 1.6 Errorlist - This is what Django puts in the page if there is something wrong with the form. This hides it */

.errorlist {
    display: none;
}

/* 1.7 Dropdowns */

select {
    width: 600px;
}
@media (max-width: 400px) {
    select {
        width: 300px;
    }
}

/********************************************************************************************************************************/
/*       2. Formatting for BASE Template                                                                                      */
/********************************************************************************************************************************/

/* 2.1  The Header Bar across all pages  */

header {
    background-color: #ffe699;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
}

.header-bar {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.header-left {
    width: 100px;
}

.header-text {
    text-align: center;
    flex: 1;
    font-weight: 900;
}

.header-right {
    width: 100px;
}

.strapline {
    margin-top: 0px;
    margin-bottom: 5px;
    background-color: #ffe699;
    text-align: centre;
    font-size: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0 20px 0 20px;
}

/* 2.2  Subheading with navigation buttons  */

.subheader {
    margin-top: 0px;
    background-color: #eee;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.subheader .menu-button,
#menu-button-checkbox {
    display: none;
}

.subheader-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin-top: 1px;
}

.subheader a {
    display: block;
    margin-right: 15px;
    padding: 10px;
    font-size: 19px;
    line-height: 25px;
    color: #676868;
    font-weight: 700;
    text-decoration: none;
}

.subheader a:hover {
    text-decoration: underline;
}

.subheader a:last-child {
    margin-right: 0;
}

.subheader a.active {
    border-bottom: 5px solid #abacac;
    padding-bottom: 5px;
}

/*  2.3  Header on mobile platform. This overrides the styles when the width of the browser is <= 400 pixels */

@media (max-width: 400px) {
    header {
        flex-direction: column-reverse;
    }

    .header-inner {
        flex-direction: column;
    }

    .desktop-only {
        display: none !important;
    }

    .subheader {
        background-color: transparent;
        padding: 0 40px 10px 40px;
        justify-content: flex-end;
    }

    .subheader .menu-button {
        text-align: right;
    }

    .subheader-inner {
        flex-direction: column;
    }

    .subheader-inner .menu-button {
        display: block;
    }

    #menu-button-checkbox:checked ~ a {
        display: block;
    }

    .subheader-inner a {
        display: none;
        padding: 0;
        margin: 0 0 10px 0;
        text-align: right;
    }

    .subheader a.active {
        border-bottom: none;
        padding-bottom: 0;
        text-decoration: underline;
    }
}

/* Changes format of Strapline when Desktop */

@media (min-width: 401px) {
    .mobile-only {
        display: none;
    }
}

/* 2.4  Disclaimer */

.disclaimer-text {
    font-style: italic;
    color: #676868;
}

/* 2.5  Info banner */

.info-banner {
    background-color: #2786dd;
    margin-top: 30px;
    padding: 20px;
}

.info-banner h4 {
    color: white;
    margin: 0 0 4px 0;
    line-height: 1.5;
}

.info-banner p {
    color: white;
    /* margin-bottom: 20px; */
    margin: 0 0 4px 0;
}

.info-banner a {
    color: white;
}

/********************************************************************************************************************************/
/*       3. Formatting for HOME, SELECTION and DETAILS Pages                                                                               */
/********************************************************************************************************************************/

/* 3.1 Selection tick boxes on Selection and Details pages */

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

.form-group ul,
ul.services-list {
    margin: 0 0 10px 20px;
    padding: 0;
}

.form-group li {
    margin: 0 0 5px 0;
}

/* 3.2 Sub note under selection tick boxes on Home page - Redundant */

.form-note {
    font-size: 16px;
    line-height: 22px;
    font-style: italic;
    font-weight: 400;
    color: #353636;
    margin-top: 2px;
}

/* 3.3 Check Boxes on Selection Pages
s
.checkbox-list:
    ul
        li
            input[type=checkbox]
            label

.checkbox-list-nested:
    ul
        li
            TITLE
            ul
                li
                    input[type=checkbox]
                    label
*/

.checkbox-list ul,
.checkbox-list-nested ul {
    margin-left: 0;
    margin-bottom: 20px;
}

.checkbox-list li,
.checkbox-list-nested ul li {
    list-style: none;
}

.checkbox-list-nested li {
    font-weight: 900;
    /* font-style: italic; */
    list-style: none;
    margin-top: 15px;
}

.checkbox-list-nested ul ul {
    margin-top: 5px;
}

.checkbox-list-nested li li {
    font-weight: 400;
    font-style: normal;
    margin-top: 0;
}

/* 3.4 Error message if no data entered */

.error-message {
    font-weight: 700;
    color: red;
    margin-bottom: 20px;
}

/* 3.5 List of selections on Summary Page */

.summary-list ul {
    margin-top: 0px;
    margin-left: 0;
    margin-bottom: 25px;
}

.summary-list li {
    font-weight: 400;
    font-style: normal;
    list-style-type: square;
    margin-top: 0px;
    margin-bottom: 5px;
}

/* 3.6 Input box for Reference on Summary Page */

input,
select {
    font-family: "Lato", sans-serif;
    font-size: 19px;
    line-height: 25px;
    border: 2px solid #212222;
    padding: 0.1em 0 0.1em 0.4em;
}

/* select {
    width: 10rem;
} */

/* Puts a yellow surround on the Input box when selected */

input:focus {
    outline: 3px solid #ffe699;
}

/* 3.7 Select2 - The Selection Box on the Details Page */

.select2-selection.select2-selection--multiple,
.select2-selection.select2-selection--single,
.select2-container--focus .select2-selection.select2-selection--multiple,
.select2-container--focus .select2-selection.select2-selection--single,
.select2-dropdown.select2-dropdown--below,
.select2-dropdown.select2-dropdown--above {
    border: 2px solid #212222;
    border-radius: 0;
}

.select2-container--focus .select2-selection.select2-selection--multiple,
.select2-container--focus .select2-selection.select2-selection--single {
    outline: 3px solid #ffe699;
}

.select2-dropdown.select2-dropdown--below {
    border-top: none;
    box-shadow: 0 3px 0 0 #ffe699, 3px 3px 0 0 #ffe699, -3px 3px 0 0 #ffe699;
}

.select2-dropdown.select2-dropdown--above {
    border-bottom: none;
    box-shadow: 0 -3px 0 0 #ffe699, 3px -3px 0 0 #ffe699, -3px -3px 0 0 #ffe699;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #ffe699;
    color: #0b0c0c;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-selection--single .select2-selection__choice {
    background-color: #d6d6d6;
    border: 1px solid #adadad;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
.select2-container--default .select2-selection--single .select2-selection__choice__remove {
    color: #adadad;
}

/* 3.8 Button used to move to next page */

.link-button {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    padding: 7px 20px;
    color: #0b0c0c;
    border: none;
    border-bottom: 2px solid #0b0c0c;
    background-color: #ffe699;
    text-decoration: none;
    cursor: pointer;
}

.link-button:hover {
    background-color: #ffcf40;
    color: black;
}

.link-button:visited {
    color: black;
}

/* 3.9 Print button on Results and Details pages */

.print-button svg {
    width: 23px;
    height: 23px;
    margin-right: 3px;
    vertical-align: middle;
}

/* 3.10 Stepper */

.stepper {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 30px;
}

.stepper .spacer {
    flex: 1;
    margin: 0 16px;
    height: 1px;
    background-color: #e0e0e0;
}

.stepper > div,
.stepper > a {
    font-size: 16px;
    line-height: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #676868;
    text-decoration: none;
}

.stepper > div.current > div:not(:first-child) {
    color: #0b0c0c;
    font-weight: 700;
}

.stepper > .done > div:not(:first-child) {
    color: #0b0c0c;
}

.stepper > div > div:first-child {
    background-color: #aaa;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    color: white;
    fill: white;
    margin-right: 8px;
    border-radius: 10px;
}

.stepper > .current > div:first-child,
.stepper > .done > div:first-child {
    background-color: #1d70b8;
}

.stepper > div > div > div:last-child {
    font-size: 14px;
    color: #aaa;
    margin-top: 2px;
}

#other-organisation-field input {
    width: 588px;
}

/********************************************************************************************************************************/
/*       4. Formatting for RESULTS Page                                                                                         */
/********************************************************************************************************************************/

/* 4.S Results Page SCREEN Version */

@media screen {
    /* 4.S.1 Body and Header */
    body {
        padding: 0;
        margin: 0;
        background-color: white;
    }

    header {
        box-shadow: 0 0 20px -10px rgba(34, 34, 34, 0.2);
        border-bottom: 1px solid #dedfdf;
        margin-bottom: 30px;
    }

    .container,
    .header-inner {
        margin: 0 auto;
        max-width: 800px;
        width: 100%;
        padding: 0 40px;
        box-sizing: border-box;
    }

    /* 4.S.3 Top Section */

    .results-topnotes {
        margin: 0;
    }

    .results-topnotes-indent {
        margin: 0;
        padding-left: 150px;
        text-indent: -150px;
    }

    .hide-on-screen {
        display: none;
    }

    /* 4.S.4 Detailed Services list */

    .results-service {
        margin-top: 0.3em;
        margin-bottom: 0;
        font-size: 1.2em;
        line-height: 1.6;
        font-weight: bold;
        padding: 0;
    }

    .results-service-notes {
        margin-top: 0.1em;
        margin-bottom: 0.3em;
        font-style: italic;
    }

    .results-location {
        margin-top: 0.3em;
        margin-bottom: 0;
        font-size: 100%;
        line-height: 1.6;
        font-weight: bold;
        padding: 0;
        margin-left: 20px;
        font-style: italic;
    }

    .results-organisation-name,
    .results-description,
    .results-contacts {
        margin-left: 40px;
    }

    .results-organisation-name {
        margin-top: 0.3em;
        margin-bottom: 0;
        font-size: 100%;
        line-height: 1.6;
        font-weight: 900;
        padding: 0;
    }

    .results-description {
        margin-top: 0.1em;
        margin-bottom: 0.3em;
        /* font-size: 90%; */
    }

    .results-contacts {
        margin-top: 0.1em;
        margin-bottom: 0.3em;
        /* font-size: 90%; */
        color: #5f5f65;
        font-style: italic;
        white-space: pre-wrap;
    }

    /* 4.S.5 Disclaimer */

    .disclaimer-text:last-of-type {
        margin-bottom: 40px;
    }
}

/* 4.M Results Page MOBILE Version  */

@media screen and (max-width: 400px) {
    /* 4.M.1 Header */
    header {
        border-bottom: 1px solid rgba(11, 12, 12, 0.1);
    }

    /* 4.M.4 Detailed Services List */

    .results-location,
    .results-organisation-name,
    .results-description,
    .results-contacts {
        margin-left: 0;
    }

    .results-organisation-name {
        margin-top: 15px;
    }

    .results-service,
    .results-location {
        text-align: center;
    }
}

/* 4.P Results Page PRINT Version */

@media print {
    /* Body */
    html,
    body {
        font-size: 16px;
        line-height: 20px;
    }

    /* 4.P.2 Fonts and Layout */

    hr {
        margin: 5px 0 0 0;
    }

    p {
        margin-top: 0.6em;
        margin-bottom: 0.6em;
        font-size: 90%;
        line-height: 1.3;
    }

    h2 {
        margin-top: 0.3em;
        margin-bottom: 0.25em;
        font-size: 1.5em;
        line-height: 1.3;
        font-weight: bold;
        padding: 0;
    }

    h3 {
        margin-top: 0.3em;
        margin-bottom: 0;
        font-size: 1.2em;
        line-height: 1.6;
        font-weight: bold;
        padding: 0;
    }

    /* 4.P.3 Top Section */

    .header-inner {
        width: 100%;
    }

    .results-topnotes {
        font-size: 90%;
    }

    .noprint {
        display: none !important;
    }

    /* 4.P.4 Detailed Services List */

    .results-service {
        margin-bottom: 0;
        font-size: 19px;
        line-height: 25px;
        font-weight: bold;
        padding: 0;
    }

    .results-location {
        margin-top: 0.3em;
        margin-bottom: 0;
        font-size: 100%;
        line-height: 1.6;
        font-weight: bold;
        padding: 0;
        margin-left: 20px;
        font-style: italic;
    }

    .results-organisation-name {
        margin-top: 0.3em;
        margin-bottom: 0;
        font-size: 100%;
        line-height: 1.6;
        font-weight: bold;
        padding: 0;
        /* font-style: italic; */
        margin-left: 40px;
    }

    .results-description {
        margin-top: 0.1em;
        margin-bottom: 0.3em;
        margin-left: 40px;
        font-size: 16px;
        line-height: 22px;
    }
    .results-contacts {
        margin-top: 0.1em;
        margin-bottom: 0.3em;
        color: #5f5f65;
        font-style: italic;
        margin-left: 40px;
        white-space: pre-wrap;
        font-size: 16px;
        line-height: 22px;
    }

    .results-contacts a,
    .results-contacts a:visited {
        text-decoration: none;
        color: #5f5f65;
    }

    .results-service {
        margin-bottom: 0;
        font-size: 1.2em;
        line-height: 1.6;
        font-weight: bold;
        padding: 0;
    }

    .results-service-notes {
        margin-top: 0.1em;
        margin-bottom: 0.3em;
        font-style: italic;
    }

    .results-location {
        margin-top: 0.3em;
        margin-bottom: 0;
        font-size: 100%;
        line-height: 1.6;
        font-weight: bold;
        padding: 0;
        margin-left: 20px;
        font-style: italic;
    }

    .results-name {
        margin-top: 0.3em;
        margin-bottom: 0;
        font-size: 100%;
        line-height: 1.6;
        font-weight: bold;
        padding: 0;
        /* font-style: italic; */
        margin-left: 40px;
    }

    .results-description {
        margin-top: 0.1em;
        margin-bottom: 0.3em;
        font-size: 90%;
        line-height: 1.4;
        margin-left: 40px;
    }
    .results-contacts {
        margin-top: 0.1em;
        margin-bottom: 0.3em;
        font-size: 90%;
        color: #5f5f65;
        line-height: 1.4;
        font-style: italic;
        margin-left: 40px;
        white-space: pre-wrap;
    }
}

/********************************************************************************************************************************/
/*       5. Formatting for ABOUT Page                                                                                         */
/********************************************************************************************************************************/

/* 5.1 Bullet list on About Page */

ul.quote-list {
    margin: 20px 0px 30px 0px;
    padding: 0;
    list-style: none;
}

.quote-list li {
    margin-bottom: 20px;
    font-style: italic;
}

/* 5.2 Video size in mobile */

@media (max-width: 400px) {
  iframe {
    width: 100%; /* Take up the full screen width */
    height: auto; /* Scale height automatically */
  }
}




