#reddie-find-a-pro-form .grid {
    display: grid;
    grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
    gap: 10px;
    width: 100%;
    border-top: 1px solid var(--wp--preset--color--orange);
    border-bottom: 1px solid var(--wp--preset--color--orange);
    padding: 1rem 0;
}
#reddie-find-a-pro-form .taxonomy-group {
    position: relative;
    z-index: 3;
}
#reddie-find-a-pro-form .taxonomy-header {
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    padding: 0 40px 0 1rem;
    height: var(--wp--custom--input--height);
    color: var(--wp--preset--color--white);
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
    background-color: var(--wp--preset--color--charcoal);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#reddie-find-a-pro-form .taxonomy-header:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: 20px;
    margin-right: -24px;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url(images/angles-up-down.svg);
}
#reddie-find-a-pro-form .taxonomy-header:focus {
    outline: none;
}
#reddie-find-a-pro-form .checkbox-group {
    display: none;
    margin: 0;
    padding: 0.75rem 1rem;
    position: absolute;
    background-color: var(--wp--preset--color--charcoal);
    width: 100%;
    top: var(--wp--custom--input--height);
}
#reddie-find-a-pro-form .checkbox-group.active {
    display: block;
}
#reddie-find-a-pro-form .checkbox-group.loading {
    pointer-events: none; 
}
#reddie-find-a-pro-form .checkbox-group.loading label {
    opacity: 0.2; 
}
#reddie-find-a-pro-form .checkbox-group.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--wp--preset--color--orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#reddie-find-a-pro-form input[type="checkbox"] {
    position: absolute;
    opacity: 0; 
    width: 0;
    height: 0;
}
#reddie-find-a-pro-form label {
    color: var(--wp--preset--color--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    display: block;
    width: 100%;
    line-height: 1.25;
    position: relative;
    padding: 8px 25px 8px 0;
    cursor: pointer;    
}
#reddie-find-a-pro-form label:hover {
    color: var(--wp--preset--color--orange);
}
#reddie-find-a-pro-form label:last-of-type {
    border-bottom: 0;
}
#reddie-find-a-pro-form label::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 0;
    width: 16px;
    height: 16px;
    border: 1px solid var(--wp--preset--color--white);
    background-color: transparent;
    box-sizing: border-box;
    padding: 2px;
}
#reddie-find-a-pro-form label.checked {
    color: var(--wp--preset--color--orange);
}
#reddie-find-a-pro-form label.checked::after {
    background-image: url('images/checkbox-checked.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#reddie-find-a-pro-form label.disabled {
    color: rgba(255,255,255,0.35);
    cursor: not-allowed;
}
#reddie-find-a-pro-form label.disabled::after {
    opacity: 0.3;
}
#reddie-find-a-pro-form .search-col {
    grid-column: span 2;
}
#reddie-find-a-pro-form .wp-element-button {
    width: 100%;    
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
@media (min-width: 768px) {
    #reddie-find-a-pro-form .grid {
        grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
    }
}
@media (min-width: 960px) {
    #reddie-find-a-pro-form .grid {
        grid-template-columns: repeat( 5, minmax( 0, 1fr ) );
    }
    #reddie-find-a-pro-form .search-col {
        grid-column: span 1;
    }
}
