/* Light (300) */
@font-face {
    font-family: "VisaDialect";
    src: url("/fonts/VisaDialect-Light.woff2") format("woff2"), url("/fonts/VisaDialect-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Light Italic (300 italic) */
@font-face {
    font-family: "VisaDialect";
    src: url("/fonts/VisaDialect-Light Italic.woff2") format("woff2"), url("/fonts/VisaDialect-Light Italic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Regular (400) */
@font-face {
    font-family: "VisaDialect";
    src: url("/fonts/VisaDialect-Regular.woff2") format("woff2"), url("/fonts/VisaDialect-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Regular Italic (400 italic) */
@font-face {
    font-family: "VisaDialect";
    src: url("/fonts/VisaDialect-Regular Italic.woff2") format("woff2"), url("/fonts/VisaDialect-Regular Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Medium (500) */
@font-face {
    font-family: "VisaDialect";
    src: url("/fonts/VisaDialect-Medium.woff2") format("woff2"), url("/fonts/VisaDialect-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Medium Italic (500 italic) */
@font-face {
    font-family: "VisaDialect";
    src: url("/fonts/VisaDialect-Medium Italic.woff2") format("woff2"), url("/fonts/VisaDialect-Medium Italic.ttf") format("truetype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Semibold (600) */
@font-face {
    font-family: "VisaDialect";
    src: url("/fonts/VisaDialect-Semibold.woff2") format("woff2"), url("/fonts/VisaDialect-Semibold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Semibold Italic (600 italic) */
@font-face {
    font-family: "VisaDialect";
    src: url("/fonts/VisaDialect-Semibold Italic.woff2") format("woff2"), url("/fonts/VisaDialect-Semibold Italic.ttf") format("truetype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Bold (700) */
@font-face {
    font-family: "VisaDialect";
    src: url("/fonts/VisaDialect-Bold.woff2") format("woff2"), url("/fonts/VisaDialect-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Bold Italic (700 italic) */
@font-face {
    font-family: "VisaDialect";
    src: url("/fonts/VisaDialect-Bold Italic.woff2") format("woff2"), url("/fonts/VisaDialect-Bold Italic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Optional: avoid faux styles */
:root {
    font-synthesis: none;
    --footer-space: clamp(140px, 22vh, 320px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.bg-corner {
    position: fixed;
    right: -18vw;
    bottom: var(--safe-bottom);
    width: min(75vw, 50vh); /* responsive size */
    height: auto;
    background-repeat: no-repeat;
    pointer-events: none; /* don’t block clicks */
    z-index: -100000; /* adjust if you need it above/below content */
    opacity: 0.9; /* optional softening */
    transition: opacity 1s ease;
    -webkit-mask-image: linear-gradient( to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100% );
    mask-image: linear-gradient( to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100% );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

    .bg-corner.bg-corner-fade {
        animation: cornerFade 1.5s ease-in 0.5s forwards;
    }

    .bg-corner.bg-corner-super {
        animation: cornerSuperFade 1.5s ease-in 0.5s forwards !important;
    }

    .bg-corner.bg-corner-invis {
        animation: cornerInvis 1.5s ease-in 0.5s forwards !important;
    }

@keyframes cornerFade {
    from {
        opacity: 0.9;
    }

    to {
        opacity: 0.3;
    }
}

@keyframes cornerSuperFade {
    from {
        opacity: 0.9;
    }

    to {
        opacity: 0.1;
    }
}

@keyframes cornerInvis {
    from {
        opacity: 0.9;
    }

    to {
        opacity: 0;
    }
}

.bg-corner-left {
    position: fixed;
    left: 2vw;
    bottom: 2vw;
    width: min(40vw, 30vh); /* responsive size */
    height: auto;
    background-repeat: no-repeat;
    pointer-events: none; /* don’t block clicks */
    z-index: -100000; /* adjust if you need it above/below content */
    opacity: 0.8; /* optional softening */
    margin-left: env(safe-area-inset-left, 0);
    margin-bottom: env(safe-area-inset-bottom, 0);
}

    .bg-corner-left::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1; /* behind the image but above the page */
        /* Blur + dim the content underneath */
        -webkit-backdrop-filter: blur(12px) brightness(0.8) saturate(0.9);
        backdrop-filter: blur(12px) brightness(0.8) saturate(0.9);
        background: rgba(0,0,0,0.18); /* gentle darken so text “disappears” */
        border-top-right-radius: 12px; /* optional soften of the rectangle corner */
    }

page-container {
    width: 100%;
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    margin-top: 10vh;
    height: 10vh;
    color: white;
    text-align: center;
}

select, option {
    font-family: "VisaDialect";
}

main {
    padding-bottom: calc(var(--footer-space) + env(safe-area-inset-bottom, 0px));
    display: block;
    width: 100%;
    margin: 0; /* kill any template defaults */
    max-width: none; /* some templates cap width */
    float: none;
}

.bg-cover {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -100000;
    pointer-events: none;
    user-select: none;
    /* start point + animation */
    opacity: 0.25;
    animation: bgFade 2s ease-in-out infinite alternate;
    will-change: opacity;
}

.bg-cover2 {
    position: fixed;
    inset: 0;
    transform: rotate(180deg);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -100000;
    pointer-events: none;
    user-select: none;
    /* start point + animation */
    opacity: 0.25;
    animation: bgFade2 2s ease-in-out 1s infinite alternate;
    will-change: opacity;
}

@keyframes bgFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.8;
    }
}

@keyframes bgFade2 {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.8;
    }
}


.site-footer {
    position: relative;
    left: 0;
    bottom: 0;
    min-height: clamp(120px, 20vw, 280px); /* reserve vertical space */
    padding-left: clamp(180px, 30vw, 420px); /* reserve left space if needed */
}

@media (orientation: landscape) {
    .bg-corner {
        display: block;
        position: fixed;
        right: -5%;
        bottom: -2%;
        width: auto; /* responsive size */
        height: min(100vh);
        background-repeat: no-repeat;
        pointer-events: none; /* don’t block clicks */
        z-index: -100000; /* adjust if you need it above/below content */
        opacity: 0.9; /* optional softening */
    }

    .site-footer {
        position: relative;
        left: 0;
        bottom: 0;
        min-height: clamp(120px, 20vw, 280px); /* reserve vertical space */
        padding-left: clamp(180px, 30vw, 420px); /* reserve left space if needed */
    }
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    /*padding-top: 1.1rem;*/
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+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MuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}