form.htmx-request div.subpagination {
    opacity: 0.5;
    pointer-events: none;
}
div.subpagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}
div.subpagination button {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style-type: none;
    padding: 0;
    border: none;
    font-size: 1rem;
    background-color: transparent;
}
div.subpagination button:hover {
    background-color: transparent;
    border: none;
}
div.subpagination span.number {
    display: none;
}
div.subpagination button.active,
div.subpagination button.inactive {
    pointer-events: none;
}
div.subpagination hr {
    display: none;
}
div.subpagination div {
    margin: 10px 3px 0 3px;
    padding: 3px 10px 5px 10px;
    border-radius: 15px;
    box-shadow: 3px 3px 3px #777777;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}
button.active span.number, button.active div {
    border-color: #c41230;
    background-color: #c41230;
    color: #ffffff;

}
button.inactive span.number, button.inactive div {
    border-color: #999999;
    background-color: #efefef;
    color: #666666;
}
button.ready {
    color: #ffffff;
}
button.ready:hover {
    text-decoration: underline;
}
button.ready span.number, button.ready div {
    border-color: #555555;
    background-color: #555555;
    color: #ffffff;
}
button.ready hr {
    border-color: #555555;
}
button.inactive hr {
    border-color: #999999;
}
button.active hr {
    border-color: #c41230;
}

section.half-width {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px auto;
    background-color: #ffffff;
    box-shadow: 3px 3px 3px #777777;
    padding: 20px;
}
form.subpage div.field, form.subpage div.field-tight {
    margin: 10px 0 30px 0;
}
form.subpage div.field-tight {
    margin-bottom: 0;
}
form.subpage input[type=checkbox] {
    margin-top: 8px;
}
form.subpage label {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 10px;
}
form.subpage label.small {
    font-weight: 100;
    font-size: 1.25rem;
    margin-bottom: 0;
}
form.subpage li {
    display: flex;
    list-style-type: none;
    justify-content: start;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
    margin-bottom: 5px;
}
form.subpage li.top {
    align-items: start;
}
form.subpage input.hidden {
    visibility: hidden;
}
form.subpage li.date {
    flex-direction: column;
}
form.subpage label, form.subpage input {
    display: block;
}
form.subpage input {
    font-weight: 100;
}

form.subpage div.buttons {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    gap: 20px;
    margin-top: 60px;
}
form.subpage button {
    font-size: 1.25rem;
}
form.subpage button.previous, form.subpage button.cancel {
    flex: 0 1 33.3%;
    background-color: #000000;
    border-color: #000000;
}
form.subpage button.previous:hover, form.subpage button.cancel:hover {
    flex: 0 1 33.3%;
    background-color: #999999;
    border-color: #999999;
}
form.subpage button.next {
    flex: 0 1 66.6%
}

form.subpage input[type=text],
form.subpage input[type=password],
form.subpage input[type=date],
form.subpage textarea,
form.subpage select  {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #333333;
    outline: none;
    font-size: 1.25rem;
    font-weight: 100;
}

form.subpage input[type=text]:focus,
form.subpage input[type=password]:focus,
form.subpage input[type=date]:focus,
form.subpage textarea:focus,
form.subpage select:focus {
    border: 1px solid #c41230;
}

form.subpage textarea {
    max-width: 100%;
}
form div.error {
    background-color: gold;
    padding: 2px 5px 4px 5px;
    margin: 5px 0 5px 0;
    border-radius: 5px;
}

form.subpage input[type=date] {
    flex: 0 0 auto;
    width: auto;
    padding: 5px;
    margin-top: 6px;
}
form.subpage input[type=radio] {
    width: 20px;
}
form.subpage input:focus {
    border-color: #c41230;
}

form.htmx-request section.hide-when-loading {
    display: none;
}
form.htmx-request div.hide-when-loading {
    display: none;
}
form.subpage div.search-load-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 0 auto;
}
form.subpage svg.search-load-icon {
    animation: rotating 2s linear infinite;
    width:38px;
    height:100%;
}
form.subpage div.loading {
    text-align: center;
    font-weight: 700;
    color: #cccccc;
}

form.subpage div.center {
    justify-content: center;
}

div.conditional-selection {
    background-color: #c41230;
    color: #ffffff;
    display: flex;
    gap: 10px;
    padding: 10px;
}

div.conditional-selection label {
    margin: 0;
}

section.selection {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px auto;
    background-color: #ffffff;
    box-shadow: 3px 3px 3px #777777;
    padding: 0;
    overflow: hidden;
}
section.selection div.details {
    padding: 20px;
}
div.prompt {
    text-align: left;
    margin: 0 0 20px 0;
}
form.subpage p {
    margin-bottom: 20px;
}
form.subpage i {
    font-style: italic;
}
form.subpage button.cancel {
    width: 100%;
}
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: block;
}
@media only screen and (min-width: 480px) {
    div.subpagination {
        flex-direction: row;
        margin-bottom: 30px;
        align-items: start;
        justify-content: center;
    }
    div.subpagination button {
        flex: 0 1 200px;
        flex-direction: column;
    }
    div.subpagination span.number {
        position: relative;
        display: block;
        width: 40px;
        height: 40px;
        border-width: 3px;
        border-style: solid;
        border-radius: 100%;
        text-align: center;
        padding: 5px 0 0 0;
        margin: 0 auto 0 auto;
        font-weight: 700;
        box-shadow: 0 3px 3px #777777;
    }
    div.subpagination hr {
        display: block;
        position: absolute;
        border-width: 4px;
        border-style: solid;
        top: 18px;
        left: 0;
        right: 0;
        box-shadow: 3px 3px 3px #777777;
    }
    div.subpagination span.inner-number {
        display: none;
    }
    form.subpage div.buttons {
        display: flex;
        flex-direction: row;
        justify-content: end;
    }
    section.selection {
        border-radius: 5px;
    }
    section.half-width {
        border-radius: 5px;
    }
}