:root {
    --send2-primary: #1a4f7a;
    --send2-primary-dark: #123b5d;
    --send2-page: #f5f8fb;
    --send2-border: #d8e1e9;
    --send2-text: #1f2937;
    --send2-radius: 0.75rem;
    --tblr-primary: var(--send2-primary);
    --tblr-primary-rgb: 26, 79, 122;
    --tblr-primary-darken: var(--send2-primary-dark);
    --tblr-primary-fg: #fff;
}

html { min-height: 100%; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--send2-page);
    color: var(--send2-text);
}

main { flex: 1; }

.send2-content { width: min(100% - 2rem, 70rem); margin-inline: auto; }

.send2-header { background: #fff; border-bottom: 1px solid var(--send2-border); }
.send2-header-content { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.send2-brand { color: var(--send2-primary-dark); display: inline-flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.send2-brand-mark { align-items: center; background: var(--send2-primary); border-radius: .5rem; color: #fff; display: inline-flex; height: 2rem; justify-content: center; width: 2rem; }
.send2-header-note { color: #52657a; font-size: .9rem; }
.send2-hero { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.send2-page-section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.send2-hero h1 { color: var(--send2-primary-dark); font-size: clamp(2.15rem, 5vw, 3.65rem); line-height: 1.05; max-width: 14ch; }
.send2-page-section h1 { color: var(--send2-primary-dark); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
.send2-eyebrow { color: var(--send2-primary); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.send2-lead { font-size: 1.15rem; line-height: 1.65; max-width: 46rem; }
.send2-form-layout { align-items: start; display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, .9fr) minmax(22rem, 1.1fr); }
.send2-form-introduction { padding-top: 1rem; }
.send2-form-card { border: 1px solid var(--send2-border); box-shadow: 0 .75rem 2.5rem rgb(29 58 86 / 10%); }
.send2-form-card .form-label { color: var(--send2-primary-dark); font-weight: 700; }
.send2-form-card .form-control { border-color: #aebdca; min-height: 2.75rem; }
.send2-form-card .form-control:focus { border-color: var(--send2-primary); box-shadow: 0 0 0 .25rem rgb(26 79 122 / 15%); }
/* Razor emits an empty list for a valid summary. The alert class must not
   turn that accessibility placeholder into a visible error panel. */
.validation-summary-valid { display: none; }
.send2-form-hint { color: #52657a; font-size: .875rem; line-height: 1.5; text-align: center; }
.send2-upload-selected-list { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.send2-upload-selected-list[hidden] { display: none; }
.send2-upload-file { align-items: center; background: #f5f8fb; border: 1px solid var(--send2-border); border-radius: .5rem; display: flex; gap: .75rem; justify-content: space-between; min-width: 0; padding: .75rem; }
.send2-upload-file-details { min-width: 0; }
.send2-upload-file-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.send2-upload-file-size { color: #52657a; display: block; font-size: .875rem; }
.send2-upload-selection-feedback { color: #40566c; }
.send2-upload-progress { border-top: 1px solid var(--send2-border); padding-top: 1rem; }
/* One flex child inside an alert, so its own content stacks normally and a
   long button label is never squeezed past the button's edge. */
.send2-alert-body { min-width: 0; width: 100%; }
.send2-alert-body > .btn { white-space: normal; }
.send2-confirmation-layout { max-width: 43rem; }
.send2-confirmation-icon { color: var(--send2-primary); font-size: 3.5rem; line-height: 1; }
.send2-document-row { align-items: baseline; display: flex; gap: 1rem; justify-content: space-between; min-width: 0; }
.send2-document-name { min-width: 0; overflow-wrap: anywhere; }
.send2-document-size { flex: 0 0 auto; white-space: nowrap; }
.send2-footer { background: #fff; border-top: 1px solid var(--send2-border); color: #52657a; font-size: .875rem; padding: 1.25rem 0; }
.send2-skip-link { background: #fff; color: #000; left: .5rem; padding: .75rem; position: absolute; top: -5rem; z-index: 9999; }
.send2-skip-link:focus { top: .5rem; }

:focus-visible,
html body a:focus-visible,
html body button:focus-visible,
html body input:focus-visible,
html body select:focus-visible,
html body textarea:focus-visible,
html body [tabindex]:focus-visible {
    /* White remains distinct on the darkest SEND2 control (8.59:1), while
       the outer navy ring remains distinct on the light page (14.70:1). */
    box-shadow: 0 0 0 7px #0b253a !important;
    outline-color: #fff !important;
    outline-offset: 1px !important;
    outline-style: solid !important;
    outline-width: 3px !important;
    transition-delay: 0s !important;
    transition-duration: 0s !important;
    transition-property: none !important;
}

@media (max-width: 38rem) {
    .send2-header-note { display: none; }
    .send2-form-layout { display: block; }
    .send2-form-introduction { margin-bottom: 2rem; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Bromcom provider branding. The header mark is decorative and never focusable,
   so the SEND2 brand link remains the first stop after the skip link. */
/* Two separate organisations, so a rule keeps them from reading as one mark. */
.send2-header-marks { align-items: center; display: flex; gap: 1rem; margin-left: auto; min-width: 0; }
/* Both marks are wordmarks, so they are balanced on rendered width rather than
   on height: the Bromcom lockup is a single line at roughly 8:1, the partner
   mark two lines at roughly 4:1, and equal heights would leave Bromcom looking
   like a caption beside it. */
.send2-header-logo { flex: 0 1 auto; height: 1.5rem; max-width: 100%; width: auto; }
.send2-header-mark-divider { background: #c3d0dc; flex: 0 0 auto; height: 1.75rem; width: 1px; }
/* The partner mark is a two-line wordmark rather than a square icon. It is
   sized by height so that wordmark stays legible, and allowed to shrink
   instead of forcing the header to wrap. */
.send2-header-logo-partner { flex: 0 1 auto; height: 2.5rem; max-width: 100%; width: auto; }
/* Declared after the rules above so it actually wins: a narrow header has to
   fit the brand and both marks on one line. */
/* A header that is not full width cannot hold the brand, the note and two
   wordmarks on one line without shrinking the marks past legibility, so the
   marks take a row of their own. This has to engage well above the 640px the
   200%-zoom reflow assertion renders at: the single-line layout needs roughly
   780px, and anything narrower overflows the document horizontally. */
@media (max-width: 62rem) {
    .send2-header-content { flex-wrap: wrap; padding-bottom: .75rem; row-gap: .5rem; }
    .send2-header-marks { margin-left: 0; width: 100%; }
}

@media (max-width: 38rem) {
    .send2-header-marks { gap: .625rem; }
    .send2-header-logo { height: 1rem; }
    .send2-header-logo-partner { height: 1.625rem; }
}
.send2-footer-content { display: flex; flex-direction: column; gap: .35rem; }
.send2-footer-provider { align-items: center; display: flex; gap: .5rem; margin: 0; }
.send2-footer-logo { flex: 0 0 auto; height: 1.5rem; width: 1.5rem; }
.send2-footer-note { margin: 0; }
/* 5.25:1 on the white footer: de-emphasised but above the 4.5:1 AA floor the
   axe gate enforces. #6b7d91 was only 4.23:1 and failed it. */
.send2-footer-legal { color: #5b6e82; font-size: .8125rem; margin: 0; }

@media (min-width: 48rem) {
    .send2-footer-content { align-items: center; flex-direction: row; flex-wrap: wrap; gap: .35rem 1.25rem; }
    .send2-footer-legal { margin-left: auto; }
}
