@font-face {
    font-family: "Aller";
    src: url("../fonts/Aller_Std_Rg.ttf") format('truetype');
}

body {
    background-color: var(--background-grey-1);
    margin: 0;
    background-image: url('../images/waves.webp');
    background-repeat: no-repeat;
    background-size: 100vw 100vh;
    background-attachment: fixed;
    background-position: top center;
}

main {
    width: 100%;
    height: 100%;
}

#content-column {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    height: 100%;
}

/*** TYPOGRAPHY ***/

h1, h2, h3, h4, h5, h6, .mega-title {
    font-family: 'Aller', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: var(--text-emphasis);
}

h1 {
    font-size: 2.25rem;

}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 0.875rem;
}

h6 {
    font-size: 0.75rem;
}

.mega-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-emphasis);
    text-transform: uppercase;
    line-height: unset;
}

p, label, ol, ul, li, th, td, span {
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1.75rem;
}

ul.validation-errors li.validation-message {
    list-style: none;
}

a {
    color: var(--geoblazor-accent);
    font-weight: bold;
    text-decoration: underline;
}

a.btn {
    text-decoration: none;
}

code {
    background-color: var(--code-background);
    color: var(--geoblazor-accent);
    display: inline;
    font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
    padding: 0.25rem;
}

code.large-code-block {
    padding: 0;

    pre {
        background-color: var(--code-background);
    }
}

i.icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-size: cover;
    background-position: center;
}

i.icon.icon-large {
    width: 2rem;
    height: 2rem;
}

i.icon.plus {
    background-image: url('../images/icons/plus.svg');
}

i.icon.check {
    background-image: url('../images/icons/check.svg');
}

i.icon.close--accent {
    background-image: url('../images/icons/close-accent.svg');
}

i.icon.close {
    background-image: url('../images/icons/close.svg');
}

i.icon.info {
    background-image: url('../images/icons/info.svg');
}

i.icon.edit {
    background-image: url('../images/icons/edit.svg');
}

i.icon.save {
    background-image: url('../images/icons/save.svg');
}

@media (prefers-color-scheme: light) {
    i.icon.info {
        background-image: url('../images/icons/info-dark.svg');
    }
}

.error {
    color: var(--error);
}

hr {
    border-bottom: 0.125rem solid var(--text-emphasis);
    opacity: 1;
    width: 100%;
}


/*** CONTROLS ***/

body { /* body tag added to help overwrite Bootstrap */

    .btn {
        color: var(--text-button);
        font-family: 'Aller', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-weight: 200;
        font-size: 1.25rem;
        background-color: var(--geoblazor-primary);
        border-radius: var(--box-radius);
        border: none;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 4rem;

        i.icon {
            margin-right: 0.5rem;
        }
    }

    .btn:disabled {
        background-color: var(--geoblazor-primary-disabled);
        /* color: var(--text-disabled); */
    }

    .btn-small {
        padding: 0.25rem 2rem;
    }

    .btn-tiny {
        border-radius: 0.5rem;
        padding: 0.25rem;
        font-size: 0.875rem;

    }

    .btn:hover,
    .btn-small:hover,
    .btn-tiny:hover {
        color: var(--text-button);
    }

    .btn-primary {
        background-color: var(--geoblazor-primary);
    }

    .btn-primary:hover,
    .btn-primary:active,
    .btn-primary:focus,
    .btn-primary:focus-visible,
    :not(.btn-check) + .btn.btn-primary:active, /* Bootstrap override */
    .btn-primary:first-child:active {
        background-color: var(--geoblazor-primary-hover);
    }

    .btn-secondary {
        background-color: var(--geoblazor-secondary);
    }

    .btn-secondary:hover,
    .btn-secondary:active,
    .btn-secondary:focus,
    .btn-secondary:focus-visible,
    :not(.btn-check) + .btn.btn-secondary:active, /* Bootstrap override */
    .btn-secondary:first-child:active {
        background-color: var(--geoblazor-secondary-hover);
    }

    .btn-accent {
        background-color: var(--geoblazor-accent);
    }

    .btn-accent:hover,
    .btn-accent:active,
    .btn-accent:focus,
    .btn-accent:focus-visible,
    :not(.btn-check) + .btn.btn-accent:active, /* Bootstrap override */
    .btn-accent:first-child:active {
        background-color: var(--geoblazor-accent-hover);
    }

    .btn-gradient {
        background-color: unset;
        background: linear-gradient(var(--background-grey-1), var(--background-grey-1)) padding-box,
        var(--geoblazor-gradient-horizontal-reverse) border-box;
        border: 0.125rem solid transparent;
        padding: 0.75rem 3.75rem;
        color: var(--text);
    }

    .btn-gradient:hover,
    .btn-gradient:active,
    .btn-gradient:focus,
    .btn-gradient:focus-visible,
    :not(.btn-check) + .btn.btn-gradient:active, /* Bootstrap override */
    .btn-gradient:first-child:active {
        background: linear-gradient(var(--geoblazor-gradient-dark-hover),
        var(--geoblazor-gradient-dark-hover)) padding-box,
        var(--geoblazor-gradient-horizontal-hover-reverse) border-box;
        color: var(--text-emphasis);
    }

    .btn-gradient-dark {
        background: linear-gradient(var(--background-grey-1), var(--background-grey-1)) padding-box,
        var(--torchy-gradient-horizontal) border-box;
        border: 0.125rem solid transparent;
        padding: 0.75rem 3.75rem;
        color: var(--text);
    }

    .btn-gradient-dark:hover,
    .btn-gradient-dark:active,
    .btn-gradient-dark:focus,
    .btn-gradient-dark:focus-visible,
    :not(.btn-check) + .btn.btn-gradient-dark:active, /* Bootstrap override */
    .btn-gradient-dark:first-child:active {
        background: linear-gradient(var(--geoblazor-gradient-dark-hover),
        var(--geoblazor-gradient-dark-hover)) padding-box,
        var(--torchy-gradient-horizontal-hover) border-box;
        color: var(--text-emphasis);
    }


    @media (prefers-color-scheme: light) {

        .btn-gradient {
            color: var(--geoblazor-accent);
        }

        .btn-gradient:hover,
        .btn-gradient:active,
        .btn-gradient:focus,
        .btn-gradient:focus-visible,
        :not(.btn-check) + .btn.btn-gradient:active, /* Bootstrap override */
        .btn-gradient:first-child:active {
            color: var(--geoblazor-primary);
        }

        .btn-gradient-dark {
            color: var(--geoblazor-primary);
        }

        .btn-gradient-dark:hover,
        .btn-gradient-dark:active,
        .btn-gradient-dark:focus,
        .btn-gradient-dark:focus-visible,
        :not(.btn-check) + .btn.btn-gradient-dark:active, /* Bootstrap override */
        .btn-gradient-dark:first-child:active {
            color: var(--geoblazor-secondary);
        }
    }
    

    .btn-danger {
        background-color: var(--background-grey-1);
        border: 0.125rem solid var(--error);
        padding: 0.75rem 3.75rem;
        color: var(--text-button-outline);
    }

    .btn-danger:hover, .btn-danger.btn-small:hover,
    .btn-danger:active, .btn-danger.btn-small:active,
    .btn-danger:focus, .btn-danger.btn-small:focus,
    .btn-danger:focus-visible, .btn-danger.btn-small:focus-visible,
    :not(.btn-check) + .btn.btn-danger:active, /* Bootstrap override */
    .btn-danger:first-child:active, .btn-danger.btn-small:first-child:active {
        background-color: var(--error);
    }

    .btn-danger.btn-small {
        background-color: var(--background-grey-1);
        border: 0.125rem solid var(--error);
        padding: 0.125rem 1.875rem;
    }

    .btn-danger.btn-tiny {
        padding: 0.25rem;
    }

}


/*** INPUT FIELDS ***/

body { /* body tag added to help overwrite Bootstrap */

    input,
    select,
    textarea {
        background: linear-gradient(var(--background-grey-1), var(--background-grey-1)) padding-box,
        var(--geoblazor-gradient-horizontal) border-box;
        border: 0.125rem solid transparent;
        border-radius: var(--box-radius);
        color: var(--text);
        font-family: 'Roboto', sans-serif;
        font-size: 1rem;
        font-weight: 200;
        padding: 0.5rem 2rem;
        min-width: 8rem;
        width: 100%;
    }

    select option {
        background-color: var(--background-grey-2);
        color: var(--text-emphasis);
    }

    input.invalid,
    select.invalid,
    textarea.invalid {
        background: linear-gradient(var(--background-grey-1), var(--background-grey-1)) padding-box,
        var(--error) border-box;
    }

    input:focus, input:focus-visible,
    select:focus, select:focus-visible,
    textarea:focus, textarea:focus-visible {
        outline-color: var(--geoblazor-accent);
    }

    input:focus, input:focus-visible,
    select:focus, select:focus-visible {
        border-color: var(--geoblazor-accent);
        background-color: unset;
        color: var(--text);
    }

    select.unselected {
        color: var(--text-gray);
    }

    textarea::-webkit-resizer {
        background-image: url(../images/icons/resize-handle.svg);
    }

    ::-webkit-calendar-picker-indicator {
        background-image: url('../images/icons/calendar.svg');
    }

    ::placeholder {
        color: var(--text-gray);
    }

    @media (prefers-color-scheme: light) {
        textarea::-webkit-resizer {
            background-image: url(../images/icons/resize-handle-dark.svg);
        }

        ::-webkit-calendar-picker-indicator {
            background-image: url('../images/icons/calendar-dark.svg');
        }
    }

}

/*** FORMS ***/
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;

    label {
        display: block;
    }
}

.form-group__tooltip-field {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

form.contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
    border-radius: 2rem;
    background-color: var(--color-midnightblue);
    width: 30rem;
    max-width: 50vw;
    padding: 3vw 4vw;
}

.contact-form .checkbox-control {
    width: 2.5vw;
    min-width: unset;
    margin: 0.5rem;
    text-align: right;
}

.contact-form .form-label {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-white);
}

.contact-form button {
    width: 100%;
}

.contact-form .email-control {
    border: 1px solid var(--geoblazor-primary);
    background: var(--text-white);
    color: var(--text-dark-gray);
    min-width: unset;
    width: calc(100% - 1.25rem);
    padding: 0.5rem;
    margin: 0 0 2rem;
}

#contact-section .contact-form .agreement {
    font-size: 0.813rem;
    line-height: 1.25rem;
    margin: 3rem 0 0;
    color: var(--text-white);
}

@media (prefers-color-scheme: light) {
    .feature-text {
        color: var(--geoblazor-primary);
    }
}

@media (prefers-color-scheme: dark) {
    .feature-text {
        color: var(--text);
    }
}

#hubspot-form-container {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 2rem 2rem 1rem 2rem;
}

input.hs-button.primary.large {
    width: 100%;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 1rem;
    width: 100%;
}

.button-row--centered {
    margin: 1rem 0;
}


/* container query for forms inside Split Layout that couldn't be selected
   within SplitLayout css due to css isolation string generation */
.split-layout-form {
    container: split-layout-form / inline-size;

    @container (width < 490px) {
        .form-row {
            flex-direction: column;
            gap: initial;
        }
    }
}

@media only screen and (max-width: 600px) {
    .modal__content .form-row {
        flex-direction: column;
        gap: 0;
    }


    .contact-form {
        width: 100%;
        padding: 2rem;
        margin: 0 auto 2rem;
        max-width: 70vw;
    }

    .contact-form .row {
        flex-direction: row;
    }

    .contact-form .btn {
        padding: 1rem 2.5rem;
    }
}

/*** TABLES ***/
body {

    table {
        tr {
            background: linear-gradient(var(--background-grey-1), var(--background-grey-1)) padding-box,
            var(--torchy-gradient-horizontal) border-box;
            border: solid transparent;
            border-width: 0 0 0.125rem;
        }

        td, th {
            padding: 0.65rem;
        }

        th {
            color: var(--text-emphasis);
            font-size: 1.25rem;
        }

        td {
            color: var(--text);
        }
    }
}

a,
a:not([href]):not([class]), a:not([href]):not([class]):hover {
    text-decoration: underline;
    color: var(--text-emphasis);
    cursor: pointer;
}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.column {
    display: flex;
    flex-direction: column;
}

.row > * {
    max-width: unset;
    width: unset;
}

.validation-errors {
    color: var(--error);
}

.questionnaire-form label {
    display: flex;
    flex-direction: column;
}

.questionnaire-form textarea {
    width: 100%;

}


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 3.5rem;
    top: 0.5rem;
}

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

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

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background-grey-2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--background-grey-3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--background-grey-4);
}