/* Mobile upload form. Tokens from the Hoist Finance Visual Identity Guidelines 2026
   (Assets/_brand-skill/references/html.md). Inter is bundled locally via the variable
   font woff2 so the form works without any internet connection at the venue. */

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --hf-blue: #2B3862;
    --hf-blue-mid: #7B8DBF;
    --hf-blue-pale: #DCDFF2;
    --hf-orange: #EB5C34;
    --hf-grey: #888690;
    --hf-bg: #FFFFFF;
    --hf-bg-alt: #F2F2F2;
    --hf-line: #EAE8E9;
    --hf-text: #1A1A1A;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--hf-text);
    background: var(--hf-bg);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

main {
    max-width: 32rem;
    margin: 0 auto;
    padding: 2rem 1.25rem calc(3rem + env(safe-area-inset-bottom));
}

main.centred {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    text-align: center;
}

h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--hf-blue);
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
}

.lede {
    margin: 0 0 2rem;
    color: var(--hf-grey);
}

label {
    display: block;
    font-weight: 600;
    color: var(--hf-blue);
    margin: 1.5rem 0 .4rem;
}

input[type="text"],
input:not([type]) {
    width: 100%;
    /* 1rem minimum, or iOS Safari zooms the viewport on focus. */
    font: inherit;
    font-size: 1rem;
    padding: .8rem .9rem;
    border: 1px solid var(--hf-line);
    border-radius: 4px;
    background: var(--hf-bg-alt);
}

::placeholder { color: #b0adb5; }

input:focus-visible {
    outline: 2px solid var(--hf-blue-mid);
    outline-offset: 1px;
    background: var(--hf-bg);
}

input[type="file"] {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: .8rem;
    border: 1px dashed var(--hf-blue-mid);
    border-radius: 4px;
    background: var(--hf-bg-alt);
}

.hint {
    margin: .45rem 0 0;
    font-size: .875rem;
    color: var(--hf-grey);
}

button {
    /* Generous tap target — people are standing up, holding a drink. */
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    background: var(--hf-orange);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:disabled {
    background: var(--hf-blue-mid);
    cursor: default;
}

.errors:not(:empty),
.field-error:not(:empty) {
    display: block;
    margin-top: .45rem;
    font-size: .875rem;
    color: var(--hf-orange);
    font-weight: 600;
}

.errors ul { margin: 0; padding-left: 1.1rem; }

.consent {
    margin: 2rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hf-line);
    font-size: .8125rem;
    color: var(--hf-grey);
}

a.secondary {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--hf-orange);
    font-weight: 600;
    text-decoration: none;
}

.hf-logo {
    display: block;
    width: 110px;
    margin: 0 0 1.75rem;
}
