@media (max-width: 1279px) {
    #form-columns-wrapper {
        padding: 20px 3%;
    }
}

@media (min-width: 1280px) {
    #filter-form {
        display: grid;
        grid-template-rows: 1fr 50px
    }

    #form-columns-wrapper {
        padding: 25px 20px;
        grid-row: 1;
        overflow-y: scroll;
        overflow-x: hidden;
        height: calc(100vh - 150px)
    }

    #submit-button {
        grid-row: 2;
    }
}

.form-columns {
    column-width: 320px;
    column-gap: 50px;
    margin-inline: auto;
    column-rule: 1px solid #999;
}

.form-columns .form-group {
    max-width: 480px;
    break-inside: avoid;
    margin-bottom: 15px;
}

.form-columns .form-group p {
    margin: 0;
    padding: 13px 0 4px;
}

.form-columns label {
    display: block;
    margin: 3px 0;
    padding: 2px 0;
}

.form-columns input, .form-columns textarea, .form-columns select {
    display: block;
    height: 17px;
    padding: 3px;
}

.form-columns select {
    height: 25px;
}

.form-group p.header {
    display: block;
    font-weight: bold;
    width: 100%;
}

.form-columns .form-row {
    display: grid;
    grid-template-columns: 47% 50%;
    grid-gap: 0.3em 3%;
    margin: 8px 0;
}

.form-columns .form-row label {
    grid-column: 1;
}

.form-columns .form-row input,
.form-columns .form-row select {
    grid-column: 2;
}

#submit-button button {
    background-color: #006699;
    height: 50px;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.htmx-request #submit-button button {
    cursor: not-allowed;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(
            270deg,
            #006699,
            #7496ba,
            #006699,
            #7496ba,
            #006699,
            #7496ba,
            #006699,
            #7496ba,
            #006699
    );
    background-size: 200% 200%;
    animation: gradient-move 3s linear infinite;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

#submit-button button:hover {
    filter: brightness(1.2);
}

#submit-button button:active {
    filter: brightness(0.9);
}

.form-columns button {
    height: 27px;
    width: 100%;
    font-weight: bold;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.report-rectangle {
    display: flex;
    justify-content: space-between;
    background-color: #ffffff;
    font-size: 90%;
    border: 2px solid #ccc;
}

.report-rectangle:has(input:checked) {
    background-color: #cbdef3;
    border: 2px solid #7496ba
}

.form-grid label {
    cursor: pointer;
    justify-content: center;
    margin: 0;
    padding: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    text-align: center;
}

.hidden {
    display: none;
}
