/* ── GDS-compliant council-branded header ── */
.app-header {
    background: var(--council-primary, #1d3c5a);
    border-bottom: 10px solid var(--council-accent, #2a6478);
}

/* Uses Bootstrap's .container for width/centring/horizontal padding so the
   header lines up with the page body; we only add the flex layout + vertical padding. */
.app-header__container {
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.app-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-header__logo-text {
    display: flex;
    flex-direction: column;
}

.app-header__name {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.app-header__name:hover {
    text-decoration: underline;
}

.app-header__strap {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.app-header__nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.app-header__nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.app-header__nav a:hover {
    text-decoration: underline;
}

.app-header__basket {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.app-header__basket-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--council-accent, #2a6478);
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

/* GDS focus state — 3px yellow outline */
.app-header a:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 0;
    color: #0b0c0c;
    background-color: #ffdd00;
    box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c;
    text-decoration: none;
}

@media (max-width: 768px) {
    .app-header__container {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-header__nav {
        width: 100%;
    }
}

/* ── GDS-style footer (matches wireframe .gf) ── */
.app-footer {
    background: #f3f2f1;
    border-top: 1px solid #b1b4b6;
    padding: 20px 0;
    margin-top: 50px;
}

.app-footer__container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #505a5f;
}

.app-footer a {
    color: #1d70b8;
}

/* GDS focus state — 3px yellow outline */
.app-footer a:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 0;
    color: #0b0c0c;
    background-color: #ffdd00;
    box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c;
    text-decoration: none;
}

.payment-logos img {
    vertical-align: middle;
    width: 70px;
}

.autocomplete__input {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.autocomplete__input--show-all-values.autocomplete__input--focused +
.autocomplete__dropdown-arrow-down {
    z-index: 0;
}

.autocomplete__dropdown-arrow-down {
    top: 15px;
    right: 0;
    z-index: 0;
}

.modal-body .autocomplete__dropdown-arrow-down {
    z-index: 0;
}

.field-validation-error {
    color: #CC0000 !important;
    display: inline-block;
    margin-bottom: 1rem;
}

#payment-reference-message:not(:empty) {
    margin-bottom:5px;
}

/* ── Payment type catalogue (GDS card grid, matches wireframe .cat-grid) ── */
.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .cat-grid {
        grid-template-columns: 1fr;
    }
}

.cat-card {
    display: block;
    border: 1px solid #b1b4b6;
    padding: 16px;
    background: #fff;
    text-decoration: none;
    color: #0b0c0c;
    transition: box-shadow 0.1s;
}

.cat-card:hover {
    box-shadow: inset 0 0 0 3px #0b0c0c;
}

/* GDS focus state — yellow outline only, NOT a full yellow background */
.cat-card:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 0;
    box-shadow: inset 0 0 0 2px #0b0c0c;
}

.cat-card--dashed {
    border-style: dashed;
    border-color: #505a5f;
}

.cat-card__title {
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1d70b8;
}

.cat-card:hover .cat-card__title {
    color: #003078;
}

.cat-card__desc {
    margin-bottom: 4px;
    color: #0b0c0c;
}

.cat-card__hint {
    display: block;
    font-style: italic;
    color: #505a5f;
    font-size: 0.9rem;
}