/* Attorney Search Form Styles */
.aah-search-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.aah-search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aah-search-row {
    display: grid;
    gap: 15px;
    align-items: end;
}

.aah-search-row-top {
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
}

.aah-field-submit {
    display: flex;
    align-items: flex-end;
}

.aah-search-field {
    position: relative;
}

.aah-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.aah-search-field input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.aah-search-field input[type="text"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Custom Select Dropdown */
.aah-custom-select {
    position: relative;
    width: 100%;
}

.aah-select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    box-sizing: border-box;
}

.aah-select-header:hover {
    border-color: #2271b1;
}

.aah-select-header.active {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.aah-select-placeholder {
    color: #666;
    font-size: 15px;
}

.aah-select-header.has-selection .aah-select-placeholder {
    color: #333;
    font-weight: 500;
}

.aah-select-arrow {
    color: #999;
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.aah-select-header.active .aah-select-arrow {
    transform: rotate(180deg);
}

.aah-select-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.aah-select-dropdown.active {
    display: flex;
}

.aah-select-search {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.aah-select-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.aah-select-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px 0;
}

.aah-select-option {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 10px;
}

.aah-select-option:hover {
    background: #f5f5f5;
}

.aah-select-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2271b1;
    flex-shrink: 0;
}

.aah-select-option span {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.aah-select-option input[type="checkbox"]:checked + span {
    font-weight: 500;
    color: #2271b1;
}

/* Native Select Styling */
.aah-select-native {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.aah-select-native:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Search Button */
.aah-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
}

.aah-search-submit:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.aah-search-submit:active {
    transform: translateY(0);
}

.aah-search-submit svg {
    width: 18px;
    height: 18px;
}

/* Selected Items Display */
.aah-selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.aah-selected-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.aah-selected-item-remove {
    cursor: pointer;
    font-weight: bold;
    color: #1976d2;
}

.aah-selected-item-remove:hover {
    color: #d32f2f;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .aah-search-row-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .aah-search-form-wrapper {
        padding: 20px;
    }
    
    .aah-search-row-top {
        grid-template-columns: 1fr;
    }
    
    .aah-search-row-bottom {
        grid-template-columns: 1fr;
    }
    
    .aah-search-submit {
        width: 100%;
    }
}

/* Scrollbar Styling */
.aah-select-options::-webkit-scrollbar {
    width: 6px;
}

.aah-select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.aah-select-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.aah-select-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

