/* Loading spinners */
.loading-spinner {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-results {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.loading-results .spinner {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.error-message {
    margin-top: 20px;
    padding: 20px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    text-align: center;
}

.error-message p {
    margin: 0;
    color: #c33;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled select styling */
select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.custom-cpt-search {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.custom-cpt-search h3 {
    margin-bottom: 15px;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.search-filters select {
    min-width: 250px;
    border: 1px solid #68776E;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #333;
    margin: 0;
}

.search-filters select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.advisors-found {
    margin-top: 20px;
}

.advisors-found h4 {
    margin: 0 0 15px 0;
    color: #0260ad;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #bc214c;
}

.advisors-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.advisors-table thead th {
    background: #0260ad;
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.advisors-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.advisors-table tbody tr:last-child td {
    border-bottom: none;
}

.advisors-table tbody tr:hover {
    background-color: #f8f9fa;
}

.advisors-table a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.advisors-table a:hover {
    text-decoration: underline;
    color: #005a87;
}

.no-results {
    margin-top: 20px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    text-align: center;
}

.no-results p {
    margin: 0;
    color: #856404;
    font-size: 16px;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .custom-cpt-search {
        padding: 15px;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-filters select {
        min-width: auto;
        width: 100%;
    }
    
    .advisors-table {
        font-size: 14px;
    }
    
    .advisors-table thead th,
    .advisors-table tbody td {
        padding: 8px;
    }
}

@media (max-width: 600px) {
    .advisors-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .advisors-table thead,
    .advisors-table tbody,
    .advisors-table th,
    .advisors-table td,
    .advisors-table tr {
        display: block;
    }
    
    .advisors-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .advisors-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 6px;
        background: white;
    }
    
    .advisors-table td {
        border: none;
        position: relative;
        padding: 8px 8px 8px 30%;
        white-space: normal;
        text-align: left;
    }
    
    .advisors-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 8px;
        width: 25%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #333;
    }
}

#county-wrapper, #city-wrapper {
    display: flex;
    align-items: center;
}

.loading-spinner{
  margin-left: 10px;
}