﻿html {
    position: relative;
    min-height: 100%;
    background: #fafcfe;
}

body {
    padding: 0;
    color: black;
    font-family: Arial, sans-serif;
    font-size: 12pt;
}

footer {
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    z-index: 100;
    background: #fff;
    height: 4em;
}

/* 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;
}

/* Page title styles moved from layout.css */
#page-title {
    padding: 1.4em;
    position: relative;
}

    #page-title h2 {
        font-size: 22px;
        padding: 0;
        font-weight: 500;
        margin: 0;
        color: #2b4b80;
    }

    #page-title select {
        width: 10em;
        height: 2em;
    }

    #page-title table tr.space-under>td {
        padding-bottom: 0.5em;
    }
/* 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;
}