
.accreditation-form {
    
    .wpcf7-form-control-wrap,
    .wpcf7-select-parent, 
    .fusion-alert {
        margin-bottom: 20px;
    }
    
    .wpcf7-form-control-wrap.modalities wpcf7-form-control > span {
        display: inline-block;
        margin-right: 15px;
    }
    
    .wpcf7-form-control-wrap.modalities wpcf7-form-control > span:last-child {
        margin-right: 0px;
    }     
    
    .wpcf7-form-control-wrap.modalities .wpcf7-list-item input,
    .wpcf7-form-control-wrap.modalities .wpcf7-list-item span {
        display: inline-block;
    }
    
    .wpcf7-form-control-wrap.modalities .wpcf7-list-item input {
        margin-right: 5px;
    }
}

#query_results table {
    width: 100%;
    border-collapse: collapse;
}

#accred-dir-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: none;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

#accred-dir-sticky-header table {
    border-collapse: collapse;
    margin: 0;
    background: white;
}

#accred-dir-sticky-header th {
    padding: 12px 8px;
    background: white;
    color: #333;
    border-bottom: none;
    font-weight: bold;
    text-align: left;
}

#accred-dir-sticky-header th:nth-child(4),
#accred-dir-sticky-header th:nth-child(5),
#accred-dir-sticky-header th:nth-child(6),
#accred-dir-sticky-header th:nth-child(7) {
    text-align: center;
}

#query_results table td,
#query_results table th {
    vertical-align: top;
    padding: 8px;
}

#query_results table td:first-child,
#query_results table th:first-child {
    padding-left: 0px;
}

#query_results table td:last-child,
#query_results table th:last-child {
    padding-right: 0px;
}

@media only screen and (max-width: 640px), (min-device-width: 640px) and (max-device-width: 1024px) {
    
    #query_results table tbody tr {
        border: none;
        border-bottom: 1px solid #cccccc;
    }
    
    #query_results table tbody tr::first-child {
        border-top: 1px solid #cccccc;
    }    
    
    #query_results table tbody tr td {
        border-bottom: none;
    }    
    
    #query_results table tbody tr td::before {
        position: relative;
    }
    
    #query_results table td:last-child {
        padding-right: 8px;
    }    
    
    #query_results table tbody tr td:nth-child(1),
    #query_results table tbody tr td:nth-child(2),
    #query_results table tbody tr td:nth-child(3) {
        width: 100%;
    }     
    
    #query_results table tbody tr td:nth-child(1)::before {
        display: inline-block;
        top: 0;
        width: auto;
        padding-right: 20px;
    }
    
    #query_results table tbody tr td:nth-child(2) {
        padding-bottom: 0;
    }
    
    #query_results table tbody tr td:nth-child(3) {
        padding-top: 0;
    }    
    
    #query_results table tbody tr td:nth-child(2)::before,
    #query_results table tbody tr td:nth-child(3)::before {
        display: none;
    }
    
    #query_results table tbody tr td:nth-child(4),
    #query_results table tbody tr td:nth-child(5),
    #query_results table tbody tr td:nth-child(6),
    #query_results table tbody tr td:nth-child(7) {
        display: inline-block;
        width: 25%;
        text-align: center !important;
    }
    
    #query_results table tbody tr td:nth-child(4)::before,
    #query_results table tbody tr td:nth-child(5)::before,
    #query_results table tbody tr td:nth-child(6)::before,
    #query_results table tbody tr td:nth-child(7)::before {
        display: inline-block;
        width: 100%;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
        left: 0;
    }     
  

}