@import url("_normalize-joZz2Ha.css");
@import url("_a11y-RViPPX2.css");
@import url("_variables-3ukDSog.css");

/**
 * Default for clean startup.
 */
html {
    scroll-behavior: smooth;
    line-height: 1.6rem;
}

body {
    margin: 0;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: normal;
}

main {
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* form default for a11y and consistency */
form {
    width: 100%;

    label {
        font-weight: 700;
    }

    input,
    textarea,
    select {
        margin-top: var(--spacer-xs);
        width: 100%;
        padding: calc(1.5 * var(--spacer-sm));
        border: 1px solid var(--primary-color);
        border-radius: var(--default-radius);
        color: var(--text-color);
        background: var(--input-bg);
    }

    select {
        padding-right: calc(var(--spacer-default) * 2);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: var(--spacer-default);
        background-position: right 0.75rem center;
    }

    input.blackhole {
        display: none;
    }

    input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 1em;
        height: 1em;
        border: 1px solid var(--primary-color);
        border-radius: 0.3em;
        background: var(--bg-color);
        cursor: pointer;
        transition:
            border-color 0.2s,
            background 0.2s;
        position: relative;
        vertical-align: bottom;
        box-sizing: border-box;
        margin-right: var(--spacer-sm);
    }

    /* Checkmark using SVG background */
    input[type="checkbox"]:checked {
        background-color: var(--primary-color);
        border-color: var(--text-color);
        background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'><polyline points='4,8 7,11 12,5'/></svg>");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 0.8em 0.8em;
    }

    /* default form cta submit is 100 wide */
    button.cta[type="submit"] {
        width: 100%;
    }
}

/* we use a class outside of form so we can style some "a" like "button". But
 * beware of a11y meaning, a button is not a link */
.btn {
    display: inline-block;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: normal;
    vertical-align: middle;
    user-select: none;
    border: 1px solid;
    border-radius: var(--default-radius);
    padding: 0.5rem 1rem;
    line-height: 1.5rem;
}

button.btn.cta,
a.btn.cta {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
}

.required::after {
    content: "*";
    padding-left: var(--spacer-xs);
    color: var(--danger-color);
    font-weight: bold;
}

.flash .content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 1rem;
}

ul.form-field-error {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: var(--danger-color);
    color: white;
}
ul.form-field-error li {
    display: flex;
    align-items: center;
    gap: var(--spacer-default);
}

@media (max-width: 768px) {
    .flash .content-wrapper {
        flex-direction: column;
    }
    .flash .content-wrapper .flash-body {
        width: 100%;
    }
    .flash .content-wrapper .flash-body .flash-title,
    .flash .content-wrapper .flash-body .flash-message {
        text-align: center;
    }
}

.flash .content-wrapper .flash-svg {
    height: 32px;
}
.flash .content-wrapper .flash-svg .icon {
    height: 32px;
}
.flash .content-wrapper .flash-title > *,
.flash .content-wrapper .flash-message > * {
    word-break: break-all;
}

.flash-primary {
    background-color: var(--primary-color);
}
.flash-primary .flash-svg .icon,
.flash-primary .flash-title,
.flash-primary .flash-message {
    color: #fff;
    font-weight: bold;
}

.flash-success {
    background-color: var(--success-color);
}
.flash-success .flash-svg .icon,
.flash-success .flash-title,
.flash-success .flash-message {
    color: #fff;
    font-weight: bold;
}

.flash-info {
    background-color: var(--info-color);
}
.flash-info .flash-svg .icon,
.flash-info .flash-title,
.flash-info .flash-message {
    color: #fff;
    font-weight: bold;
}

.flash-warning {
    background-color: var(--warning-color);
}
.flash-warning .flash-svg .icon,
.flash-warning .flash-title,
.flash-warning .flash-message {
    color: #000;
    font-weight: bold;
}

.flash-danger {
    background-color: var(--danger-color);
}
.flash-danger .flash-svg .icon,
.flash-danger .flash-title,
.flash-danger .flash-message {
    color: #fff;
    font-weight: bold;
}

.flash-error {
    background-color: var(--danger-color);
}
.flash-error .flash-svg .icon,
.flash-error .flash-title,
.flash-error .flash-message {
    color: #fff;
    font-weight: bold;
}
