.representante-search-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.representante-search-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.representante-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.representante-search-input-group {
    position: relative;
}

.representante-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.representante-search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
}

.representante-search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.representante-search-button:hover {
    background-color: #e64800;
    transform: translateY(-2px);
}

.representante-search-results {
    margin-top: 20px;
    display: none;
}

.representante-search-results.active {
    display: block;
}

.representante-search-result {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.representante-search-result-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.representante-search-result-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.representante-group {
    margin-bottom: 15px;
}

.representante-group h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.representante-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.representante-lista li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 6px;
}

.representante-info {
    flex: 1;
}

.representante-nome {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.representante-cargo {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.representante-telefone {
    font-size: 0.9rem;
    color: #666;
}

.representante-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.representante-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.representante-whatsapp i {
    margin-right: 5px;
}

.representante-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.representante-search-suggestions.active {
    display: block;
}

.representante-search-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.representante-search-suggestion:hover {
    background-color: #f5f5f5;
}

.representante-not-found {
    text-align: center;
    padding: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .representante-search-container {
        margin-left: 0;
        margin-right: 0;
        padding: 15px;
        box-sizing: border-box;
        max-width: 100%;
        overflow: hidden;
    }
    
    .representante-search-form {
        flex-direction: column;
    }
    
    .representante-search-button {
        margin-top: 10px;
    }
    
    .representante-lista li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .representante-whatsapp {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .representante-search-container {
        margin-left: -15px;
        margin-right: -15px;
        padding: 15px;
        border-radius: 0;
    }
}
