/* GOV.UK Core Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
    color: #0b0c0c;
    background-color: #fff;
}

/* GOV.UK Header */
.govuk-header {
    font-family: "GDS Transport", arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25;
    background-color: #0b0c0c;
    border-bottom: 10px solid #fff;
}

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

.govuk-header__container--full-width {
    padding: 0 15px;
    margin: 0 auto;
    max-width: 960px;
}

@media (min-width: 40.0625em) {
    .govuk-header__container--full-width {
        padding: 0 30px;
    }
}

@media (min-width: 1020px) {
    .govuk-header__container--full-width {
        margin: 0 auto;
    }
}

.govuk-header__content {
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.govuk-header__service-name {
    display: inline-block;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

@media (min-width: 40.0625em) {
    .govuk-header__service-name {
        font-size: 24px;
    }
}

.govuk-header__service-name:link,
.govuk-header__service-name:visited {
    color: #fff;
}

.govuk-header__service-name:hover {
    text-decoration: underline;
}

.govuk-header__service-name:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 0;
    background-color: #ffdd00;
    box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c;
    color: #0b0c0c;
    text-decoration: none;
}

.govuk-skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.govuk-skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    margin: inherit;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: inherit;
}

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

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

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

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

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

.govuk-grid-row {
    margin-right: -15px;
    margin-left: -15px;
}

.govuk-grid-row:after {
    content: "";
    display: block;
    clear: both;
}

.govuk-grid-column-two-thirds {
    box-sizing: border-box;
    width: 100%;
    padding: 0 15px;
}

@media (min-width: 40.0625em) {
    .govuk-grid-column-two-thirds {
        width: 66.6666%;
        float: left;
    }
}

.govuk-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.govuk-fieldset__legend {
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.31579;
    font-weight: 400;
}

.govuk-fieldset__legend--l {
    margin-bottom: 20px;
    font-size: 36px;
    line-height: 1.11111;
    font-weight: 700;
}

@media (min-width: 40.0625em) {
    .govuk-fieldset__legend--l {
        font-size: 48px;
        line-height: 1.04167;
    }
}

.govuk-fieldset__heading {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

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

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

.govuk-label--s {
    font-weight: 700;
    font-size: 19px;
    line-height: 1.31579;
}

.govuk-radios {
    margin: 0;
    padding: 0;
}

.govuk-radios__item {
    display: block;
    position: relative;
    min-height: 40px;
    margin-bottom: 10px;
    padding-left: 40px;
    clear: left;
}

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

.govuk-radios__label {
    display: inline-block;
    margin-bottom: 0;
    padding: 8px 15px 5px;
    cursor: pointer;
    touch-action: manipulation;
}

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

.govuk-radios__label:after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 0;
    height: 0;
    border: 10px solid currentColor;
    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;
    box-shadow: 0 0 0 4px #ffdd00;
}

.govuk-input {
    font-family: "GDS Transport", arial, sans-serif;
    font-size: 19px;
    line-height: 1.31579;
    font-weight: 400;
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    margin-top: 0;
    padding: 5px;
    border: 2px solid #0b0c0c;
    border-radius: 0;
    appearance: none;
}

.govuk-input__prefix,.govuk-input__suffix {
    font-family: GDS Transport,arial,sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 1.1875rem;
    line-height: 1.3157894737;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 5px;
    border: 2px solid;
    border-color: var(--govuk-input-border-colour,#0b0c0c);
    background-color: #f3f3f3;
    text-align: center;
    white-space: nowrap;
    cursor: default;
    flex: 0 0 auto
}


@media print {
    .govuk-input__prefix,.govuk-input__suffix {
        font-family: sans-serif;
        font-size: 14pt;
        line-height: 1.15
    }
}

@media (max-width: 19.99em) {
    .govuk-input__prefix,.govuk-input__suffix {
        display:block;
        height: 100%;
        white-space: normal
    }

    .govuk-input__prefix {
        border-bottom: 0
    }
}

@media (min-width: 20em) {
    .govuk-input__prefix {
        border-right:0
    }
}

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

.govuk-input__wrapper {
    display: flex
}

.govuk-input__wrapper .govuk-input {
    flex: 0 1 auto
}

.govuk-input__wrapper .govuk-input:focus {
    z-index: 1
}

@media (max-width: 19.99em) {
    .govuk-input__wrapper {
        display:block
    }

    .govuk-input__wrapper .govuk-input {
        max-width: 100%
    }
}

.govuk-\!-width-two-thirds {
    width: 100% !important;
}

@media (min-width: 40.0625em) {
    .govuk-\!-width-two-thirds {
        width: 66.66% !important;
    }
}

.govuk-select {
    font-family: "GDS Transport", arial, sans-serif;
    font-size: 19px;
    line-height: 1.31579;
    font-weight: 400;
    box-sizing: border-box;
    max-width: 100%;
    height: 40px;
    padding: 5px;
    border: 2px solid #0b0c0c;
    border-radius: 0;
}

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

.govuk-button {
    font-family: "GDS Transport", arial, sans-serif;
    font-size: 19px;
    line-height: 1;
    font-weight: 400;
    box-sizing: border-box;
    display: inline-block;
    position: relative;
    width: 100%;
    margin-top: 0;
    margin-bottom: 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;
    appearance: none;
}

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

.govuk-button:hover {
    background-color: #005a30;
}

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

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

.govuk-link {
    font-family: "GDS Transport", arial, sans-serif;
    font-size: 19px;
    line-height: 1.31579;
    text-decoration: underline;
    color: #1d70b8;
}

.govuk-link:hover {
    color: #003078;
}

.govuk-link:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 0;
    background-color: #ffdd00;
    color: #0b0c0c;
}

.govuk-body {
    color: #0b0c0c;
    font-size: 19px;
    line-height: 1.31579;
    margin-top: 0;
    margin-bottom: 15px;
}

.govuk-heading-l {
    color: #0b0c0c;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11111;
    display: block;
    margin-top: 0;
    margin-bottom: 30px;
}

@media (min-width: 40.0625em) {
    .govuk-heading-l {
        font-size: 48px;
        line-height: 1.04167;
        margin-bottom: 50px;
    }
}

.govuk-list {
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 0;
    list-style-type: none;
}

.govuk-list--bullet {
    padding-left: 20px;
    list-style-type: disc;
}

.govuk-list li {
    margin-bottom: 5px;
    font-size: 19px;
    line-height: 1.31579;
}

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

.govuk-form-group--error {
    padding-left: 15px;
    border-left: 5px solid #d4351c;
}

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

.govuk-error-message {
    font-weight: 700;
    display: block;
    margin-top: 0;
    margin-bottom: 15px;
    clear: both;
    color: #d4351c;
}

.govuk-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.govuk-input--error {
    border: 4px solid #d4351c;
}

.govuk-input--error:focus {
    border-color: #0b0c0c;
}

.govuk-textarea {
    font-family: "GDS Transport", arial, sans-serif;
    font-size: 19px;
    line-height: 1.31579;
    font-weight: 400;
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    margin-top: 0;
    padding: 5px;
    border: 2px solid #0b0c0c;
    border-radius: 0;
    appearance: none;
    resize: vertical;
}

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

.govuk-input--width-5 {
    max-width: 4.3em;
}

.govuk-input--width-10 {
    max-width: 11.5em
}

.govuk-fieldset__legend--m {
    font-size: 19px;
    line-height: 1.31579;
    font-weight: 700;
    margin-bottom: 15px;
}

@media (min-width: 40.0625em) {
    .govuk-fieldset__legend--m {
        font-size: 24px;
        line-height: 1.25;
    }
}

/* Conditional content for dynamic forms */
.conditional-content {
    display: none;
    margin-top: 20px;
}

.conditional-content.visible {
    display: block;
}

/* Notification Banner */
.govuk-notification-banner {
    margin-bottom: 30px;
    border: 5px solid #1d70b8;
    background-color: #1d70b8;
}

.govuk-notification-banner--success {
    border-color: #00703c;
    background-color: #00703c;
}

.govuk-notification-banner--warning {
    border-color: #d4351c;
    background-color: #d4351c;
}

.govuk-notification-banner--orange {
    border-color: #f47738;
    background-color: #f47738;
}

.govuk-notification-banner__content {
    padding: 15px 20px;
    background-color: #fff;
}

.govuk-notification-banner__content .govuk-list {
    margin-top: 10px;
    margin-bottom: 0;
}

.govuk-notification-banner__heading {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #0b0c0c;
}

/* Headings */
.govuk-heading-m {
    color: #0b0c0c;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.25;
    display: block;
    margin-top: 40px;
    margin-bottom: 15px;
}

@media (min-width: 40.0625em) {
    .govuk-heading-m {
        font-size: 36px;
        line-height: 1.11111;
        margin-bottom: 20px;
    }
}

.govuk-body-s {
    font-size: 16px;
    line-height: 1.25;
    color: #505a5f;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Link styles */
.govuk-link--no-visited-state:visited {
    color: #1d70b8;
}

/* Similar options list */
.similar-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #b1b4b6;
    gap: 20px;
}

.similar-option-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
}

.similar-option-main .govuk-tag {
    white-space: nowrap;
    max-width: none;
}

.similar-option .select-option {
    flex: 0 0 auto;
    white-space: nowrap;
}

.similar-option:last-child {
    border-bottom: none;
}

.external-link-icon {
    display: inline-block;
    margin-left: 4px;
    vertical-align: text-top;
}

/* Governance checks */
.governance-loading {
    margin: 30px 0;
    padding: 20px;
    background-color: #f3f2f1;
    text-align: center;
}

.spinner-small {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #1d70b8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.governance-results {
    margin: 30px 0;
}

.governance-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.governance-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #b1b4b6;
    gap: 15px;
}

.governance-item:last-child {
    border-bottom: none;
}

.governance-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.governance-item > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.governance-label {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
}

.governance-links {
    display: flex;
    gap: 15px;
}

.governance-item a {
    white-space: nowrap;
}

/* Checkboxes */
.govuk-checkboxes {
    margin: 0;
    padding: 0;
}

.govuk-checkboxes__item {
    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;
}

.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: "";
    box-sizing: border-box;
    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;
}

.govuk-checkboxes__input:focus + .govuk-checkboxes__label:before {
    border-width: 4px;
    box-shadow: 0 0 0 4px #ffdd00;
}

/* Disabled button */
.govuk-button:disabled,
.govuk-button--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #00703c;
}

.govuk-button:disabled:hover,
.govuk-button--disabled:hover {
    background-color: #00703c;
}

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

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

.govuk-button--secondary:focus {
    background-color: #f3f2f1;
}

/* Integration input wrapper */
.integration-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.integration-input-wrapper .govuk-input {
    flex: 1;
}

.integration-input-wrapper .govuk-button {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Integration list */
.integration-list {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}

.integration-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f3f2f1;
    border-left: 5px solid #1d70b8;
}

.integration-text {
    font-weight: 400;
    flex-grow: 1;
}

.integration-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.govuk-heading-s {
    font-size: 19px;
    line-height: 1.31579;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Requirements section */
.requirements-section {
    margin-top: 30px;
    margin-bottom: 40px;
}

.requirements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.requirements-header .govuk-heading-m {
    margin-top: 0;
    margin-bottom: 0;
}

.requirements-header .govuk-button {
    margin-bottom: 0;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 15px;
    background-color: #f3f2f1;
    border-left: 5px solid #1d70b8;
    gap: 20px;
}

.requirement-item--functional {
    display: block;
}

.requirement-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0px;
}

.requirement-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.requirement-text {
    flex-grow: 1;
    margin: 0;
}

.requirement-item--functional .requirement-text {
    margin-top: -20px;
    max-width: 70%;
}

.requirement-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    align-items: flex-start;
    flex-direction: column;
}

.requirement-item--functional .requirement-actions {
    align-items: flex-end;
}


/* Summary list */
.govuk-summary-list {
    margin-bottom: 30px;
    border-top: 1px solid #b1b4b6;
}

.govuk-summary-list__row {
    border-bottom: 1px solid #b1b4b6;
    display: flex;
    flex-wrap: wrap;
}

@media (min-width: 40.0625em) {
    .govuk-summary-list__row {
        flex-wrap: nowrap;
    }
}

.govuk-summary-list__key {
    margin: 0;
    padding: 10px 20px 10px 0;
    font-weight: 700;
    width: 100%;
}

@media (min-width: 40.0625em) {
    .govuk-summary-list__key {
        width: 30%;
    }
}

.govuk-summary-list__value {
    margin: 0;
    padding: 10px 20px 10px 0;
    width: 100%;
}

@media (min-width: 40.0625em) {
    .govuk-summary-list__value {
        width: 50%;
    }
}

.govuk-summary-list__actions {
    margin: 0;
    padding: 10px 0;
    text-align: right;
    width: 100%;
}

@media (min-width: 40.0625em) {
    .govuk-summary-list__actions {
        width: 20%;
    }
}

/* Tags */
.govuk-tag {
    font-family: GDS Transport, arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.25;
    display: inline-block;
    max-width: 160px;
    margin-top: -2px;
    margin-bottom: -3px;
    padding: 2px 8px 3px;
    color: #0c2d4a;
    background-color: #bbd4ea;
    text-decoration: none;
    overflow-wrap: break-word
}

@media print {
    .govuk-tag {
        font-family: sans-serif
    }
}

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

@media print {
    .govuk-tag {
        font-size: 14pt;
        line-height: 1.15
    }
}

@media screen and (forced-colors:active) {
    .govuk-tag {
        font-weight: 700
    }
}

.govuk-tag--grey {
    color: #282d30;
    background-color: #e5e6e7
}

.govuk-tag--purple {
    color: #491644;
    background-color: #efdfed
}

.govuk-tag--turquoise {
    color: #10403c;
    background-color: #d4ecea
}

.govuk-tag--blue {
    color: #0c2d4a;
    background-color: #bbd4ea
}

.govuk-tag--light-blue {
    color: #0c2d4a;
    background-color: #e8f1f8
}

.govuk-tag--yellow {
    color: #594d00;
    background-color: #fff7bf
}

.govuk-tag--orange {
    color: #6e3619;
    background-color: #fcd6c3
}

.govuk-tag--red {
    color: #2a0b06;
    background-color: #f4cdc6
}

.govuk-tag--pink {
    color: #6b1c40;
    background-color: #f9e1ec
}

.govuk-tag--green {
    color: #005a30;
    background-color: #cce2d8
}

/* Requirement-specific tag colours */
.requirement-item[data-mandatory="true"] .requirement-mandatory-tag {
    color: #005a30;
    background-color: #cce2d8;
}

.requirement-item[data-mandatory="false"] .requirement-mandatory-tag {
    color: #0c2d4a;
    background-color: #bbd4ea;
}

/* Confirmation panel */
.govuk-panel {
    padding: 20px;
    margin-bottom: 30px;
}

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

.govuk-panel__title {
    margin: 0 0 10px 0;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
}

.govuk-panel__body {
    font-size: 24px;
    line-height: 1.3;
}


